Assist me to do serial data transmission from embedded c pgm to hyper terminal window

Discussion in 'Embedded Systems and Microcontrollers' started by triplehdineshbabu, Feb 5, 2009.

  1. triplehdineshbabu

    Thread Starter Active Member

    Feb 5, 2009
    38
    0
    Hi all,

    I have written a embedded C program for serial data transmission (i.e. a single letter "A")


    #include<reg51.h>
    void main (void)
    {
    TMOD=0x20;;
    TH1=0xFA;
    SCON=0x50;
    TR1=1;
    while(1)
    {
    SBUF='A';
    while(TI==0);
    TI=0;
    }
    }

    then assist me to see output in hyper terminal.
    If you know steps for this, kindly reply me.............
     
Loading...