I created this simple program:
It does noting more than toggle LATB3. It works fine in debug mode but when I compile for release and program the chip the code does now run.
Any idea why?
I have a 18F26J53 and a 18F27J53 and both do the same thing.
Rich (BB code):
#include <P18F26J53.h>
#pragma config WDTEN = OFF
#pragma config XINST = OFF
#pragma config CFGPLLEN = OFF
#pragma config OSC = INTOSCO
#pragma config FCMEN = OFF
void main()
{
TRISBbits.TRISB3 = 0;
LATBbits.LATB3 = 0;
while(1) LATBbits.LATB3 =~ LATBbits.LATB3;
}
Any idea why?
I have a 18F26J53 and a 18F27J53 and both do the same thing.