Hi All. After reading this thread, it made me look at something I now don't understand. I've been using this table for years for 'F819 and 'F88. But when you convert the decimal numbers to binary, the bits don't match the table in the datasheet. When you pick the bits and convert to decimal, they don't match the table. Does anyone know why? Thank you.


'osccon values for 16f818/819:
'OSCCON = $00 'for 31.25 khz
'OSCCON = $10 '125khz
'OSCCON = $20 '250khz
'OSCCON = $30 '500khz
'OSCCON = $40 '1mhz
'OSCCON = $50 '2mhz
OSCCON = $60 '4mhz 'set int osc to 4mhz
'OSCCON = $70 '8mhz