PDA

View Full Version : Internal osc config PIC12F609



Pedro Pinto
- 23rd April 2008, 14:10
Hello

For the PIC12F509 i have this command on the top of the code
DEFINE OSCCAL_1K 1

and now i want to use the PIC12F609 and i'm not sure if must change
the command to DEFINE OSCCAL_1K 2

Thanks for information

Regards
Pedro

mister_e
- 23rd April 2008, 14:47
There's no OSCCAL register for this PIC, but OSCTUNE. The internal OSC is factory calibrated... well by the datasheet section 3.4.1.1.

Pedro Pinto
- 23rd April 2008, 15:40
Hello

Sorry, correct is
I use the pic 12F508 and want use the pic12F509
What is correct on top from code

DEFINE OSCCAL_1K 1
or
DEFINE OSCCAL_1K 2


Thanks
Regards
Pedro

mister_e
- 23rd April 2008, 15:50
Ah now that's different.. yes DEFINE OSCCAL_2K 1 is the right one for a 12F509

Pedro Pinto
- 23rd April 2008, 16:23
Hello Mister_e

Thank you

Regards
Pedro