Data Sheet TLE 6240 GP
V3.1 Page 26.Aug 2002
10
Second access:
SI
SO
CS
SI command: Control Byte 2 programs the
operation mode of channels 9 to 16.
Data Byte 2 gives the input information (on
or off) for Channel 9 to 16.
SO diagnosis: Diagnosis information of
channel 1 to 8 or 9 to 16, depending on the
SI control word before.
Control Byte2 Data Byte2
16 bit Diagnosis
SI
SO
CS
Control Byte2 Data Byte2
DIAG_2 (Ch. 9 to 16)
SI command: Control Byte 2 programs the
operation mode of Channels 9 to 16.
Data Byte 2 gives the input information (on
or off) for Channel 9 to 16.
SO diagnosis: 16 bit diagnosis information
(two bit per channel) of channels 9 to 16
Detailed Description
As mentioned above, the serial input information consist of a control byte and a data byte. Via
the control byte, the specific mode of the device is programmable.
MSB LSB
CCCCCCCC DDDDDDDD
Control Byte Data Byte
"" !"" ""!""
: 16 bit serial input information
Ten specific control words are recognised, having the following functions:
No. SI Contol and Data Byte Function
1LLLL LLLL XXXX XXXX 'Full Diagnosis' (two bits per channel) performed for
channels 1 to 8. No change to output states.
2HHLL LLLL XXXX XXXX State of the eight parallel inputs and '1-bit Diagnosis'
for channel 1 to 8 is provided
3HLHL LLLL XXXX XXXX Echo-function of SPI; SI direct connected to SO
4LLHH LLLL DDDDDDDD IN1...4 and serial data bits 'OR'ed. 'Full Diagnosis' per-
formed for channels 1 to 8.
5HHHH LLLL DDDDDDDD IN1...4 and serial data bits 'AND'ed. 'Full Diagnosis'
performed for channels 1 to 8.
6LLLL HHHH XXXX XXXX 'Full Diagnosis' (two bits per channel) performed for
channels 9 to 16. No change to output states.
7HHLL HHHH XXXX XXXX State of the eight parallel inputs and '1-bit Diagnosis'
for channel 9 to 16 is provided.
8HLHL HHHH XXXX XXXX Echo-function of SPI; SI direct connected to SO
9LLHH HHHH DDDDDDDD IN9...12 and serial data bits 'OR'ed. 'Full Diagnosis'
performed for channels 9 to 16.
10 HHHH HHHH DDDDDDDD IN9...12 and serial data bits 'AND'ed. 'Full Diagnosis'
performed for channels 9 to 16.
Note: Control Byte: Channel Selection via Bit 0 to 3
Bits 0 to 3 = L Channels 1 to 8 selected
Bits 0 to 3 = H Channels 9 to 16 selected
Data byte: 'X' means 'don't care', because this data bits will be ignored
'D' represents the data bits, either being H (= ON) or L (= OFF)