
rej05b0479_m16cap| Application Note
APPLICATION NOTE
M16C/28, 29 Group
How to Use Timer S Interrupt
1. Abstract
Timer S (IC/OC) has many interrupt request factors such as the time measurement interrupt and the waveform generation interrupt. Timer S brings several interrupt request factors together and use them as one IC/OC interrupt. This application note introduces how to use the Timer S interrupt.
2.
Introduction
This application note is applied to the following microcomputers. MCU: M16C/28 Group M16C/29 Group
3.
Detailed description
The following describes IC/OC interrupt block diagram.
Interrupt select logic Channel 0-channel 7 interrupt request DMA request (channel 0-channel 7)
G1IE0
enable
G1IR
request
G1IE1
enable
IC/OC interrupt 1 requet IC/OC interrupt 0 request Base timer reset request Base timer overflow request IC/OC base timer interrupt request
Figure 1 IC/OC Interrupt and DMA Request
When either the base timer reset request or the base timer overflow request is generated, IR bit (bit 3 in the BTIC register) for the IC/OC base timer interrupt becomes "1" (interrupt request). And when the interrupt request of each of eight channel (channel i) is generated, bit i in the G1IR register becomes "1" . When using IC/OC interrupt 0, set the bit for the G1IE0 register channel to "1" (IC/OC interrupt 0 request enable). EX) When using the waveform generation interrupt request of channel 3 and the time measurement interrupt request of channel 6, set bit 3 and bit 6 in the G1IE0 register to "1".
REJ05B0479-0120Z/Rev.1.20
November 2004
Page 1 of 8
rej05b0479_m16cap Application Note renesas Download PDF
Add this permalink to your bookmarks for future download of rej05b0479_m16cap ApplicationNote
Permalink: http://application.emcelettronica.com/renesas/rej05b0479_m16cap