Teach you the detailed hardware circuit design

Dedicated to those who are just beginning or about to start designing hardware circuits. Time flies, it has been three years since I first painted the first circuit. Just as you started to touch the board, like you, you are full of doubts and some excitement. A lot of experience and knowledge about hardware circuits on the Internet is dazzling. Like signal integrity, EMI, PS design will halo you. Don't worry, everything should come slowly.

1) Overall thinking. Design hardware circuits, big frameworks and architectures to figure out, but it's not easy to do this. Some big frameworks may have their own bosses and teachers already thinking about it. They just implement the ideas concretely; but some have to design their own frameworks, then you have to figure out what functions to implement, and then find out whether you can achieve the same or similar functions. The reference circuit board (to know how to use the results of others, the more experienced engineers will learn to learn from others' results).

2) Understand the circuit. If you find a reference design, congratulations, you can save a lot of time (including pre-design and post-debugging). Copy now? NO, or understand and understand first, on the one hand can improve our circuit understanding ability, and can avoid errors in the design.

3) Didn't find the reference design? It's ok. First determine the large IC chip, look for the datasheet, see if its key parameters meet your own requirements, which are the key parameters that you need, and whether you can understand these key parameters, are the embodiment of the capabilities of hardware engineers, which also requires long-term The ground slowly accumulates. During this period, you should be good at asking questions. Because you don't understand things, others can wake you up in one sentence, especially hardware design.

4) The hardware circuit design is mainly three parts, schematic, pcb, bill of materials (BOM) table. Schematic design is to convert the previous ideas into circuit schematics. It is very similar to the circuit diagram in our textbook. Pcb involves the actual circuit board, which is based on the schematic diagram converted from the netlist (the netlist is the bridge between the communication schematic and the pcb), and the specific component package is placed (layout) on the circuit board. Then connect its electrical signal (wiring) according to the flying wire (also called pre-wire). After completing the PCB layout and routing, which components should be used, we will use the BOM.

5) What tools are used? Prote, which is easy to use with alTImuml, is also popular in China. It is enough for general work and suitable for beginner designers.

6) to be conTInued.

In fact, no matter the simple protel or complex cadence tools, the hardware design is the same (the operation on protel is similar to windwos, it is post-command type; and the product concept & allegro of cadence is pre-command type, used to Protel, suddenly turned to cadence tools, will not be used to this reason). There must be 1) schematic design for the big part of the design. 2) pcb design. 3) Make a BOM. Now briefly talk about the design process (steps):

1) The principle library is established. To put a new component on the schematic, we have to build a library of components. The library defines the pin definitions and their properties of the new component, and is represented in a specific graphical form (we often see a rectangle (representing its IC BODY), surrounded by many short lines (representing IC pins)) . Protel creates libraries and is simple, and because of the large number of people, many components can find ready-made libraries, which is very convenient for users. You should be clear about the differences between ic body, ic pins, input pin, output pin, analog pin, digital pin, power pin.

2) Once you have ample libraries, you can draw on the schematic, and connect the relevant components via wire according to the datasheet and system design requirements. Add line and text comments in relevant places. The difference between wire and line is that the former has electrical properties and the latter does not. Wire is suitable for connecting to the same network, and line is suitable for annotation graphics. At this time, you should find out some basic concepts, such as: wire, line, bus, part, footprint, and so on.

3) After this step, we can generate netlist, this netlist is the bridge between the schematic and pcb. The schematic is a form we can recognize. To convert it into a pcb, the computer must convert the schematic into the form netlist it knows, and then process and convert it into pcb.

4) Get the netlist and draw the pcb right away? Don't worry, do ERC first. ERC is an abbreviation for electrical rule checking. It can troubleshoot some basic design errors of the schematic, such as multiple outputs connected together. (But be sure to double check your schematics, don't rely too much on the tools, after all, the tools don't understand your system, it's just purely based on some basic rules.)

5) I got a pcb from the netlist, a bunch of dense components, and countless flying lines that made you startled? Oh, don't worry, you have to come slowly.

6) Determine the size of the board. Draw a frame in the keepout area (or the mechanism area), which will limit the area of ​​your wiring. It is necessary to consider the length of the board and the width of the board according to the demand (sometimes, it is necessary to consider the thickness of the board). Of course, the laminate has to be considered. (Laminating means that there are several layers in the slab, how to apply it, for example, the board has a total of 4 layers, the top layer takes the signal, the first layer in the middle is laid, the second layer is laid in the middle, and the bottom layer is signaled).

7) to be conTInued.

Explain the terminology in (2) first. Post-command, for example, we want to copy an object, we must first select the object, then press ctrl + C, then press ctrl + V (copy command occurs after the selected object). This kind of operation windows and protel are used this way. But concept is another way, we call pre-command. Similarly, we have to copy a thing, first press ctrl+C, then select object, and then click outside (the copy command occurs before the selected object).

1) After determining the board frame, the component layout (placement) is very important. It often determines the difficulty of post-wiring. Which components should be placed on the front and which components should be placed on the back should be considered. But these are all problems that benevolent and benevolent, and that wise men see wisdom; they can be placed differently from different angles. In fact, I have drawn the schematic diagram, understand all the components, and naturally have a clear understanding of the component placement (if you let a person who is not drawing a schematic to place the component, the result will often surprise you ^_^). For the first entry, pay attention to the analog components, the isolation of the digital components, and the placement of the mechanical position, while paying attention to the topology of the power supply.

2) The next step is wiring. This is often interactive with the layout. Experienced people often see where they can be successfully routed at the beginning. If it is difficult to route in some places, you need to change the layout. For fpga designs, the schematics are often modified to make the wiring smoother. There are many factors involved in wiring and layout problems. For high-speed digital parts, they are complicated by the problem of signal integrity, but often these problems are difficult to quantify or even difficult to calculate. Therefore, in the case that the signal frequency is not very high, the first principle should be the same.

3) OK? Don't worry, check with DRC first. This is a must check. The DRC will mark the coverage of the wiring and the violation of the rules, and correct it according to this one-by-one troubleshooting.

4) Some pcbs also need to be coated with copper (which may lead to increased costs), and the outlet part will be made into teardrops (the factory may help you). The final pcb file is converted to a gerber file and can be delivered to pcb production. (Some directly to pcb, the factory will help you turn gerber).

5) To assemble the pcb, prepare the bom table, which can be directly exported from the schematic. However, it should be noted that in the schematic diagram, which parts of the components should be on and which components should not be on, it is necessary to have a psychological number. For small batches or research boards, it is also convenient to use excel to manage it yourself (large companies often have professional software to manage). For the novice, the first version is not recommended to be directly handed over to the assembly plant or the welding factory to solder all the bom materials, which is not convenient for troubleshooting. The best way is to prepare the components yourself according to the bom table. After the board comes, step by step on the components and debug.

6) to be conTInued.

Let's talk about debugging.

1) Get the first step of the board, do not rush to see the power supply function, hardware debugging can not be completed in one step. First take a multimeter to see if the key network is not normal, mainly to see if there is a short circuit between the power supply and the ground (although the manufacturer has already done the test for you, this step still has to look at it yourself, sometimes it seems that some steps It is very cumbersome, but it can save you a lot of time!), in fact, the short circuit is not only related to pcb, it may cause this problem in any part of production and production, IO short circuit generally does not cause catastrophic consequences, but the power supply is short-circuited. . . . . . .

2) The power supply network is not short-circuited? So good, then look at whether the power output is its ideal value. For beginners, it is best to use one chip on the IC when debugging. The first one is the power chip.

3) Is the power supply network shorted? This is more troublesome, but it is necessary to take a closer look at whether the schematic diagram of the schematic is possible. At the same time, combined with the method of secant, step by step to check where the bottom is short-circuited, it is a problem of pcb (the general bad pcb factory may appear This situation), or the problem of assembly, or the problem of own design. There are some tips on checking for shorts, which will be logged out in the future. . . . . . .

3) The power chip has no output? Check to see if your power chip input is normal. Also check the place where there is an enable signal, a voltage divider resistor, and a feedback network. . . . . . .

4) Is the output value of the power chip not in the expected range? If it is very outrageous, such as 10%, then look at the voltage divider resistors, these two voltage divider resistors generally use 1% accuracy, this you did not, and look at the feedback network, it will also affect you The range of output power.

5) The power output is normal, don't be happy, if there are conditions, take the oscilloscope and see if the output jump of the power supply is normal. That is to grasp the moment of power-on, look at the situation of the power supply from scratch (as to why you have to look at it, oh... Professionals still have to see ~)

6) To be continued.

Rice Mill

Rice Mill,Rice Mill Machine,Small Rice Milling Machine,Rice Mill Equipment

Hunan Furui Mechanical and Electrical Equipment Manufacturing Co., Ltd. , https://www.thresher.nl

This entry was posted in on