9600 baud
Sync data (data and clk)
BISYNC 32 32 32 hex
Ethernet module
UDP packets encapsulated BISYNC
MPLAB written in Assembly
Ethernet module is SPI
Requirements
Create a signal source from a 16F628 PIC board using the USART in SYNC SERIAL (done)
Program another PIC16F628 to detect and act on a positive edge of the clock (done)
Program a PIC 16F628 to sense the data level at the time the clock rises
Program a PIC 16F628 to rotate a register left by one bit
Program a PIC 16F628 to add the sensed data bit to the register
Program a PIC 16F628 to test for the presence of sync character 0x32 (hex)
Program a PIC 16F628 to act on the 32 hex and clock in data bytes, 8 at a time
Program a PIC 16F628 to look for an end of frame sequence
Program a PIC 16F628 to send SPI commands to an ENC28J60 ethernet module
Program a PIC 16F628 to send UDP payloads.
ENC28J60 Info
Ethernet module manual
In this image, I used the 16F628 to send SYNC "FF" "AA" or 1111 1111, 1010 1010. What is interesting is the USART only sends clock when needed, not constantly.
Clock is on the top trace and data is on the bottom trace.
Clock sense and marker.
There is around 92 us of time in which to carry out operations before next clock transition.
32 - Sync