Clock configuration based on MSP430F169[Copy link]
In the MSP430 microcontroller, one clock cycle = the inverse of the MCLK crystal oscillator. If MCLK is 8MHz, then one clock cycle is 1/8us. The clock module of the MSP430 microcontroller mainly includes: Three clocks: auxiliary clock ACLK, main clock MCLK, subsystem clock SMCLK Three oscillators: low-frequency clock source LFXT1 (usually external 32768HZ watch crystal), high-frequency clock source XT2 (usually external 8MHZ crystal), digital control RC oscillator (the system default is 800KHZ) The clock required for the MSP430 microcontroller to work is generated by these oscillators after oscillation and processing. (1)ACLK: obtained by dividing the LFXT1CLK signal by 1/2/4/8. It is mainly used as the clock of low-speed peripherals. (2)MCLK: determined by one of LFXT1CLK, XT2CLK and DCOCLK. It is selected by software and then obtained by dividing by 1/2/4/8. It is mainly used for CPU and system. (3)SMCLK: determined by LFXT1CLK and DCOCLK, or XT2CLK and DCOCLK, then obtained by dividing by 1/2/4/8. It is mainly used for high-speed peripheral modules.