
CHAPTER 2 PIN FUNCTIONS
49
User’s Manual U14359EJ4V0UM
(3) P20 to P27 (Port 2) ··· 3-state I/O
P20 is an input-only pin. P21 to P27 function as a 7-bit I/O port that can be set to input or output in 1-bit
units.
Besides functioning as an I/O port, in the control mode, these pins operate as I/O for the real-time pulse unit
(RPU), external interrupt request inputs, and DMA transfer termination outputs (terminal count).
The operation mode can be set to port or control mode in 1-bit units, specified by the port 2 mode control
register (PMC2).
(a) Port mode
P21 to P27 can be set to input or output in 1-bit units using the port 2 mode register (PM2). P20 is an
input-only port, and if a valid edge is input, it operates as an NMI input.
(b) Control mode
P21 to P27 can be set to port/control mode in 1-bit units using the PMC2 register.
(i)
NMI (Non-maskable interrupt request) ··· input
This is the non-maskable interrupt request input pin.
(ii) TI020 (Timer input) ··· input
This is the external count clock input pin for timer C2.
(iii) TO02 (Timer output) ··· output
This pin outputs the pulse signal for timer C2.
(iv) INTP020, INTP021 (Interrupt request from peripherals) ··· input
These are external interrupt request input pins and the external capture trigger input pins for timer
C2.
(v) INTP110 to INTP113 (Interrupt request from peripherals) ··· input
These are external interrupt request input pins.
(vi) TC0 to TC3 (Terminal count) ··· output
These are signals from the DMA controller indicating that DMA transfer is complete. These signals
become active for 1 clock at the rising edge of the CLKOUT signal.
Содержание V850E/MA1
Страница 2: ...2 User s Manual U14359EJ4V0UM MEMO...