Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

LCD

2007-11-14 by Omid Station

Dear All
   
  I have a problem about characteristic LCD.
   
  When I use <lcd.h> and simulate my circuit in Proteus program, only odd (or even) characters shown correctly and other characters shown wrong. Also first character in each word always doesn’t show.
  For example if I want to show “document” LCD shows “ ofufeft” in Proteus simulation.
  My LCD is 20x4 and My AVR IC is Atmega  32 , version of my Code Vision is 1.23.8c Standard and version of my Proteus is 6.9 (full).
   
  I use these functions:
   
  #include <mega32.h>
   
  #asm
     .equ __lcd_port=0x18
  #endasm
   
  #include <lcd.h>
   
  void main(void)
  {
   
  lcd_init(20);
  lcd_clear();
  while (1)
        {  
       lcd_gotoxy(0,0);
       lcd_putsf("document");
        
        };
  }
   
  I changed LCD port in AVR IC but problem still exists.
  How I can correct my program? Is it required other adjustment? Is it possible that Proteus is responsible my problem?
   
  Regards
   

       
---------------------------------
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.