electrical theory and electrical fundementals for all electrical related people . students , engineers, electrician #electricaltheorems,electrical,

Monday, 22 December 2014

itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

IGBT

electrical theory and electrical fundementals for all electrical related people . students , engineers, electrician #electricaltheorems,electrical,


Sunday, 21 December 2014

itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

PIC MICRO CONTROLLERS

electrical theory and electrical fundementals for all electrical related people . students , engineers, electrician #electricaltheorems,electrical,


PIC stands for Peripheral Interface Controller given by Microchip Technology to identify its single-chip micro controllers. These devices have been very successful in 8-bit micro controllers. The main reason is that Microchip Technology has continuously upgraded the device architecture and added needed peripherals to the micro controller to suit customers' requirements. The development tools such as assembler and simulator are freely available on the internet at www.electricaltheorems.blogspot.in 
The architectures of various PIC micro controllers can be divided as follows.

Low - end PIC Architectures 

Microchip PIC microcontrollers are available in various types. When PIC microcontroller MCU was first available from General Instruments in early 1980's, the microcontroller consisted of a simple processor executing 12-bit wide instructions with basic I/O functions. These devices are known as low-end architectures. They have limited program memory and are meant for applications requiring simple interface functions and small program & data memories. Some of the low-end device numbers are
12C5XX
16C5X
16C505

Mid range PIC Architectures

Mid range PIC architectures are built by upgrading low-end architectures with more number of peripherals, more number of registers and more data/program memory. Some of the mid-range devices are
16C6X
16C7X
16F87X
Program memory type is indicated by an alphabet.
C = EPROM
F = Flash
RC = Mask ROM
Popularity of the PIC microcontrollers is due to the following factors.
  1. Speed: Harvard Architecture, RISC architecture, 1 instruction cycle = 4 clock cycles.
  2. Instruction set simplicity: The instruction set consists of just 35 instructions (as opposed to 111 instructions for 8051).
    1. Power-on-reset and brown-out reset. Brown-out-reset means when the power supply goes below a specified voltage (say 4V), it causes PIC to reset; hence malfunction is avoided.
      A watch dog timer (user programmable) resets the processor if the software/program ever malfunctions and deviates  from its normal operation.
    2. PIC microcontroller has four optional clock sources.
      •   Low power crystal
      •   Mid range crystal
      •   High range crystal
      •   RC oscillator (low cost).
    3. Programmable timers and on-chip ADC.
    4. Up to 12 independent interrupt sources.
    5. Powerful output pin control (25 mA (max.) current sourcing capability per pin.)
    6. EPROM/OTP/ROM/Flash memory option.
    7. I/O port expansion capability.

CPU Architecture

The CPU uses Harvard architecture with separate Program and Variable (data) memory interface. This facilitates instruction fetch and the operation on data/accessing of variables simultaneously.
Fig 1

PIC Memory Organisation

PIC microcontroller has 13 bits of program memory address. Hence it can address up to 8k of program memory. The program counter is 13-bit. PIC 16C6X or 16C7X program memory is 2k or 4k. While addressing 2k of program memory, only 11-  bits are required. Hence two most significant bits of the program counter are ignored. Similarly, while addressing 4k of memory, 12 bits are required. Hence the MSb of the program counter is ignored.

Fig 2

The program memory map of PIC16C74A is shown in Fig 2 
On reset, the program counter is cleared and the program starts at 00H. Here a 'goto' instruction is required that takes the processor to the mainline program.
When a peripheral interrupt, that is enabled, is received, the processor goes to 004H. A suitable branching to the interrupt service routine (ISR) is written at 004H.

Data memory (Register Files)

Data Memory is also known as Register File. Register File consists of two components.
  1. General purpose register file (same as RAM).
     2. Special purpose register file (similar to SFR in 8051).
Fig 3
The special purpose register file consists of input/output ports and control registers. Addressing from 00H to FFH requires 8 bits of address. However, the instructions that use direct addressing modes in PIC to address these register files use 7 bits of instruction only. Therefore the register bank select (RP0) bit in the STATUS register is used to select one of the register banks.
In indirect addressing FSR register is used as a pointer to anywhere from 00H to FFH in the data memory.

Saturday, 20 December 2014

itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

SLIP RING

electrical theory and electrical fundementals for all electrical related people . students , engineers, electrician #electricaltheorems,electrical,


Thursday, 18 December 2014

itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

SWITCH MODE POWER SUPPLY (SMPS)

electrical theory and electrical fundementals for all electrical related people . students , engineers, electrician #electricaltheorems,electrical,


Like a linear power supply, the switched mode power supply too converts the available unregulated ac or dc input voltage to a regulated dc output voltage. However in case of SMPS with input supply drawn from the ac mains, the input voltage is first rectified and filtered using a capacitor at the rectifier output. The unregulated dc voltage across the capacitor is then fed to a high frequency dc-to-dc converter. Most of the dc-to-dc converters used in SMPS circuits have an intermediate high frequency ac conversion stage to facilitate the use of a high frequency transformer for voltage scaling and isolation. In contrast, in linear power supplies with input voltage drawn from ac mains, the mains voltage is first stepped down (and isolated) to the desired magnitude using a mains frequency transformer, followed by rectification and filtering. The high frequency transformer used in a SMPS circuit is much smaller in size and weight compared to the low frequency transformer of the linear power supply circuit.


The ‘Switched Mode Power Supply’ owes its name to the dc-to-dc switching converter for conversion from unregulated dc input voltage to regulated dc output voltage. The switch employed is turned ‘ON’ and ‘OFF’ (referred as switching) at a high frequency. During ‘ON’ mode the switch is in saturation mode with negligible voltage drop across the collector and emitter terminals of the switch where as in ‘OFF’ mode the switch is in cut-off mode with negligible current through the collector and emitter terminals. On the contrary the voltageregulating switch, in a linear regulator circuit, always remains in the active region.
Details of some popular SMPS circuits, with provisions for incorporating high frequency transformer for voltage scaling and isolation, have been discussed in next few lessons. In this lesson a simplified schematic switching arrangement is described that omits the transformer action. In fact there are several other switched mode dc-to-dc converter circuits that do not use a high frequency transformer. In such SMPS circuits the unregulated input dc voltage is fed to a high frequency voltage chopping circuit such that when the chopping circuit (often called dc to dc chopper) is in ON state, the unregulated voltage is applied to the output circuit that includes the load and some filtering circuit. When the chopper is in OFF state, zero magnitude of voltage is applied to the output side. The ON and OFF durations are suitably controlled such that the average dc voltage applied to the output circuit equals the desired magnitude of output voltage. The ratio of ON time to cycle time (ON + OFF time) is known as duty ratio of the chopper circuit. A high switching frequency (of the order of 100 KHz) and a fast control over the duty ratio results in application of the desired mean voltage along with ripple voltage of a very high frequency to the output side, consisting of a low pass filter circuit followed by the load. The high frequency ripple in voltage is effectively filtered using small values of filter capacitors and inductors. A schematic chopper circuit along with the output filter is shown in Fig.1 

Fig 1
 Some other switched mode power supply circuits work in a slightly different manner than the dc-to-dc chopper circuit discussed above. Details of some of these circuits have been discussed in following lessons.

SMPS versus linear power supply

As discussed above, in a linear regulator circuit the excess voltage from the unregulated dc input supply drops across a series element (and hence there is power loss in proportion to this voltage drop) whereas in switched mode circuit the unregulated portion of the voltage is removed by modulating the switch duty ratio. The switching losses in modern switches (like: MOSFETs) are much less compared to the loss in the linear element.
In most of the switched mode power supplies it is possible to insert a high frequency transformer to isolate the output and to scale the output voltage magnitude. In linear power supply the isolation and voltage-scaling transformer can be put only across the low frequency utility supply. The low frequency transformer is very heavy and bulky in comparison to the high frequency transformer of similar VA rating. Similarly the output voltage filtering circuit, in case of low frequency ripples is much bulkier than if the ripple is of high frequency. The switched mode circuit produces ripple of high frequency that can be filtered easily using smaller volume of filtering elements.
Linear power supply though more bulky and less efficient has some advantages too when compared with the switched mode power supply. Generally the control of the linear power supply circuit is much simpler than that of SMPS circuit. Since there is no high frequency switching, the switching related electro-magnetic interference (EMI) is practically absent in linear power supplies but is of some concern in SMPS circuits. Also, as far as output voltage regulation is concerned the linear power supplies are superior to SMPS. One can more easily meet tighter specifications on output voltage ripples by using linear power supplies