How to clear FLEXIO SHIFTSTAT and/or SHIFTERR flags

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

How to clear FLEXIO SHIFTSTAT and/or SHIFTERR flags

1,812件の閲覧回数
michaelhuslig
Contributor IV

I am trying to use the Match Continuous Mode to debounce a high-rate switch.  But I can't seem to get the shift status or error flags to clear using the means mentioned in the KL33 reference manual, resulting in continuous interrupts.  Any ideas?

Also, what is the exact meaning of DBGE?  If set, does it mean that the FLEXIO will continue to run while the uP is paused in debug?

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

1,602件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi MICHAEL HUSLIG,

   About the Match continuous flag clear, you can find it from the reference manual:

pastedImage_1.png

About the DBGE, you also can find it from the reference manual:

pastedImage_2.png

It means even the debug is paused, the FLEXIO will still work.

Wish it help you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,602件の閲覧回数
michaelhuslig
Contributor IV

Thank you Kerry on the reply concerning DBGE.  However, as originally stated, I have not been able to clear the FLEXIO shifter status flags using the methods in the reference manual.

0 件の賞賛
返信

1,602件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Michael HUSLIG,

    The Shifter status flags is clear automatically after there has no longer a match between shifter data and SHIFBUF.

    You can disable the DBGE, check the register, after the flag is set,  then  check the shiter data and the SHIFBUF, make sure there no match happens, then update the register, check the flag again, whether it is clear.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信