Announcements

Measure CO2 When It Matters - Infineon’s XENSIV™ PAS CO2 now comes in SparkFun Red. Check it now!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Michael_K
Level 3
Level 3
25 replies posted 10 likes given 50 sign-ins

Hello everybody,

Hardware: PSoC 4 Pioneer Kit 042

2x TLE493D 3D Hallsensors 


The problem is that after I flash or reset the board, the sensors are sometimes (almost every second reset) not initialized correctly.
After the reset I get a normal communication or only the first sensor is initialized and the second one gets stuck and there are only interrupts on the SDC line.

Although I only have a delay of 150 µs between the initialization of the first and second sensor in my source code, I measure a delay after the reset of the board of 60 ms as shown in the picture.

Michael_K_0-1637853881726.png

The reset() function resets both sensors by sending 0xFF twice and 0x00 twice with a delay of 30 µs to the I2C bus as described in the User Manual.

After that I initialize the sensor one with the address 0x22 and then the Vcc of the second sensor power up and init the second sensor with the address 0x35

 

// ---------------------------------------------------------
    /*********************************************************
    * Configuration and initialization of the TLE493D sensor
    ********************************************************/
    reset();
        // Power Off / Power On the TLE493D
    VDD_sensor_Write(0);
        
    TLE493D_Init(TLE493D_AW2B6_I2C_A1_ADDR);
    VDD_sensor_Write(1);
    CyDelayUs(150); // Small Delay
    TLE493D_Init(TLE493D_AW2B6_I2C_A0_ADDR);
    UART_PutString(" Beginne mit der Kalibrierung  ");
    UART_PutCRLF();
    CyDelay(100);

 

 

Why does this error happen and where does the 60 ms delay come from?

 

 Best Regards

Michael 

0 Likes
10 Replies