CHAPTER 2 PIN FUNCTIONS
36
User’s Manual U15195EJ5V0UD
(3) P20 to P27 (Port 2) … I/O
P20 to P27 function as an 8-bit I/O port in which input or output can be set in 1-bit units.
Besides functioning as an I/O port, in control mode, P20 to P27 operate as timer/counter I/O and external
interrupt request input.
Port or control mode can be selected as the operation mode for each bit, specified by the port 2 mode control
register (PMC2).
(a) Port mode
P20 to P27 can be set to input or output in 1-bit units using the port 2 mode register (PM2).
(b) Control mode
P20 to P27 can be set to port or control mode in 1-bit units using PMC2.
(i) TO21 to TO24 (Timer output) … Output
These pins output a timer 2 pulse signal.
(ii) TO3 (Timer output) … Output
This pin outputs a timer 3 pulse signal.
(iii) TI2, TI3 (Timer input) … Input
These are timer 2 and timer 3 external count clock input pins.
(iv) TCLR2, TCLR3 (Timer clear) … Input
These are timer 2 and timer 3 clear signal input pins.
(v) INTP20 to INTP25 (External interrupt input) … Input
These are external interrupt request input pins and timer 2 external capture trigger input pins.
(vi) INTP30, INPT31 (External interrupt input) … Input
These are external interrupt request input pins and timer 3 external capture trigger input pins.
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...