48
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15798EJ2V0UD
(e) TI50 and TI51
External count clock input pins to 8-bit timer/event counters 50 and 51.
(f)
TO00, TO50, and TO51
Timer output pins.
2.2.5 P40 to P43 (Port 4)
These are 4-bit I/O ports. They can be specified as input or output ports in 1-bit units with port mode register 4
(PM4). On-chip pull-up resistors can be used by setting pull-up resistor option register 4 (PU4).
Interrupt request flag (KRIF) can be set to 1 by detecting the falling edge. The number of ports to detect the falling
edge is four.
Caution Be sure to set memory expansion mode register (MEM) to 01H when using falling edge detection
interrupt (INTKR).
2.2.6 P70 to P73 (Port 7)
These are 4-bit I/O ports. They can be specified as input or output ports in 1-bit units with port mode register 7
(PM7). Port 7 can drive LEDs directly.
P70 to P73 are middle-voltage N-ch open-drain. On-chip pull-up resistors can be used by mask option with the
mask ROM versions.
2.2.7 P80 to P87 (Port 8)
These are 8-bit I/O ports. Besides serving as I/O ports, they function as segment signal output (for dynamic display)
of the LCD controller/driver. Either the I/O port or segment signal output function can be selected by setting the pin
function switching register 8 (PF8).
(1) Port mode
These ports function as 8-bit I/O ports. They can be specified as input or output ports in 1-bit units with port
mode register 8 (PM8).
(2) Control mode
These ports function as segment signal output pins (S12 to S19) (for dynamic display) of the LCD controller/driver.
2.2.8 P90 to P97 (Port 9)
These are 8-bit I/O ports. Besides serving as I/O ports, they function as segment signal output (for dynamic display)
of the LCD controller/driver. Either the I/O port or segment signal output function can be selected by setting the pin
function switching register 9 (PF9).
(1) Port mode
These ports function as 8-bit I/O ports. They can be specified as input or output ports in 1-bit units with port
mode register 9 (PM9).
(2) Control mode
These ports function as segment signal output pins (S20 to S27) (for dynamic display) of the LCD controller/driver.
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...