Datasheet

Table Of Contents
PICkit™ Serial Analyzer User’s Guide
DS51647C-page 124 © 2009 Microchip Technology Inc.
MONITOR
To configure the PICkit Serial Analyzer to perform as LIN bus monitor, the host must
write the CONTROL_BLOCK to specify:
1. LIN adapter ‘Chip Select’ line state
2. Set ‘receive enable’ Configuration bit to allow the PICkit Serial Analyzer to
receive RX data and report it to the HOST
3. Set ‘auto-baud enable’ Configuration bit to allow PICkit Serial Analyzer to track
baud rate of bus transactions
Optionally,
1. Enable desired combination of event markers
11.10.3 Communication Tags
11.10.3.1 TAG: SCMND
Tag commands and data sent to
the PICkit Serial Analyzer.
TABLE 11-46:
Note 1: Data bytes (i.e., ‘frame’ to be published) must include the appropriate
checksum – ‘enhanced’ checksum if frame is destined for a LIN 2.0 slave.
The PICkit Serial Analyzer has no comprehension of data content or ‘for-
mat’ – data bytes are simply transmitted verbatim.
Tag/
SCMND
LEN NAME DESCRIPTION
0x80 1 LIN_INIT initialize USART controller
0Tag
0x81 N+2 LIN_XMT_DATA
(1)
transmit Data byte(s)
0Tag
1 Byte count = N
2Data
N+1 Data
0x82 1 LIN_XMT_BRK transmit Break
0Tag
0x83 N+2 LIN_XMT_BRK_DATA
(1)
transmit Break then Data bytes
(the data must include Sync char)
0Tag
1 Byte count = N
2 Data (Sync character)
N+1 Data
0x84 N+2 LIN_XMT_FRAME
(1)
transmit Data byte(s)
(implied leading Break and Sync)
0Tag
1 Byte count = N
2Data
N+1 Data
0x85 3 LIN_BAUD_SET set BAUD rate
0Tag
1 Baud code (LSB)
2 Baud code (MSB)