Data Sheet
127
Rev. 1.00
2017-07-31
TLE9262BQXV33
Serial Peripheral Interface
16.3
SPI Programming
For the TLE9262BQXV33, 7 bits are used or the address selection (BIT6...0). Bit 7 is used to decide between
Read Only and Read & Clear for the status bits, and between Write and Read Only for configuration bits. For
the actual configuration and status information, 8 data bits (BIT15...8) are used.
Writing, clearing and reading is done byte wise. The SPI status bits are not cleared automatically and must be
cleared by the microcontroller, e.g. if the TSD2 was set due to overtemperature. The configuration bits will be
partially automatically cleared by the SBC - please refer to the individual registers description for detailed
information. During SBC Restart Mode the SPI communication is ignored by the SBC, i.e. it is not interpreted.
There are two types of SPI registers:
• Control registers: Those are the registers to configure the SBC, e.g. SBC mode, watchdog trigger, etc
• Status registers: Those are the registers where the status of the SBC is signalled, e.g. wake events,
warnings, failures, etc.
For the status registers, the requested information is given in the same SPI command in DO.
For the control registers, also the status of the respective byte is shown in the same SPI command. However,
if the setting is changed this is only shown with the next SPI command (it is only valid after CSN high) of the
same register.
The SBC status information from the SPI status registers, is transmitted in a compressed way with each SPI
response on SDO in the so called Status Information Field register (see also
Figure 55
). The purpose of this
register is to quickly signal the information to the microcontroller if there was a change in one of the SPI status
registers. In this way, the microcontroller does not need to read constantly all the SPI status registers but only
those registers, which were changed.
Each bit in the Status Information Field represents a SPI status register (see
Table 29
). As soon as one bit is set
in one of the status registers, then the respective bit in the Status Information Field register will be set. The
register
WK_LVL_STAT
is not included in the status Information field. This is listed in
Table 29
.
For Example if bit 0 in the Status Information Field is set to 1, one or more bits of the register 100 0001
(
SUP_STAT_1
) is set to 1. Then this register needs to be read in a second SPI command. The bit in the Status
Information Field will be set to 0 when all bits in the register 100 0001 are set back to 0.
Table 29 Status Information Field
Bit in Status
Information Field
Corresponding
Address Bit
Status Register Description
0
100 0001
SUP_STAT_1: Supply Status -VSHS fail, VCCx fail, POR
1
100 0010
THERM_STAT: Thermal Protection Status
2
100 0011
DEV_STAT: Device Status - Mode before Wake, WD Fail,
SPI Fail, Failure
3
100 0100
BUS_STAT: Bus Failure Status: CAN, LINx;
4
100 0110
WK_STAT_1, WK_STAT_2: Wake Source Status;
Status bit is set as combinational OR of both registers
5
100 0000
SUP_STAT_2: VCC1_WARN/OV, VCC3 Status
6
101 0100
HS_OC_OT_STAT: High-Side Over Load Status
7
101 0101
HS_OL_STAT: High-Side Open Load Status