新手,在使afe253不知道怎配置时钟系统,外部不加晶振,如何配置主系统时钟,子系统时钟?求大神讲解讲解
gaoyang9992006:
ACLK = n/a, MCLK = SMCLK = default DCO
如果你不配置,默认就是DCO
gaoyang9992006:
http://www.ti.com.cn/cn/lit/ug/slau144j/slau144j.pdf
其实所有的配置都在这个手册上,可以通过提供的系统组织图看出来怎么个配置方式。
另外你找到这个芯片主页后,下面可以找到例子程序包。
程序表如下,基本上都是采用内部振荡器
File NameDescription ---------------------------------------------------------------------------------------- msp430afe_clks.cBasic Clock, Output Buffered SMCLK, ACLK and MCLK/10 msp430afe_flashwrite_01.cFlash In-System Programming, Copy SegC to SegD msp430afe_lpm3_vlo.cBasic Clock, LPM3 Using WDT ISR, VLO ACLK msp430afe_nmi.cBasic Clock, Configure RST/NMI as NMI msp430afe_P1_01.cSoftware Poll P1.4, Set P1.0 if P1.4 = 1 msp430afe_P1_02.cSoftware Port Interrupt Service on P1.4 from LPM4 msp430afe_sd24_01.cSD24, Continuous Conversion on a Group of 3 Channels msp430afe_sd24_02.cSD24, Single Conversion on a Group of 3 Channels msp430afe_sd24_03.cSD24, Continuous Conversion on a Single Channel msp430afe_sd24_04.cSD24, Single Conversion on Single Channel Polling IFG msp430afe_sd24_05.cSD24, Single Conversion on a Single Channel Using ISR msp430afe_sd24_06.cSD24, Using the Integrated Temperature Sensor msp430afe_sd24_10.cSD24, Continuous Conversion on a Group of Channels msp430afe_sd24_11.cSD24, Single Conversion on a Group of Channels msp430afe_svs_01.cSVS, POR @ 2.5V Vcc msp430afe_svs_03.cSVM, Toggle port 5.1 on Vcc < 2.8V msp430afe_ta_01.cTimer_A, Toggle P1.0, CCR0 Cont. Mode ISR, DCO SMCLK msp430afe_ta_02.cTimer_A, Toggle P1.0, CCR0 Up Mode ISR, DCO SMCLK msp430afe_ta_03.cTimer_A, Toggle P1.0, Overflow ISR, DCO SMCLK msp430afe_ta_04.cTimer_A, Toggle P1.0, Overflow ISR, VLO ACLK msp430afe_ta_06.cTimer_A, Toggle P1.0, CCR1 Cont. Mode ISR, DCO SMCLK msp430afe_ta_07.cTimer_A, Toggle P1.0-2, Cont. Mode ISR, DCO SMCLK msp430afe_ta_13.cTimer_A, Toggle P1.1/TA0, Up/Down Mode, DCO SMCLK msp430afe_ta_14.cTimer_A, Toggle P1.1/TA0, Up/Down Mode, VLO ACLK msp430afe_ta_19.cTimer_A, PWM TA1, Up/Down Mode, DCO SMCLK msp430afe_uart_115k.cUSART0, 115200 UART Echo ISR, DCO SMCLK msp430afe_vlo.cSoftware Toggle P1.0, MCLK = VLO/8 msp430afe_wdt_01.cWDT, Toggle P1.0, Interval Overflow ISR, DCO SMCLK msp430afe_wdt_04.cWDT+ Failsafe Clock, DCO SMCLK msp430afe_wdt_05.cReset on Invalid Address fetch, Toggle P1.0