AnsweredAssumed Answered

S32K144 FTM OC function doubts

Question asked by Xiaoyu Wang on Dec 13, 2018
Latest reply on Dec 16, 2018 by Razvan-nicolae Tilimpea

I am using FTM OC function, but when I use SDK to configure my OC channel, I got some doubts.

1. Clock source frequency after prescaler is 1MHz.

2. Max counter value set to 150. Means I need to set the output pin curve period for 150us.

3. Channel compared value set to 100. Means I want to toggle output pin when at 100us.

RESULT: I got following curve.

Both high level and low level duration are 150us.

MY QUESTION: What's the meaning of compared value which set for channel? How to use it?