Hello,
I want to read ADC value of PWM signal.
ADC values are changed.
If read ADC value at lowest value of PWM, it report 0.
But if read ADC value at highest value of PWM, it report Vcc.
I can check MPC5643L_PWM_ADC_concept.pdf and find below image.
I want to read ADC at highest value of PWM.
How I can approach it?
Duty cycle of PWM can be changed.
Thanks in advance.
解決済! 解決策の投稿を見る。
Hi Andrew
one can read several samples (the more number, the better accuracy) then compare them in
software and select one with highest value.
Best regards
igor
Hi igorpadykov,
I used methods which you recommended and it works well.
But I want to check that there are any hardware or chipset level solutions or not?
For example, DMA or automatic method in https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5643L-PWM-ADC-measurement-concept/ta-p/110265....
If there is no other chipset level methods, I'll use method which you recommended.
Thanks.
> I want to check that there are any hardware or chipset level solutions or not?
sorry there are no hardware solutions for such task.
Best regards
igor
Hi Andrew
one can read several samples (the more number, the better accuracy) then compare them in
software and select one with highest value.
Best regards
igor