hi, i've started playing with 18F4455 device. im using MPLAB with c18 compiler student version. as a start what am trying to do is to light an LED connected to pin 6 (RA4). here is the code.
#include #pragma config WDT = OFF
void main() { ADCON1 = 0x0F; CMCON = 0x07; TRISA = 0xCF; LATAbits.LATA4 = 1; while(1); }
how ever the LED in the target circuit does not light !. please let me know whether there is any problem with the above code. ( how ever i am able to debug it using ICE 2 without any problem) my device is 18F4455.
thanks