Timer S; Rewrite The G1Ir Register - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

20.7 Timer S

20.7.1 Rewrite the G1IR Register

Bits in the G1IR register are not automatically set to 0 (no interrupt requested) even if a requested inter-
rupt is acknowledged. Set each bit to 0 by program after the interrupt requests are verified.
The IC/OC interrupt is generated when any bit in the G1IR register is set to 1 (interrupt requested) after all
the bits are set to 0. If conditions to generate an interrupt are met when the G1IR register holds the value
other than 00
, the IC/OC interrupt request will not be generated. In order to enable an IC/OC interrupt
16
request again, clear the G1IR register to 00
register to 0.
Subject instructions: AND, BCL
Figure 20.4 shows an example of IC/OC interrupt i processing.
NOTES:
1. Example for the interrupt operation when using the channel i waveform generating interrupt and
channel j time measurement interrupt.
Figure 20.4 IC/OC Interrupt i Flow Chart
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
Set the G1IRi bit to "0"
Process channel i waveform generating interrupt
Set the G1IRj bit to "0"
Process channel j time measurement interrupt
Interrupt completed
page 365
f o
3
8
5
. Use the following instructions to set each bit in the G1IR
16
(1)
Interrupt
G1IRi=1 ?
Yes
G1IRj=1 ?
Yes
G1IR=0 ?
Yes
No
No
No
20. Precautions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents