本帖最后由 王不留行丶xy 于 2021-6-19 21:05 编辑
#pragma config POSCMD = NONE
#pragma config FNOSC = FRCPLL
#pragma config IESO = OFF
#pragma config FWDTEN = OFF
这是配置位,选择带PLL的FRC 7.37M
CLKDIVbits.PLLPRE = 0x0;//N1 = 2
PLLFBDbits.PLLDIV = 0x20;//M =22
CLKDIVbits.PLLPOST = 0b00;//N2=2
7.37/2*22/2 = 40.535 M
理论值40.535 但是实际频率是64M,请问哪里有问题?
|