That's really incredible what you can find with dedicated examples from the hardware brand ...
Code:
/*
* Project name:
Lcd8_Test (Demonstration of the Lcd8 Library routines)
* Copyright:
(c) Mikroelektronika, 2008.
* Revision History:
20081218:
- initial release;
* Description:
This code demonstrates how to use Lcd 8-bit library. Lcd is first
initialized, then some text is written, then the text is moved.
* Test configuration:
MCU: P18F8520
Dev.Board: BIGPIC5
Oscillator: HS, 10.0 MHz
Ext. Modules: Lcd 2x16 module
SW: mikroC PRO for PIC
* NOTES:
- None.
*/
// Lcd8 module connections
sbit LCD8_RS at RJ2_bit;
sbit LCD8_RW at RJ3_bit;
sbit LCD8_EN at RJ4_bit;
sbit LCD8_D7 at RD7_bit;
sbit LCD8_D6 at RD6_bit;
sbit LCD8_D5 at RD5_bit;
sbit LCD8_D4 at RD4_bit;
sbit LCD8_D3 at RD3_bit;
sbit LCD8_D2 at RD2_bit;
sbit LCD8_D1 at RD1_bit;
sbit LCD8_D0 at RD0_bit;
sbit LCD8_RS_Direction at TRISJ2_bit;
sbit LCD8_RW_Direction at TRISJ3_bit;
sbit LCD8_EN_Direction at TRISJ4_bit;
sbit LCD8_D7_Direction at TRISD7_bit;
sbit LCD8_D6_Direction at TRISD6_bit;
sbit LCD8_D5_Direction at TRISD5_bit;
sbit LCD8_D4_Direction at TRISD4_bit;
sbit LCD8_D3_Direction at TRISD3_bit;
sbit LCD8_D2_Direction at TRISD2_bit;
sbit LCD8_D1_Direction at TRISD1_bit;
sbit LCD8_D0_Direction at TRISD0_bit;
// End Lcd8 module connections
Don't you think ???
Alain
No miracle, eh, my friend JAVEHE ...
Bookmarks