PIN Interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PIN Interrupt

Jump to solution
358 Views
Sathiya_T
Contributor I

hi,

i am configure  PIN Interrupt in lpc55s16  (level sensitive or active level triggering) using below the registers:

Intr_No=0;

PINT->ISEL = (1<< LOW_LEVEL);

PINT->SIENR = 1UL << (uint32_t)Intr_No;

PINT->SIENF= 1UL << (uint32_t)Intr_No;

i want to configuration for using level sensitive active low, and active high

 

0 Kudos
1 Solution
266 Views
frank_m
Senior Contributor III

It seems you don't understand what "pin level interrupt" means in this context.
This term relates to the logic levels "H" and "L", which are defined and fixed by hardware and supply voltage. You cannot detect other voltage levels that way.

If this is your objective use an ADC, or specific external custom hardware.

View solution in original post

0 Kudos
3 Replies
312 Views
Pablo_Ramos
NXP Employee
NXP Employee

The following SDK examples show you how to use the Pin interrupt & pattern match:

Pablo_Ramos_0-1713300899073.png

Hope it helps you!

 

0 Kudos
271 Views
Sathiya_T
Contributor I

In the SDK example pin interrupt level triggering interrurpt is worked but sometimes doesnt worked. controller not detect  varying voltage, 

using 3.3 v  controller is detect the interrupt in level triggering same LOW&HIGH.

as the same 1.2 v controller is not detected only sometimes i got interrupt.

interrupt detect voltage for controller is 0.8v but why? this not happened continue interrupt signal.

 

0 Kudos
267 Views
frank_m
Senior Contributor III

It seems you don't understand what "pin level interrupt" means in this context.
This term relates to the logic levels "H" and "L", which are defined and fixed by hardware and supply voltage. You cannot detect other voltage levels that way.

If this is your objective use an ADC, or specific external custom hardware.

0 Kudos