- This topic has 7 replies, 6 voices, and was last updated 12 years, 4 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51)
hey i wanted a program for How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) asap plz…(not C program)
if not C, den which language you want? assembly?
yeah i wnt it in assembly lang…. thnks
this 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
@Mehtab Ali: hey thnks…vl try out dis 1
the 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
END
hi 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
Hi, I use Hyperterminal without c code in paper ‘