K64: ADC input to PWM output

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K64: ADC input to PWM output

跳至解决方案
1,436 次查看
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 解答
976 次查看
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 回复
977 次查看
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 项奖励
回复