PIN Interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PIN Interrupt

跳至解决方案
371 次查看
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 项奖励
1 解答
279 次查看
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 项奖励
3 回复数
325 次查看
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 项奖励
284 次查看
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 项奖励
280 次查看
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 项奖励