Baffling problem. The code was tested fine on an 18 pin 18F1320 on a breadboard, the pcb uses a 20 pin 18F1320. The 20mhz resonator runs perfectly. A test program using internal RC doesnt run either. I can program and read back the code and it verified ok. Also, this is 2 different PIC's in a row.
Any ideas what the heck the issue is? Anyone seen this before?
Here is a short test program to turn on and off a pin:
I'm programming using HS just as I did on the breadboard. MCLR is set as an input.Code:Define OSC 20 ADCON1 = %01111000 ADCON2 = %10000111 TRISA = %11100111 TRISB = %11000011 loop1: portb.2 = 1 pause 100 portb.2 = 0 goto loop1
Bookmarks