Build errors with AMUX

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

cross mob
AnWa_1259496
Level 4
Level 4
Welcome! 50 replies posted 25 replies posted

 Hi,

   

I am using an AMUX which I will be programatically connecting pins to. When the pins are not connected to the AMUX they will be digital, so I will need to change the pin to analog programatically before selecting it to be enabled to the AMUX.

   

The pins need to start off being digital with none connected to the AMUX.

   

But this gives a build error with mismatched types. This is not really an error because I would have thought it is acceptable to have digital pins connected in the schematic to the AMUX provided they are not software enabled on the the Mux bus.

   

Is there some way to overcome this error?

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

What about defining and connecting analog pins to your AMUX and then in the initialization change them back to be digital pins.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

There is an example in this ap note dual use of a pin -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

   

 

   

 

   

Regards, Dana.

0 Likes