Basic Micro Studio Syntax Manual
Basic Micro Studio Syntax Manual
Basic Micro Studio Syntax Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
LCDREAD<br />
<strong>Syntax</strong><br />
lcdread RS\ E\ D7\ D6\ D5\ D4 {,RW}, {cgram+} address,<br />
[{modifi ers} expression1, ..., {modifi ers} expressionN]<br />
Commands<br />
• RS - is any expression, constant or variable that specifi es the I/O pin connected to the LCD’s<br />
R/S pin.<br />
• E - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
enable pin.<br />
• D7 - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
data bit 7 pin.<br />
• D6 - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
data bit 6 pin.<br />
• D5 - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
data bit 5 pin.<br />
• D4 - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
data bit 4 pin.<br />
• RW - is any expression, constant or variable that specifi es an I/O pin connected to the LCD’s<br />
read or write enable pin.<br />
• Cgram - LCDREAD defaults to reading screen ram. CGRAM is an optional argument which<br />
specifi es custom character ram (CGRAM). If CGRAM is used the LCDREAD command will return<br />
data stored in the CGRAM and not SCRRAM.<br />
• Address - specifi es what address to start the read at.<br />
• Modifi ers - are any output modifi ers as shown in the modifi ers section of this manual. They are<br />
used to format the out going data (Hex, Bin, Dec and so on).<br />
• Expression - is any expression, constant or variable that specifi es data to be displayed to the<br />
LCD screen.<br />
Supported<br />
• BA - Supported<br />
• BAN - Supported<br />
• BAP - Supported<br />
• BAP40 - Supported<br />
Description<br />
The LCD commands are setup to work with the Hitachi HD44780 controller. This is probably one<br />
of the most common text LCDs available. 1x16 all the way up to 4x40 size screens are supported.<br />
Before using the LCDREAD command see LCDINIT command.<br />
143