I doing a project using AT89S52 now I am serial commutation to commutate to the PC(RS232).I want to convert this RS232 output into USB.can any one tell me how to implement with some code(ASM) example or any link
I doing a project using AT89S52 now I am serial commutation to commutate to the PC(RS232).I want to convert this RS232 output into USB.can any one tell me how to implement with some code(ASM) example or any link
This AT89S52 are way too slow for this.
But if you use Atmel AVR you can do this, allthough theRS232<->USB transfer speed will be very slow.
Read these web page:
IgorPlug-USB: www.cesko.host.sk/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm
IgorPlug-USB to RS232 converter + - simple and cheap universal USB device: www.cesko.host.sk/IgorPlugUSB_RS232/IgorPlug-USB%20(AVR)%20RS232_eng.htm
Atmel AVR309 Preliminary Application Note: www.cesko.host.sk/dlredir.php?file=AVR309_doc2556.pdf
Atmel AVR AT90S8515 + the newer upgrade ATmega8515 are pin-compatible with AT89S52 except for an inverted reset pin, so you could upgrade your project to use one of these AVR's without any hardware modifications except the reset circuit and crystal speed. They are not code compatible though.
You can also get hardware USB<->RS23 converter chips.
Silicon Laboratoris (former Cygnal), FTDI and Prolifc produces such converter ICs.
Silicon Laboraties IC is the most integrated and requires almost no external components.