Magnetic valuesConfigurationDiagnosis
Temperature valuesConfi guration busRes erved bitsParity bits and related registers (colour)
TLI493D-A2B6
I2C Registers
1I
2
C Registers
The TLI493D-A2B6 includes several registers that can be accessed via Inter-Integrated Circuit interface (I2C) to
read data as well as to write and configure settings.
1.1Registers overview
A bitmap overview is presented in Figure 1. Basically the following sections are available:
•measurement data (green bits in registers 00
•sensor status and diagnostics (grey bits in registers 05
•configuration parameters such as the power mode (orange bits in registers 10
H
r
r
r
till 05H)
H
, 06H, 10H and 11H)
H
H
H
H
H
, 11H and 13H)
H
H
rr
Diag (06H)P FFCF TPD3PD012
H
H
Figure 1 TLI493D-A2B6 Bitmap
The diagnostic register 06
and marks the relationship of the sections to this flags with different colored lines/frames around the bit
H
H
0B
H
H
Reserved
contains parity information as a diagnostic mechanism. The bitmap illustrates this
FRM
rwr
H
H
H
H
rw
rr
rwrw
Reserved
rw
contents.
User Manual3Ver. 1.11
2019-05-28
TLI493D-A2B6
I2C Registers
Table 1 Registers overview
Register nameRegister long nameAddress
Bx, By and BzMagnetic values MSBs00
TempTemperature value MSBs03
Bx2Magnetic values LSBs04
Temp2Temperature and magnetic LSBs and device address05
DiagSensor diagnostic and status register06
ConfigConfiguration register10
MOD1Power mode, interrupt, address, parity11
MOD2Low Power Mode update rate13
VerVersion register16
, 01H, 02
H
H
H
H
H
H
H
H
H
H
1.2Register descriptions
The I2C registers can be read or written at any time. It is recommended to read measurement data in a
synchronized fashion, i.e. after an interrupt pulse (/INT). This avoids reading inconsistent sensor or diagnostic
data, especially in fast mode. Additionally, several flags can be checked to ensure the register values are
consistent and the ADC was not running at the time of readout.
1.2.1Bit types
The TLI493D-A2B6 contains read bits, write bits and reserved bits.
Table 2 Bit Types
AbbreviationFunctionDescription
rReadRead-only bits
rwRead WriteReadable and writable bit
ReservedBits that must keep the default values (read prior to write required)
1.2.2Measurement data and registers combined in the I2C parity bit “P”
The I2C communication of the registers in this chapter is protected with the parity bit “P”, described in the Diag
register with the address 06
To make sure all data is consistent, the registers from 00
Otherwise, the sampled data (X, Y, Z, Temperature) may correspond to different conversion cycles.
. See also Figure 1 - parity bits and related registers.
H
to 06H should be read with the same I2C command.
H
User Manual4Ver. 1.11
2019-05-28
70
Bx, By and Bz (11...4)
70
Temp (11...4)
70
Bx (3...0)
By (3...0)
43
TLI493D-A2B6
I2C Registers
Magnetic values MSBs
Register namesAddressReset Value
Bx, By and Bz00
01H 02
H
FieldBitsTypeDescription
Bx, By and Bz7:0rBx, By and Bz values
Signed value as two’s complement from the HALL probes in the x, y and zdirection of the magnetic field. Contains the eight Most Significant Bits.
If Bz is deactivated the Bz value is the reset value.
H
80
H
Back to TLI493D-A2B6 Bitmap.
Temperature value MSBs
Register nameAddressReset Value
Temp03
H
80
FieldBitsTypeDescription
Temp7:0rTemperature value
Signed value as two’s complement.
If the temperature measurement is deactivated, the Temp value is the
reset value.
Back to TLI493D-A2B6 Bitmap.
H
Magnetic values LSBs
Register nameAddressReset Value
Bx204
User Manual5Ver. 1.11
H
00
2019-05-28
H
70
Bz (3...0)
43
Temp (3...2)
ID
65
TLI493D-A2B6
I2C Registers
FieldBitsTypeDescription
Bx7:4rBx value
Signed value as two’s complement from the HALL probes in the xdirection of the magnetic field.
Contains the four Least Significant Bits.
By3:0rBy value
Signed value as two’s complement from the HALL probes in the ydirection of the magnetic field.
Contains the four Least Significant Bits.
Back to TLI493D-A2B6 Bitmap.
Temperature and magnetic LSBs and device address
Register nameAddressReset Value
Temp205
H
00
FieldBitsTypeDescription
Temp7:6rTemperature value
Signed value as two’s complement.
If the temperature measurement is deactivated, the Temp value is the
reset value.
ID5:4rID
Readback of the sensor ID, from IICadr. µC shall verify the address sent by
the sensor. See Table 4.
Bz3:0rBz value
Signed value as two’s complement from the HALL probes in the zdirection of the magnetic field.
Contains the four Least Significant Bits.
If Bz is deactivated the Bz value is 0
.
H
H
Back to TLI493D-A2B6 Bitmap.
User Manual6Ver. 1.11
2019-05-28
70
CP
6
5
4
3
21
TL_magX2AMDTTRIG
TLI493D-A2B6
I2C Registers
1.2.3Configuration registers combined in the I2C parity flag “CF”
The I2C communication of the registers in this chapter is protected by the parity bit CF, which is described in
the Diag register with the address 06
Configuration register
Register nameAddressReset Value
Config10
. See also Figure 1 - parity bits and related registers.
H
H
00
H
FieldBitsTypeDescription
DT7rwDisable Temperature
temperature measurement is enabled.
If 0
B
If 1
temperature measurement is disabled. This means the Bx, By and Bz
B
channels are measured. The Temp channel is disabled and contains the
reset value until a new conversion with Temp is done.
AM6rwX/Y Angular Measurement
the Bz measurement is enabled.
If 0
B
If 1
and the DT bit = 1B the Bz measurement is disabled. This means the
B
Bx and By channel is measured. The channels Bz and Temp contain the
reset values until a new conversion with Bz and Temp is done.
Note: If the DT bit = 0
, the AM bit don’t care.
B
TRIG5:4rwTrigger options
If PR bit = 1
(1-byte read protocol), the TRIG bits define the trigger mode
B
of the device:
If 00
no ADC trigger on read.
B
If 01
ADC trigger on read before first MSB.
B
ADC trigger on read after register 05H.
If 1x
B
If PR bit = 0
these bits have no effect.
B
X23rwShort-range sensitivity
When this bit is set, the sensitivity of the Bx, By, and Bz ADC-conversion is
doubled by a longer ADC integration time. The Temp result will not
change, neither in sensitivity nor conversion time. See Table 3.
TL_mag2:1rwMagnetic temperature compensation
There are two bits for setting the sensitivity over temperature of the
sensor to compensate a magnet temperature coefficient.
If 00
→ TC0 (no compensation)
B
→ TC1
If 01
B
If 10
→ TC2
B
If 11
→ TC3
B
CP0rwConfiguration parity
The register 10
this parity is OK and the CF bit in the status register 06
User Manual7Ver. 1.11
is even parity protected with this bit. On startup or reset,
1.2.4Mode registers combined in the I2C parity flag “FF”
The I2C communication of the registers in this chapter is protected with the parity bit “FF”, described in the
Diag register with the address 06
. See also Figure 1 - parity bits and related registers.
H
Power mode, interrupt, address, parity
Register nameAddressReset Value
MOD111
H
00
FieldBitsTypeDescription
H
FP7rwFuse parity
The registers 11
and 13H (bit 7) are odd parity protected with this bit.
H
If this parity bit is incorrect please see FF bit.
To exit this state a sensor reset is necessary.
IICadr6:5rwI
2
C address
Bits can be set to 00
, 01B, 10B or 11B to define the slave address in bus
B
configuration.
See Table 4 and data sheet.
PR4rwI2C 1-byte or 2-byte read protocol
this is the 2-byte read protocol:
If 0
B
<start> <I2Cadr.> <reg.adr.> <data of reg.adr.> <data of reg.adr.+1> ….
<stop>
If 1
this is the 1-byte read protocol:
B
<start> <I2Cadr.> <data of reg.00
See Chapter 2.1.3
CA3rwCollision avoidance
Clock stretching only in master-controlled and low-power mode, not in
fast mode.
The CA bit interacts with the INT bit, see Table 5 and Chapter 2.2.
> <data of reg.01H> …. <stop>
H
User Manual8Ver. 1.11
2019-05-28
TLI493D-A2B6
I2C Registers
FieldBitsTypeDescription
INT2rwInterrupt enabled
/INT disabled
If 1
B
If 0
/INT enabled: After a completed measurement and ADC-conversion,
B
an /INT pulse will be generated.
For bus configurations /INT timing constraints between I
and interrupt pulses must be monitored and aligned.
The INT bit interacts with the CA bit, see Table 5.
MODE1:0rwPower mode
Low Power Mode:
If 00
B
Cyclic measurements and ADC-conversions with a update rate, defined in
the PRD registers. “No ADC trigger” must be used, see Table 6 and TRIG.
If 01
Master Controlled Mode (Power Down mode):
B
Measurement triggering depends on the PR bit and is possible with I
sub address byte (see Table 6) or TRIG bits.
If 10
is reserved and must not be used.
B
If 11
Fast Mode:
B
The measurements and ADC-conversions are running continuously. It is
recommended to set INT = 0
2
C data transfers
and use a I2C clock speed ≥ 800 kHz.
B
2
C
Back to TLI493D-A2B6 Bitmap.
Table 4 Device address overview
The addresses are selected to ensure a minimum Hamming distance of 4 between them.
In case the microcontroller tries to read sensor data the clock stretching pulls the SCL /INT line to low, as long
as the measurement and ADC-conversion is not finished.
CAINTConfiguration
0
0
B
/INT is enabled and will not be transmitted between <START> and <STOP>.
B
/INT collision avoidance active.
1
0
B
/INT disabled. Clock stretching enabled.
B
Suppress sensor read out during ongoing ADC conversion.
This configuration must not be used with the “read” trigger-bits (7:5) = 010
or with the trigger option TRIG bit = 01
1
0
B
/INT is enabled and will be transmitted between <START> and <STOP>.
B
/INT may collide with I
2
C clock from microcontroller.
.
B
or 011B (see Table 6)
B
1
1
B
/INT disabled. Clock stretching disabled.
B
Unsynchronized sensor readouts may collide with ADC conversion.
User Manual9Ver. 1.11
2019-05-28
Loading...
+ 18 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.