data sheet上面有16组测试结果: TEST CONDITIONS | MIN | TYP | MAX UNIT DCORSELx = 0, DCOx = 0, MODx = 0 | 0.07 | | 0.20 MHz DCORSELx = 0, DCOx = 31, MODx = 0 | 0.70 | | 1.70 MHz | | | DCORSELx = 5, DCOx = 0, MODx = 0 | 2.5 | | 6.0 MHz DCORSELx = 5, DCOx = 31, MODx = 0 | 23.7 | | 54.1 MHz
这是DCOx=0的时候的情况,DCOx=0时 DCO的频率范围是多少呢?
下面是TI的例子程序,msp430x54x_UCS_2
__bis_SR_register(SCG0); // Disable the FLL control loop UCSCTL0 = 0x0000; // Set lowest possible DCOx, MODx UCSCTL1 = DCORSEL_5; // Select DCO range 16MHz operation UCSCTL2 = FLLD_1 + 249; // Set DCO Multiplier for 8MHz // (N + 1) * FLLRef = Fdco // (249 + 1) * 32768 = 8MHz // Set FLL Div = fDCOCLK/2 __bic_SR_register(SCG0); // Enable the FLL control loop
设置的DCORSEL_5 datasheet上5的范围是:2.5-6MHZ 23.7-54.1MHZ
例子的注释是说:select DCO range 16MHZ.但是16M不在上面的范围里啊。
肯定是我哪里理解出错了,请大侠指教,这个范围怎么选。 |