III PERIPHERAL BLOCK: 16-BIT PROGRAMMABLE TIMERS
S1C33210 FUNCTION PART
EPSON
B-III-4-9
16-Bit Programmable Timer Interrupts and DMA
The 16-bit programmable timer has a function for generating an interrupt using the comparison match A and B
states.
The timing at which an interrupt is generated is shown in Figure 4.2 in the preceding section.
Control registers of the interrupt controller
Table 4.4 shows the control registers of the interrupt controller provided for each timer.
Table 4.4 Control Registers of Interrupt Controller
Interrupt factor
Interrupt factor flag
Interrupt enable register
Interrupt priority register
Timer 0 comparison A
F16TC0 (D3/0x40282)
E16TC0 (D3/0x40272)
P16T0[2:0] (D[2:0]/0x40266)
Timer 0 comparison B
F16TU0 (D2/0x40282)
E16TU0 (D2/0x40272)
Timer 1 comparison A
F16TC1 (D7/0x40282)
E16TC1 (D7/0x40272)
P16T1[2:0] (D[6:4]/0x40266)
Timer 1 comparison B
F16TU1 (D6/0x40282)
E16TU1 (D6/0x40272)
Timer 2 comparison A
F16TC2 (D3/0x40283)
E16TC2 (D3/0x40273)
P16T2[2:0] (D[2:0]/0x40267)
Timer 2 comparison B
F16TU2 (D2/0x40283)
E16TU2 (D2/0x40273)
Timer 3 comparison A
F16TC3 (D7/0x40283)
E16TC3 (D7/0x40273)
P16T3[2:0] (D[6:4]/0x40267)
Timer 3 comparison B
F16TU3 (D6/0x40283)
E16TU3 (D6/0x40273)
Timer 4 comparison A
F16TC4 (D3/0x40284)
E16TC4 (D3/0x40274)
P16T4[2:0] (D[2:0]/0x40268)
Timer 4 comparison B
F16TU4 (D2/0x40284)
E16TU4 (D2/0x40274)
Timer 5 comparison A
F16TC5 (D7/0x40284)
E16TC5 (D7/0x40274)
P16T5[2:0] (D[6:4]/0x40268)
Timer 5 comparison B
F16TU5 (D6/0x40284)
E16TU5 (D6/0x40274)
When a comparison match state occurs in the timer, the corresponding interrupt factor flag is set to "1".
If the interrupt enable register bit corresponding to that interrupt factor flag has been set to "1", an interrupt
request is generated.
An interrupt caused by a timer can be disabled by leaving the interrupt enable register bit for that timer set to
"0". The interrupt factor flag is always set to "1" by the timer's comparison match state, regardless of how the
interrupt enable register is set (even when set to "0").
The interrupt priority register sets an interrupt priority level (0 to 7) for each timer. Priorities within a timer
block are such that timers of smaller numbers have a higher priority. Priorities between interrupt types are such
that the comparison B interrupt has priority over the comparison A interrupt. An interrupt request to the CPU
is accepted only when no other interrupt request of a higher priority has been generated.
It is only when the PSR's IE bit = "1" (interrupts enabled) and the set value of the IL is smaller than the timer
interrupt level set by the interrupt priority register, that a timer interrupt request is actually accepted by the
CPU.
For details on these interrupt control registers, as well as the device operation when an interrupt has occurred,
refer to "ITC (Interrupt Controller)".
Intelligent DMA
The interrupt factor of each timer can also invoke intelligent DMA (IDMA). This allows memory-to-memory
DMA transfers to be performed cyclically.
The following shows the IDMA channel numbers set for each interrupt factor of timer:
IDMA Ch.
IDMA Ch.
Timer 0 comparison B:
0x07
Timer 0 comparison A:
0x08
Timer 1 comparison B:
0x09
Timer 1 comparison A: 0x0A
Timer 2 comparison B:
0x0B
Timer 2 comparison A: 0x0C
Timer 3 comparison B:
0x0D
Timer 3 comparison A: 0x0E
Timer 4 comparison B:
0x0F
Timer 4 comparison A:
0x10
Timer 5 comparison B:
0x11
Timer 5 comparison A:
0x12
Summary of Contents for S1C33210
Page 4: ......
Page 13: ...S1C33210 PRODUCT PART ...
Page 14: ......
Page 124: ...APPENDIX B PIN CHARACTERISTICS A 110 EPSON S1C33210 PRODUCT PART THIS PAGE IS BLANK ...
Page 125: ...S1C33210 FUNCTION PART ...
Page 126: ......
Page 127: ...S1C33210 FUNCTION PART I OUTLINE ...
Page 128: ......
Page 130: ...I OUTLINE INTRODUCTION B I 1 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 138: ...I OUTLINE LIST OF PINS B I 3 6 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 139: ...S1C33210 FUNCTION PART II CORE BLOCK ...
Page 140: ......
Page 142: ...II CORE BLOCK INTRODUCTION B II 1 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 148: ...II CORE BLOCK CPU AND OPERATING MODE B II 2 6 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 152: ...II CORE BLOCK INITIAL RESET B II 3 4 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 234: ...II CORE BLOCK CLG Clock Generator B II 6 10 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 236: ...II CORE BLOCK DBG Debug Unit B II 7 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 237: ...S1C33210 FUNCTION PART III PERIPHERAL BLOCK ...
Page 238: ......
Page 240: ...III PERIPHERAL BLOCK INTRODUCTION B III 1 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 296: ...III PERIPHERAL BLOCK WATCHDOG TIMER B III 5 4 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 429: ...S1C33210 FUNCTION PART IV ANALOG BLOCK ...
Page 430: ......
Page 432: ...IV ANALOG BLOCK INTRODUCTION B IV 1 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 448: ...IV ANALOG BLOCK A D CONVERTER B IV 2 16 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 449: ...S1C33210 FUNCTION PART V DMA BLOCK ...
Page 450: ......
Page 452: ...V DMA BLOCK INTRODUCTION B V 1 2 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 506: ...V DMA BLOCK IDMA Intelligent DMA B V 3 18 EPSON S1C33210 FUNCTION PART THIS PAGE IS BLANK ...
Page 507: ...S1C33210 FUNCTION PART Appendix I O MAP ...
Page 508: ......
Page 557: ......