anyone who one want to give code for DMX transmission using PIC16f690 with MPLAB IDE language?

we are using RGB LED floodlight to be controlled by PIC16f690 and RS-485. The proram does not uses PWM but instead, it uses 512 channels with 9 bit binary code. Each channel has designated LED control which gives a specific combination of color.

PLEASE, anyone gives an example program that can control color of the RGB floodlight, using PIC16f690 with RS-485 as a line driver..... THanks a lot.... hope everyone gives me a code... MPLAB IDE