Microcontroller › 8051 › How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51)
- This topic has 7 replies, 6 voices, and was last updated 13 years, 6 months ago by
Lui Yat Ming.
-
AuthorPosts
-
March 4, 2012 at 1:40 am #1611
vids
Participanthey i wanted a program for How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) asap plz…(not C program)
March 4, 2012 at 10:59 am #7236phanindra nath
Participantif not C, den which language you want? assembly?
March 4, 2012 at 1:02 pm #7239vids
Participantyeah i wnt it in assembly lang…. thnks
March 4, 2012 at 1:16 pm #7240Mehtab Ali
Participantthis program sends ‘ear’ serially 9600 baud,8bit data,1 stop bit.
mov tmod,#20h
mov th1,#-3
mov scon,#50h
setb tr1
h: mov a,#”e”
acall t
mov a,#”a”
acall t
mov a,#”r”
acall t
sjmp h
t: mov sbuf,a
h1: jnb t1,h1
clr t1
ret
March 5, 2012 at 2:59 pm #7252vids
Participant@Mehtab Ali: hey thnks…vl try out dis 1
March 31, 2012 at 9:26 am #7365anurudh tiwari
Participantthe program for serial communication is given is only the tranfer data from microcontroller to the pc…..for the receiver the program is given elow
MOV TMOD,#20H
MOV TH1,#-3 —9600 BAUD
MOV SCON ,#50H
SETBTR1
CLR RI
WAIT: JNB RI, WAIT
MOV A, SBUF
MOV P0,A — TO SEND THIS IN PORT 0
OR U CAN SORE ANY REGISTER OR MEMORY LOCATION…END
May 7, 2012 at 5:18 pm #7607santhosh
Participanthi frinds
i hope somebody will help me to create my dream prject with microcontroler
(water level indicator)
me now using analoge controls relays and transistors
discreption of my project
when water in tank is botom level motor will start
when water in tank on top level motor will stop
when motor started from bottom if inttrupted water flow motor will be stop
also low voltage or high voltage pevent to start motor
this my project now working well but pcb is big and very
hard work to create a pcb i think convert this project with microcontroler very easy to made
please help somebody idon’t know codes and how to transer
codes to micro controler which progamer need to use
waiting or repply
with best regards
August 1, 2012 at 2:49 am #8378Lui Yat Ming
ParticipantHi, I use Hyperterminal without c code in paper ‘
How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) ‘. I do not know why was that?Please help!Also I do not know the sentance in c code such as P1=value;&P2=P1-32; It is for what ?Thanks for an explanation.For more explanation, the Hyperterminal also can type the ‘char’ and display exactly without c code in paper. -
AuthorPosts
- You must be logged in to reply to this topic.