![](http://datasheet.mmic.net.cn/370000/UPD70F3114GF-3BA-A_datasheet_16743813/UPD70F3114GF-3BA-A_40.png)
CHAPTER 2 PIN FUNCTIONS
40
User’s Manual U15195EJ5V0UD
(8) PDH0 to PDH5 (Port DH) … I/O
PDH0 to PDH5 function as a 6-bit I/O port in which input or output can be set in 1-bit units.
Besides functioning as a port, in control mode (external expansion mode), these pins operate as the address
bus (A16 to A21) for when memory is expanded externally.
Port or control mode can be selected as the operation mode for each bit, specified by the port DH mode
control register (PMCDH).
(a) Port mode
PDH0 to PDH5 can be set to input or output in 1-bit units using the port DH mode register (PMDH).
(b) Control mode
PDH0 to PDH5 can be specified as A16 to A21 using PMCDH.
(i) A16 to A21 (Address) … Output
These pins output the higher 6-bit address of the 22-bit address in the address bus on an external
access.
(9)
PDL0 to PDL15 (Port DL) … I/O
PDL0 to PDL15 function as a 16-bit I/O port in which input or output can be set in 1-bit units.
Besides functioning as a port, in control mode (external expansion mode), these pins operate as the
address/data bus (AD0 to AD15) for when memory is expanded externally.
Port or control mode can be selected as the operation mode for each bit, specified by the port DL mode
control register (PMCDL).
(a) Port mode
PDL0 to PDL15 can be set to input or output in 1-bit units using the port DL mode register (PMDL).
(b) Control mode
PDL0 to PDL15 can be specified as AD0 to AD15 using PMCDL.
(i) AD0 to AD15 (Address/data bus) … I/O
This is a multiplexed bus for addresses or data on an external access. When used for addresses (T1
state) these pins output A0 to A15 of the 22-bit address, and when used for data (T2, TW, T3) they
are 16-bit data I/O bus pins.
(10) TO000 to TO005 (Timer output) … Output
These pins output the pulse signal of timer 00.
(11) TO010 to TO015 (Timer output) … Output
These pins output the pulse signal of timer 01.
(12) ANI00 to ANI05, ANI10 to ANI17 (Analog input) … Input
These pins input analog signals to the A/D converter.
(13) CKSEL (Clock generator operating mode select) … Input
This is the input pin that specifies the operation mode of the clock generator. Fix this pin so that the input
level does not change during operation.