Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure LCD8_Init(dim byref Port_Ctrl as byte, dim byref Port_Data
as byte)
Description Initializes LCD at <Port_Ctrl> and <Port_Data> with default pin settings (see the figure below).
Example
LCD8_Init(PORTB, PORTC)
' Initializes LCD on PORTB and PORTC with default pin settings
' (check pin settings in the figure below)
5.2.10.2 LCD8_Config – Initializes LCD with custom pin settings
Prototype
sub procedure LCD8_Config(dim byref Port_Ctrl as byte, dim byref Port_Data
as byte, const RS, const EN, const WR, const D7, const D6, const D5, const
D4, const D3, const D2, const D1, const D0)
Description Initializes LCD at <Port_Ctrl> and <Port_Data> with pin settings you specify: parameters <RS>, <EN>,
<WR> need to be in range 0..7; parameters <D7>..<D0> need to be a combination of values 0..7 (e.g.
3,6,5,0,7,2,1,4).
Example
LCD8_Config(PORTC, PORTD, 0, 1, 2, 6, 5, 4, 3, 7, 1, 2, 0)
' Initializes LCD on PORTC and PORTD with our custom pin settings
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (66 sur 112)05/11/2004 02:20:53