bascom LCD init

pyxys1 pyxys1 at westel900.net
Sun Mar 7 14:12:09 CET 2004


Szia,

2004. március 7., 13:46:01, írtad:


hf> En ezt a reszletet hasznalom attol fuggoen commentezve, 
hf> hogy hw vagy sw az lcd idozites.

hf> A hw EN eseten joval gyorsabb egyebkent.....

hf> KJ

hf> '------------------------------------------------------------------------------'
hf> 'LCD init start (LCD on PORTC)
hf> '------------------------------------------------------------------------------'

hf> 'When LCD used hw EN mode
hf> '$lib "lcd4busy.lib"
hf> 'Const _lcdport = Portc
hf> 'Const _lcdddr = Ddrc
hf> 'Const _lcdin = Pinc
hf> 'Const _lcd_e = 3
hf> 'Const _lcd_rw = 2
hf> 'Const _lcd_rs = 1

hf> 'When LCD used sw wait mode (must be setting by sw/hw RW=0 )
hf> Config Portc = Output
hf> cbi portc,2
hf> Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.1

hf> Config Lcd = 20 * 4

hf> '------------------------------------------------------------------------------'
hf> 'LCD init end
hf> '------------------------------------------------------------------------------'


ja, tényleg, az RW lábat gnd-re, vagy portra és L-re.
bocs elfelejtettem.

--
"Aki másnak vermet ás, .. nem magának ássa!"
(c) Besenyő Pista bácsi.
--
Üdvözlettel,
 pyxys1                            mailto:pyxys1 at westel900.net




More information about the Elektro mailing list