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
"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**
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.
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.
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