Vraag over Bascom 8051

Hallo,

Is het mogelijk om bij het programmeren en dus de simulatie van het LCD, het LCD te sturen met

10 lijnen (Data 0-7; Enable en RS) ipv. 6 (Data 0-3; Enable en RS) die in de stellen zijn met de opties? In de help vind ik niets voor de sturing van een LCD met 8 databits.Ik weet natuurlijk wel dat het met 8 databits te programmeren is, maar dan werkt de simulatie niet. Ik gebruik versie 2.0.9.0

met dank

Reply to
Christophe Vanhouteghem
Loading thread data ...

Volgens mij niet. Maar waarom zou je 8 databits gebruiken als het ook met 4 kan?

Hans.

"Christophe Vanhouteghem" schreef in bericht news:409cf891$0$41756$ snipped-for-privacy@dreader2.news.tiscali.nl...

Reply to
Hans

Tuurlijk kan dat :-))

Action Instruct the compiler to generate code for 8-bit LCD displays attached to the data bus.

Syntax $LCD = [&H]address

Remarks

address The address where must be written to, to enable the LCD display. The db0-db7 lines of the LCD must be connected to the datalines D0-D7. The RS line of the LCD must be connected to the address line A0.

On systems with external RAM/ROM it makes more sense to attach the LCD to the data bus. With an address decoder you can select the LCD display.

Oftewel lees je help file...

Success ermee,

4Stroke
Reply to
4Stroke

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.