I don't think you can find detailed information on ECU and PCM coding as this is the cutting edge information for automotive industry, it will be confidential. But for basics you can refer to the following books/articles:
1) V.A.W.Hillier, "Hillier's Fundamentals of Automotive Electronics", Nelson Thornes, 1996. (mostly basic concepts... you can find it on google play)