Page 1 of 1

LFINTOSC not working in Pic16F1459

PostPosted: Sat Oct 30, 2021 10:18 am
by tejasvini
Hello,
I am using PIC16F1459 chip. i am trying to run example cdc_serial_emulator from MLA library. i modified code to read ADC and to use LFINTOSC as main clock. i changed OSCCON = 0x00 for LFINTOSC 31kHz. i turned ON CLKOUT to check clock on RA4 pin. but i measured it between 7-8Khz not 31kHz or arround. when is set OSCCON = 0xFC for HS it shows 12Mhz well. so what i doing wrong? anyone knows it?
Thanks.

Re: LFINTOSC not working in Pic16F1459

PostPosted: Sat Oct 30, 2021 10:35 am
by ric
CLKOUT is Fosc/4, so 7.75kHz is correct for a 31kHz clock
OSCON=0xFC selects 48MHz clock, so 12MHz out is correct.