PDA

View Full Version : I/O pins behaviour after a SLEEP command



MikeBZH
- 25th November 2023, 22:21
Hi everybody,

I need to enter into a power reduced situation with a PIC 18LF26K22 connected to some peripherals (e.g. amplifiers).

The solution at the PIC level is obvious with the SLEEP instruction.
However I also need to shutdown the peripherals by activating their SHDN pin which is connected to a port of the PIC. Activating this shutdown is the last thnk the PIC will do before going to SLEEP.

When the PIC has entered the SLEEP mode, will the state of the pin state remain stable as programmed and usable for maintaining the peripherals in the shutdown mode ? Or will the I/O PIC circuits force it to go to '0' or to '1' ?

Thank you for your help

MikeBZH

Ioannis
- 25th November 2023, 22:30
The pin will stay at the last level.

Ioannis

MikeBZH
- 26th November 2023, 08:38
Hi Ionnis,

Many thanks for your quick and accurate answer... as usual ! :)

Best regards
MikeBZH