SW006010 Microchip Technology, SW006010 Datasheet - Page 76

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 72
C17 C Compiler Libraries
WriteCmdXLCD (Continued)
Remarks:
Return Value:
File Name:
Code Example:
WriteDataXLCD
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C4X, PIC17C756
Writes a data byte (one character) from the Hitachi HD44780
LCD controller.
xlcd.h
void WriteDataXLCD (static char data);
data
The value of data can be any 8-bit value, but should correspond
to the character RAM table of the HD44780 LCD controller.
This function writes a data byte to 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 operates identically to putcXLCD.
None
xlcd.c
char data;
data = ReadUSART1();
WriteDataXLCD(data);
Display ON/OFF control defines
DON
DOFF
CURSOR_ON
CURSOR_OFF Cursor off
BLINK_ON
BLINK_OFF
Cursor or Display shift defines
SHIFT_CUR_LEFT
SHIFT_CUR_RIGHT Cursor shifts to the right
SHIFT_DISP_LEFT
SHIFT_DISP_RIGHT Display shifts to the right
The above defines can not be mixed. The only commands that
can be issued are function set, display control and cursor/
display shift control.
This function writes the command byte to the Hitachi HD44780
LCD controller. The user must first check to see if the LCD
controller is busy by calling the BusyXLCD() function.
None
xlcd.c
while ( BusyXLCD() );
WriteCmdXLCD(
WriteCmdXLCD(DON);
WriteCmdXLCD(SHIFT_DISP_LEFT);
EIGHT_BIT&LINES_5X7
Display on
Display off
Cursor on
Blinking cursor on
Blinking cursor off
Cursor shifts to the left
Display shifts to the left
 2002 Microchip Technology Inc.
);

Related parts for SW006010