Datasheet

Table Of Contents
PICkit™ Serial Analyzer User’s Guide
DS51647C-page 126 © 2009 Microchip Technology Inc.
The auto-baud operation depends on receiving a ‘Break’ (13 bits of 0’s) followed by a
‘Sync’ (byte 0x55). Referring to the timing diagram below – the Break begins at ‘A’. At
‘B’ the PICkit Serial Analyzer expected a Stop bit – the USART interrupts the PICkit
Serial Analyzer (RCIF – receive interrupt flag) and sets FERR (framing error). The
PICkit Serial Analyzer interprets (1) DATA = 0 and (2) FERR (framing error) as having
received a Break; therefore, the FERR is automatically reset and not reported to the
host. If Auto-Baud Detection is enabled, the PICkit Serial Analyzer will wait a maximum
of ‘WAIT-BRK’ for the Break to complete at ‘C’. The duration of WAIT-BRK must be set
to accommodate the slowest baud rate supported (6 msec was chosen to support 1000
baud +/- 50%). If the end of Break is not seen in that time, the Auto-Baud Error bit is
set in the STATUS_BLOCK and the operation is aborted. If the end of Break is seen, the
auto-baud mechanism is enabled and the baud rate of the Sync character is measured.
At the second interrupt (RCIF (2)) at ‘E’, the operation is complete and the new/mea-
sured baud rate is used for subsequent transactions. If the auto-baud measurement
experienced an overflow, the Auto-Baud Error bit is set in the STATUS_BLOCK and the
default baud rate from the CONTROL_BLOCK is reloaded into the USART. In either case,
the resultant baud rate is reflected in the STATUS_BLOCK. After the Break, the PICkit
Serial Analyzer will wait indefinitely for the Sync character to begin with the USART
receiver disabled.
FIGURE 11-5:
WARNING
The Sync character is not actually ‘received’ by the PICkit Serial Analyzer during an
auto-baud operation; therefore, it is not reflected/reported to the host. The event
marker sequence would be BREAK_RX and auto-baud followed by BAUD_L, BAUD_H.
If auto-baud was not enabled, the event marker sequence would be BREAK_RX then
BYTE_RX followed by 0x55.
RCIF (1)
RCIF (2)
Sync
WAIT-BRK
Break
A B C D E F
S
P
0
1
2
3
4
5
6
7