If the check engine light is on that means the PCM is working. Think about this one, the PCM is the component that sets the light in the first place and if it is spitting out codes than it must be working. Please do not be a bedroom engineer and give out shady information like this on the web.
OP most problem flow charts always end with "replace PCM". I would get a good sold wiring diagram of that circuit and starting testing. Good luck OP.
think about what i said it if as soon as you turn the key it stays solid the ecu is toast i just had to swap a p28 for my h swapped 6g so please look cool for another group of people. anyone who knows honda knows what happens when you have a bad ecu. bedroom engineer? yea you dont know me very well.