15 16-BIT PWM TIMER (T16A5)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
15-9
If the interrupt flag is set to 1 when the interrupt has been enabled, the T16A5 module outputs an interrupt request
to the ITC. An interrupt is generated if the ITC and S1C33 PE Core interrupt conditions are satisfied.
For more information on interrupt control registers and the operation when an interrupt occurs, see the “Interrupt
Controller (ITC)” chapter.
Notes: • Reset the interrupt flag before enabling interrupts with the interrupt enable bit to prevent oc-
currence of unwanted interrupt. The interrupt flag is reset by writing 1.
• After an interrupt occurs, the interrupt flag in the T16A5 module must be reset in the interrupt
handler routine.
DMA Transfer
15.7.2
The causes of compare A/capture A and compare B/capture B interrupts can invoke a DMA. This allows continuous
data transfer via the DMAC between memory and the compare/capture data register. The interrupt signal is output
to both the ITC and DMAC. Therefore, DMA transfer can be performed without generating a T16A5 interrupt.
Two DMAC channels (Ch.2 and 3 or Ch.4 and 5) are available for each T16A5 channel. The DMAC channels to be
used can be selected using DMASEL[1:0]/T16A_CTL
x
register.
For more information on DMA transfer, see the “DMA Controller (DMAC)” chapter.
Control Register Details
15.8
8.1 List of 16-bit PWM Timer (T16A5) Register
Table 15.
Address
Register name
Function
0x301180
T16A_CTL0
T16A5 Ch.0 Counter Control Register
Control counter
0x301182
T16A_TC0
T16A5 Ch.0 Counter Data Register
Counter data
0x301184
T16A_CCCTL0 T16A5 Ch.0 Comparator/Capture Control Register
Control comparator/capture block and TOUT
0x301186
T16A_CCA0
T16A5 Ch.0 Comparator/Capture A Data Register
Compare A/capture A data
0x301188
T16A_CCB0
T16A5 Ch.0 Comparator/Capture B Data Register
Compare B/capture B data
0x30118a
T16A_IEN0
T16A5 Ch.0 Comparator/Capture Interrupt Enable Register Enable/disable T16A5 interrupts
0x30118c
T16A_IFLG0
T16A5 Ch.0 Comparator/Capture Interrupt Flag Register
Indicate T16A5 interrupt cause status
0x301190
T16A_CTL1
T16A5 Ch.1 Counter Control Register
Control counter
0x301192
T16A_TC1
T16A5 Ch.1 Counter Data Register
Counter data
0x301194
T16A_CCCTL1 T16A5 Ch.1 Comparator/Capture Control Register
Control comparator/capture block and TOUT
0x301196
T16A_CCA1
T16A5 Ch.1 Comparator/Capture A Data Register
Compare A/capture A data
0x301198
T16A_CCB1
T16A5 Ch.1 Comparator/Capture B Data Register
Compare B/capture B data
0x30119a
T16A_IEN1
T16A5 Ch.1 Comparator/Capture Interrupt Enable Register Enable/disable T16A5 interrupts
0x30119c
T16A_IFLG1
T16A5 Ch.1 Comparator/Capture Interrupt Flag Register
Indicate T16A5 interrupt cause status
The 16-bit PWM timer (T16A5) registers are described in detail below. These are 16-bit registers.
Note: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.