Jan-Erik, There is no activity on either PORTA or D. The blip that I see is=20 probably just the pin burbbing on application of the power. I know that=20 the chip is running because the OSC is running. Well I have reduced this to the absolute minimal code. Here it is: #pragma config FOSC =3D HS, #pragma config WDTE =3D OFF,=20 #pragma config PWRTE =3D OFF #pragma config BOREN =3D OFF, #pragma config LVP =3D ON,=20 #pragma config CPD =3D OFF #pragma config WRT =3D OFF, #pragma config CP =3D OFF ADCON1 =3D 7; CMCON =3D 7; PORTA =3D 0; PORTD =3D 0; TRISA =3D 0; TRISD =3D 0; en =3D 0; Init: PORTA =3D 0; PORTD =3D 0; wait(5); PORTA =3D 1; NOP(); NOP(); NOP(); PORTD =3D 1; NOP(); NOP(); NOP(); wait(5); goto Init; It doesn't get much simpler than that. There is a 8MHz crystal hooked up=20 to the OSC pins. It is running at 7.9997 MHz. The caps =3D 47pF. As per=20 the data sheet the FOSC =3D HS. Almost everything else is turned off. What= =20 do you think? Any ideas from anybody? Thanks, rich! On 10/20/2015 10:00 AM, Jan-Erik S=F6derholm wrote: > Exactly *what* was unclear from page 349 in the XC8 manual !? > > Your question make be believe that you never bothered to > check page 349 (or anything else in the manual, I guess). > > Good luck. > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > Synopsis > #include > NOP(); > Description > Execute NOP instruction here. This is often useful to fine tune delays = or > create a handle for breakpoints. The NOP instruction is sometimes requi= red > during some sensitive sequences in hardware. > > Example > #include > void crude_delay(unsigned char x) { > while(x--){ > NOP(); /* Do nothing for 3 cycles */ > NOP(); > NOP(); > } > } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > Jan-Erik. > =20 > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .