RPM is controlled by ECU using parameters how much air you supply to engine, and how much fuel you deliver. Ignition should not be the case here.
But you should try to explain more in detail.
ECU gets info - no AIR, no Throttle
Put of connector and disable TPS sensor. See if it is sending...