How to use GPIO without TMR input for input capture on i.MX93 MaaxBoard (Cortex-M33)?

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

How to use GPIO without TMR input for input capture on i.MX93 MaaxBoard (Cortex-M33)?

510 次查看
Manjunathb
Contributor II

Hi NXP Community,

I'm working with the MaaxBoard i.MX93 (Cortex-M33) and trying to implement input capture using the TPM peripheral (Timer). I understand that for proper input capture, the GPIO must support TPMx_Channely via IOMUX.

However, I have a signal on a GPIO pin (e.g., GPIO3_IO05) which does not support TPM capture in the IOMUX.

I am able to read its value via GPIO_PinRead() and see it toggling, but I want to measure the pulse width or frequency (i.e., high-time, low-time, or edge timestamps).

My Questions:

  1. Is there any workaround to use non-TMR-connected GPIOs for input capture (e.g., using interrupts or polling)?

  2. If yes, how to configure GPIO interrupt with precise timestamp logging using SysTick or any other timer?

  3. Is there an example in the MCUXpresso SDK for i.MX93 that shows GPIO interrupt-based edge timing or pulse measurement?

Any suggestions or best practices for accurate timing measurement via software-only methods on GPIOs would be helpful.

Thanks!

 

i.MX93 TPMS-SW 

标签 (1)
0 项奖励
回复
4 回复数

425 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Manjunathb 

I hope you are doing very well.

 

Unfortunately we have not an example to do it without the TPM PAD.

But taking a look to the MaaxBoard, it appears you can do it with the GPIO12:

Manuel_Salas_0-1753733306755.png

 

And you can use the TPM Example on the SDK because that PAD is used:

 

Manuel_Salas_1-1753733355818.png

 

Best regards,

Salas.

 

0 项奖励
回复

398 次查看
Manjunathb
Contributor II

Hi @Manuel_Salas 

I updated app.h and pinmux.c inside input capture driver code although its NOT working.

 

what is the problem in this its not triggering (not reading input value, when specific pin making high and low ?

Screenshot 2025-07-29 105002.pngScreenshot 2025-07-29 105027.png

i.MX93 TPMC-PEXPERT 

标记 (1)
0 项奖励
回复

360 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Manjunathb 

 

Can you try the TPM example from SDK?

It should works without any modification.

 

Best regards,

Salas.

0 项奖励
回复

315 次查看
Manjunathb
Contributor II

@Manuel_Salas 

I tried just changing configuration part in app.h and i checked its not working ?

 

I have working on Maaxboard OSM93 board , inside this i did not get the pinout of this , after updating pinmux with correct pin also its not working ? 

0 项奖励
回复