LFINTOSC not working in Pic16F1459

Enhanced mid-range devices. PIC12F1xxx and PIC16F1xxx

LFINTOSC not working in Pic16F1459

Postby tejasvini » Sat Oct 30, 2021 10:18 am

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.
tejasvini
 
Posts: 1
Joined: Sat Oct 30, 2021 10:09 am

Re: LFINTOSC not working in Pic16F1459

Postby ric » Sat Oct 30, 2021 10:35 am

CLKOUT is Fosc/4, so 7.75kHz is correct for a 31kHz clock
OSCON=0xFC selects 48MHz clock, so 12MHz out is correct.
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 659
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products


Return to 14-Bit Core (enhanced)

Who is online

Users browsing this forum: No registered users and 1 guest

cron