PDA

View Full Version : OSCCAL for 16F88 help?



cooper66
- 29th July 2004, 02:43
I'm fairly new to this, but have built a few things with the 16F84 and 877, I'm now going to try to modify one of my creations to make use of the 16F88's extra memory, but I don't know how to set the internal oscillator for different clock speeds. If
DEFINE OSCCAL_1K is for 1000 word chips and 2K is for 2000 word chips, can someone tell me how to define the OSCCAL for the 8 different frequency's that the F88 can be set to? I'm using PICBasic Pro and MeLabs EPIC plus programmer and the PM assembler. I have the updated versions that support the 16F88 but have no idea how to make use of the internal oscillator.
thnx in advance for any help,
dan

Melanie
- 29th July 2004, 07:37
This has been touched only a couple of weeks back.

A search on 16F88 would have found...

http://www.picbasic.co.uk/forum/showthread.php?s=&threadid=548&highlight=thread

Define OSCCAL is really only for the 12 series PICs and does not set the frequency 'per se', but loads the factory calibration values to trim the simple 4MHz internal oscillator as close as it gets.

Don't forget to tell PBP the Oscillator setting you've switched into... see Define OSC in the PBP manual.