While communicating my TLC59108F IC with STM32 development board,TLC59108F is continuously sending NACK. If the device address is configured as 0x80.Circuit Image is attached below.
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.
While communicating my TLC59108F IC with STM32 development board,TLC59108F is continuously sending NACK. If the device address is configured as 0x80.Circuit Image is attached below.
Hi Rushali,
The device address is decided by your external connection of address pin. According to your schematic, I am not sure why these address pins will connect between 2 resistors. Please pull these address pin either high or low.
Btw, according to the datasheet, if A0, A1, A2, A3 are all pulled low. The device address should be 0x40, not 0x80.
BR, Jared
Dear Jared Zhou ,
The above resistors(R23,R24,R25,R26) are not connected which makes address pins A0,A1,A2,A3 to pull low.But i didnt understand how can slave address be 0x40 if my address bits are as below:-
Slave Address A3 A2 A1 A0 R/W
100 0 0 0 0 0
Dear Rushali,
You only need to look at the first 7 bits instead of 8 bits for the I2C device address. Because the last bit of I2C slave address is for Write/Read bit.
So the correct device address will be 100 0000 --> 0x40.
BR, Jared
Dear Jared Zhou,
Thanks a lot for your help. But the board Worked when i configured slave address as 0x80 with following command from stm32.
(HAL_I2C_Master_Transmit(&hi2c1, 0x80, buffer, 2, HAL_MAX_DELAY).
LED was not glowing as i forgot to configure Mode0 register before configuring LEDOUT0 register.
It worked after doing so.
Thanks a lot for your kind support.
Hi Rushali,
Our expert is out of office celebrating the Chinese new year, he will reply to your questions when coming back. Thanks for your patience.
BR
Patrick
Hi Patrick,
Thanks for your reply.
Hi Rushali,
Hope you are doing well!
I think it might be the format in STM32 is different from my side. But I am glad to hear it worked now.
BR, Jared