K64: ADC input to PWM output

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

K64: ADC input to PWM output

ソリューションへジャンプ
1,079件の閲覧回数
nunyabruh
Contributor I

I'm trying to input an analog sine wave to an ADC input on the FRDM-K64F MCU, which will then convert it to a PWM. Then using a PWM output pin, I want to reproduce the original sine wave. I have all the necessary circuits and filters, but I'm having trouble on how to start coding. Is there any example code for ADC to PWM, and then PWM to sine wave (or any wave) available for this MCU?

Thanks 

ラベル(2)
0 件の賞賛
返信
1 解決策
619件の閲覧回数
mjbcswitzerland
Specialist V

Hi

You can get some ideas about how to do DMA based ADC->PWM or internally generate signals to the PWM output from http://www.utasker.com/docs/uTasker/uTaskerADC.pdf (in particular appendix C).

Complete working solutions for such are included in the uTasker project for the K64 and all other KL and K parts with DMA.

Regards

Mark

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
620件の閲覧回数
mjbcswitzerland
Specialist V

Hi

You can get some ideas about how to do DMA based ADC->PWM or internally generate signals to the PWM output from http://www.utasker.com/docs/uTasker/uTaskerADC.pdf (in particular appendix C).

Complete working solutions for such are included in the uTasker project for the K64 and all other KL and K parts with DMA.

Regards

Mark

0 件の賞賛
返信