Edge Detection Function - NEC V850/SA1 mPD703015 Preliminary User's Manual

32-/16-bit single-chip microcontrollers
Table of Contents

Advertisement

5.3.9 Edge detection function

A valid edge of INTP0 to INTP6 pins can be selected every pin from the following four types: Rising edge, falling
edge, both rising and falling edges, and neither rising nor falling edge detected.
The rising edge specification register (EGP0) controls the validity of a rising edge.
The falling edge specification register (EGN0) controls the validity of a falling edge.
NMI and INTP0 to INTP6 pins after reset is set to neither rising nor falling edge detected. Unless a valid edge is
enabled by the EGP0 or EGN0 register, an interrupt request is not acknowledged (These pins normally function as a
port).
When P00 is used as an output port, set the NMI valid edge to neither rising nor falling edge detected. When P01
to P07 are used as an output port, set the valid edge of INTP0 to INTP6 to neither rising nor falling edge detected or
mask the interrupt request.
CHAPTER 5
INTERRUPT/EXCEPTION PROCESSING FUNCTION
121

Advertisement

Table of Contents
loading

Table of Contents