SAR ADC Program freezes at while( !ADC_IsEndConversion(ADC_RETURN_STATUS));

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

cross mob
lock attach
Attachments are accessible only for community members.
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
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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