SW006010 Microchip Technology, SW006010 Datasheet - Page 74

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVS^-page 70
C17 C Compiler Libraries
ReadAddrXLCD
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
ReadDataXLCD
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C4X, PIC17C756
Reads the address byte from the Hitachi HD44780 LCD
controller.
xlcd.h
unsigned char ReadAddrXLCD (void);
None
This function reads the address byte from the Hitachi HD44780
LCD controller. The user must first check to see if the LCD
controller is busy by calling the BusyXLCD() function.
The address read from the controller is for the character gener-
ator RAM or the display data RAM depending on the previous
Set??RamAddr() function that was called.
This function returns an 8-bit which is the 7-bit address in the
lower 7-bits of the byte and the BUSY status flag in the 8th bit.
Bit7
xlcd.c
char addr;
while ( BusyXLCD() );
addr = ReadAddrXLCD();
PIC17C4X, PIC17C756
Reads a data byte from the Hitachi HD44780 LCD controller.
xlcd.h
char ReadDataXLCD (void);
None
This function reads a data byte from the Hitachi HD44780 LCD
controller. The user must first check to see if the LCD controller
is busy by calling the BusyXLCD() function.
The data read from the controller is for the character generator
RAM or the display data RAM depending on the previous
Set??RamAddr() function that was called.
This function returns the 8-bit data value.
xlcd.c
char data;
while ( BusyXLCD() );
data = ReadAddrXLCD();
BF
A6
A5
A4
A3
A2
A1
Bit0
A0
 2002 Microchip Technology Inc.

Related parts for SW006010