1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <pic18f452.h> void main(void) { float f = TRISA; int a = TRISB; LATA = 0xFF; LATAbits.LATA1 = 0; // UIE = 0x55; f /= a; a = f; TRISA = a; while(1); }