possibly need to wire in knock sensor and second O2
When you installed the b16 motor, did you wire in a second O2 sensor and a knock sensor? The b-series motor runs two O2 sensors and a knock sensor that won't be on the d-series engine. I've just finished a b16a swap into an 89 Crx (Auto to manual trans conversion), when we wired in vtec, we also had to wire in and install a second O2 and wire the knock sensor to the ecu. I'm using a 91 d16 harness, so you should be in the same position, unless you've already wired those up.