This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
pic16f1455_oscillators [2019/10/06 10:31] 60.240.96.191 [Using PLL to achieve 24MHz] |
pic16f1455_oscillators [2019/10/06 10:54] 60.240.96.191 [External Oscillators] |
||
---|---|---|---|
Line 143: | Line 143: | ||
#define _XTAL_FREQ 17664000UL //17.664MHz | #define _XTAL_FREQ 17664000UL //17.664MHz | ||
+ | |||
+ | Ensure the PLL is off to ensure good timing: | ||
+ | |||
+ | #pragma config PLLEN = 0 //Turn off PLL | ||
And finally, the only ''OSCCON'' register setting you need is: | And finally, the only ''OSCCON'' register setting you need is: |