Cascade two analog mux

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

cross mob
didi_4657011
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi, 

I need to share an external analog port to ADC and to IDAC. I try to do this via two analog mux so I can control the purpose of the port (read analog voltage or write current to the port). Cascading of two mux give me an error :

Error: apr.M0032: Net "Net_12212" is connected to an analog mux but is not connected to another component. (App=cydsfit)

How can I solve the  issue of sharing the analog port?

image.png

image.png

Thanks,

Dima

0 Likes
1 Solution

Dima,

I said in my previous post:

"In theory, you should be able to cascade Amuxes.   However, the Amux component is performing a pre-compile check and flag the "error"."

This is a Application Build limitation with the Amux component.

I provided a workaround:

Len_CONSULTRON_0-1612443921771.png

 

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

View solution in original post

0 Likes
4 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Dima,

Try to switch ports 0 and 1 in AMux_in_out, or make a default port 1. If default port is 0, the other Mux is not connected to physical terminal.

 

0 Likes

Hi,

Switching between the two AMux ports didn't fixed the error.

didi_4657011_0-1612360435813.png

In addition I didn't find how to set default amux port, so I used API commnads:

AMux_In_Out_Start();
AMux_Select(1);

Still  didn't fixed the error.

0 Likes

Dima,

I said in my previous post:

"In theory, you should be able to cascade Amuxes.   However, the Amux component is performing a pre-compile check and flag the "error"."

This is a Application Build limitation with the Amux component.

I provided a workaround:

Len_CONSULTRON_0-1612443921771.png

 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Dima,

In theory, you should be able to cascade Amuxes.   However, the Amux component is performing a pre-compile check and flag the "error".

Here's a suggestion:  Get rid of "Amux_in_out" and connect the IDAC output directly to the "CH4_VOLT_READ" and the input to "Amux".  See pic.

Len_CONSULTRON_0-1612357867061.png

To emulate the "Amux_in_out", Stop the IDAC component before the read.   This should force the IDAC output to high impedance.

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