III PERIPHERAL BLOCK:
III-4 16-BIT PROGRAMMABLE TIMERS
Configuration of
The Peripheral Block contains six systems of
Note: On the following pages, each timer is identified as timer x (x = 0 to 5). The functions and control register structures of
Figure 4.1 shows the structure of one channel of the
|
|
|
|
|
| Timer x |
| ||||
|
|
|
|
|
|
|
|
| |||
| Clock |
|
|
| Prescaler | INCLx | Clock select circuit |
| |||
| generator |
|
|
| EXCLx |
|
|
| |||
|
|
|
|
|
|
|
|
|
| ||
External clock |
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
Comparison register A buffer (CRBxA)
Comparator
Comparison match A
bus |
Clock output
TMx
Comparator | Data |
| |
Comparison |
|
|
|
|
|
|
| Control circuit |
Comparison A |
|
|
|
| Comparison A |
|
interrupt |
| Interrupt |
|
| Comparison B | |
Comparison B |
| controller |
|
| ||
|
|
|
|
| ||
interrupt |
|
|
|
|
|
|
|
|
|
|
|
|
match B |
Comparison register B buffer (CRBxB) |
Timer x control register |
16TM
Figure 4.1 Structure of
In each timer, a
The
The comparison data registers A and B are used to store the data to be compared with the content of the
When the counter value matches to the content of each comparison data register, the comparator outputs a signal that controls the interrupt and the output signal. Thus the registers allow interrupt generating intervals and the timer's output clock frequency and duty ratio to be programmed.
S1C33L03 FUNCTION PART | EPSON |