Datasheet

Table Of Contents
PICkit™ Serial Analyzer Firmware
© 2009 Microchip Technology Inc. DS51647C-page 125
11.10.3.2 TAG: SDATA
Tag commands and data returned from
the PICkit Serial Analyzer.
TABLE 11-47:
Those tags (above) identified as ‘Event’, generally mark the occurrence of LIN bus
activity. As with all other supported PICkit Serial Analyzer serial protocols, the ‘Event’
tags are generated when/as are detected in real time and queued in a circular buffer
for transmission to the host. Each tag can be individually enabled/disabled using the
appropriate Configuration bit in the control block.
11.10.4 Parameter Detail
11.10.4.1 BAUD
The PICkit Serial Analyzer baud rate is configured by a 2-byte code as detailed in the
table(s) below. Upon initialization, the PICkit Serial Analyzer is configured with the
‘default’ baud specified in the control block (bytes 22 and 23) as documented in the
table above. Additionally, the baud rate can be changed in the context of script execu-
tion (real time) using the appropriate script/SCMND Tag. At all times the status block
reflects the currently active baud rate. This baud rate applies to all data transmitted
by
the PICkit Serial Analyzer.
Auto-Baud
The PICkit Serial Analyzer LIN ‘monitor’ function has the flexibility to Auto-Baud Detect
and modify the PICkit Serial Analyzer hardware configuration to receive ‘messages’
from the LIN bus at the baud rate being transmitted. This ‘flexibility’ must be enabled
using the Configuration bit in the control block (byte 16 bit 7). The host can be apprised
of the Auto-Baud Detect action through an event marker tag.
Tag/
SDATA
LEN NAME DESCRIPTION
0x80 2 LIN_EVENT_BYTE_RX Byte received
0Tag
1data
0x81 2 LIN _EVENT_BYTE_TX Byte transmitted
0Tag
1data
0x82 2 LIN _EVENT_STATUS_ERR Status error
0Tag
1 error byte
0x83 1 LIN _EVENT_BREAK_RX Break received
0Tag
0x84 1 LIN _EVENT_BREAK_TX Break transmitted
0Tag
0x85 3 LIN _EVENT_AUTOBAUD Auto-baud event
0Tag
1 Baud code (LSB)
2 Baud code (MSB)