- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am using CY8CKIT-059 prototyping kit and I tried to create a single differential circuit which connect multiple inputs on analog mux to a single op amp. I want to switch the chosen input on the analog mux using sw1 switch. Is this possible and how to do it? the attachment is my project. Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Naz99,
Attached is a modified version of your project with something close to what you're looking for.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A complex thing in easy words:
You need a variable that holds the actual selected channel number.
You need to check whether the switch is pressed, debounce the signal (do not use delays in interrupt handlers!!)
Increase that channel variable (or reset to 0) and connect the channel.
Happy coding
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content