Hi, welcome to just Answer.
Thanks, XXXXX XXXXX check engine lamp is coming on before it dies...there's a good chance the engine computer is recognizing a fault in one of the sensors or circuits. Have you tried to read codes yet? If not, this would be the best step to take first. You may have a faulty MAF (Mass Airflow) sensor, which are common failures and coincide with the symptoms. Let me know if you need instructions on reading codes using the check engine lamp flashes.
No problem...below are the procedures...basically your going to use a jumper wire in the underhood diagnostic box to jumper terminals TE1 and E1. Than when you turn the ignition key to the ON position, the check engine lamp will begin to flash. Count the flashes...long flashes indicating the first digit in the code and short flashes indicating the second digit. Let me know what codes you come up with and I'll give you the definitions.
Sorry the images arn't poping up...let me try this again.
Well it seems that my software isn't uploading properly, so try the procedure below it doesn't have any images, but the process is fairly simple.
These are the codes:
It is on the air cleaner housing and looks like the one below...
Good job! A code 14 indicates a fault in the ignition spark circuit. Perticularly is focusses on the Ignitor which is a unit used to signal the Ignition Coil to fire the cylinders at the correct time. The Ignitor takes inputs from the engine computer module (ECM) to make the determination when to fire the coil. The signals the Ignitor sends and receives are call the IGF and IGT. The code is bascially saying that one or both of these siglas are missing when tested. The problem can be the Ignitor itself, the wiring between the ECM and the Ignitor, or even the ECM. The wiring rarely fails, and the ECM is likley to on extremely high milage vehicles. To correctly test the Ignitor and ECM you need access to a lab scope...instead it may be worth it to replace the Ignitor and see if the problem remains. But before anything...clear the code 14 by disconnecting the battery negative cable for 10-15 seocnds. Than reattatch it and drive the truck around to see if you can get the check engine lamp to come on before it dies...and read the codes again so we known it is defnitly 14 and that the ECM is not erroneously setting codes.
REMOVAL & INSTALLATION
See Figures 1, 2, 3 and 4
Igniters are mounted in one of two places on your Toyota truck. On the remotely mounted coils, the igniter is secured to the coil. On the integral coil vehicles (where the coil is in the distributor) the igniter is secured to the fenderwell.
Fig. 1: The igniter can be found mounted on the remote ignition coil
Fig. 2: Unplug the connector and remove the retaining screws
Fig. 3: If mounted to the coil, detach the wire
Fig. 4: Check that all the connections are separated, then lift the unit from the vehicleTo install: