Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example of I2C communication with 24c02 EEPROM
5.2.9 LCD Library
BASIC provides a set of library procedures and functions for communicating with commonly used 4-bit interface LCD (with
Hitachi HD44780 controller). Be sure to designate port with LCD as output, before using any of the following library procedures
or functions.
5.2.9.1 LCD_Init – Initializes LCD with default pin settings
Prototype sub procedure LCD_Init(dim byref Port as byte)
Description Initializes LCD at <Port> with default pin settings (see the figure below).
Example
LCD_Init(PORTB)
' Initializes LCD on PORTB (check pin settings in the figure below)
5.2.9.2 LCD_Config – Initializes LCD with custom pin settings
Prototype
sub procedure LCD_Config(dim byref Port as byte, const RS, const EN, const
WR, const D7, const D6, const D5, const D4)
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (59 sur 112)05/11/2004 02:20:52