I would like to use software synchronization to update the FTM (configured for center-aligned PWM) C(n)V and OUTMASK registers from their buffer values. I want the update to be deferred to the next loading point.
From the manual, I see that I should write a 1 to SWSYNC. My question is: if I want to cancel a synchronization event after writing 1 to SWSYNC and before the loading point, will writing a 0 to SWSYNC work or will the software trigger event persist until the loading point completes?
P.S. I am using the FRDM-KV11Z board
Thank you Kerry. I’ve seen this flow chart in the product manual’s FTM section and in an application note. I can see that writing 1 to the SWSYNC bit when SWRSTCNT is 0 will update the registers at the next load point.
But I’d still like to know if the update can be cancelled by writing a 0 to SWSYNC before the load point.
Hi Daniel Way,
Maybe this is related to when the chip judge the SWSYNC =1 or 0, if it is already check it, I think even you set it back to 0, it still can't cancel the process.
But if you have interest, you can test your thought, before the load point, try to write SWSYNC back 0, check whether it is cancelled or not.