User manual

352
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Glcd_Read_Data
Glcd_Write_Data
Prototype
function Glcd_Read_Data() : byte;
Description Reads data from from the current location of Glcd memory and moves to the next location.
Parameters None.
Returns One byte from Glcd memory, formatted as a word (16-bit).
Requires Glcd needs to be initialized, see Glcd_Init routine.
Glcd side, x-axis position and page should be set rst. See functions Glcd_Set_Side, Glcd_Set_X,
and Glcd_Set_Page.
Example
var data_ : byte;
...
Glcd_Read_Data();
data_ := Glcd_Read_Data();
Notes This routine needs to be called twice; After the rst call, data is placed in the buffer register. After the
second call, data is passed from the buffer register to data lines.
Prototype
procedure Glcd_Write_Data(data_: byte);
Returns Nothing.
Description Writes one byte to the current location in Glcd memory and moves to the next location.
Parameters:
- data_: data to be written
Requires Glcd needs to be initialized, see Glcd_Init routine.
Glcd side, x-axis position and page should be set rst. See functions Glcd_Set_Side, Glcd_Set_X,
and Glcd_Set_Page.
Example
var data_ : byte;
...
Glcd_Write_Data(data_);