|
发表于 2023-10-11 10:22:38
|
显示全部楼层
本帖最后由 jmg 于 2023-10-15 05:51 编辑
newlined Published on 2023-10-10 10:39
Or I can directly connect an external high-precision crystal oscillator as the main clock, and then the internal 32768 will not be affected by temperature drift and become accurate. ...
Yes, you can connect a high frequency crystal 4~36Mhz as per figure 6.4.1 in the data.
You can also use a low frequency crystal
See XOSCCR and X32KCR registers
No, that does not automatically calibrate the on chip 32kHz oscillator, as usually that is used with the XTAL paused to save power.
on only some STC8H variants, you can optionally use the 32kHz Crystal , to calibrate the HIRC, via the CRECR register
more info :
https://www.stcaimcu.com/forum.php ?mod=viewthread&tid=4421
|
|