I need a custom program that will run on a PIC18F6627 PIC chip. The development environment is available free from Microchip using the c18 compiler.
The program needs to accept non standard high speed (250Kbs) serial data arriving on the timer input pin. The program can then determine if the data is a start, data1, or data0 based on the timer values. This data is NON STANDARD. There are 250 bits of data between each start bit. The data that arrive is stored in memory then sent out the standard serial port using a packet structure that we can define. Here is the process
1. sample the timer for a start bit
2. measure each bit time to determine if a 1 or 0 has arrived. Store in memory
3. continue until the next start bit arrives
4. arrange the data in memory (250bits) into a packet structure and send out the serial port.
5. delay 800 ms
6. go back to step 1
The output serial port will run at something like 19,200 baud
It is ok to drop input data arriving on the timer input while step 4 or the delay is happening.
The project will be implemented on this system.
[url removed, login to view];products_id=149
I can supply a sample inside a case with PSU.
Details of the input data with scope screen shots are attached.