I'm running this code and it works great.
I would double check the code you put in, double check the addreses and parameters, then double check the wiring, make sure you have it hooked to the correct pin on the pcm.