Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
IN
Electronics ENGINEERING
Submitted By:
Abhishek
2
2
4
ELECTRONICS ENGINEERING
DECLARATION
Signature:
Name:
Enrollment no:
Date:
Date:
At last but not the least I am feeling glad to say about my family
whose wishes are always with me, without which it was not possible
for me to reach this extent.
THANK YOU
Signature:
Name:
Enrollment no:
Objective: ............................................................................................ 6
Experiences: ........................................................................................ 7
LDR: ................................................................................................... 12
IR Sensor: .......................................................................................... 14
Circuit Diagram............................................................................... 16
Benefits: ............................................................................................ 16
References: ....................................................................................... 65
Block Diagram:
Street lights
IR Sensor
Experiences:
Technical Experiences:
Microcontroller AT89S52
LDR
IR Sensor
Personal Experiences:
– Time management
– Communication
– Accountability
Software used:
Programming of microcontroller in C programming language.
Keil C for programming microcontroller.
Hyperterminal for troubleshooting.
LDR:
IR Sensor:
Figure 4 IR sensor
The emitter is simply an IR LED (Light Emitting Diode) and the detector
is simply an IR photodiode which is sensitive to IR light of the same
wavelength as that emitted by the IR LED. When IR light falls on the
photodiode, its resistance and correspondingly, its output voltage,
change in proportion to the magnitude of the IR light received. This is
the underlying principle of working of the IR sensor.
Circuit Diagram
Benefits:
This project is having application in public street lights area,
school, colleges and other places where traffic is not continuous
or not much in night time.
This system can save 90% of electricity from every street light.
Software methodology
SDLC diagram:
FEASIBILITY study:
Technical feasibility:
Technical feasibility of this application is concerned with
specifying equipment and software that will successfully satisfy
the user requirements.
Than the actual make of the hardware the configuration should give
the complete picture about the system requirements:
Operational feasibility:
Operational feasibility covers two aspects. One technical performance
aspects and the other is the acceptance within the organization. The
points to be considered are:
Economic feasibility:
For the economic feasibility, Economic analysis or
cost/benefit analysis is most frequently used technique the
effectiveness of a proposed system. It is a procedure to determine
the benefits and savings those are expected from the proposed
system and compare them with cost. If the benefits outweigh the
costs, a decision is taken to design and implement the system.
Otherwise, further justification or alternative in the proposed
system will have to be made if it is to have a chance of being
approved this is an ongoing effort that improves in accuracy at each
phase of system life cycle.
Plan of work:
Module1: Circuit designing.
Module2: Selection of components and PCB designing.
Module3: Mounting of components on PCB.
Module4: Hardware Testing and Final PCB designing.
Module5: Firmware coding
Module6: Testing of Complete System
The AT89S52 is one of the most popular micro controllers in use today. Many
derivative micro controllers have since been developed that are based on--and
compatible with--the AT89S52. Thus, the ability to program an AT89S52 is an
important skill for anyone who plans to develop products that will take advantage
of micro controllers.
It provides many functions (CPU, RAM, ROM, I/O, interrupt logic, timer,
etc.) in a single package
8-bit ALU, Accumulator and 8-bit Registers; hence it is an 8-bit microcontroller
8-bit data bus - It can access 8 bits of data in one operation
16-bit address bus - It can access 216 memory locations - 64KB (65536
locations) each of RAM and ROM
On-chip RAM - 128 bytes (data memory)
On-chip ROM - 4k Byte (program memory)
Four byte bi-directional input/output port
UART (serial port)
Two 16-bit Counter/timers
Two-level interrupt priority
Power saving mode
Memory Architecture
The AT89S52 has three very general types of memory. To effectively program
the AT89S52 it is necessary to have a basic understanding of these memory types.
The memory types are illustrated in the following graphic. They are: On-Chip
Memory, External Code Memory, and External RAM.
On-Chip Memory refers to any memory (Code, RAM, or other) that physically
exists on the microcontroller itself. On-chip memory can be of several types, but
we'll get into that shortly.
External Code Memory is code (or program) memory that resides off-chip. This
is often in the form of an external EPROM.
External RAM is RAM memory that resides off-chip. This is often in the form
of standard static RAM or flash RAM.
Code Memory
Code memory is the memory that holds the actual AT89S52 program that is to be
run. This memory is limited to 64K and comes in many shapes and sizes: Code
memory may be found on-chip, either burned into the microcontroller as ROM
or EPROM. Code may also be stored completely off-chip in an external ROM or,
more commonly, an external EPROM. Flash RAM is also another popular
method of storing a program. Various combinations of these memory types may
also be used--that is to say, it is possible to have 4K of code memory on-chip and
64k of code memory off-chip in an EPROM.
External RAM
As the name suggests, External RAM is any random access memory which is
found off-chip. Since the memory is off-chip it is not as flexible in terms of
accessing, and is also slower. For example, to increment an Internal RAM
location by 1 requires only 1 instruction and 1 instruction cycle. To increment a
1-byte value stored in External RAM requires 4 instructions and 7 instruction
cycles. In this case, external memory is 7 times slower!
What External RAM loses in speed and flexibility it gains in quantity. While
Internal RAM is limited to 128 bytes (256 bytes with an 8052), the AT89S52
supports External RAM up to 64K.
On-Chip Memory
The 128 bytes of internal ram is subdivided as shown on the memory map. The
first 8 bytes (00h - 07h) are "register bank 0". By manipulating certain SFRs, a
program may choose to use register banks 1, 2, or 3. These alternative register
banks are located in internal RAM in addresses 08h through 1Fh. We'll discuss
"register banks" more in a later chapter. For now it is sufficient to know that they
"live" and are part of internal RAM.
Bit Memory also lives and is part of internal RAM. We'll talk more about bit
memory very shortly, but for now just keep in mind that bit memory actually
resides in internal RAM, from addresses 20h through 2Fh.
The 80 bytes remaining of Internal RAM, from addresses 30h through 7Fh, may
be used by user variables that need to be accessed frequently or at high-speed.
This area is also utilized by the microcontroller as a storage area for the operating
stack. This fact severely limits the AT89S52s stack since, as illustrated in the
memory map, the area reserved for the stack is only 80 bytes--and usually it is
less since this 80 bytes has to be shared between the stack and user variables.
Bit Memory
There are 128 bit variables available to the user, numbers 00h through 7Fh. The
user may make use of these variables with commands such as SETB and CLR.
For example, to set bit number 24 (hex) to 1 you would execute the instruction:
SETB 24h
It is important to note that Bit Memory is really a part of Internal RAM. In fact,
the 128 bit variables occupy the 16 bytes of Internal RAM from 20h through 2Fh.
Thus, if you write the value FFh to Internal RAM address 20h you've effectively
set bits 00h through 07h. That is to say that:
Special Function Register (SFR) Memory
Special Function Registers (SFRs) are areas of memory that control specific
functionality of the AT89S52 processor. For example, four SFRs permit access
to the AT89S52s 32 input/output lines. Another SFR allows a program to read or
write to the AT89S52s serial port. Other SFRs allow the user to set the serial baud
rate, control and access timers, and configure the AT89S52s interrupt system.
SFRs are accessed as if they were normal Internal RAM. The only difference is
that Internal RAM is from address 00h through 7Fh whereas SFR registers exist
in the address range of 80h through FFh.
Each SFR has an address (80h through FFh) and a name. The following chart
provides a graphical presentation of the AT89S52's SFRs, their names, and their
address.
Basic Registers
The Accumulator
If you've worked with any other assembly languages you will be familiar with the
concept of an Accumulator register.
For example, if you want to add the number 10 and 20, the resulting 30 will be
stored in the Accumulator. Once you have a value in the Accumulator you may
The "R" registers are a set of eight registers that are named R0, R1, etc. up to and
including R7. These registers are used as auxiliary registers in many operations.
After executing this instruction the Accumulator will contain the value 30. You
may think of the "R" registers as very important auxiliary, or "helper", registers.
The Accumulator alone would not be very useful if it were not for these "R"
registers. The "R" registers are also used to temporarily store values.
The "B" register is very similar to the Accumulator in the sense that it may hold
an 8-bit (1-byte) value. The "B" register is only used by two AT89S52
instructions: MUL AB and DIV AB. Thus, if you want to quickly and easily
multiply or divide A by another number, you may store the other number in "B"
and make use of these two instructions. A side from the MUL and DIV
instructions, the "B" register is often used as yet another temporary storage
register much like a ninth "R" register.
The Data Pointer (DPTR) is the AT89S52s only user-accessible 16-bit (2-byte)
register. The Accumulator, "R" registers, and "B" register are all 1-byte values.
DPTR, as the name suggests, is used to point to data. It is used by a number of
commands which allow the AT89S52 to access external memory. When the
AT89S52 accesses external memory it will access external memory at the address
indicated by DPTR.
While DPTR is most often used to point to data in external memory, many
programmers often take advantage of the fact that its the only true 16-bit register
available. It is often used to store 2-byte values which have nothing to do with
memory locations.
The Program Counter is special in that there is no way to directly modify its value.
That is to say, you cant do something like PC=2430h. On the other hand, if you
execute LJMP 2430h youve effectively accomplished the same thing.
The Stack Pointer, like all registers except DPTR and PC, may hold an 8-bit (1-
byte) value. The Stack Pointer is used to indicate where the next value to be
removed from the stack should be taken from.
When you push a value onto the stack, the AT89S52 first increments the value of
SP and then stores the value at the resulting memory location.
When you pop a value off the stack, the AT89S52 returns the value from the
memory location indicated by SP, and then decrements the value of SP.
Addressing Mode
An "addressing mode" refers to how you are addressing a given memory location.
In summary, the addressing modes are as follows, with an example of each:
Immediate Addressing MOV A,#20h
Immediate Addressing
Direct Addressing
Indirect Addressing
External Direct
External Memory is accessed using a suite of instructions which use what I call
"External Direct" addressing. I call it this because it appears to be direct
addressing, but it is used to access external memory rather than internal memory.
External Indirect
External memory can also be accessed using a form of indirect addressing which
I call External Indirect addressing. This form of addressing is usually only used
in relatively small projects that have a very small amount of external RAM.
Conditional Branching
Direct Jumps
The obvious difference between the Direct Jump and Call instructions and the
conditional branching is that with Direct Jumps and Calls program flow always
changes. With conditional branching program flow only changes if a certain
condition is true.
Interrupts
An interrupt is a special feature which allows the AT89S52 to provide the illusion
of "multi-tasking," although in reality the AT89S52 is only doing one thing at a
time. The word "interrupt" can often be substituted with the word "event."
The topic of interrupts is somewhat tricky and very important. For that reason, an
entire chapter will be dedicated to the topic. For now, suffice it to say that
Interrupts can cause program flow to change.
Timers
The AT89S52 comes equipped with two timers, both of which may be controlled,
set, read, and configured individually. The AT89S52 timers have three general
functions: 1) Keeping time and/or calculating the amount of time between events,
2) Counting the events themselves, or 3) Generating baud rates for the serial port.
The three timer uses are distinct so we will talk about each of them separately.
The first two uses will be discussed in this chapter while the use of timers for
baud rate generation will be discussed in the chapter relating to serial ports.
Timer SFRs
We've given SFRs names to make it easier to refer to them, but in reality an SFR
has a numeric address. It is often useful to know the numeric address that
corresponds to an
Timer mode "0" is a 13-bit timer. This is a relic that was kept around in the
AT89S52 to maintain compatibility with its predecessor, the 8048. Generally the
13-bit timer mode is not used in new development.
When the timer is in 13-bit mode, TLx will count from 0 to 31. When TLx is
incremented from 31, it will "reset" to 0 and increment THx. Thus, effectively,
only 13 bits of the two timer bytes are being used: bits 0-4 of TLx and bits 0-7 of
THx. This also means, in essence, the timer can only contain 8192 values. If you
set a 13-bit timer to 0, it will overflow back to zero 8192 machine cycles later.
Again, there is very little reason to use this mode and it is only mentioned so you
wont be surprised if you ever end up analyzing archaic code which has been
passed down through the generations (a generation in a programming shop is
often on the order of about 3 or 4 months).
Timer mode "1" is a 16-bit timer. This is a very commonly used mode. It functions
just like 13-bit mode except that all 16 bits are used.
TLx is incremented from 0 to 255. When TLx is incremented from 255, it resets
to 0 and causes THx to be incremented by 1. Since this is a full 16-bit timer, the
timer may contain up to 65536 distinct values. If you set a 16-bit timer to 0, it
will overflow back to 0 after 65,536 machine cycles.
While Timer 0 is in split mode, the real Timer 1 (i.e. TH1 and TL1) can be put
into modes 0, 1 or 2 normally--however, you may not start or stop the real timer
1 since the bits that do that are now linked to TH0. The real timer 1, in this case,
will be incremented every machine cycle no matter what.
The only real use I can see of using split timer mode is if you need to have two
separate timers and, additionally, a baud rate generator. In such case you can use
the real Timer 1 as a baud rate generator and use TH0/TL0 as two separate timers.
There are two common ways of reading the value of a 16-bit timer; which you
use depends on your specific application. You may either read the actual value of
the timer as a 16-bit number, or you may simply detect when the timer has
overflowed.
If your timer is in an 8-bit mode--that is, either 8-bit Auto Reload mode or in split
timer mode--then reading the value of the timer is simple. You simply read the 1-
byte value of the timer and you're done.
However, if you're dealing with a 13-bit or 16-bit timer the chore is a little more
complicated. Consider what would happen if you read the low byte of the timer
as 255, then read the high byte of the timer as 15. In this case, what actually
happened was that the timer value was 14/255 (high byte 14, low byte 255) but
Often it is necessary to just know that the timer has reset to 0. That is to say, you
are not particularly interest in the value of the timer but rather you are interested
in knowing when the timer has overflowed back to 0.
The AT89S52 provides another cool toy that can be used to time the length of
events.
For example, let's say we're trying to save electricity in the office and we're
interested in how long a light is turned on each day. When the light is turned on,
we want to measure time. When the light is turned off we don't. One option would
be to connect the light switch to one of the pins, constantly read the pin, and turn
the timer on or off based on the state of that pin. While this would work fine, the
AT89S52 provides us with an easier method of accomplishing this.
Looking again at the TMOD SFR, there is a bit called GATE0. So far we've
always cleared this bit because we wanted the timer to run regardless of the state
of the external pins. However, now it would be nice if an external pin could
control whether the timer was running or not. It can. All we need to do is connect
the light switch to pin INT0 (P3.2) on the AT89S52 and set the bit GATE0. When
GATE0 is set Timer 0 will only run if P3.2 is high. When P3.2 is low (i.e., the
light switch is off) the timer will automatically be stopped.
Thus, with no control code whatsoever, the external pin P3.2 can control whether
or not our timer is running or not.
The first thing we must do when using the AT89S52s integrated serial port is,
obviously, configure it. This lets us tell the AT89S52 how many data bits we
want, the baud rate we will be using, and how the baud rate will be determined.
First, lets present the "Serial Control" (SCON) SFR and define what each bit of
the SFR represents:
Nam Bit
Bit Explanation of Function
e Address
7 SM0 9Fh Serial port mode bit 0
6 SM1 9Eh Serial port mode bit 1.
5 SM2 9Dh Multiprocessor Communications Enable (explained later)
Receiver Enable. This bit must be set in order to receive
4 REN 9Ch
characters.
3 TB8 9Bh Transmit bit 8. The 9th bit to transmit in mode 2 and 3.
2 RB8 9Ah Receive bit 8. The 9th bit received in mode 2 and 3.
Transmit Flag. Set when a byte has been completely
1 TI 99h
transmitted.
Receive Flag. Set when a byte has been completely
0 RI 98h
received.
Serial
SM0 SM1 Explanation Baud Rate
Mode
0 0 0 8-bit Shift Register Oscillator / 12
0 1 1 8-bit UART Set by Timer 1 (*)
1 0 2 9-bit UART Oscillator / 64 (*)
1 1 3 9-bit UART Set by Timer 1 (*)
Once the Serial Port Mode has been configured, as explained above, the program
must configure the serial ports baud rate. This only applies to Serial Port modes
1 and 3. The Baud Rate is determined based on the oscillators frequency when in
mode 0 and 2. In mode 0, the baud rate is always the oscillator frequency divided
by 12. This means if you're crystal is 11.059Mhz, mode 0 baud rate will always
be 921,583 baud. In mode 2 the baud rate is always the oscillator frequency
divided by 64, so a 11.059Mhz crystal speed will yield a baud rate of 172,797.
Once the Serial Port has been property configured as explained above, the serial
port is ready to be used to send data and receive data. If you thought that
configuring the serial port was simple, using the serial port will be a breeze.
To write a byte to the serial port simply write the value to the SBUF (99h) SFR.
Reading the Serial Port
BC-547 Transistor
When the IR receiver does not receive a signal, the potential at the
inverting input goes higher than that non-inverting input of the
comparator IC (LM339). Thus the output of the comparator goes low,
but the LED does not glow. When the IR receiver module receives
signal to the potential at the inverting input goes low. Thus the output
of the comparator (LM 339) goes high and the LED starts glowing.
Resistor R1 (100 ), R2 (10k ) and R3 (330) are used to ensure that
minimum 10 mA current passes through the IR LED Devices like
Photodiode and normal LEDs respectively. Resistor VR2 (preset=5k ) is
used to adjust the output terminals. Resistor VR1 (preset=10k ) is used
to set the sensitivity of the circuit Diagram. Read more about IR
sensors.
Principles of Operation
Detecting Brightness
In this cool tutorial, I will show you how you can make circuit boards
at home easily. Doing so will save you a lot of time from debugging
and double checking the connections on a breadboard. You could even
PCB Design:
For this tutorial, lets consider making a PCB for a simple project- a
Touch Switch using IC555.
Take a print out of your PCB layout using the laser printer and the A4
photo paper/glossy paper. Keep in mind the following points:
Cut the copper board according to the size of layout using a hacksaw
or a cutter.
Next, rub the copper side of PCB using steel wool or abrasive spongy
scrubs. This removes the top oxide layer of copper as well as the photo
STEP 4: Ironing the circuit from the paper onto the PCB plate
In some cases while removing the paper, some of the tracks get
fainted. In the figure below, you can see that the track is light in colour
hence we can use a black marker to darken it as shown.
Light trace
Gently move the plastic box to and fro so that etching solution reacts
with the exposed copper. The reaction is given as:
Cu + FeCl3 = CuCl3 + Fe
After every two minutes check if all the copper has been removed. If
it hasn’t then place it back in the solution and wait.
CAUTION: Always use gloves while touching the plate having the
solution.
STEP 6: Cleaning, disposing and final touches for the circuit board
Be careful while disposing the etching solution, since its toxic to fish
and other water organisms. And don’t think about pouring it in the
sink when you are done, it is illegal to do so and might damage your
pipes (hehe, who knew you could get arrested while making a PCB!).
So dilute the etching solution and then throw it away somewhere safe.
Now, drill holes using a PCB driller like this: PCB driller and solder all
your cool components. If you want that traditional green PCB look,
apply solder resist paint on top: PCB lacquer. And finally! your super
cool circuit board would be ready!
Perhaps the most significant merit of linear power supplies is the cleanliness of
the output voltage and the relative lack of electromagnetic emissions. The
typical peak to peak output voltage ripple for a linear supply might be 1000x or
60dB less than the output DC level. So for a 5V output supply the typical peak to
peak ripple voltage might be 5mV. A switching supply typically sees about a 100x
Transient Response
The response of linear power supplies to line and load transients is better their
switching counterparts because the linear supply does not have a switching
frequency to limit the bandwidth. In linear supplies, the regulation bandwidth is
typically limited by parasitic device elements.
The weight and size of the linear power supply is the major disadvantage. AC/DC
conversion is done at low frequencies and therefore the transformer must be
large to keep the core from saturating. This factor, along with efficiency to be
discussed next, is the main reason why linear power supplies have limited use
today. For example, a 500W linear power supply might weigh about 50 pounds
and occupy a desktop. Whereas a 500W switching supply might weight less than
10 pounds and sit on a small part of the desktop.
Efficiency
Linear regulators are typically thought of a being extremely inefficient – but that
is not always the case and they can sometimes be more efficient that a switching
power supply!
As another example, if the input voltage is 5 volts and the output voltage is 3.3
volts, for a voltage drop of 1.7 volts, the efficiency is 3.3V/5V = 66%. The
efficiency in this case is not very good by most standards.
As a last example, if the input voltage is 5 volts and the output voltage is 1.8
volts, for a pass element voltage drop of 3.2 volts, the efficiency is 1.8V/5V =
36%. This efficiency in this case is very poor.
Summary
In this article we found that linear power supplies excel in producing outputs
with very low noise and ripple, low electromagnetic emissions, and have
excellent transient response. However, they are by nature large and heavy when
compared to switching power supplies. Linear power supplies would be the type
of choice when outputs with low ripple and noise content are of paramount
concern, and where larger size and substantially greater weight can be
tolerated.
Switching regulators are used as replacements for linear regulators when higher
efficiency, smaller size or lighter weight are required. They are, however, more
complicated; their switching currents can cause electrical noise problems if not
carefully suppressed, and simple designs may have a poor power factor.
Explanation
In an SMPS, the output current flow depends on the input power signal, the
storage elements and circuit topologies used, and also on the pattern used (e.g.,
pulse-width modulation with an adjustable duty cycle) to drive the switching
elements. The spectral density of these switching waveforms has energy
concentrated at relatively high frequencies. As such, switching transients and
ripple introduced onto the output waveforms can be filtered with small LC
filters.
The main advantage of the switching power supply is greater efficiency because
the switching transistor dissipates little power when acting as a switch. Other
advantages include smaller size and lighter weight from the elimination of heavy
line-frequency transformers, and lower heat generation due to higher efficiency.
Disadvantages include greater complexity, the generation of high-amplitude,
high-frequency energy that the low-pass filter must block to avoid
Very low cost SMPSs may couple electrical switching noise back onto the mains
power line, causing interference with A/V equipment connected to the same
phase. Non-power-factor-corrected SMPSs also cause harmonic distortion.
There are two main types of regulated power supplies available: SMPS and
linear. The following table compares linear regulated and unregulated AC-to-DC
supplies with switching regulators in general:
Theory of operation
If the SMPS has an (AC input), then the first stage is to convert the input to DC.
This is called rectification. A SMPS with a DC input does not require this stage. In
some power supplies (mostly computer ATX power supplies), the rectifier circuit
can be configured as a voltage doubler by the addition of a switch operated
either manually or automatically. This feature permits operation from power
sources that are normally at 115 V or at 230 V. The rectifier produces an
unregulated DC voltage which is then sent to a large filter capacitor. The current
drawn from the mains supply by this rectifier circuit occurs in short pulses
around the AC voltage peaks. These pulses have significant high frequency
energy which reduces the power factor. To correct for this, many newer SMPS
will use a special PFC circuit to make the input current follow the sinusoidal
shape of the AC input voltage, correcting the power factor. Power supplies that
use Active PFC usually are auto-ranging, supporting input voltages from ~100
VAC – 250 VAC, with no input voltage selector switch.
A SMPS designed for AC input can usually be run from a DC supply, because the
DC would pass through the rectifier unchanged.[16] If the power supply is
designed for 115 VAC and has no voltage selector switch, the required DC
voltage would be 163 VDC (115 × √2). This type of use may be harmful to the
rectifier stage, however, as it will only use half of diodes in the rectifier for the
full load. This could possibly result in overheating of these components, causing
them to fail prematurely. On the other hand, if the power supply has a voltage
selector switch for 115/230V (computer ATX power supplies typically are in this
category), the selector switch would have to be put in the 230 V position, and
the required voltage would be 325 VDC (230 × √2). The diodes in this type of
power supply will handle the DC current just fine because they are rated to
handle double the nominal input current when operated in the 115 V mode, due
to the operation of the voltage doubler. This is because the doubler, when in
operation, uses only half of the bridge rectifier and runs twice as much current
through it.[17] It is uncertain how an Auto-ranging/Active-PFC type power supply
would react to being powered by DC.
The inverter stage converts DC, whether directly from the input or from the
rectifier stage described above, to AC by running it through a power oscillator,
whose output transformer is very small with few windings at a frequency of tens
or hundreds of kilohertz. The frequency is usually chosen to be above 20 kHz, to
make it inaudible to humans. The switching is implemented as a multistage (to
achieve high gain) MOSFET amplifier. MOSFETs are a type of transistor with a
low on-resistance and a high current-handling capacity.
If the output is required to be isolated from the input, as is usually the case in
mains power supplies, the inverted AC is used to drive the primary winding of a
high-frequency transformer. This converts the voltage up or down to the
required output level on its secondary winding. The output transformer in the
block diagram serves this purpose.
Regulation
This charger for a small device such as a mobile phone is a simple off-line switching power
supply in a European plug.
A feedback circuit monitors the output voltage and compares it with a reference
voltage, which shown in the block diagram serves this purpose. Depending on
design/safety requirements, the controller may contain an isolation mechanism
(such as opto-couplers) to isolate it from the DC output. Switching supplies in
computers, TVs and VCRs have these opto-couplers to tightly control the output
voltage.
The feedback circuit needs power to run before it can generate power, so an
additional non-switching power-supply for stand-by is added.
Transformer design
Any switched-mode power supply that gets its power from an AC power line
(called an "off-line" converters[18]) requires a transformer for galvanic isolation.
Some DC-to-DC converters may also include a transformer, although isolation
may not be critical in these cases. SMPS transformers run at high frequency.
Most of the cost savings (and space savings) in off-line power supplies result
from the smaller size of high frequency transformer compared to the 50/60 Hz
transformers formerly used. There are additional design tradeoffs.
Copper loss
The skin effect is exacerbated by the harmonics present in the high speed PWM
switching waveforms. The appropriate skin depth is not just the depth at the
fundamental, but also the skin depths at the harmonics.[19]
In addition to the skin effect, there is also a proximity effect, which is another
source of power loss.
References:
1. Augarten, Stan (1983). The Most Widely Used Computer on a
Chip: The TMS 1000. State of the Art: A Photographic History of
the Integrated Circuit (New Haven and New York: Ticknor &
Fields). ISBN 0-89919-195-9. Retrieved 2009-12-23.
2. "Oral History Panel on the Development and Promotion of the
Intel 8048 Microcontroller" (PDF). Computer History Museum
Oral History, 2008. p. 4. Retrieved 2011-06-28.
3. "Atmel’s Self-Programming Flash Microcontrollers" (PDF).
2012-01-24. Retrieved 2008-10-25. by Odd Jostein Svendsli 2003
4. Jim Turley. "The Two Percent Solution" 2002.
5. Tom Cantrell "Microchip on the March". Circuit Cellar. 1998.
6. http://www.semico.com
7. Momentum Carries MCUs Into 2011
http://semico.com/content/momentum-carries-mcus-2011