Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

8051 and c

Status
Not open for further replies.
Depends entirely on the 8051 you have and it's peripherals. All 8051's are not the same.
 
Last edited:

Attachments

  • sport.c
    4.4 KB · Views: 462
Does anyone know how to send a number from the 8051 via serial port to the hyper terminal?


that is very simple
you just need to copy the data in SBUF register, it means Serial communication buffer register.
command would be:
MOV SBUF,#01H
here 01H is the data to be transmitted
but u need to set few SFR before that
those are SCON, SMOD, TMOD and TCON
also you need to load TH1 and TL1

Let me know if you need any more help.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top