Datasheet

Table Of Contents
PICkit™ Serial Analyzer Firmware
© 2009 Microchip Technology Inc. DS51647C-page 121
TABLE 11-43: USART ‘DATA’ TAG BYTES
11.10 LIN COMMUNICATIONS
11.10.1 Introduction
The PICkit Serial Analyzer LIN support is confined to master and monitor functionality.
As a master, the PICkit Serial Analyzer accepts instruction from the host in the form of
script tag(s). Execution of the script results in the PICkit Serial Analyzer transmitting on
the LIN bus as a master. In practice, the transmission would constitute a LIN frame
header or an entire LIN frame (i.e., message).
As a LIN bus monitor, the PICkit Serial Analyzer can detect and report all events/trans-
actions on the bus generated by other devices on the bus or generated by the PICkit
Serial Analyzer master module. The ‘event markertag(s) are used to report bus activity
in its variety of forms but must be enabled, individually, using CONTROL_BLOCK
Configuration bits as seen below.
0x97 1 USART_AUX2_SET AUX2: 1
0 Tag
0x98 1 USART_AUX2_OUT AUX2 direction: Output
0 Tag
0x99 1 USART_AUX2_IN AUX2 direction: Input
0 Tag
0x9A 1 USART_AUX2_WAIT_0 wait AUX2 == 0
0 Tag
0x9B 1 USART_AUX2_WAIT_1 wait AUX2 == 1
0 Tag
Tag/CDATA LEN Name Description
0x80 2 USART_EVENT_BYTE_TX Byte transmit
0 Tag
1 data
0x81 2 USART_EVENT_BYTE_RX Byte received
0 Tag
1 data
0x82 2 USART_EVENT_STATUS_ERR Status error
0 Tag
1 error byte
0x83 1 USART_EVENT_BREAK_TX Break transmitted
0 Tag
TABLE 11-42: USART ‘CMD’ TAG BYTES (CONTINUED)