CHAPTER 4 INTERFACES
PRELIMINARY
NEC confidential and Proprietary
146
4.6 General-Purpose Input and Output Ports
The
µ
PD98413 has general-purpose output / input port pins. It is possible to change to input or output with the
GPIOM [7:0] bits of MDDGEN register setting. Changes in the input level of a general-purpose input port pin can
be used as the cause of an interrupt that is reported to the CPU.
General-Purpose Output
The output levels of these ports change according to the GPOUT register bit settings. When a certain bit is set
to 1, the output level of the corresponding port becomes high. When the bit is set to 0, the output level becomes
low. (By default, the register bits are set to 0.)
General-Purpose Input
The input levels of these ports are reflected on the status of the GPIN register of
µ
PD98413. For each general-
purpose input port, the GPIN register provides a pair of bits, one representing the actual input level and the other
indicating the reversed input level. This pair of status bits and the mask setting of the GPIN_M register can be
used to specify both negative transition (from high to low) and positive transition (from low to high) of the general-
purpose input port as an interrupt cause.
GPIN and GPIN_M registers
D15 - D8
D7 - D0
PIN7L - PIN0L
PIN7H – PIN0H
GPIN register status
Input level
PIN0H-PIN7H
PIN0L-PIN7L
L 0 1
H 1 0
Caution: Note that the GPIN register bits are not latched.
[Example]
To report negative transition of the PIN0 pin as an interrupt
PIN0 = L
→
PI0L bit = 0
PI0H bit = 1
When the PI0H bit is set to 1 by masking the PI0L bit and unmasking the PI0H bit with the GPIN_M register, the
GPIN bit of the INT register is set to 1. As a result, an interrupt is reported. The PIN0L and PIN0H bits of the
GPIN register are not latched.
Содержание NEASCOT-P65
Страница 4: ...PRELIMINARY NEC confidential and Proprietary 4 MEMO ...
Страница 8: ...PRELIMINARY 8 MEMO ...
Страница 15: ...PRELIMINARY NEC confidential and Proprietary 15 CHAPTER 2 PIN FUNCTION 2 1 Pin Configuration TBD ...
Страница 16: ...CHAPTER 2 PIN FUNCTION PRELIMINARY NEC confidential and Proprietary 16 Pin Arrangement Table TBD ...
Страница 33: ...CHAPTER 2 PIN FUNCTION PRELIMINARY NEC confidential and Proprietary 33 2 2 13 Handling Unused Pins TBD ...
Страница 34: ...CHAPTER 2 PIN FUNCTION PRELIMINARY NEC confidential and Proprietary 34 2 2 14 Initial States of Each Pin TBD ...
Страница 35: ...PRELIMINARY NEC confidential and Proprietary 35 MEMO ...
Страница 114: ...CHAPTER 4 INTERFACES PRELIMINARY NEC confidential and Proprietary 114 7 Connection example TBD ...
Страница 135: ...CHAPTER 4 INTERFACES PRELIMINARY NEC confidential and Proprietary 135 ...
Страница 166: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 166 5 2 Register summary ...
Страница 167: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 167 ...
Страница 168: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 168 ...
Страница 303: ...CHAPTER 5 REGISTERS PRELIMINARY NEC confidential and Proprietary 303 MEMO ...
Страница 317: ...CHAPTER 6 JTAG BOUNDARY SCAN PRELIMINARY NEC confidential and Proprietary 318 MEMO ...