USB to RS232 Using Atmel ATtiny2313 or ATmega8

Posted on Feb 6, 2014

The Universal Serial Bus (USB) interface has become extremely popular, due to its simplicity for end user applications (Plug and Play without restart). For developers, however, USB implementation into end systems has been more complicated compared to e. g. RS232. In addition there is a need for device drivers as software support on the PC side. Bec

USB to RS232 Using Atmel ATtiny2313 or ATmega8
Click here to download the full size of the above Circuit.

ause of this, RS232 based communication is still very popular among end systems manufacturers. This interface is well established and has good operating system support, but recently the physical RS232 port has been removed from the standard PC interface, giving ground to USB ports. Implementation of USB into external devices can be done in two ways: 1. By using a microcontroller with hardware implemented USB interface. It is necessary to know how USB works and write firmware into the microcontroller accordingly. Additionally, it is necessary to create a driver on the computer side, unless if the operating system includes standard USB classes. The main disadvantage is the lack of availability of this kind of microcontrollers and their high price compared to simple RS232  microcontrollers. 2. The second option is to use some universal converter between USB and another interface. This other interface will usually be RS232, 8-bit data bus, or TWI bus. In this case there is no need for special firmware, it isn`t even necessary to know how USB works, and no driver writing is required, as the converter vendor will offer one driver for the whole solution. The disadvantage is the higher price of the complete system, and the greater dimensions of the complete product. The solution presented in this document is a USB implementation into a low-cost microcontroller through emulation of the USB protocol in the microcontroller firmware....

Leave Comment

characters left:

New Circuits



Popular Circuits

Car 12V to +-20V DC converter
RF isolation amplifier
high capacity dc power relays
ISL43485 3.3V Half Duplex 30Mbps RS-485/RS-422 Transceiver
GSM Remote Control Gate Control Schematic