+ Reply to Thread
Results 1 to 4 of 4

Thread: Lcd using 16f684 lower bits

  1. #1

    Default Lcd using 16f684 lower bits

    Hope someone can help...

    I'm trying to get a 2x16 LCD diplsy running on 16F684

    Pin Connections are as follows
    RA0 = LCD-D4
    RA1 = LCD-D5
    RA2 = LCD-D6
    RA3 = LCD-D7
    RA4 = LCD-EN
    RA5 = LCD-RS

    The basic test program is shown below and I'm using Proteus to simulate the program...

    All i get from proteus is constant errors.....

    [HD44780] Controller received data while busy..

    Can anyone help ??????


    Device 16F684' ' use a 16F676 for this experimemt
    XTAL = 4 ' ' Choose a crystal frequency of 4MHz
    ALL_DIGITAL true

    Declare LCD_TYPE 0 '
    Declare LCD_INTERFACE 4 ' LCD INTERFACE 4 Bit
    Declare LCD_LINES = 2 ' 2 LINE LCD
    Declare LCD_ENPIN PORTA.4 ' LCD ENABLE PIN = PORTA.4
    Declare LCD_RSPIN PORTA.5 ' LCD RS PIN = PORTA.5
    Declare LCD_DTPIN PORTA.4

    display_me:
    Print $FE, 128
    ' Clear screen
    Print "hello world"
    DelayMS 10000
    GoTo display_me


    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User pic-ignorant's Avatar
    Join Date
    Oct 2007
    Location
    Sunny Kent
    Posts
    2,125


    Default Re: Lcd using 16f684 lower bits

    One thing.. you have declared LCD_DT as PORTA.4. It Should be PORTA.0

  4. #3


    Default Re: Lcd using 16f684 lower bits

    Thanks pic-ignorant.
    That didn't cure it but i noticed RA3 was not show as ouput and is an input. Transfered PCD data pins to RC0-RC3 and all working

  5. #4
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Lcd using 16f684 lower bits

    Hi,
    The other thing you should not is that A.4 on most devices is open collector so works differently to other outputs. I virtually only use it for input or driving LED.

    Regards,
    Bob

+ Reply to Thread

Similar Threads

  1. Assign symbol to upper and lower nibbles of a byte
    By simongie in forum Proton Plus Compiler v3
    Replies: 9
    Last Post: 30th March 2011, 14:40
  2. LCD error using lower portbits
    By shantanu@india in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 29th November 2010, 08:17
  3. 16F684 ADC on AN3 and AN7
    By sunpool in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 14th December 2009, 23:42
  4. High Bits' and Low Bits
    By cotang in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 8th April 2006, 05:48
  5. LCD on lower 4 bits?
    By Wilfried_1 in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 2nd January 2006, 08:16

Members who have read this thread : 15

Actions :  (Set Date)

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