System Diagram
WARNING: This page is about a different car, the 2004 Toyota Camry Solara. However, it is still accessible from the selected car via links, so may be relevant.
Ignition timing is determiner by the ECM based on signals from various sensors.
Courtesy of © TOYOTA, LICENSE AGREEMENT TMS1002
Courtesy of © TOYOTA, LICENSE AGREEMENT TMS1002