8051 and c

Status
Not open for further replies.

Pitufo

New Member
Does anyone know how to send a number from the 8051 via serial port to the hyper terminal?
 
Last edited:
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…