00:48:37<br />
<br />
Chapter 7<br />
Timing generation and<br />
measurements<br />
<br />
00:48:37<br />
<br />
7.1 Timer functions<br />
•<br />
•<br />
•<br />
•<br />
•<br />
<br />
Stop watch.<br />
Captures time of external events.<br />
Creates output waveform.<br />
Pulse accumulations.<br />
Creates periodic interrupts.<br />
<br />
Microcomputer principles and applications<br />
<br />
00:48:37<br />
<br />
7.1 Timer functions<br />
Triangle<br />
<br />
Sine<br />
Ramp up<br />
<br />
Ramp down<br />
<br />
Square<br />
<br />
Pulse<br />
<br />
Microcomputer principles and applications<br />
<br />
00:48:37<br />
<br />
7.2 MSP430 Timer<br />
•<br />
•<br />
•<br />
•<br />
•<br />
•<br />
<br />
Asynchronous 16-bit timer/counter with four operating modes.<br />
Selectable and configurable clock source.<br />
Two or three configurable capture/compare registers.<br />
Configurable outputs with PWM capability.<br />
Asynchronous input and output latching.<br />
Interrupt vector register for fast decoding of all Timer A<br />
interrupts.<br />
<br />
Microcomputer principles and applications<br />
<br />
00:48:37<br />
<br />
7.3 Timer A<br />
Generally MSP430 family contains two categories of timers<br />
•<br />
•<br />
<br />
Timer A<br />
Timer B.<br />
<br />
What is the difference between Timer A and Timer B?<br />
Same in operation, but Timer B is more sophisticated than Timer A<br />
and it has many features available than compared with Timer A.<br />
They are:<br />
•<br />
•<br />
•<br />
•<br />
<br />
Bit-length of the timer is programmable as 8-bit, 10- bit, 12-bit,<br />
16-bit.<br />
Some Timers in B category have 7 CCR registers whereas the<br />
Timer A contains three capture/compare registers.<br />
It contains double-buffered CCR register.<br />
CCR register can be grouped.<br />
Microcomputer principles and applications<br />
<br />