33
CHAPTER 2 PIN FUNCTION
2.2 Description of Pin Functions
2.2.1 P00 to P07 (Port 0)
These pins constitute an 8-bit input/output port. In addition, they are also used to input external interrupt request
signals.
The following operating modes can be specified bit-wise.
(1) Port mode
In this mode, P00 to P07 function as an 8-bit input/output port.
P00 to P07 can be specified as an input or output port bit-wise with port mode register 0 (PM0). When these
pins are used as an input port, an on-chip pull-up resistor can be used if so specified by the pull-up resistor option
register (PU0).
(2) Control mode
In this mode, P00 to P07 function as external interrupt input pins (INTP0 to INTP2) and external interrupt request
input pins with specifiable valid edges (rising edge, falling edge, both rising and falling edges).
2.2.2 P10 to P14 (Port 1)
These pins constitute a 5-bit input only port. In addition, they are also used to input A/D converter analog signals.
The following operating modes can be specified bit-wise.
(1) Port mode
In this mode, P10 to P14 function as a 5-bit input only port.
(2) Control mode
In this mode, P10 to P14 function as A/D converter analog input pins (ANI0 to ANI4).
2.2.3 P20 to P27 (Port 2)
These pins constitute an 8-bit output only port. In addition, they are also used as PWM output pins to control meters.
The following operating modes can be specified bit-wise.
(1) Port mode
In this mode, P20 to P27 function as an 8-bit output only port. They go into a high-impedance state when 1 is
set to port mode register 2 (PM2).
(2) Control mode
In this mode, P20 to P27 function as PWM output pins (SM11 to SM14 and SM21 to SM24) for meter control.
Summary of Contents for mPD780973 Series
Page 2: ...2 MEMO ...
Page 66: ...66 MEMO ...
Page 98: ...98 MEMO ...
Page 138: ...138 MEMO ...
Page 164: ...164 MEMO ...
Page 182: ...182 MEMO ...
Page 204: ...204 MEMO ...
Page 244: ...244 MEMO ...
Page 262: ...262 MEMO ...
Page 278: ...278 MEMO ...
Page 290: ...290 MEMO ...