TM1637 driver for STM8

Thread Starter

Saigo

Joined Apr 8, 2022
2
Hello,
I am trying to write a driver for 7 segment display with integrated TM1637.
So far i thought i replicated frame required by TM1637 as specified in datasheet (https://www.datasheetq.com/datasheet-download/853530/1/ETC/TM1637) "Write SRAM data in address auto increment 1 mode".

The problem is that the display won't light up.
I am using STM8(3v3) open drain pins directly on CLK and DIO as Scope shows 5V so it looks like they are pulled up on board. Tested 5V and 3v3 with display module (HW-069).

I attach a scope and logic analyzer output. Maybe someone who knows this IC already could tell me if i am doing something wrong.
The scope output is with 4 bytes of data but i tested with 6 (as on logic analyzer output) as well. Tried different data values as well. And since in "Write SRAM data in address auto increment 1 mode" example they didn't write that "stop" command is needed, but the example picture suggests otherwise, i tested with it and without.

I am open for any suggestions.

Thank You in advance.
 

Attachments

Thread Starter

Saigo

Joined Apr 8, 2022
2
I managed to solve this. There was a need for minor adjustments for ACK and it turns out that this IC require read from lowest bit to highest.
 
Top