CHAPTER 7 8-BIT TIMER/EVENT COUNTER 50
Preliminary User’s Manual U16846EJ1V0UD
147
Cautions 1. The settings of LVS50 and LVR50 are valid in other than PWM mode.
2. Do not make settings <1> to <4> below simultaneously. In addition, follow the setting
procedure shown below.
<1> Setting of TMC501 and TMC506:
Setting of operation mode
<2> Setting of TOE50 if enabling output:
Enabling timer output
<3> Setting of LVS50 and LVR50 (see Caution 1): Setting of timer output F/F
<4> Setting of TCE50
3. Stop operation before rewriting TMC506.
Remarks 1. In PWM mode, PWM output is made inactive by setting TCE50 to 0.
2. If LVS50 and LVR50 are read, 0 is read.
3. The values of the TMC506, LVS50, LVR50, TMC501, and TOE50 bits are reflected at the TO50 pin
regardless of the value of TCE50.
(3) Port mode register 1 (PM1)
This register sets port 1 input/output in 1-bit units.
When using the P17/TO50/TI50/FLMD1 pin for timer output, set PM17 and the output latches of P17 to 0.
Set PM17 to 1 when using the P17/TO50/TI50/FLMD1 pin as a timer input pin. The output latch of P17 at this
time may be 0 or 1.
PM1 can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to FFH.
Figure 7-6. Format of Port Mode Register 1 (PM1)
Address: FF21H After reset: FFH R/W
Symbol
7 6 5 4 3 2 1 0
PM1
PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10
PM1n
P1n pin I/O mode selection (n = 0 to 7)
0
Output mode (output buffer on)
1
Input mode (output buffer off)