Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to adjust timer 0 to out data to virtual serial port?

Status
Not open for further replies.

shimaa

Newbie level 3
Joined
Jul 7, 2005
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
virtual serial port

hi all,

i use 8052 and i need to have 2 serial port so i think to make virtual serial port
in other word use pins to simulate Rx, Tx work
the problem now is how to adjust timer 0 to out data to virtual Rx with 9600 baudrate

thanks in advance
 

Re: virtual serial port

"virtual serial port" is a wrong term for your intention as it describes a COM device in a PC which is only virtually but not physical present. Better look for bit-bang or UART software implementation. You'll find for example this source in assembler:
**broken link removed**


Mik
 

Re: virtual serial port

In microcontroller terminology, they call it Software UART. ATMEL provide some libraries for the AVR microcontrollers, I have not searched their site for 8051 clones, but the AVR source can be ported to 8051 architecture I believe.
 

virtual serial port

Look in BASCOM AVR book.
It said how to use HW serial port and SW serial Port,
HW serial port is for chip that already has TX RX pin,
SW serial port is for general pin to use as serial interface.

I believe I found the article at KEIL site for 8051 C library.
 

Re: virtual serial port

thanks for every body try to help me,
and spicial thanks for M!k your solution was the best solution for my problem
thanks a lot, and best regards for every body
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top