Hi,
How to obtain the logic level of a GPIO pin when it is configured in the digital output mode.
Why is the state of GPIO pin always 0 when I do this.
EG:
Platform: MIMXRT595-EVK
SDK:SDK_2_11_1_EVK-MIMXRT595
Hi @Dave_SU ,
About the pin logic leave, you can find it from the datasheet:
Do you test this SDK code for the SW input:
SDK_2_11_1_EVK-MIMXRT595\boards\evkmimxrt595\driver_examples\gpio\led_output
This should works.
About your mentioned led output, then read it for the input, you need to check the pin level from the hardware, whether it meet the H level voltage: >0.7vdd, maybe due to the HW, the level didn't match it, you can control one pin which didn't connect to a lot of circuit, that will be more easy to test.
Best Regards,
Kerry
Hi @kerryzhou
Thank you for your reply.
SDK_2_11_1_EVK-MIMXRT595\boards\evkmimxrt595\driver_examples\gpio\led_output
Hi @Dave_SU ,
Yes, I know the SDK is input, just check with you whether that can get the correct level.
Please test SW_GPIO, configure it as output, whether you can get the correct level or not?
Or you can test your TEST_LED pin, when it is output 1, what's the pin voltage. and output 9, what's the voltage?
Just make sure the external circuit output voltage is really higher than 0.7vdd, which can be recognized as high to the input.
Please test it, and share me the result.
As I am working at home, and lack the board for testing now.
Thanks a lot for your understanding.
Best Regards,
Kerry