Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all articles
Browse latest Browse all 796

ADC to PWM

$
0
0

Hello All!

 

I have a need to generate a PWM signal with an adjustable duty cycle controlled via a 10K POT.   Having a bunch of 8 pin CY8C4014SXI-420 chips laying around I decided to try using them for this project.  Just enough room for Analog Input and PWM Output.

I am attaching my project which 'should' work.  Of course it doesn't....

I am using the CSD_ADC component and feeding it's output to the compare of the PWM component.  I started from an example I think i found in the component docs.  I have increased a couple of the delays to try getting it to work, but still a no go.

When debugging, I basically get only 1 value from the ADC (0x19FE) with it connected as shown.  I get basically a 0x01 when the pin is disconnected from the resister.  With my multimeter, I am reading about 1.2V at the pin when connected, no matter the POT setting.  (Sweep arm of pot is verified working and voltage is changing when disconnected from PSoC...)

I have tried 3 different chips, so I don't think the issue is hardware.

Anyone have ideas?

Dan


Viewing all articles
Browse latest Browse all 796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>