Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:digi:lcd [2009/03/25 06:43] raivo.sellen:examples:digi:lcd [2010/02/04 12:28] (current) – removed mikk.leini
Line 1: Line 1:
-====== LCD display ====== 
-{{:examples:study_lcd_cpu.jpg?500|}} 
- 
-LCD is used to display information to user. The Home-Lab is equipped with standard 2x16 alphanumeric HD44780-based LCD ({{:examples:datasheets:lcd_wc1601a0.pdf|datasheet}}). 
-LCD can be controller 4-bit or memory-mapped mode. Following examples are using 4-bit mode. LCD data bits are connectet to PORTA. 
- 
-{{:examples:lcd_schema.jpg?500}} 
- 
-Example code here use Peter Fleury LCD driver. 
- 
-===== Header files ===== 
- 
-  * {{:et:naited:digi:lcd:lcd.c}} 
-  * {{:et:naited:digi:lcd:lcd.h|}} 
- 
-===== Example===== 
- 
-<code c> 
-#include <stdlib.h> 
-#include <avr/io.h> 
-#include <avr/pgmspace.h> 
- 
-#include "lcd.h" 
- 
-/*PS for Distance Lab use: 
-#include <util/lcd.h> 
-#include <util/lcd.c> 
-*/ 
- 
-int main(void) 
-{ 
- // Initialize display, cursor off 
- lcd_init(LCD_DISP_ON); 
- 
- // Clear display and home cursor 
- lcd_clrscr(); 
-         
- // Put string to display (line 1) with linefeed 
- lcd_puts("LCD Test Line 1\n"); 
-} 
-</code> 
- 
- 
-===== External links ===== 
-[[http://homepage.hispeed.ch/peterfleury/avr-lcd44780.html|Peter Fleury LCD example]] 
- 
-[[http://homepage.hispeed.ch/peterfleury/group__pfleury__lcd.html|LCD command reference]] 
  
en/examples/digi/lcd.1237963391.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0