IDE: PSoC Creator
Design Goal: Read the current status of a GPIO output pin that is controlled from a PWM block.
Design Approach: Connected a PWM block PWM_n output to a GPIO output pin.
Issue: When I try to use the function Cy_GPIO_ReadOut using the correct port and pin number of my GPIO pin, it always returns "1", even when the GPIO is currently being driven low. I do not use any software commands to change the GPIO pin state, the GPIO is driven from a PWM block on the schematic. I need to know the current output level of the pin to provide feedback on its level.
This works fine for any GPIO output pins I control thru the software.
I cannot find any functions that return the current state of the PWM block pwm or pwm_n signal.
Solved! Go to Solution.