This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCA9539: TCA9539 often crash。 not stable?

Part Number: TCA9539


TCA9539 often crash....

I use two IO  to simulate i2c protocol to make TCA9539 output 1 and 0 interval 2 seconds in P0 and P1 with LED. 

P0---LED    1    0      1   0.....

P1---LED    0    1     0    1....

after 2 or 3 hours , the TCA9539 crash, not work.     ALL P0 and P1 are 0, LED extinguished.      I must reset it manually.

So, TCA9539 is unstable? or how can I prevent it crash?

  • Hey Wei,

    Can you provide a schematic and scope shots of the SDA/SCL?

    Thanks,

    -Bobby

  • while(1)
    {
           if( ucP0 == 0xffu )
          {
                ucP0 = 0x00u;
                T9539_WritePort(TCA9539_ADDRESS, T9539_REG_OUT_P0, 0x00u ); //dark
                T9539_WritePort(TCA9539_ADDRESS, T9539_REG_OUT_P1, 0xffu ); //light
          }
          else
         {
               ucP0 = 0xffu;
              T9539_WritePort(TCA9539_ADDRESS, T9539_REG_OUT_P0, 0xffu ); //ligh
              T9539_WritePort(TCA9539_ADDRESS, T9539_REG_OUT_P1, 0x00u ); //dark
         }

         delay_ms(2000); //delay 2 Seconds

    }

    very simple programe。P0 dark when P1 light---》delay 2 S  -》P0 light and P1 dark。。。

    run for about 3-4 hours。。  two leds dark, must reset chip。 and then P0 and P1 light/dark/cycle...

  • Hey Wei,

    Can you provide a scopeshot of the SDA/SCL lines. From your first post I am wondering if you are driving the high with a CMOS structure which could damage the device.

    From your schematic, it looks like you are driving the LED with our device's PFET. What is the series resistor and the Vfd of the diodes? The IoH recommended for this device is only 10mA. The total current in each octal must be limited to lower than 100mA, are you using the other port pins for anything? Are the other port pins inputs? If so, are they floating? This can also cause issues. Input pins should never be left floating.

    Thanks,
    -Bobby