S32K14X:How to deal with OC channel level inversion caused by FTM counter overflow

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

S32K14X:How to deal with OC channel level inversion caused by FTM counter overflow

528件の閲覧回数
ou_gangxun
Contributor II
I am using the OC function of FTM to develop the pulse communication function of the sensor. Because of design requirements, the FTM counter must always run, but this will cause a problem: It seems that when the FTM counter overflows, or the unused OC channel causes a match because the idle time exceeds 65535, and then the OC channel is started, the OC channel will immediately flip the level. Because the software I design now needs to understand the mechanism of FTM peripherals, It would be great if you could provide FTM OC functional logic documents.
0 件の賞賛
返信
1 返信

515件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the OC mode as well as other modes are described in the device Reference manual in FTM chapter.
In OC mode the output is changed when the counter matches the value in the CnV register.
Also you can refer to AN5303 Features and Operation Modes of FlexTimer Module on S32K; https://www.nxp.com/docs/en/application-note/AN5303.pdf

BR, Petr

0 件の賞賛
返信