Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am reading from a UART sensor and using an external transistor to turn the sensor off when it's not needed. I noticed, however, that the output pin from my UART component stays "HIGH" the entire time. It seems that my this UART pin is actually supplying power to the senor, regardless if I've disabled power via the external transistor. As a result, this is draining unnecessary current.
Is there a straightforward way to pull all my UART pins "LOW" when I'm not using them? It seems that calling UART_Stop() does not do this. The only way I've gotten this to work is to use a register to trigger the hardware-disable port on the pin. Is there a way to configure the UART components to do this automatically when calling Sleep() or Stop()?