StigOfTheDump
Senior Member
Hi, I bought this display about 3 years ago but have only just got around to trying it. In serial mode I cannot get past the "waiting for CR" message. In i2c mode I cannot get past the "i2c mode ready" message.
I have tried with serout
hserout
and i2c
I have asked on the Byvac forum, but they don't have any picaxe code. They did offer to send a new controller, but I think I just need to program it correctly.
Has anyone had any experience with this combination, and have any known good code to get me started? I am sure I am just getting the syntax wrong.
BV4613 http://www.byvac.co.uk/downloads/datasheets/BV4613%20DataSheet.pdf
Display http://www.ebay.co.uk/itm/192x64-LCD-Graphic-Display-Module-/110617585845?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c15268b5
I am currently using 20M2 on breadboard and have 4k7 pullups on the SDA and SCL lines
Thanks
I have tried with serout
Code:
Main:
Pause 500
Serout C.0, N2400, ("CR")
Pause 50
Serout C.0, N2400, (13)
Pause 50
Serout C.0, N2400, (#13)
Pause 50
Serout C.0, N2400, (0x0d)
Pause 50
Serout C.0, N2400, ($0d)
Pause 50
Serout C.0, N2400, (0x1b,0x0d)
Pause 50
Code:
Main:
Hsersetup B9600_4,%00
Hserout 0,(0x1b,0x0d)
Pause 100
Hserout 0,($0d)
Pause 100
Hserout 0,(13)
Pause 100
Hserout 0,(#13)
Pause 100
Hserout 0,("CR")
Pause 100
Code:
'Move the cursor position to line 4 column 27
Main:
Hi2csetup i2cmaster,0x64,i2cslow,i2cbyte
#rem
Hi2cout 0,(0)
Hi2cout 0,(0x64)
Hi2cout 0,(0x27)
Hi2cout 0,(0x91)
Hi2cout 0,(0x34)
Hi2cout 0,(0x59)
Hi2cout 0,(0x32)
Hi2cout 0,(0x37)
Hi2cout 0,(0x72)
Hi2cout 0,(0)
#endrem
Hi2cout 0,(0x1b)
Hi2cout 0,(0x64)
Hi2cout 0,("27")
Hi2cout 0,("91")
Hi2cout 0,("34")
Hi2cout 0,("59")
Hi2cout 0,("32")
Hi2cout 0,("37")
Hi2cout 0,("72")
Hi2cout 0,(0x1b)
'SAMPLE CODE FROM DATASHEET
#rem
void i2c_pos()
{
i2c_start(); // send start condition
i2c_send(0x64); // send i2c address with
write set
i2c_send(27); // esc
i2c_send(91); // [
i2c_send(34); // 4
i2c_send(59); // ;
i2c_send(32); // 2
i2c_send(37); // 7
i2c_send(72); // H
i2c_stop(); // stop condition
#endrem
Has anyone had any experience with this combination, and have any known good code to get me started? I am sure I am just getting the syntax wrong.
BV4613 http://www.byvac.co.uk/downloads/datasheets/BV4613%20DataSheet.pdf
Display http://www.ebay.co.uk/itm/192x64-LCD-Graphic-Display-Module-/110617585845?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c15268b5
I am currently using 20M2 on breadboard and have 4k7 pullups on the SDA and SCL lines
Thanks
Last edited: