Renesas M16C FAMILY series Hardware Manual page 157

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
Figures 13.2 to 13.10 show registers associated with the IC/OC base timer, the time measurement func-
tion, and the waveform generating function.
Base Timer Register
b15
b8
(b7)
(b0)
b7
NOTES:
1. The G1BT register reflects the value of the base timer, synchronizing with the count source f
2. This base timer stops only when the BCK1 to BCK0 bits in the G1BCR0 register are set to "00
source clock stop). The base timer operates when the BCK1 to BCK0 bits are set to other than "00
When the BTS bit in the G1BCR1 register is set to "0", the base timer is reset continuously, and remaining
set to "0000
Base Timer Control Register 0
b7
b6
b5
b4
b3
0
0
0
NOTES:
1. This setting can be used when the UD1 to UD0 bits in the G1BCR1 register are set to "10
phase signal processing mode). Do not set the BCK1 to BCK0 bits to "10
2. When the PCLK0 bit in the PCLKR register is set to "0", the count source is f
the PCLK0 bit is set to set to "1", the count source is f
3. When the RST4 bit is set to "1", set the RST1 bit in the G1BCR1 register to "0".
Figure 13.2 G1BT and G1BCR0 Registers
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
(1)
b0
Symbol
G1BT
When the base timer is operating:
When read, the value of base timer plus 1 can
be read. When write, the counter starts counting
from the value written. When the base timer is
reset, this register is set to "0000
When the base timer is reset:
This register is set to "0000
is indeterminate. No value is written
". When the BTS bit is set to "1", this state is cleared and the timer starts counting.
16
b2
b1
b0
Symbol
G1BCR0
Bit Symbol
BCK0
Count source
select bit
BCK1
Base timer reset
RST4
cause select bit 4
Reserved bit
(b5-b3)
Channel 7 input
CH7INSEL
select bit
Base timer
IT
interrupt select bit
page 137
f o
3
8
5
Address
0321
- 0320
16
16
Function
(2)
".
16
" but a value read
16
(2)
Address
0322
16
Bit Name
b1
b0
0
0
: Clock stop
0
1
: Do not set to this value
1
0
: Two-phase input
2 (2)
1
1
: f
or f
1
0: Do not reset Base timer by matching
G1BTRR
1: Reset Base timer by matching
G1BTRR
Set to "0"
0: P2
/OUTC1
7
1: P1
/INT5/INPC1
7
0: Bit 15 in the base timer overflows
1: Bit 14 in the base timer overflows
cycles.
1
After Reset
Indeterminate
Setting Range
0000
to FFFF
16
16
cycles.
BT1
" (count
2
After Reset
00
16
Function
(1)
(3)
/INPC1
pin
7
7
/IDU pin
7
" (two-
2
" in other modes.
2
cycles. And when
2
13. Timer S
RW
RW
".
2
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents