Originally Posted by
HenrikOlsson
Hi,
DEFINE OSC 4 doesn't do anything with the PICs registers or config "fuses". It simply tells the compiler that you are intending to run the chip at 4Mhz so it knows how to calculate the correct amount of cycles for your PAUSE 250 etc.
The internal oscillator on the '690 is fixed* at 8Mhz but the postscaler (controlled by bits 4, 5 and 6 in the OSCCON register) defaults to a divide by 2 ratio so you end up with 4Mhz as the default. So really, it should be running at 4Mhz.
* The "fixed" 8Mhz oscillator can be tuned by changing the OSCTUNE register.
When you tried to get the CLKOUT to work, did you set the pin to output? (TRISA.4 = 0)
/Henrik.
EDIT: Running at 4Mhz you should see a 1Mhz signal on the CLKOUT pin.