it took me a little to find this but i knew i had seen the TSB on this before, hope this helps
This article supersedes TSB 06-2-9 to add a production fix date for Expedition and Navagator and service parts updated.
Some 2005-2006 F-Super Duty and Expedition/Navigator vehicles built prior to 12/14/2005 and 2004-2005 F-150 vehicles, equipped with 5.4L 3V engine, and 2005-2006 Mustang GT vehicles, equipped with 4.6L 3V engine, may exhibit a diagnostic trouble code (DTC) P0340 and/or P0344; or 2006 Explorer 4dr/Mountaineer and 2007 Explorer Sport Trac vehicles equipped with a 4.6L 3V engine may exhibit a DTC P0345 and/or P0349. This may be due to a malfunctioning diode or open phase connection in the generator.
Perform a generator frequency test to diagnose cause of concern. Do not replace the generator unless a frequency test indicates a fault. This TSB provides step-by-step directions for performing a generator frequency test using the WDS oscilloscope function.
MANUALLY CALCULATE FREQUENCY
we have already ruled out the generator, I found this report by googling the codes prior to asking on this site. it seems to be leading us to the phasers at this point. not the project I had in mind.
I can't say you helped because what you provided I had already found. I will accept answer to stop these e-mails