What ADC status reg mean?

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

cross mob
Anonymous
Not applicable

low 5 bits show which channel was scanned. My result is always 2.

   

Is it bit value or integer.

   

if bit than there is no room for all 8 channels

   

If integer what vale has channel 0

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The API only states that there is a value of "NonZero" returned when there are samples availlable. There is no documentation about status and channel association. Where did you get your infos from?

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

According to the description in the PSoC4 Registers TRM, the CUR_CHAN bits are only valid when the status is BUSY (meaning when a conversion is in progress).

   

It looks like the SAR_CHAN_WORK_VALID / SAR_CHAN_RESULT_VALID register is what you need (see the Architecture TRM, page 209 for more about that).

0 Likes