ADC_DelSig Embedded AMux

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

cross mob
user_4667686
Level 1
Level 1

Hi,

Using an ADC_DelSig with the CY8CKIT-059, I've noticed that in the ADC_DelSig there was an embedded Mux (that I could see in the main.c of PSoC Creator and on the datasheet of the ADC) But nowhere have I seen a way to use it. I know I can "just" use an AMux on the outside of the ADC, but my curiosity was peaked

If anyone can help me and knows how it works

Have a very nice day

A. Glibert

0 Likes
1 Solution
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hi,

I'm assuming you are referring to the ADC_SAR_Seq component.  It is a SAR ADC with a sequencing analog mux in the front end.

If you are, in "Free-Running" Sample mode, it is designed to sequence each channel configured at the configured sample rate then switch to the next higher channel.

Once all the channels are sampled you can

  • Place an ISR on the "eoc" output and have the ISR move the data from the channels into a buffer.
  • Poll the ADC_SAR_Seq_IsEndConversion() API call for a end of conversion completion.

Once the conversion is complete, you use the ADC_SAR_Seq_GetResult16(chan) API call where chan is the channel you want to read the ADC count data.

Note:  With this component, you can ONLY place Analog input pins directly on the mux inputs.  Any other analog routing will cause a component build error.

Len

PS:  Yes. You can "roll your own" ADC with an analog mux frontend.  This requires that you are responsible for switching the mux and starting the next sample conversion.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
2 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hi,

I'm assuming you are referring to the ADC_SAR_Seq component.  It is a SAR ADC with a sequencing analog mux in the front end.

If you are, in "Free-Running" Sample mode, it is designed to sequence each channel configured at the configured sample rate then switch to the next higher channel.

Once all the channels are sampled you can

  • Place an ISR on the "eoc" output and have the ISR move the data from the channels into a buffer.
  • Poll the ADC_SAR_Seq_IsEndConversion() API call for a end of conversion completion.

Once the conversion is complete, you use the ADC_SAR_Seq_GetResult16(chan) API call where chan is the channel you want to read the ADC count data.

Note:  With this component, you can ONLY place Analog input pins directly on the mux inputs.  Any other analog routing will cause a component build error.

Len

PS:  Yes. You can "roll your own" ADC with an analog mux frontend.  This requires that you are responsible for switching the mux and starting the next sample conversion.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Thanks for the reply. I was talking about the component named "ADC DelSig"

I got an answer from my teaching team that the embedded Mux is used by

the ADC to select things for itself (the type of entry for example )

Have a very nice day

A. Glibert

Le lun. 4 mai 2020 à 06:25, LePo_1062026 <community-manager@cypress.com> a

écrit :

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

ADC_DelSig Embedded AMux

reply from LePo_1062026

<https://community.cypress.com/people/LePo_1062026?et=watches.email.thread>

in *PSoC Creator & Designer Software * - View the full discussion

<https://community.cypress.com/message/233498?et=watches.email.thread#233498>

0 Likes