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
III - 48 External Interrupts
Setting example of NF
The following example shows how to select the positive edge triggered IRQ0 at P10 and enable NF of IRQ0.
..
NF setting must be finished before enabling the interrupt.
..
Step Settings Register Description
1
Set P10 as IRQ0 pin IRQIEN
IRQISEL0
Set IRQIEN.IRQ0EN to "1".
Set IRQISEL0.IRQ0SEL to "0".
* Set P10 as the IRQ0 pin.
2
Select the positive edge triggered
IRQ0
IRQ0ICR Set IRQ0ICR.REDG0 to "1".
3 Activate NF of IRQ0 NFCTR01 Set NFCTR01.NF0EN to "1".
4
Set the Interrupt level of IRQ0 IRQ0ICR Set IRQ0ICR.LV1-0 as you like.
* IRQ0ICR.IR should be set to "0".
5 Enable IRQ0 IRQ0ICR Set IRQ0ICR.IE to "1".

Table of Contents

Related product manuals