Hello
I's been a while, but i had time to work on the schematic and pcb lay-out
This is the initial schematic version, and a print screen of the current lay-out. I plan to try and have all component on one side of the board - so i can reflow it on a hot plate.
For now i can't fit the protection diodes - either i remove them from the design, or i keep them on the bottom layer and mount them by hand.
The lay-out is still a mess, the usb-connected part is mostly ready - i need to remove / clear all in-pad vias - there are quite a lot of them now
allright , care for some nit-picking ?
schematic :
------------
1) usb :
- d+/d- common mode choke + transils please. transils between d+/d- and system ground.
- NEVER connect usb gnd and tab together. there needs to be a ferrite bead between them. TAB is chassis ground. it should NEVER be connected to your system ground. you are defeating the esd protections. the TAB of usb can be connected to the shield of the gpib connector ( not the ground pins ! the metal shield on the connector )
- diss the resonator and go for a real crystal
- use GP1 of the mcp2200 to control a PMOS transistor that feeds power to the optocouplers and the dc/dc converter. as long as you are not enumerated you should not be drawing more than 0.5 milliamp... so in your schematic : the wire coming from pin 1 and going up , to the right the split off toe the led's and optos needs a pmos insrerted under control of GPI.
- dc/dc converters pull quite big pulse currents. you will need some bulk capacitance. like 100 uf right at its input.
idea's:
- for debug purposes you may want to bring one more GPIO across the isolation barrier attached to the cpu's reset pin.
- diss the optocouples (which are slow) and go for a digital isolator chip. analog devices and maxim have those. they handle much higher baudrates than opto's can. they typically have an on board isolated dc/dc converter as well.
CPU
- diss the resonator , go for a crystal.
- swclk swio and nrst need appropriate pull up / down so they are not floating when not in use.
-Vana needs bypass capacitor.
- reset circuit ?
gpib section :
bulk caps for the drivers
- is the stm32 5 volt tolerant ? you may need to insert series resistors for signals entering the stm32...
PCB :
-----------------------------------
usb section
- Vusb needs beefier traces ... everything is routed same width. not good ...
- micro usb ? puhlease .. no .. those are total crap. mini usb i can live with , but not micro. they are so flimsy they constantly break. this is lab equipment. it should take a beating. if at all : go for the full size connector. those are rugged.
- your routing in the usb section can be done single sided so backside is a nice ground pour. make a chassis ground ring on the perimeter of the board
- shunt system ground and chassis ground with ferrite right at usb connector.
cpu section:
---------------
- beef up your power grid. use a local 3.3 island in the cpu section and place the 3v3 regulator right there.
- use smd version of regulator. something like a dpak version. . give it a tab and shoot some via's to ground.
- you are not following electron flow. hit bulk cap first, then bypass cap then regulator in. from tregulatro out hit bypass first, then bulk cap and into local power island.
- the drivers need beefier power line and local bulk caps as they can send quite a bit of current ( transient) if the bus is heavily loaded.