Back-up Power Source Circuit: Description
WARNING: This page is about a different car, the 2011 Toyota Corolla. However, it is still accessible from the selected car via links, so may be relevant.
The back-up power source circuit for the A/C amplifier is shown below. Power used for DTC memory etc is supplied even when the ignition switch is off.