340 likes | 406 Views
What can you say about this?. Kirchoff’s Law. PN-Junction. Depletion Layer. +. +. -. -. -. -. +. +. -. -. +. +. -. +. +. -. -. +. -. -. +. -. +. +. -. -. +. +. +. -. +. -. -. +. -. -. -. +. +. +. -. -. +. +. +. +. -. -. -. +. -. -. -. +. +.
E N D
PN-Junction Depletion Layer + + - - - - + + - - + + - + + - - + - - + - + + - - + + + - + - - + - - - + + + - - + + + + - - - + - - - + + + - + - + + + - - - - - + - + + + - + + - + + - - - - + - - + + + - + + - + + - - N-region P-region
PN-Junction Depletion Layer A K Cathode Anode Diode Symbol
Biasing the Diode - Forward K A + + + - + - - - - - + + + + - - - - + - - + + + + + + + - - - - - - + - - + + + - - - + + + + - N-type P-type R V
Biasing the Diode - Forward P-region N-region P-region N-region
Diodes Will this work? Almost shorting the supply High current in the loop.
Diodes Will this work? Approach Assume diode drop to be ≈ 0.7V. Rest of the voltage should be across resistor. R limits the current Choose R value such that diodes current is within its ratings. Wait there is more!
Diodes Caveat The resistor power rating should also be considered. Power rating of resistor should be at least max. drop (Vr) time max current (I).
LEDs How to drive an LED? Always remember LED drop is ≈ 2V LED current can be from 10mA to 20mA. Adjust resistor value based on intensity required.
Interfacing LED with µC Quiz What is the value of VCC? ≈3V What is the voltage at PA.1? ≈3V Will the circuit work? Yes
Alternative Arrangement Sourcing Sinking
Now are we there? I know there are 52 IO on µC. I’m going to connect 52 LEDs to the µC
Why didn’t that work? What more do we need to know? Well! Lets Look at the Data sheet
µC Datasheet 2mA, 4mA and 8mA pad drive for digital communication, up to four pads can be configured With an 18-mA pad drive for high-current applications.
What should we do? Boost the current • from the µC. Use a…
Transistor collector n p p n base n p emitter
Diffusion in Transistor collector + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - N + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - P + + + + + + base - - - - - - + + + + + - - - - - - - - - - + + + + + - - - - - N + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + emitter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transistor Operation C N B P - - - - - N - - - - - - - E
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transistor Operation … C IC N B P IB - - - - - N IE - - - - - - - E
Quiz • What type of device is a transistor? • Active • Current operated • What do you mean by current operated? • It is changes in input current that produces changes in output current.
Transistor Characteristics saturation Cutoff
But, How can we design this? • WKT, transistor has to operate in saturation and cut-off regions. • In saturation, VCE ≈ 0.2-0.4V and LED drop of 2V. • Calculate value of RC for Ic ≈ 15mA to 20mA. • Calculate IB with β=100. • Calculate Rb = (Vcc-VBE) / IB