Problems with LCD in pic 18f8520


Results 1 to 14 of 14

Threaded View

  1. #10
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Problems with LCD in pic 18f8520

    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 ...
    Last edited by Acetronics2; - 16th January 2012 at 20:00.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts