
Data Sheet TLE 6220 GP
V1.1
Page
26.Aug. 2002
8
Serial Control of the Outputs: SPI protocol
Each output is independently controlled by an output latch and a common reset line, which
disables all four outputs. The Serial Input (SI) is read on the falling edge of the serial clock. A
logic high input 'data bit' turns the respective output channel ON, a logic low 'data bit' turns it
OFF.
CS
must be low whilst shifting all the serial data into the device. A low-to-high transition
of
CS
transfers the serial data input bits to the output control buffer.
As mentioned above, the serial input byte consists of a 4 bit control word and a 4 bit data
word. Via the control word, the specific mode of the device is programmable.
MSB
LSB
Bits
Data
Bits
Control
DDDD
CCCC
: Serial input byte
Five specific control words are recognised, having the following functions:
No.
1
2
3
4
5
Serial Input Byte
LLLL XXXX
HHLL XXXX
HLHL XXXX
LLHH DDDD
HHHH DDDD
Function
Only 'Full Diagnosis' performed. No change to output states.
State of four parallel inputs and '1-bit Diagnosis' outputted.
Echo-function of SPI; SI direct connected to SO
IN1...4 and serial data bits 'OR'ed. 'Full Diagnosis' performed.
IN1...4 and serial data bits 'AND'ed. 'Full Diagnosis' performed.
Note: 'X' means 'don't care', because this bit will be ignored
'D' represents the data bit, either being H (=ON) or L (=OFF)
1.
LLLL XXXX
-
By clocking in this control byte, it is possible to get pure diagnostic information (two bits per
channel) in accordance with Figure 1 (page 11). The data bits are ignored, so that the state of
the outputs are not influenced. This command is only active once unless the next control
command is again "Diagnosis only".
Diagnosis only
2.
HHLL XXXX
- Reading back of input, and ‘1-bit Diagnosis’
If the TLE 6220 GP is used as bare die in a hybrid application, it is necessary to know if proper
connections exist between the μC-port and parallel inputs. By entering ‘HHLL’ as the control
word, the first four bits of the SO give the state of the parallel inputs, depending on the μC
signals. By comparing the four IN-bits with the corresponding μC-port signal, the necessary
connection between the μC and the TLE 6220 can be verified - i.e. ‘read back of the inputs’.
The second 4-bit word fed out at the serial output contains ‘1-bit’ fault information of the out-
puts ( H = no fault, L = fault ). In the expression given below for the output byte, ‘FX’ is the
fault bit for channel X.
MSB
IN4 IN3 IN2 IN1 F4 F3 F2 F1 : Serial Output byte
LSB