CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
User’s Manual U12688EJ4V0UM00
220
7.3.8 Edge detection function
The valid edge of pins INTPn0 to INTPn3 and ADTRG can be selected by program. The valid edge that can be
selected is one of the following (n = 10 to 15).
•
Rising edge
•
Falling edge
•
Both the rising and falling edges
Edge detected INTPn0 to INTPn3 and ADTRG signals become interrupt factors or capture triggers. The block
diagram of the edge detectors for these pins is shown below.
Input signal
Noise
elimination
Rising edge
detection
Falling edge
detection
Selector
ESn1 ESn0
f
SMP
φ
Interrupt source
or various types
of trigger
INTM1 to INTM6 registers
Remark
n = 00 to 03, 10 to 13, 20 to 23, 30 to 33, 40 to 43, 50 to 53
φ
:
Internal system clock
f
SMP
: Sampling clock
Valid edges are specified in external interrupt mode registers 1 to 6 (INTM1 to INTM6).
(1) External interrupt mode registers 1 to 6 (INTM1 to INTM6)
These are registers that specify the valid edge for external interrupt requests (INTP100 to INTP103, INTP110
to INTP113, INTP120 to INTP123, INTP130 to INTP133, INTP140 to INTP143, INTP150 to INTP152,
INTP153/ADTRG), by external pins. The correspondence between each register and the external interrupt
requests which that register controls is shown below.
•
INTM1: INTP100 to INTP103
•
INTM2: INTP110 to INTP113
•
INTM3: INTP120 to INTP123
•
INTM4: INTP130 to INTP133
•
INTM5: INTP140 to INTP143
•
INTM6: INTP150 to INTP152, INTP153/ADTRG
INTP153 is used for both an A/D converter external trigger input (ADTRG) and a pin. Therefore, if the ES531
and ES530 bits of INTM6 are set in the external trigger mode by bits TRG0 to TRG2 of A/D converter mode
register 1 (ADM1), they specify the active edge of the external trigger input (ADTRG).
Содержание V850E/MS1 UPD703100
Страница 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Страница 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Страница 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Страница 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Страница 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Страница 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Страница 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Страница 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Страница 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...
Страница 422: ...User s Manual U12688EJ4V0UM00 422 MEMO ...