Program for UART Reception on LCD

Image

I think reader familiar with UART concept…

go to start—->>>>accessories—–>>>>>>communication—–>>>>>>hyper terminal in windows xp…

1.set baud rate=9600

2.give name as test or anything else

3.hardware——>>>>>no

4.click ok

5.what ever you will click in hyper terminal windows it will shown in lcd of atemga 8535 developer board.

PROGRAM:

#include<avr/io.h>
#include”uart.h”
#include”lcd.h”
#include”delay.h”

int main(void)
{
     uart_init();
    lcd_init();
    delayms(100);
    
    while(1)
    {
        lcd_char(uart_read());
    }
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s