User manual

Demonstration
© 2011 Microchip Technology Inc. DS75019A-page 27
The transmitter starts sending when there is at least one byte to send. A frame is ter-
minated when there is no more data in the input buffer or when the 64th payload byte
has been transmitted. As long as the application keeps providing data to send, the
transmitter will transmit 64 byte frames. If a frame checksum is invalid, the receiver will
try to resynchronize, but the frame contents will be transferred to the UART interface.
The UART configuration for this demonstration is:
19200 bps
•8-N-1
RTS/CTS flow control (hardware)
3.2.4 Stream Demonstration
This demonstration implements a unidirectional link tester to test the power line
communication link.
There are two applications in this demonstration: a transmitter and a receiver. The
transmitter sends a stream of frames with a constant length and payload. The receiver
checks the received frames and displays statistics on the LCD and via the UART. The
following statistics are available:
TX: Number of frames transmitted in total
RX: Number of frames received in total
OK: Number of frames received correctly
ERR: Number of frames received with errors
CRC: Number of frames that had CRC errors
PAY: Number of frames with at least one payload error
TRU: Number of truncated frames. A frame is truncated if bit synchronization was
lost before the expected number of octets were received.
Each frame (of 128 byte length) is composed of 16 bytes of preamble, 110 bytes of data
and 2 bytes of CRC. The following push buttons can be used to control the
demonstration application:
S3: Next LCD view
S6: Previous LCD view
S4: Clear all counters
The transmitter application has two LCD views:
Frame statistics: TX count
Application configuration (carrier frequency, modulation and baud rate)
On reset, the transmitter sends the application configuration summary over the UART
and prints an asterisk (*) symbol on every transmitted frame. After each 16 frames it
prints the total number of frames transmitted so far.
The receiver application has three LCD views:
Frame statistics: RX, OK and ERR count
Error statistics: CRC, PAY and TRU count
Application configuration (carrier frequency, modulation and baud rate)