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 usb to serial signal logic level works

Status
Not open for further replies.

welove8051

Full Member level 6
Joined
Jul 16, 2009
Messages
357
Helped
51
Reputation
102
Reaction score
41
Trophy points
1,308
Location
india
Activity points
3,277
hello, how it is possible to use micro controller like **broken link removed** for USB communication with PC. since USB uses NRZ protocol( +ve and -ve signal) how is it possible to achieve it using atmega8 without any driver in between them.

thanks in advance
 

Are you referring to a specific circuit?

There have been designs, that managed to implement a low speed USB device as a pure software solution. It's a nightmare of assembler code and a good idea to drive someone mad.

See e.g. this design for ATtiny https://www.obdev.at/products/vusb/index.html

According to ATmega port properties, the design can't implement e.g. a true differential input receiver. But that's only a minor problem. The USB D+ and D- signals have at least typically sufficient swing to be read by single ended CMOS/TTL inputs.

Better, you'll use dedicated USB enabled microcontrollers, e.g. AT90USBxxx devices if you rely on AVR topology.
 

Are you referring to a specific circuit?

There have been designs, that managed to implement a low speed USB device as a pure software solution. It's a nightmare of assembler code and a good idea to drive someone mad.

See e.g. this design for ATtiny https://www.obdev.at/products/vusb/index.html

According to ATmega port properties, the design can't implement e.g. a true differential input receiver. But that's only a minor problem. The USB D+ and D- signals have at least typically sufficient swing to be read by single ended CMOS/TTL inputs.

Better, you'll use dedicated USB enabled microcontrollers, e.g. AT90USBxxx devices if you rely on AVR topology.

yes as i given in the previous post, it is a USB to serial convereter using atmega8. how it is possible to use a CMOS/TTL based device like atmega8 to swing for -ve value, and use it for USB communication with PC. i just want to know how that logic conversion is carried out.
 

A regular USB-to-serial adapter can be expected to use a hardware USB interface component. The said software USB solution can work for low-speed USB (1.5 MBaud) only.
 

USB communication through stm32 controller

hello everyone, i need to work on a project using STM32F030R8 for USB communication. this MC doesnt have any USB hardware support in it and hence software USB has to be created. no USB to serial converter can be used as this IC should dirtectly perform USB comm for cost reduction. all i want is your comment/ view/advise about what should be done to achieve the objective.


thanks in advance
:-?
 

Re: USB communication through stm32 controller

There was an example for USB HID device for Atmel somewhere. It used s/w USB handling. But I'm not sure about statibily of such system. My opinion that it is a bad idea.
 

The answer to the question doesn't basically change if you are asking about software with STM32 instead of AVR, except for having a faster hardware.

I guess you are not actually motivated (or able at all) to design the software USB solution?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top