AnsweredAssumed Answered

K64: ADC input to PWM output

Question asked by nunya bruh on Mar 23, 2016
Latest reply on Mar 24, 2016 by Mark Butcher

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?