0% found this document useful (0 votes)
17 views25 pages

Anjaliffhf

This document contains instructions and code snippets for interfacing with an LCD display using an AVR microcontroller. It includes pinout diagrams, timing diagrams, initialization functions, character printing functions, and examples of code for a digital clock and stopwatch. The document also discusses the LCD library header file with function prototypes and macros, and how to set up the connections between the microcontroller board and LCD.

Uploaded by

anjali_mishra123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views25 pages

Anjaliffhf

This document contains instructions and code snippets for interfacing with an LCD display using an AVR microcontroller. It includes pinout diagrams, timing diagrams, initialization functions, character printing functions, and examples of code for a digital clock and stopwatch. The document also discusses the LCD library header file with function prototypes and macros, and how to set up the connections between the microcontroller board and LCD.

Uploaded by

anjali_mishra123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
You are on page 1/ 25

INTERFACING

AVR

[email protected]

DISKRIPSI PIN

[email protected]

Blok Diagram

[email protected]

Blok Diagram

[email protected]

DC Karakteristik

[email protected]

DC Karakteristik

E> 500ns
[email protected]

Write Mode Timing Diagram

[email protected]

Read Mode Timing Diagram

[email protected]

[email protected]

Instruksi LCD

[email protected]

Format Data

A sc

ii ?

[email protected]

Inisialisasi LCD

[email protected]

Inisialisasi LCD

[email protected]

Inisialisasi LCD

8BIT LCD

4BIT LCD

[email protected]

BAGAIMANA PEMROGRAMANNYA ?

[email protected]

Tambahkan #in !ude ! d.h "ada #i!e utama


#include "lcd.h" #include <util/delay.h> int main(void) { lcd_init(); while(1) { lcd_gotoxy(0,0);lcd_putstr("hello orld"); _delay_!s("00); lcd_clear(); # return 0; #

"astikan $%neksi antara B%ard mikr% den&an LCD seperti De#inisi "'(T
/$%& inter'ace #define #define #define #define #define #define #define #define #define ()*+_$%& &&*_$%& **. /0 &,1 &,2 &,3 &,4 ()*+, &&*, (,0 (,1 (," (,1 (,2 (,3 (,4
[email protected]

)un&si *an& tersedia pada LIB(+(, LCD

// prototipe 'ungsi void enable(void); // ena6le 'ulse 'or $%& void lcd_init(void); // intiali;ation $%& void lcd_putchar(unsigned char c); // send character to $%& void lcd_putstr(char <s); // send string to $%& void lcd_clear(void); // clear display void lcd_gotoxy(unsigned char i,unsigned char =); //!o>e $%& cursor position

-akr% *an& tersedia pada LIB(+(, LCD


#define #define #define #define #define #define #define #define -/+,5+(address,6it) (address 78 (1<<6it)) %$*,5+(address,6it) (address 98 :(1<<6it)) -/+_/0 -/+,5+(()*+_$%&,/0) %$*_/0 %$*,5+(()*+_$%&,/0) -/+_*- -/+,5+(()*+_$%&,*-) %$*_*- %$*,5+(()*+_$%&,*-) -/+_*. -/+,5+(()*+_$%&,*.) %$*_*. %$*,5+(()*+_$%&,*.)

[email protected]

Im ort !rom E"li se

[email protected]

Im ort !rom E"li se

[email protected]

Im ort !rom E"li se

[email protected]

Im ort !rom E"li se

[email protected]

Im ort !rom E"li se

[email protected]

So#r"e Code
a.r! d.s%ur e#%r&e.net Le turer.eepis-its.edu/0hendri

[email protected]

Case St#dies $
Jam: 12:12:12
Digtal Clo"k
-%de 1et

[email protected]

Case St#dies %
Jam: 00:22:12
Sto &at"'
-%de 1et

[email protected]

You might also like