MIMXRT1024 GPIO interrupts at 100Khz speed not working but working at 12Khz

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

MIMXRT1024 GPIO interrupts at 100Khz speed not working but working at 12Khz

1,377 次查看
sbabu
Contributor III

Dear All,

We are using 4 GPIOs as interrupts to receive bits from the external interface. When the bits are sent at 12 Khz from the external interface, the bit patterns is matching stored in buffer. But when sent at 100Khz, the bit patterns are not matching in buffers. I have 4 interrupt handlers for 4 GPIOs for capturing the bits. Please suggest any inputs to handle or fix this issue. I am on ucLinux.

Thanks,

Babu

 

 

标签 (2)
0 项奖励
回复
3 回复数

1,340 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @sbabu,

How are you configuring your pins? Have you tried using our GPIO examples from the SDK as a base line to set up the pins? I believe the GPIO examples definitely support 100KHz inputs, so the issue might lie in the ucLinux implementation.

BR,
Edwin.

0 项奖励
回复

1,321 次查看
sbabu
Contributor III

Hi @EdwinHz Yes I used the GPIO example for setting the pins. The data bits are stored in the buffer. If sent at 12Khz the data buffers has same pattern. One interrupt handler writes 1 bit into buffer and other handler writes 0 bit into buffer. Is there a chance that 1 bit handling interrupt handler not getting time to handle?

Thanks,

Babu

 

0 项奖励
回复

1,303 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @sbabu,

It is likely that the implementation of ucLinux is heavily impacting the processing effectiveness of the core to properly execute all these interrupt handles. I would suggest you to implement the use of the DMA instead in order to alleviate the core's workload. You can once again refer to the SDK examples to implement this configuration.

BR,
Edwin.

0 项奖励
回复