Author Topic: I am looking for a best practices USB 2.0 reference design  (Read 861 times)

0 Members and 1 Guest are viewing this topic.

Offline BlitzschnitzelTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: de
I am looking for a best practices USB 2.0 reference design
« on: June 01, 2021, 11:29:25 am »
Hi,
I am designing keyboards and for most designs I need a custom PCB. I don’t have much understanding of electronics but most of the time I am just adding switches to an Atmega32U4, so it is relatively simple.
However, what puzzles me is how to best implement protection to the USB lanes. So far, I am just adding an USBLC6-2SC6 ESD chip and two 22ohm resistors between the MCU and USB-C port. When I look at other designs, I often see a wide variety of capacitors, polyfuses, ferrite beads, TVS diodes and of course different ESD chips.
Is there a good reference design with widely available components that I can copy? Or is there maybe even an IC that combines all this?
 

Offline BlitzschnitzelTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: de
Re: I am looking for a best practices USB 2.0 reference design
« Reply #1 on: June 04, 2021, 09:01:22 am »
Even the manufacturer's best practice guides vary strongly. I don't know which components are important and which are esoteric fine tuning.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: I am looking for a best practices USB 2.0 reference design
« Reply #2 on: June 06, 2021, 12:52:28 pm »
It seems to me the biggest difference is whether the USB PHY needs external build-out resistors (like the ATMega32u4) or not.
After that it's your choice to throw on an ESD chip.

... most of the time I am just adding switches ...
Some consideration should be applied to this too.
Using just the internal pullups on external switches doesn't cut it in my book.
I like to see some actual current through a switch, a mA or two.
You can throw a small cap on it too.
« Last Edit: June 06, 2021, 12:59:23 pm by Renate »
 

Offline BlitzschnitzelTopic starter

  • Regular Contributor
  • *
  • Posts: 64
  • Country: de
Re: I am looking for a best practices USB 2.0 reference design
« Reply #3 on: June 06, 2021, 03:07:13 pm »
OK thx. :)
The switches are actually in a multiplexed matrix, so pullups are not needed.
« Last Edit: June 06, 2021, 04:36:55 pm by Blitzschnitzel »
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: I am looking for a best practices USB 2.0 reference design
« Reply #4 on: June 06, 2021, 09:36:01 pm »
The switches are actually in a multiplexed matrix, so pullups are not needed.
Mmm, I question that.
Take the simplest case: one output pin of the µC feeding to a single switch feeding to one input pin of the µC.
You're still relying on the internal pullup of the input pin.
That means it has an effective impedance of somewhere around 70k.
Try running your vacuum cleaner around that and you may get some surprising results.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf