PSoC 4 Push-Button Controlled Switch for 3 Channels (or Modes) | Cypress Semiconductor
PSoC 4 Push-Button Controlled Switch for 3 Channels (or Modes)
I'm trying to program three CapSense push-buttons to control a switch for 3 channels on a PSoC 4 (so that I can have 3 modes). I want button 1 to tell the switch to direct current to channel 1, button 2 to tell the switch to direct current to channel 2, and button 3 to channel 3. I've set up each channel with different circuitry to make for the three different modes I need. This is my first time programming so I'm in need of some help!
So far, I've understood how to do the following:
1. Design the circuit. Except - I am currently using the Analog Multiplexer Sequencer (AMuxSeq) as a switch. Is that the correct component to use for a 3 channel switch?
2. I have the code to initialize the capsense components, baselines, and scan the widgets.
Here are my questions:
1. Is the AMuxSeq the correct component to use for a 3 channel switch?
2. How do I program button 1 to tell the switch to allow current through only channel 1 (and button 2 to only allow current through channel 2, and so on)?
Thanks in advance for any help. Again, this is my first time programming anything, so the more basic the explanation the better!