NEC mPD784225 Series User Manual page 190

16-/8-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 9-3. Format of 8-Bit Timer Mode Control Register 2 (TMC2)
Address: 0FF55H After reset: 00H R/W
Symbol
7
TMC2
TCE2
Caution When selecting the TM2 operation mode using TMC26 or selecting discrete/cascade connection
mode using TMC24, stop timer opeation in advance. To stop the timer operation during
cascade connection, clear both bit 7 (TCE1) of 8-bit timer mode control register 1 (TMC1)
and bit 7 (TCE2) of TMC2.
Remarks 1. In the PWM mode, the PWM output is set to the inactive level by TCE2 = 0.
2. If LVS2 and LVR2 are read after setting data, 0 is read.
190
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1, 2
6
5
4
TMC26
0
TMC24
TCE2
0
Counting is disabled (prescaler disabled) after the counter is cleared to 0.
1
Start counting
TMC26
0
Clear and start mode when TM2 and CR20 match
1
PWM (free running) mode
TMC24
Discrete mode or cascade connection mode selection
0
Discrete mode
1
Cascade connection mode (connection with TM1)
LVS2
LVR2
0
0
No change
0
1
Reset (to 0)
1
0
Set (to 1)
1
1
Setting prohibited
Other than PWM mode (TMC26 = 0)
TMC21
Timer output control
0
Disable inversion operation
1
Enable inversion operation
TOE2
0
Ouput disabled (port mode)
1
Ouput enabled
User's Manual U12697EJ3V0UM
3
2
LVS2
LVR2
TM2 count control
TM2 operation mode selection
Timer output control by software
PWM mode (TMC26 = 1)
Active level selection
Active high
Active low
Timer output control
1
0
TMC21
TOE2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd784225y seriesMpd784224Mpd784225Mpd78f4225Mpd784224yMpd784225y ... Show all

Table of Contents