UPD78F0138 NEC, UPD78F0138 Datasheet - Page 159

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
(5) Port mode register 0 (PM0)
Cautions 1. When the Ring-OSC clock is selected as the clock to be supplied to the CPU, the clock of the
Remarks 1. f
This register sets port 0 input/output in 1-bit units.
When using the P01/TO00/TI010 and P06/TO01
output latch of P01 and P06 to 0.
When using the P01/TO00/TI010 and P06/TO01
time, the output latch of P01 and P06 may be 0 or 1.
PM0 can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM0 to FFH.
Note Available only for the
2. TI001, TI011: 16-bit timer/event counter 01 input pin
3. Figures in parentheses are for operation with f
2. Always set data to PRM01 after stopping the timer operation.
3. If the valid edge of TI001 is to be set for the count clock, do not set the clear & start mode
4. If the TI001 or TI011 pin is high level immediately after system reset, the rising edge is
5. When P06 is used as the TI011 valid edge, it cannot be used as the timer output (TO01), and
X
Ring-OSC oscillator is divided and supplied as the count clock. If the count clock is the
Ring-OSC clock, the operation of 16-bit timer/event counter 01 is not guaranteed. When an
external clock is used and when the Ring-OSC clock is selected and supplied to the CPU, the
operation of 16-bit timer/event counter 01 is not guaranteed, either, because the Ring-OSC
clock is supplied as the sampling clock to eliminate noise.
using the valid edge of TI001 and the capture trigger.
immediately detected after the rising edge or both the rising and falling edges are set as the
valid edge(s) of the TI001 pin or TI011 pin to enable the operation of 16-bit timer counter 01
(TM01). Care is therefore required when pulling up the TI001 or TI011 pin. However, when re-
enabling operation after the operation has been stopped once, the rising edge is not
detected.
when used as TO01, it cannot be used as the TI011 valid edge.
: X1 input clock oscillation frequency
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
Address: FF20H
Symbol
Figure 6-14. Format of Port Mode Register 0 (PM0)
PM0
µ
PD780133, 780134, 78F0134, 780136, 780138, and 78F0138.
PM0n
7
1
0
1
PM06
Output mode (output buffer on)
Input mode (output buffer off)
User’s Manual U16228EJ2V0UD
6
After reset: FFH
P0n pin I/O mode selection (n = 0 to 6)
PM05
5
Note
Note
/TI011
/TI011
PM04
4
Note
X
Note
PM03
= 10 MHz.
pins for timer input, set PM01 and PM06 to 0. At this
R/W
3
pins for timer output, set PM01 and PM06 and the
PM02
2
PM01
1
PM00
0
159

Related parts for UPD78F0138