Tom Count Enable Registers - Mitsubishi Electric M32R Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

10

10.9.9 TOM Count Enable Registers

TOM0 Count Enable Register (TOM0CEN)
D8
TOM00CEN TOM01CEN TOM02CEN TOM03CEN TOM04CEN TOM05CEN TOM06CEN TOM07CEN
D
Bit Name
8
TOM00CEN
(TOM0_0 count enable)
9
TOM01CEN
(TOM0_1 count enable)
10
TOM02CEN
(TOM0_2 count enable)
11
TOM03CEN
(TOM0_3 count enable)
12
TOM04CEN
(TOM0_4 count enable)
13
TOM05CEN
(TOM0_5 count enable)
14
TOM06CEN
(TOM0_6 count enable)
15
TOM07CEN
(TOM0_7 count enable)
The TOM0 Count Enable Register controls operation of TOM0 counters. To enable the counter in
software, enable the relevant TOM0 Enable Protect Register for write and set the count enable bit
by writing a 1. To stop the counter, enable the TOM0 Enable Protect Register for write and reset the
count enable bit by writing a 0.
In single-shot output and single-shot PWM output modes, when the counter stops due to an
occurrence of underflow, the count enable bit is automatically reset to 0. Therefore, what you get by
reading the TOM0 Count Enable Register is the status that indicates the counter's operating status
(active or idle).
9
10
11
10-214
MULTIJUNCTION TIMERS
10.9 TOM (Output-related 16-bit Timer)
<Address: H'0080 0CDF>
12
13
14
Function
0: Stops count
1: Enables count
D15
<When reset:H'00>
R
W
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents