30
CHAPTER 2 PIN FUNCTION
User’s Manual U15104EJ2V0UD
2.2 Description of Pin Functions
2.2.1 P00 to P06 (Port 0)
P00 to P06 constitute a 7-bit I/O port. In addition to I/O port pins, P00 to P06 also function as external interrupt
inputs. The following operating modes can be specified in 1-bit units.
(1) Port mode
These pins function as a 7-bit I/O port for which input or output can be specified in 1-bit units using port
mode register 0 (PM0).
(2) Control mode
These pins function as external interrupt input pins (INTP0 to INTP4).
These external interrupt input pins can specify valid edges (rising edge, falling edge, and both rising and falling
edges).
2.2.2 P10 to P15 (Port 1)
P10 to P15 constitute a 6-bit input port. In addition to input port pins, P10 to P15 function as A/D converter analog
inputs.
The following operating modes can be specified in 1 bit units.
(1) Port mode
These pins function as a 6-bit input port.
(2) Control mode
These pins function as A/D converter analog input pins (ANI0 to ANI5).
2.2.3 P30 to P37 (Port 3)
P30 to P37 constitute an 8-bit I/O port . In addition to I/O port pins, P30 to P37 function as timer inputs and buzzer
outputs.
The following operating modes can be specified in 1-bit units.
(1) Port mode
These pins function as an 8-bit I/O port for which input or output can be specified in 1-bit units using port mode
register 3 (PM3).
(2) Control mode
These pins function as timer inputs (TI50, T51) and buzzer outputs (BEEP0, BUZ).
(a) TI50, TI51
Pins for external clock input to the 8-bit timer/event counter.
(b) BEEP0, BUZ
Buzzer output pins.
Содержание mPD178053
Страница 2: ...2 User s Manual U15104EJ2V0UD MEMO ...