
Pro II: Extension and Interface Modules
Pro II-LIN-2 Rev. E
ADwin
178
ADwin-Pro II
Hardware, manual Dec. 2018
5.8.8 Pro II-LIN-2 Rev. E
The module Pro II-LIN-2 Rev. E provides 2 LIN interfaces, which can be inde-
pendently configured as LIN master or LIN slave.
LIN Interface
The LIN interfaces of the module are implemented according to spezification
„LIN 2.1“ (Local Interconnect Network) of november 2006. You program the
LIN interfaces with
ADbasic
instructions.
LIN is a serial communication protocol on a one-wire bus with a transfer rate
of up to 20 KiBit/s. The bus efficiently supports the control of mechantronic
nodes in distributed automotive applications.
Messages sent via LIN bus are data packets with up to 8 bytes payload, which
are characterized by so-called identifiers. The management of bus messages
is effected by 64 message boxes.
The bus concept refers to a single master node with multiple slave nodes. The
master controls the total data transfer of the bus: Before each data packet the
master sends a header with the identifier of the next data packet. Then, only
this bus node will react (which can also be the master node itself), which man-
ages a message box with the given identifier. Thus, this node will send a data
packet to or receive a data packet from the LIN bus.
Hardware design
The connections of the LIN bus interfaces are on the 9-pin D-SUB
connectors; the pin assignments are shown below.
The operating voltage range of
+Bat
is 8V…18V.
For each interface there is a programmable LED.
Fig. 152 – Pro II-LIN-2 Rev. E: Pin assignments (male)
Working with LIN bus
The 2 LIN interfaces of the module can be independently configured as LIN
master or LIN slave with
P2_LIN_Init_Write
; this also true for the setting
of the baudrate. The bus termination will be switched automatically according
to the configuration.
The network master timing (NMT) is to be programmed in
ADbasic
.
While configuring a message box with
P2_LIN_Msg_Write
you set the iden-
tifier and the sending mode (send, receive) of the message box. Any number
of message boxes can be assigned to a LIN interface, but each identifier may
be used only once for sending and once for receiving on the LIN bus; otherwise
data collisions will occur.
After configuring, a message box will at once be active on the LIN bus, i.e. data
packets can be sent or received.
If a LIN interface is configured as master, you use
P2_LIN_Msg_Transmit
to send a header and the identifier of a message box to the LIN bus. The mes-
sage boxes configured with this identifier will react automatically.
LIN - 2
SERIAL PORT
1
2
1
2
LIN Ch 1
GND
RESERVED
RESERVED
+BAT. Ch 1
RESERVED
GND
RESERVED
RESERVED
6
7
8
9
1
2
3
4
5
LIN Ch 2
GND
RESERVED
RESERVED
+BAT. Ch 2
RESERVED
GND
RESERVED
RESERVED
6
7
8
9
1
2
3
4
5