AnsweredAssumed Answered

Configuring ADC to output PWM using Processor Expert.

Question asked by Zoran Milosavljevic on Jun 30, 2015
Latest reply on Jul 23, 2015 by Marek Neuzil

Hi all. I am trying to get a PWM signal working using the ADC and PWM components in Processor Expert Kinetis IDE but I am having some troubles. So what I am trying to set up on my FRDM-K22F board is use one of the ADC capable header pins as the analog input to which I will have a 3VDC source connected, and another pin on the header as the digital output from the ADC which will be generated via PWM. I will hook up a logic analyzer to both of these pins and run some tests to make sure that the ADC is working properly.

 

So in order to actually output the digital signal from the ADC I decided to add a PWM component to my project as well which will create a PWM signal based on the output of the ADC:

I am having trouble how to set what pin I want to be the input to the ADC and what pin I want to be the output.

 

Here are my settings for PWM component:

 

Here are my settings for ADC component:

 

rtrtrtrtrtrtrtr.png

 

Any help with the configuration is much appreciated.

Outcomes