Hi everyone,
I met a problem with the SWG (Sine wave generator) module with the MPC5643L processor. I want to use this module to generate 10kHz excitation wave for a resolver. As we know the frequency of the excitation signal and sample frequency of the ADC must be exactly the same.
As the output frequency of the SWG is described by the reference manual as:
And 1048576 is only divisible by 2, in order to get an exactly same frequency as sampling frequency, the IOFREQ must also be only divisible by 2. As a result, I can only generate limited frequency sine waves which are pretty far away from 10kHz (eg. 7.3K and 14.6K).
If I want keep a ~10kHz sampling frequency. Is there any methods to synchronize the excitation sine wave with ADC sampler, or do I have any other way to generate 10kHz excitation sine wave for the resolver instead of using SWG module?
Thanks,
Yang Sun
Hi,
see my reply on https://community.nxp.com/message/1142446?commentID=1142446#comment-1142446
BR, Petr