hardware design for embedded systems · printed circuit boards (pcbs) 20.11.2009 hardware design...

40
Hardware Design for Embedded Systems Embedded Systems Engineering WS10 Armin Wasicek

Upload: trannguyet

Post on 01-May-2018

227 views

Category:

Documents


13 download

TRANSCRIPT

Page 1: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Hardware Design forEmbedded Systems

Embedded Systems Engineering WS10

Armin Wasicek

Page 2: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Overview

Printed Circuit Boards (PCBs) Workflow for designing and manufacturing PCBs „Ideal passive components“ and simplified ECD for

a circuit path Noise, shielding, pitfalls, etc. Further references

Page 3: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Printed Circuit Boards (PCBs)

20.11.2009 3Hardware Design for Embedded Systems

Substrate (e.g., epoxy and cotton paper, epoxy and woven glass) plated with conducting layers (e.g., copper)• different substrate types exhibit

different characteristics w.r.t. humidity absorption, thermal fluctuation, leakage current, HF properties, etc.

Page 4: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Breadboards and PCBs

A breadboard (protoboard) is a construction base for a one-of-a-kind electronic circuit

Initial costs (e.g. design cost) of PCBs are typically higher than the cost of breadboard constructions• PCBs enable faster fabrication and assembly, better characteristics

w.r.t. EMC, etc.• careful design, in particular for EMC and HF properties, saves the

costs of subsequent improvements

Page 5: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Printed Circuit Boards (PCBs) (2)

Multiple layers (e.g. thickness of 35µm, 70µm, …)• Single-layer (used in cheap consumer electronic devices) –

easy and cheap fabrication, cheap materials, bad EMC characteristics

• Dual-layer – design and fabrication with reasonable effort, more freedom for routing

• Multi-layer boards (up to 12 layers in mobile phones) – usually dedicated layers for power supply and ground, feasible for highly integrated boards, good EMC characteristics

Solder mask (negative mask) Position prints

Page 6: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Overview

Printed Circuit Boards (PCBs) Workflow for design and manufacturing „Ideal passive components“ and simplified ECD for

a circuit path Noise, shielding, pitfalls, etc. Further references

Page 7: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Workflow for Designing a PCB

7

Schematic Simulation

20.11.2009 Hardware Design for Embedded Systems

Page 8: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Workflow for Designing a PCB

8

Schematic Simulation

Board Simulation

20.11.2009 Hardware Design for Embedded Systems

Page 9: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Workflow for Designing a PCB

1. Manual placement of devices (e.g. quartz next to µC)

2. Manual routing of critical paths (e.g. power supply, clock)

3. Determination of mounting holes4. Execution of auto-router

5. Subsequent improvements (e.g. ground planes)

6. Labeling (e.g. version number)7. Design rule check (e.g. track width)

9

Schematic Simulation

Board Simulation

20.11.2009 Hardware Design for Embedded Systems

Page 10: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Workflow for Designing a PCB

10

Schematic Simulation

Board Simulation

Production Testing

20.11.2009 Hardware Design for Embedded Systems

Page 11: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Workflow for Designing a PCB

11

Schematic Simulation

Board Simulation

Production Testing

20.11.2009 Hardware Design for Embedded Systems

Page 12: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Line Testing / Short Circuit TestingLine Testing Test connections, e.g., resistance Measure presence of current

• Measurement < 10 Ω → Good connection• Measurement > 10 Ω → High-resistive connection• Measurement > 2 MΩ → Circuit break

Short circuit testing Test differnet nets against each other Measure absence of current

• Measurement > 2 MΩ → No short circuit• Measurement < 2 MΩ → High-resistive short circuit• Measurement < 100 Ω → Short circuit

20.11.2009 Hardware Design for Embedded Systems 12

Page 13: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Positive – Process

13

carriercopper

photo resistmasklight

The dark areas of the mask remain on the carrier.

20.11.2009 Hardware Design for Embedded Systems

Page 14: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Positive – Process

14

carriercopper

photo resist

developer

20.11.2009 Hardware Design for Embedded Systems

The dark areas of the mask remain on the carrier.

Page 15: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Positive – Process

15

carriercopper

photo resist

acid

20.11.2009 Hardware Design for Embedded Systems

The dark areas of the mask remain on the carrier.

Page 16: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Positive – Process

16

carriercopper

photo resist

solvent

20.11.2009 Hardware Design for Embedded Systems

The dark areas of the mask remain on the carrier.

Page 17: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Negative – Process

17

carriercopper

photo resistmasklight

The areas under the mask are removed by cauterization.

20.11.2009 Hardware Design for Embedded Systems

Page 18: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Negative – Process

18

carriercopper

photo resist

developer

20.11.2009 Hardware Design for Embedded Systems

The areas under the mask are removed by cauterization.

Page 19: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Negative – Process

19

carriercopper

tin

20.11.2009 Hardware Design for Embedded Systems

The areas under the mask are removed by cauterization.

Page 20: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Negative – Process

20

carriercopper

solvent

tin

20.11.2009 Hardware Design for Embedded Systems

The areas under the mask are removed by cauterization.

Page 21: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Photo – Negative – Process

21

carriercopper

acid

tin

20.11.2009 Hardware Design for Embedded Systems

The areas under the mask are removed by cauterization.

Page 22: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Overview

Printed Circuit Boards (PCBs) Workflow for designing and manufacturing PCBs „Ideal passive components“ and simplified

ECD for a circuit path Noise, shielding, pitfalls, etc. Further references

Page 23: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Crash-Course „ideal passive Components“

There are no ideal components in reality, designers have to deal with (parasitic) effects

Real components (and also a piece of conductor path) can be modeled as a circuit consisting of ideal components. Ohmic Resistance „R“ Capacitor „C“ Coil „L“

Close to the technically achievable limits, parasitic effects of „ideal passive components“ gain in importance

Page 24: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Ideal Ohmic Resistance „R“

resistance independent from frequency

current results in voltage drop

current results in heat dissipation R

RIU

IUP

Page 25: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Ideal Capacitor „C“

reactance depends on frequency:

acts as open-circuit for DC voltage or AC voltage with low frequency

acts as short-circuit for AC voltage with high frequency

energy can be stored and restored in the electric field

no heat dissipation

C

CfX C

2

1

Page 26: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Ideal Coil „L“

reactance depends on frequency:

acts as short-circuit for DC voltage or AC voltage with frequency → very low

acts as open-circuit for AC voltage with frequency → very high

energy can be stored and restored in the electromagnetic field

no heat dissipation

L

LfX L 2

Page 27: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Circuit Paths on a PCB

… are no short-circuits, but are …

Resistors - dependent from length and cross sectional area

Coils - dependent from length and geometry

Capacitors - dependent from length and distance to other conductors

Page 28: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Simplified Equivalent Circuit Diagram for a Small Piece of a Conductor Path

R L

C

Page 29: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Overview

Printed Circuit Boards (PCBs) Workflow for designing and manufacturing PCBs „Ideal passive components“ and simplified ECD for

a circuit path Noise, shielding, pitfalls, etc. Further references

Page 30: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Noise Sources (1/2)

Minimize length of circuit paths that could act as antennas for noise signals (e.g., ground-planes)

Maximize distance to sensitive signals (e.g. measurement signals), separation analog and digital circuits

Subdivide the system in (nested) „System Zones“ and use filters for blocking noise at the boundaries (e.g. supply)

Eliminate noise sources (e.g., no floating input pins)

Internal noise is caused mostly by signals with high frequency (e.g. Oscillator of Microcontroller) or high currents (e.g. power supply)

Page 31: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Noise Sources (2/2)

Shield I/O connectors (or even the cables) and/or use filters for blocking noise

Use a star-topology for ground, i.e. connect all ground lines in a common point

External noise is received mostly through I/O‐connectors or electromagnetic waves

Page 32: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Shielding

For higher frequencies a thinner shield is sufficient(e.g., conductive foil, tape, or paint)

For higher frequencies (shorter wavelengths) the tolerable gap dimension in the shield decreases

Ca. 1/10 of wavelength

Create compartments separated with vertical metal strips on the PCB

Page 33: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Decoupling Capacitors

Power Plane

Micro-control-

ler

GroundPlane

Power Plane

Micro-control-

ler

GroundPlane

Power Plane

Micro-control-

lerGroundPlane

3320.11.2009 Hardware Design for Embedded Systems

“Decoupling is stopping a portion of a circuit from being affected by switching that happens in another portion.”

Page 34: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Example of a shielded circuit

Metal case protects against undesired electro-magnetic waves

Feed-through capacitor for decoupling the power supply

Page 35: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Subdivision of a system

35

Further shielding could be achieved with compartments of conductive material soldered on the PCB

20.11.2009 Hardware Design for Embedded Systems

Page 36: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Path to Ground

Separate high noise/current lines and analog/sensitive signals

LDRADC

VCC

GND

3620.11.2009 Hardware Design for Embedded Systems

Page 37: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Things to consider for High-Current Tracks

High currents heat up tracks on the PCB Warmer copper has a higher resistance The increased resistance causes more heat dissipation

For high frequencies the current accumulates in the outer layers of the conductor („Skin-Effect“)• alternating magnetic field (due to AC) within a conductor causes

eddy current• impedance increases

Page 38: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Overview

Printed Circuit Boards (PCBs) Workflow for designing and manufacturing PCBs „Ideal passive components“ and simplified ECD for

a circuit path Noise, shielding, pitfalls, etc. Further references

Page 39: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

Further References

Eagle (http://www.cadsoft.de/)

p-cad (http://www.pcad.com/)

OrCAD (http://www.orcad.com/)

PSpice (http://www.pspice.com/)

Vendor-specific application notes

...

Page 40: Hardware Design for Embedded Systems · Printed Circuit Boards (PCBs) 20.11.2009 Hardware Design for Embedded Systems 3 ˜ Substrate (e.g., epoxy and cotton paper, epoxy and …

THE END

Thanks foryour attention!

40