Menu

Problem to run LCD using 16F876A

Help
SAZLI saad
2010-02-17
2013-05-30
  • SAZLI saad

    SAZLI saad - 2010-02-17

    Goodday Sir,

    Currently I’m using GCBasic to run LCD using 16F876A but unfortunately the LCD cannot run. Would you help me to solve the problem.

    This is example program:

    ;Chip Settings

    #chip 16F876A,20

    ;Defines (Constants)

    #define LCD_IO 8

    #define LCD_DATA_PORT PORTC

    #define LCD_RS PORTA.2

    #define LCD_RW PORTB.1 --------(In hardware this pin is connected to GND) if I remove this statement, the program cannot be compile.

    #define LCD_Enable PORTA.5

    'General hardware configuration

    'LCD connection settings

    LCD_RW = 1

    For Counter = 1 to 255

          cls

          LCDHex Counter

          wait 25 10ms

    next

    Is there any program to run the LCD using 16F876A.(pls refer to the attach pdf file for your reference)

    TQ

     
  • Nobody/Anonymous

    Use #define LCD_NO_RW in the code per example in Help.  As default GCBasic uses the read function of R/W for checking of write completion.

    Kent

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.