I am struggling with the TLE493D-W2B6 sensor. I am using the defined library for the sensor. My speed rate is really slow because I need to use bit banging for this application.
My steps are the following:
1. reseting the chip
3. trying to read data
The problem is that the device id is accepted during the write operation but not during the read operation and I don't understand it yet.
Has anyone any clever idea which causes this effect?
Thank you and greetings!
Hi @dkroh ,
The first cause of such read error is, not setting the odd parity bit FP (in Mod1 reg) and CP(in Config Reg).
Please go through the User Manual(Page 12 &13) for checking whether the parity bits are set properly.
Next, Your PR(in Mod1 Reg) bit is set 0. Thus, your sensor is in 2byte read mode and follows the following frame format for reading in 2-byte mode.
Yes you are right with the PR bit but this configuration shouldn't affect the sensor address ACK bit because it is in both modes active...
Is it possible to read the DIAG register back after the startup or the reset sequence without configuring the IC before? Or can this register also be read only after correct configuration?
Just for my understanding:
The CP or FP bits are calculated by adding all bits of the defined register areas together. Is that correct?
For example for FP the register bits of register 11 [7:5 -> 000] and register 13 [7:5 -> 000, by default] have to be checked together and result in FP = 1.
Hi @dkroh ,
For clarification FP bit calculation is done by including all the bits within green boundary that is, all 8 bits of Reg 11H and 7:5 bits of Reg 13H,
Similarly, the CP bit is calculated using the bits within the brown field.
Generally, the NACK at read command is due to incorrect setting of these bits. Please confirm that these bits are correct or, you could send me the mentioned register values and I could verify that.
Additionally, it is possible to read the sensor without configuration, but the register fields may not be correct.