Data Sheet TLE 6220 GP
V2.2 Page 2009-11-18
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.
must be low whilst shifting all the serial data into the device. A low-to-high transition
of
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
321321Bits DataBits Control
DDDDCCCC : Serial input byte
Five specific control words are recognised, having the following functions:
No. Serial Input Byte Function
1 LLLL XXXX Only 'Full Diagnosis' performed. No change to output states.
2 HHLL XXXX State of four parallel inputs and '1-bit Diagnosis' outputted.
3 HLHL XXXX Echo-function of SPI; SI direct connected to SO
4 LLHH DDDD IN1...4 and serial data bits 'OR'ed. 'Full Diagnosis' performed.
5 HHHH DDDD
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 - Diagnosis only
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 com-
mand is again "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 neces-
sary connection between the µC and the TLE 6220 can be verified - i.e. ‘read back of the in-
puts’.
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 LSB
IN4 IN3 IN2 IN1 F4 F3 F2 F1 : Serial Output byte
http://store.iiic.cc/