Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20784

BASCOM-AVR : XMEGA and 40*4 LCD : REPLY

$
0
0
I couldn't make the $lib "lcd4E2.lbx" work... So I did all BASIC lines, like this. But third and forth lines are not initializing. and third line is over-writing the first line. $regfile = "xm256d3def.dat" $crystal = 2000000 $hwstack = 64 $swstack = 40 $framesize = 40 Config Osc = Enabled Config Sysclock = 2mhz , Prescalea = 1 , Prescalebc = 1_1 ' use 32 MHz $lib "xmega.lib" $external _xmegafix_clear $external _xmegafix_rol_r1014 dim ___LCDNO as byte Config Lcd = 40*4 Config Lcdpin = Pin , Rs = Portb.0 , E = Portb.2 , E2 = PortB.3 , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 Cls locate 1,1 Lcd " DEVIDAS BHONDE." locate 2,7 Lcd " INTEGRATED MARKING MACHINE." locate 3,1 lcd "-----------" ' This third line is overwriting the first line. config portd=output loop1: reset portd.7 ' blinky LED waitms 100 set PORTD.7 waitms 100 goto loop1 '-------------------------------------------------------------- Please help, Regards, Devidas

Viewing all articles
Browse latest Browse all 20784

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>