Hello. I have a TID display of Opel cars. The display has sda, scl, mqr connection (i2c). I want the microcontroller using Attiny25 display the text. To this end, I have written the code in Bascom. The code works, but it has a problem. When I turn Tid, the text appears after 3-5 minutes and disappears after 5 seconds. We have to wait another 10 minutes to the text appeared. I can not understand where the error in the code. Help me please. For information on the data protocol can be found on these sites:
Link1 and Link2
my code:
Thanks))
Link1 and Link2
my code:
$regfile = "attiny25.dat"
$crystal = 8000000
Config Pinb.1 = Output ' MRQ
Config Sda = Portb.0 'SDA
Config Scl = Portb.2 'SCL
Config I2cdelay = 48
Mrq Alias Portb.1
Do
Mrq = 1
Mrq = 0
Waitus 50
Mrq = 1
I2cstart
I2cwbyte &H9B 'address
Mrq = 0
I2cwbyte &H10 'symbol
I2cwbyte &H01 'symbol
I2cwbyte &H01 'symbol
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
I2cwbyte &H85 'letter B
Mrq = 1
I2cstop
Mrq = 0
Loop
Return
Thanks))