MSP430F5438A's clock system

Source: Internet
Author: User

now in the temperature-controlled part of the algorithm, need every 0.25s The temperature data is collected and the corresponding control amount is calculated and output in PWM mode. In order to realize this function, the clock system is indispensable, and now the msp430f5438a clock System is researched.

There are three timers in the msp430f5438a, as shown in

These three timers are ta0,ta1,tb0. TA0 has 5 capture/compare registers, TA1 has 3, and TB0 has 7.

TA0 is a 16-bit timer/counter (timer_a type) with five Capture/compare registers. It can support multiple capture/compares, PWM outputs, and interval timing. It also has extensive interrupt capabilities. Interrupts May is generated from the counter on overflow conditions and from each of the capture/compare registers.

This means that the TA0 timer can be timed, or it can generate a large number of interrupts, which can come from the overflow of the counter and each of the Capture/compare registers.

Well, now it's time to get to know these things.

Timer_a features include:
asynchronous 16-bit Timer/counter with four operating modes
selectable and configurable clock source
up to seven configurable capture/compare registers
configurable outputs with pulse width modulation (PWM) capability
asynchronous input and output latching
Interrupt vector Register for fast decoding of all timer_a interrupts

Just like the other modules, the Timer module also needs to select the clock and select the mode, and now some of the main registers are listed below:

(1) taxr register:timer_a Register. The TAXR registeris the count of timer_a. It increases or decreases along the signal at the clock, TAXR can be read and written by the software, and when it overflows, the timer interrupts.

by setting the TACLR bit, tar can be zeroed,Setting TACLR also clears the clock divider counter logic (the divider setting remains unchanged) and count direction for Up/down mode.

Increments or decrements (depending on mode of operation) with each rising edge of the clock signal. TAXR can is read or written with software. Additionally, the timer can generate an interrupt when it overflows.

(2)

MSP430F5438A's clock system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.