deveopmen
Intelligent I/O
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
247
Figure 1. 23. 12. Time measurement-related register (1)
Time measurement (group 0 and 1)
Synchronizes external trigger input and stores the base timer value in the time measurement register j.
Specifications for the time measurement function are given in Table 1.23.3, the time measurement control
registers in Figures 1.23.12 to 1.23.13, and the operating timing of the time measurement function in Figure
1.23.14 and 15.
Group i time measurement control register j (i=0,1/j=0 to 7)
(Note 1)
Symbol
GiTMCRj(i=0/j=0 to 3)
GiTMCRj(i=0/j=4 to 7)
GiTMCRj(i=1/j=1, 2)
GiTMCRj(i=1/j=6, 7)
Address
00D8
16
, 00D9
16
, 00DA
16
, 00DB
16
00DC
16
, 00DD
, 00DE
16
, 00DF
16
0119
16
, 011A
16
011E
16
, 011F
16
When reset
00
16
00
16
00
16
00
16
R W
Bit name
Function
Bit
symbol
CST0
CST1
DF0
Time measurement
trigger select bit
DF1
Gate function
select bit
GT
GOC
PR
GSC
Digital filter function
select bit
Gate function release
select bit
0 : Gate function not used
1 : Gate function used
Gate function release
bit
Prescaler function
select bit
b1
0
0
1
1
b0
0
1
0
1
: No time measurement
: Rising edge
: Falling edge
: Both edges
b3
0
0
1
1
b2
0
1
0
1
: No digital filter
: Must not be set
: Base timer clock
: f
1
(Note 2, 4)
(Note 2, 3)
(Note 2)
0 : No effect
1 : Release the gate when it
matches WG register
0 : No effect
1 : Gate released
0 : Not used
1 : Used
Note 1: The 16-bit time measurement function is available for 8 channels (ch0 to 7) with group 0 and 4 channels
(ch1, 2, 6 and 7) with group 1. When using the 16-bit time measurement function, use the time
measurement register values for ch0, 3, 4 and 5 of group 1 as they are, or, if writing values, write "00
16
".
The 32-bit time measurement function can be used with 8 channels (ch0 to 7) by linking groups 0 and 1.
When using the 32-bit time measurement function, write the same value for time measurement registers
of similar channels in groups 0 and 1.
Note 2: These functions are available only for time measurement ch6 and 7 (time measurement registers 6
and 7). For ch0 to 5, set "0" for bits 4 to 7 of the time measurement register.
Note 3: These bits are valid only when "1" is set for the gate function select bit.
Note 4: The gate function cannot be used at the same time as the 32-bit time measurement function.
(Note 2, 3)
WG: Waveform Generation
b7
b0