How can I set and detect the pin voltage using 042PSoC4 pioneer kit? | Cypress Semiconductor
How can I set and detect the pin voltage using 042PSoC4 pioneer kit?
1. I am using Creator 3.0 to program my CY8CKIT-042 PSoC 4 pioneer kit.
I tried to make a pin P1_4 to logic 1(5V), so in the top design, I added a output pin Pin_1.
Then, I tried different function:
(iii) CY_SYS_PINS_SET_PIN(Pin_1, 4)
But none of them worked. Anyone know what should be the right one?
2. Another question is that how can I detect the voltage change of Pin_2 in the attached Circuit 1?
When there is light, the photodiode conducts and voltage at Pin_2 will drop from Vdd to Vss.
Is there any function I can use to detect it using one of the pin on the 042PSoC4 kit?
3. Lastly, I don't know how to use the digital output enable.
Is it a Boolean variable which can be set to detect a rising/falling edge of a pin on PSoC4 Kit?