GPT1 capture on rise and fall edge

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPT1 capture on rise and fall edge

ソリューションへジャンプ
879件の閲覧回数
adde_ado
Contributor III

Hi, 

I'm using GPT1 to capture data from an IC circuit.

Interrupt is triggering on rise and fall edges (kGPT_InputOperation_BothEdge) and everything works fine.

My question is what I cad do to even capture data signal levels at interrupt event  i.e. "low or high"?

I have gone through chapters 12.1.5.1 to 12.1.5.10 but no of the registers contains that information.

Document Number: IMX8MMRM
Rev. 3, 11/2020 

Pin used: IOMUXC_SAI3_RXFS_GPT1_CAPTURE1

Best regards,

Adde

 

 

 

ラベル(1)
0 件の賞賛
1 解決策
850件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

>How can I determine if interrupt has occurred on rising or falling edge.

 

sorry there is no way for that. In general one can reconfigure pin as gpio and read its state

in interrupt service routine.

 

Best regards
igor

 

元の投稿で解決策を見る

3 返答(返信)
868件の閲覧回数
adde_ado
Contributor III

Hi Igor, 

But IMn is a configure bit. 

This can be used to determine how transition on the input pin has been "configured".

For example wit "GPT_GetInputOperationMode" function.

In my configuration event is trigger on both rising and falling edge. 

How can I determine if interrupt has occurred on rising or falling edge.

Best regards,

Adde 

 

 

0 件の賞賛
851件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

>How can I determine if interrupt has occurred on rising or falling edge.

 

sorry there is no way for that. In general one can reconfigure pin as gpio and read its state

in interrupt service routine.

 

Best regards
igor

 

872件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

He Adde

 

>what I cad do to even capture data signal levels at interrupt event  i.e. "low or high"?

 

only available options are described in sect.12.1.5.1 GPT Control Register (GPTx_CR)

i.MX 8M Mini Applications Processor Reference Manual 

 

The IMn bit field determines the transition on the input pin (for Input capture channel n), which will trigger a
capture event.
00 capture disabled
01 capture on rising edge only
10 capture on falling edge only
11 capture on both edges

 

Best regards
igor

0 件の賞賛