Table 14.9 Examples Of Tcr, Tcsr, Tcora, Tcorb, Ocrar, Ocraf, And Tocr Settings - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

Section 14 Timer Connection
Table 14.9 Examples of TCR, TCSR, TCORA, TCORB, OCRAR, OCRAF, and TOCR
Settings
Register
Bit
TCR in
7
TMR_Y
6
5
4, 3
2 to 0
TCSR in
3 to 0
TMR_Y
TCORA in
TMR_Y
TCORB in
TMR_Y
TCR in FRT
1, 0
OCRAR
in FRT
OCRAF
in FRT
TOCR
6
in FRT
Rev. 3.00 Jan 25, 2006 page 368 of 872
REJ09B0286-0300
Abbreviation
Contents
CMIEB
0
CMIEA
0
OVIE
0
CCLR1,
01
CCLR0
CKS2 to CKS0 001
OS3 to OS0
0110
H'3F
(example)
H'03
(example)
CKS1, CKS0
01
H'7FEF
(example)
H'000F
(example)
OCRAMS
1
Description
Interrupts due to compare-match and
overflow are disabled
TCNT is cleared by compare-match A
TCNT is incremented on internal clock:
φ/4
0 output on compare-match B
1 output on compare-match A
IHG signal period = φ × 256
IHG signal 1 interval = φ × 16
FRC is incremented on internal clock: φ/8
IVG signal 0
IVG signal period =
φ × 262144 (1024
interval =
φ × 262016
times IHG signal)
IVG signal 1
interval = φ × 128
OCRA is set to the operating mode in
which OCRAR and OCRAF are used

Advertisement

Table of Contents
loading

Table of Contents