- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What about defining and connecting analog pins to your AMUX and then in the initialization change them back to be digital pins.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.