Hi all,
currently I'm trying to connect a Electronic Assembly EA DOGM162 LCD Display (ST7036 Controller) to an ATmega8L with 8-Bit by using BASCOM-AVR 2.0.7.7 but I fail ...... Maybe I'm to stupid ;-)
I also tried to find a related Topic in this Forum but I couldn't find the Information I Need and some code snippets are really not clear to me.
Using the 4-Bit Interface with the following init sequence the Display is working fine:
[code:1:2c2991a142]
' LCD-Display
Db4_pin Alias PortD.0
Db5_pin Alias PortD.1
Db6_pin Alias PortD.2
Db7_pin Alias PortD.3
E_pin Alias Portc.2
Rs_pin Alias Portc.3
Config Lcdpin = Pin , Db4 = Db4_pin , Db5 = Db5_pin , Db6 = Db6_pin , Db7 = Db7_pin , E = E_pin , Rs = Rs_pin
Config Lcd = 16 * 2 , Chipset = Dogm162v5
Config Lcdbus = 4
Initlcd
Waitms 100
Cursor Off Noblink
Cls[/code:1:2c2991a142]
But when I trie to use 8-Bit data Interface like ....
[code:1:2c2991a142]
$lcd = &HC000
$lcdrs = &H8000
Config Lcdbus = 8
Config Lcd = 16 * 2
or
Config Lcdpin = Pin , port=PORTD , E = E_pin , Rs = Rs_pin
Config Lcd = 16 * 2 , Chipset = Dogm162v5
Config Lcdbus = 8
[/code:1:2c2991a142]
.... it doesn't work. It is not clear for me where the values &HC000 and &H8000 from the example in the tutorial came from and how I can adjust them to my ATmega8. It's also not clear for me how to bring the Display working.
I spent many hours to search in the Internet but all examples I found are based on 4-Bit Interface. Because of Speed and space I want to use the 8-Bit Interface for my Project.
Please can you help me?
Regards from Germany,
Markus
[b:2c2991a142][color=red:2c2991a142](BASCOM-AVR version : 2.0.7.7 )[/b:2c2991a142][/color:2c2991a142]
↧