Some things (pretty much everything you're showing) just are not supported on 12-bit core.
http://www.melabs.com/support/12-bit.htm
Some things (pretty much everything you're showing) just are not supported on 12-bit core.
http://www.melabs.com/support/12-bit.htm
Hello Bruce
With the 12F609 it works, the compiler not show any errors
If i add on program begin the instruction to tune the internal oscilator
the compiler show a error message, do i not need to add the
DEFINE OSCCAL_2K 1 on the begin of the code?
Thanks
Regards
Pedro
Hi Pedro,
It shouldn't show any errors. The 12F609 is a 14-bit core. The 12F509 is a 12-bit core.With the 12F609 it works, the compiler not show any errors
DEFINE OSCCAL_2K 1 is for a 2K part. DEFINE OSCCAL_1K 1 would be for a 1K part, but this isn't necessary for a PIC that doesn't have a factory OSCCAL calibration value stuffed in the last program memory location or an OSCCAL registerdo i not need to add the
DEFINE OSCCAL_2K 1 on the begin of the code?
Hello again
Thank you Bruce
The internal osc of the 12F609 is 4Mhz, right?
Regards
Pedro
The 12F609 internal ocs runs at 4MHz or 8MHz. IOSCFS: Internal Oscillator Frequency Select bit in the config register is used to select 4 or 8MHz.
@ DEVICE PIC12F609, MCLR_OFF, IOSCFS_4MHZ, INTRC_OSC_NOCLKOUT
@ DEVICE PIC12F609, MCLR_OFF, IOSCFS_8MHZ, INTRC_OSC_NOCLKOUT
Bookmarks