Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Sudan Krishna Balami
09/17/12 02:57
Read: 972 times

#188365 - problem in receiving serial data
please check this code. i send a data (characters)from hyperterminal. but microcontroller didnt response. data sending from microcontroler to pc is done but still problem in receiving.
(i have used 8051 developement kit. so i think there is no problem in hardware.)

please help me in this topic.

#include <reg51.h>
void main(void)
unsigned char my_byte;
TMOD=0x20; //use Timer 1, mode 2
TH1=0xFD; //9600 baud rate
TR1=1; /start timer
while (1) //repeat forever
while (RI==0); //wait to receive
my_byte=SBUF; //save value
P1=mybyte; //write value to port

List of 7 messages in thread
problem in receiving serial data       Sudan Krishna Balami      09/17/12 02:57      
   variable names      Joseph Hebert      09/17/12 05:48      
      Instead of copy paste from the original,      Kalpak Dabir      09/17/12 05:59      
         National security      Per Westermark      09/17/12 07:31      
            not necessarily 'national'      Erik Malund      09/17/12 08:02      
            Not really security      Kalpak Dabir      09/17/12 08:07      
         very possible, ...      Joseph Hebert      09/17/12 10:04      

Back to Subject List