MikroC for dsPIC: Code custom software serial protocol library for a single-wire return-to-zero protocol
Budget: $30 – $250 USD
Looking for someone to create a simple software serial script/library in order to communicate with LED MT3101 controller using the MikroC compiler. These LED controller uses a single wire return-to-zero protocol in order to receive 24-bit (8-bit for each RGB color) message. See the attachment for details on the protocol.
The result should be a script which can be included in any MikroC project, allowing the programmer to use simple commands to output RGB duty-cycle bytes on a specific I/O port of the dsPIC and reset the bus (return-to-zero) at any given moment. A few commands are mandatory:
- Port (assign a I/O as bus output, choose one of two available speeds: 400kpbs or 800kpbs)
- Open (start communication on the bus with the selected parameters which were selected in the "port" command)
- Write (3x 8-bit bytes to write on the bus, high bit first, in the RGB order)
- Reset (return the bus to zero for a minimum of 64us, typical 80us)
- Close (close the bus)
The result should be a script which can be included in any MikroC project, allowing the programmer to use simple commands to output RGB duty-cycle bytes on a specific I/O port of the dsPIC and reset the bus (return-to-zero) at any given moment. A few commands are mandatory:
- Port (assign a I/O as bus output, choose one of two available speeds: 400kpbs or 800kpbs)
- Open (start communication on the bus with the selected parameters which were selected in the "port" command)
- Write (3x 8-bit bytes to write on the bus, high bit first, in the RGB order)
- Reset (return the bus to zero for a minimum of 64us, typical 80us)
- Close (close the bus)