Measure ADC of PWM signal

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

Measure ADC of PWM signal

ソリューションへジャンプ
2,043件の閲覧回数
emdev
Contributor III

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.

emdev_0-1635404275434.png

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.

 

 

ラベル(1)
0 件の賞賛
返信
1 解決策
2,040件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,030件の閲覧回数
emdev
Contributor III

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.

0 件の賞賛
返信
2,028件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

> 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

0 件の賞賛
返信
2,041件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

0 件の賞賛
返信