But before all of this, did you clear the codes before starting the engine with the one you swapped out. The PCM will store the code for a few start times and if all is good, it will reset itself, but if all is no good, it will continue to throw the code.
Was there any more different codes?