
The receiver samples digital I/Q comparator outputs at 50 ksample/s using the 14.4 MHz clock. A ten-sample majority decision and symbol timing adjustment feed a 4-QAM frame decoder. The decoder finds a 9-byte 0x55 preamble, confirms a 0xAA start delimiter, then produces one frame ID and 32 payload bytes. It uses the phase correction table from the reference MSP430 receiver.
The UART output is 115200 baud, 8N1, on uio[6]. It sends 43 bytes: nine 0x55, 0xAA, the ID and 32 payload bytes. The phase rotation is debug information on uio[4:3] and is not sent as a UART byte. A header begins when the SFD is confirmed; an interrupted input frame can therefore produce a partial UART frame.
Provide a 14.4 MHz clock and reset the design with rst_n low. Drive digital I and Q on ui[0] and ui[1]. Set ui[2] or ui[3] high if the corresponding input polarity must be inverted; otherwise keep them low. Supply four symbols per byte, most significant pair first, at 5 ksymbol/s. Decode UART TX on uio[6] as 115200 baud, 8N1.
uo[7:0] holds the most recently decoded ID or payload byte, and uio[0] toggles for each new byte. uio[1] toggles when the SFD is confirmed; uio[2] shows the data state; uio[5] toggles at the end of a frame; uio[7] is a sticky UART overrun indicator cleared by reset. The Cocotb test in test/ sends a complete frame and checks all 43 UART bytes.
An external analogue front end must provide digital I and Q comparator outputs. The Eclypse Z7 can supply the 14.4 MHz clock and capture the outputs, subject to voltage compatibility and pin mapping. FPGA integration and measurements with real analogue signals have not yet been performed.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | I comparator input | Byte bit 0 | Byte toggle |
| 1 | Q comparator input | Byte bit 1 | Frame start toggle |
| 2 | Invert I | Byte bit 2 | Frame active |
| 3 | Invert Q | Byte bit 3 | Rotation bit 0 |
| 4 | Byte bit 4 | Rotation bit 1 | |
| 5 | Byte bit 5 | Frame done toggle | |
| 6 | Byte bit 6 | UART TX 115200 8N1 | |
| 7 | Byte bit 7 | UART overrun |