Hi,
I have a simple program for testing PIC 18F6620:
void main()
{
SET_TRIS_G(0x00);
OUTPUT_HIGH(PIN_G3);
while(1);
}
It is done in CCS. I am using 20Mhz crystal with 16pF capacitors. The oscillator is set to HS. The problem is that the PIC is not working. G3 is low. I tried to insert NOP in 0x00, but this didn't help.
EDIT: I checked OSC1 and OSC2 with oscilloscope and there is 80mV constant level.
I have a simple program for testing PIC 18F6620:
void main()
{
SET_TRIS_G(0x00);
OUTPUT_HIGH(PIN_G3);
while(1);
}
It is done in CCS. I am using 20Mhz crystal with 16pF capacitors. The oscillator is set to HS. The problem is that the PIC is not working. G3 is low. I tried to insert NOP in 0x00, but this didn't help.
EDIT: I checked OSC1 and OSC2 with oscilloscope and there is 80mV constant level.
Last edited: