Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

DaHu_285096
Contributor II

I have a project with 2 x Differential analog input requirement and 2 x Single ended analog input.

The SAR SEQ component is set up as differential input with internal reference for the differential inputs ok.

What is usually done to set the second input for the single ended measurement? I tried connecting to VSSA ref but the program cmplained about vdac output not connected for some reason.

I don't suppose I could put a couple of Digital LOW components on those pins to reference to ground?

Really don't want to waste 2 IO pins to get ground refs.

Thanks

0 Likes
1 Solution
Len_CONSULTRON
Honored Contributor II

DaHu,

You can use GrC recommendation but you would have to use a SAR + a mux where you control the mux in your code.

The SEQ SAR as BrRu indicated provides compile/build errors when you connect the inputs to anything but a analog pin.

Len

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

View solution in original post

0 Likes
4 Replies
GrC_4053301
New Contributor II

Drop in a VRef object and change it's reference to GND or whatever you need.

0 Likes
DaHu_285096
Contributor II

When I did this, the project would not compile. I got a vdac not connected error

0 Likes
brockr0-S
New Contributor II

I believe the  sequencing SAR ADC uses the hardware multiplexer that only allows input connections to pins so you will have to connect your two single ended inputs as differential with the second pin going to ground for each pair.

0 Likes
Len_CONSULTRON
Honored Contributor II

DaHu,

You can use GrC recommendation but you would have to use a SAR + a mux where you control the mux in your code.

The SEQ SAR as BrRu indicated provides compile/build errors when you connect the inputs to anything but a analog pin.

Len

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

View solution in original post

0 Likes