Zener diodes at D+ D-

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Guest

Post by Guest » Tue Feb 05, 2008 8:14 am

Thanks for the quick response. I also thought that the usb comms should work for it to be recognised. The waveforms don't look ideal, but it does go from limit to limit. I suppose the only other culprit could be the firmware then?

I would appreciate some clarification on the role of the zeners though. I understand their purpose, but don't understand the way they are used. With a 2k2 pullup, or even a 1k5 pullup there is not enough current to properly drive the zener into its break down region. I get only 3V on the zener, which is way too close to the lower limit is it not?

Dieter
Posts: 3
Joined: Mon Feb 04, 2008 8:46 pm

Post by Dieter » Tue Feb 05, 2008 11:34 am

Only noticed now, last post was mine but I was not logged in :oops:

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Tue Feb 05, 2008 11:53 am

3 V is enough to be recognized as high level. When the AVR outputs +5V on D+ or D-, the diodes limit the voltage to 3.6 V, which is also accepted as high level inside the common mode range of the input amplifier, although it's slightly outside the spec.

3.6 V is a compromise between a too low level with the pull-up resistor and a too high level with the 68 Ohm series resistor.

If you want to meet the spec, then you should add a 3.3 V (or even better: 3.5 V) regulator for the AVR's power supply. But then you probably operate the AVR outside of its allowed clock range...

Dieter
Posts: 3
Joined: Mon Feb 04, 2008 8:46 pm

Post by Dieter » Tue Feb 05, 2008 12:18 pm

OK, thanks. That makes sense. So in your opinion the most likely cause of my problem would be the firmware, seeing that Windows recognises the device?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Tue Feb 05, 2008 12:20 pm

Yes. I would recommend that you run avrdude with the highest debugging level enabled and look at the communication. May be a wiring problem on the ISP end.

sawan sharma

Re: Zener diodes at D+ D-

Post by sawan sharma » Thu Jul 12, 2012 8:46 am

mik wrote:From main page:

"D1 and D2 are a low cost relpacement for a low drop 3.3 V regulator chip, such as the LE33. Operating the AVR at higher voltages exceeds the common mode range of many USB chips. If you need to run the AVR at 5 V, add 3.6 V zener diodes at D+ and D- to limit the voltage."

Why should be the 3.6 V zener diodes ? (not 3.3 V) ? USB data lines work at 3.0 - 3.6 V.


Is it necessary to use zener diode when i am using 9828 voltage regulator IC to make voltage 3.3v

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: Zener diodes at D+ D-

Post by christian » Thu Jul 12, 2012 11:13 am

sawan sharma wrote:Is it necessary to use zener diode when i am using 9828 voltage regulator IC to make voltage 3.3v


No. You need either the zener diodes or the voltage regulator.

C. Brosseau

Re: Zener diodes at D+ D-

Post by C. Brosseau » Sat Dec 01, 2012 5:28 am

OK. It tooks me 10 hours to make USB commmunication works. Here, I was just able to get 3.6 V, 1 Watt zener diodes. I’ve never been able to make it work.

Then I found 3.2 V, 1/4 Watt zener diodes. Didn’t work. After many many attemps, I’ve begun to use a scope to have an idea of what was going on… and it worked! It was due to the scope impedance. So, I’ve added a 500 k resistance between ground and D-. And it works!!

Also, I power the uC from USB. I need to put a 0.1 uF in parallel to Vcc and Gnd.

declan smith
Rank 1
Rank 1
Posts: 32
Joined: Fri Nov 02, 2012 3:26 pm

Re: Zener diodes at D+ D-

Post by declan smith » Sat Dec 01, 2012 6:20 am

Also, I power the uC from USB. I need to put a 0.1 uF in parallel to Vcc and Gnd.

Put a 4u7 electrolit capacitor at USB Vcc and Gnd if you supply your uc with USB bus not 0.1uf.


So, I’ve added a 500 k resistance between ground and D-. And it works!!

That's very strange to do, you didn't have to do that. You'll get another issue if you use different cable length, like more than 5 meters.
You must be had hardware wiring issue, the circuit was not that critical as long as enough ground plane or ground wiring and also a stable supply.
I tested my circuit with breadboard (which don't have ground plane) and nothing happen like that even I use long enough cable for testing. and I tested at many AVR type for my projects.


Here, I was just able to get 3.6 V, 1 Watt zener diodes. I’ve never been able to make it work.

It works fine with 1 watt zener, but 250mw is enough.
Don't forget to use 68 ohm series resistor like the circuit did.

winelight
Rank 1
Rank 1
Posts: 21
Joined: Tue Nov 27, 2012 11:36 pm

Re: Zener diodes at D+ D-

Post by winelight » Tue Dec 04, 2012 10:37 pm

Just a comment to say that my supplier sent 500mW Zeners and as you might expect, they work fine.

Karrahahu1
Posts: 2
Joined: Fri Feb 12, 2016 9:35 am

Re: Zener diodes at D+ D-

Post by Karrahahu1 » Fri Feb 12, 2016 9:36 am

Also, the data line on an oscilloscope looks like a triangle when it goes low. I suspect I have too much capacitance on the line, but can't figure out from where.???



Ali

KerimF
Posts: 2
Joined: Thu Apr 14, 2016 1:45 pm

Re: Zener diodes at D+ D-

Post by KerimF » Sat Apr 16, 2016 9:08 am

This is just another idea.
Lately I built the circuit of EE_prog project. Since I couldn't get a zener (around 3V3), I replaced it with a conventional "white" LED (small one). It happens that its forward voltage at the nominal driving current (of D+ and D-) is about 3V3. But I also added in parallel to it a switching diode (as 1N4148) to emulate the zener in its reverse direction (acting as a forwarded diode). The circuit worked and the two LEDs also help in monitoring the level status of the D+ and D- lines.
Kerim

Post Reply