EasyManua.ls Logo

Panasonic MN101L Series

Panasonic MN101L Series
563 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3
Interrupts
External Interrupts III - 45
3.3.2 Rising (Falling) edge triggered interrupt
Rising or falling edge interrupt can be selected with IRQ0ICR, IRQ1ICR, IRQ2ICR, IRQ3ICR, IRQ4ICR,
IRQ5ICR and IRQ6ICR.
Setting example of rising edge triggered interrupt
The following example shows how to enable the rising edge triggered IRQ4 at P72.
..
Interrupt edge (rising edge, falling edge or both edges (rising edge and falling edge)) of IRQn
must be changed when IRQnICR.IE is "0". After the interrupt edge is changed, IRQnICR.IR
must be cleared before setting IRQnICR.IE is "1".
..
Step Settings Register Description
1
Set P72 as IRQ4 pin IRQIEN
IRQISEL0
IRQISEL1
Set IRQIEN.IRQ4EN to "1".
Set IRQISEL0.IRQ4SEL to "1".
Set IRQISEL1.IRQ4CSEL to "0".
2
Select the rising edge triggered
IRQ4
IRQ4ICR Set IRQ4ICR.REDG to "1".
3
Set the Interrupt level of IRQ4 IRQ4ICR Set IRQ4ICR.LV1-0 as you like.
* IRQ4ICR.IR should be set to "0".
4 Enable IRQ4 IRQ4ICR Set IRQ4ICR.IE to "1".

Table of Contents

Related product manuals