Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

Anonymous
Not applicable

I have been trying to get this ADC program to work (Vref of VDD, single channel, single ended, no injection) and when I run the debugger, the code does not get past while( !ADC_IsEndConversion(ADC_RETURN_STATUS));. Compressed workspace is attached. What can I do?

0 Likes
1 Solution
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

You need to start the ADC (by calling ADC_Start()), not just starting the conversion. Basic PSoC rule: _any_ component needs to be started.

View solution in original post

2 Replies
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

You need to start the ADC (by calling ADC_Start()), not just starting the conversion. Basic PSoC rule: _any_ component needs to be started.

MotooTanaka
Level 9
First comment on KBA 1000 replies posted 750 replies posted
Level 9

Hi,

You have your ADC Sample mode as Free running.

ADC_Config1.JPG

To use Trigger (Start Conversion), I think that you need to set the Sample Mode to Hardware trigger

ADC_Config2.JPG

moto

0 Likes