logo elektroda
logo elektroda
X
logo elektroda

Opel TID Display I2C Connection, Attiny25 Microcontroller, BASCOM Code Issue: Text Disappearing

Octaver 7629 2
ADVERTISEMENT
  • #1 16285083
    Octaver
    Level 2  
    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:
    $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))
  • ADVERTISEMENT
  • #2 16328440
    Octaver
    Level 2  
    Maybe I need to add the lines "i2crbyte"?
  • #3 16544337
    harden48
    Level 2  
    Thanks for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your further posts. Thank you once again. Nice article and pleasant arguments commented here, I am genuinely enjoying these.
ADVERTISEMENT