Wire Tap
UART Packet Parser in C Exercise
Task
The bench streams frames into USART1 RX for as long as the board runs. Answer each with one line. If its check byte matches -> ACK: and its payload in uppercase hex. If not -> NAK. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
Each reply ends in \n and must match a correct parser's, in order. Nothing else is sent. Bytes outside any frame get no reply.
Notes
A LEN outside 1 to 64 gets NAK. USART1 runs at 115200 baud, 8N1, BRR = 0x8B. This bench keeps every byte the host sends. A board keeps only one.