
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Serial Data Link Module SDLM
User’s Manual
22-16
V2.2, 2004-01
SDLM_X, V2.0
22.2.7
Flowcharts
22.2.7.1
Overview
Figure 22-10 Initialization, Data Setup and Transmission
In order to adapt the timing to the transceiver device, register TxDELAY has to be
configured, too. Furthermore, the desired J1850 receive pin and the transmit pin have to
be selected. The interrupt line SDLM_I1 can be combined either with SDLM_I0 or can
be independent.
GLOBCON:=19H
CLKDIV:=84H
BUFFCON:=00
load data in
TxBuffer
END
Configure J1850
Loading data into TxBuffer
Data transmission
MSGTRA:=1
(Bit 0 TRANSSTAT)
TxRQ:=0
(Bit 1 BUFFCON)
After succesful transmission
An interrupt will be
generated if the
interrupt enable bit
TRAIE is set.
done
by HW
TxDATA0
TxDATA1
TxDATA2
TxDATA3
TxDATA4
TxDATA5
TxDATA6
TxDATA7
TxDATA8
TxDATA9
TxDATA10
TxBuffer
Transmit data
J1850 module is enabled
CLKEN is enabled
DIVIDER 5MHz crystal frequency)
FIFO Mode is disabled
TxCPU will not be incremented,
bytes in buffer have to be addressed.
START
30H
3AH
set TxRQ