Hello. Ive been searching the net and Im running myself in circles. A device Im using has a 12C508A pic processor. It send the following set to pause the device and then inform the device that this is the end :
PLAY/PAUSE 0xFF 0xFD 0xF1
(button release) 0xFF 0xFD 0xF0

Can someone point me in the direction of what I have to do to program this into a pic ( i guess the 12c508A ). Then how would I activate this code based to be sent out of the chip on a condition ( i.e. acc power goes out but +12 remains )

If you need more information, please advise. Im very eager to get this done but dont know where to start.

Alan