Thursday, 8 October 2015

IMPORTANCE OF LATCH

A latch is an example of a bistable multivibrator, that is, a device with exactly two stable states. These states are high-output and low-output. A latch has a feedback path, so information can be retained by the device. Therefore latches can be memory devices, and can store one bit of data for as long as the device is powered. As the name suggests, latches are used to "latch onto" information and hold in place. Latches are very similar to flip-flops, but are not synchronous devices, and do not operate on clock edges as flip-flops do.

SR latch

Circuit symbol for an SR latch.
An SR latch made from two NOR gates.
An SR latch made from two NAND gates.
An SR latch (Set/Reset) is an asynchronous device: it works independently of control signals and relies only on the state of the S and R inputs. In the image we can see that an SR latch can be created with two NOR gates that have a cross-feedback loop. SR latches can also be made from NAND gates, but the inputs are swapped and negated. In this case, it is sometimes called an SR latch.
When a high is applied to the Set line of an SR latch, the Q output goes high (and Q low). The feedback mechanism, however, means that the Q output will remain high, even when the S input goes low again. This is how the latch serves as a memory device. Conversely, a high input on the Reset line will drive the Q output low (and Q high), effectively resetting the latch's "memory". When both inputs are low, the latch "latches" – it remains in its previously set or reset 
When both inputs are high at once, however, there is a problem: it is being told to simultaneously produce a high Q and a low Q. This produces a "race condition" within the circuit - whichever flip flop succeeds in changing first will feedback to the other and assert itself. Ideally, both gates are identical and this is "metastable", and the device will be in an undefined state for an indefinite period. In real life, due to manufacturing methods, one gate will always win, but it's impossible to tell which it will be for a particular device from an assembly line. The state of S = R = 1 is therefore "illegal" and should never be entered.
SRQQ
00Latch
0101
1010
11Metastable
When the device is powered up, a similar condition occurs, because both outputs, Q and Q, are low. Again, the device will quickly exit the metastable state due to differences between the two gates, but it's impossible to predict which of Q and Q will end up high. To avoid spurious actions, you should always set SR flip-flops to a known initial state before using them - you must not assume that they will initialise to a low state.

Gated SR latch


A Gated SR latch made from two NOR and two AND gates.
In some situations it may be desirable to dictate when the latch can and cannot latch. The gated SR latch is a simple extension of the SR latch which provides an Enable line which must be driven high before data can be latched. Even though a control line is now required, the SR latch is not synchronous, because the inputs can change the output even in the middle of an enable pulse.
When the Enable input is low, then the outputs from the AND gates must also be low, thus the Q and Q outputs remain latched to the previous data. Only when the enable input is high can the state of the latch change, as shown in the truth table. When the enable line is asserted, a gated SR latch is identical in operation to an SR latch.
The Enable line is sometimes a clock signal, but is usually a read or write strobe.
EnableSRQQ
000Latch
001Latch
010Latch
011Latch
100Latch
10101
11010
111Metastable

D latch

D latch: A gated SR latch extended to prevent invalid output conditions
The D latch (D for "data") or transparent latch is a simple extension of the gated SR latch that removes the possibility of invalid input states.
Since the gated SR latch allows us to latch the output without using the S or R inputs, we can remove one of the inputs by driving both the Set and Reset inputs with a complementary driver: we remove one input and automatically make it the inverse of the remaining input.
The D latch outputs the D input whenever the Enable line is high, otherwise the output is whatever the D input was when theEnable input was last high. This is why it is also known as a transparent latch - when Enable is asserted, the latch is said to be "transparent" - it signals propagate directly through it as if it isn't there.
EnableDQQ
00Latch
01Latch
1001
1110
D latches are often used in I/O ports of integrated circuits and are available as discrete devices, often multiply packaged. An example is the 74HC75, part of the 7400 series of ICs, containing four separate D latches.


Wednesday, 7 October 2015

FLIP-FLOPS

In electronics, a flip-flop or latch is a circuit that has two stable states and can be used to store state information. A flip-flop is a bistable multivibrator. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and latches are a fundamental building block of digital electronics systems used in computers, communications, and many other types of systems.
Flip-flops and latches are used as data storage elements. A flip-flop stores a single bit (binary digit) of data; one of its two states represents a "one" and the other represents a "zero". Such data storage can be used for storage of state, and such a circuit is described as sequential logic. When used in a finite-state machine, the output and next state depend not only on its current input, but also on its current state (and hence, previous inputs). It can also be used for counting of pulses, and for synchronizing variably-timed input signals to some reference timing signal.
The first electronic flip-flop was invented in 1918 by the British physicists William Eccles and F. W. Jordan.[3][4] It was initially called theEccles–Jordan trigger circuit and consisted of two active elements (vacuum tubes).[5] The design was used in the 1943 British Colossus codebreaking computer[6] and such circuits and their transistorized versions were common in computers even after the introduction ofintegrated circuits, though flip-flops made from logic gates are also common now.[7][8] Early flip-flops were known variously as trigger circuits or multivibrators.

Flip-flops can be either simple (transparent or asynchronous) or clocked (synchronous); the transparent ones are commonly called latches.[1]The word latch is mainly used for storage elements, while clocked devices are described as flip-flops.[2]
Simple flip-flops can be built around a pair of cross-coupled inverting elements: vacuum tubes, bipolar transistors, field effect transistors,inverters, and inverting logic gates have all been used in practical circuits. Clocked devices are specially designed for synchronous systems; such devices ignore their inputs except at the transition of a dedicated clock signal (known as clocking, pulsing, or strobing). Clocking causes the flip-flop to either change or retain its output signal based upon the values of the input signals at the transition. Some flip-flops change output on the rising edge of the clock, others on the falling edge.
Since the elementary amplifying stages are inverting, two stages can be connected in succession (as a cascade) to form the needed non-inverting amplifier. In this configuration, each amplifier may be considered as an active inverting feedback network for the other inverting amplifier. Thus the two stages are connected in a non-inverting loop although the circuit diagram is usually drawn as a symmetric cross-coupled pair (both the drawings are initially introduced in the Eccles–Jordan patent).

Flip-flop types[edit]

Flip-flops can be divided into common types: the SR ("set-reset"), D ("data" or "delay"[12]), T ("toggle"), and JK types are the common ones. The behavior of a particular type can be described by what is termed the characteristic equation, which derives the "next" (i.e., after the next clock pulse) output, Qnext in terms of the input signal(s) and/or the current output

Timing considerations

Setup time is the minimum amount of time the data signal should be held steady before the clock event so that the data is reliably sampled by the clock. This applies to synchronous input signals to the flip-flop.
Hold time is the minimum amount of time the data signal should be held steady after the clock event so that the data are reliably sampled. This applies to synchronous input signals to the flip-flop.
Synchronous signals (like Data) should be held steady from the set-up time to the hold time, where both times are relative to the clock signal.
Recovery time is like setup time for asynchronous ports (set, reset). It is the time available between the asynchronous signals going inactive and the active clock edge.
Removal time is like hold time for asynchronous ports (set, reset). It is the time between active clock edge and asynchronous signal going inactive.[26]
Short impulses applied to asynchronous inputs (set, reset) should not be applied completely within the recovery-removal period, or else it becomes entirely indeterminable whether the flip-flop will transition to the appropriate state. In another case, where an asynchronous signal simply makes one transition that happens to fall between the recovery/removal time, eventually the flip-flop will transition to the appropriate state, but a very short glitch may or may not appear on the output, dependent on the synchronous input signal. This second situation may or may not have significance to a circuit design.
Set and Reset (and other) signals may be either synchronous or asynchronous and therefore may be characterized with either Setup/Hold or Recovery/Removal times, and synchronicity is very dependent on the TTL design of the flip-flop.
Differentiation between Setup/Hold and Recovery/Removal times is often necessary when verifying the timing of larger circuits because asynchronous signals may be found to be less critical than synchronous signals. The differentiation offers circuit designers the ability to define the verification conditions for these types of signals independently.

Metastability

Flip-flops are subject to a problem called metastability, which can happen when two inputs, such as data and clock or clock and reset, are changing at about the same time. When the order is not clear, within appropriate timing constraints, the result is that the output may behave unpredictably, taking many times longer than normal to settle to one state or the other, or even oscillating several times before settling. Theoretically, the time to settle down is not bounded. In a computer system, this metastability can cause corruption of data or a program crash if the state is not stable before another circuit uses its value; in particular, if two different logical paths use the output of a flip-flop, one path can interpret it as a 0 and the other as a 1 when it has not resolved to stable state, putting the machine into an inconsistent state

Propagation delay

Another important timing value for a flip-flop is the clock-to-output delay (common symbol in data sheets: tCO) or propagation delay (tP), which is the time a flip-flop takes to change its output after the clock edge. The time for a high-to-low transition (tPHL) is sometimes different from the time for a low-to-high transition (tPLH).
When cascading flip-flops which share the same clock (as in a shift register), it is important to ensure that the tCO of a preceding flip-flop is longer than the hold time (th) of the following flip-flop, so data present at the input of the succeeding flip-flop is properly "shifted in" following the active edge of the clock. This relationship between tCO and th is normally guaranteed if the flip-flops are physically identical. Furthermore, for correct operation, it is easy to verify that the clock period has to be greater than the sum tsu + th.

Tuesday, 6 October 2015

IMPORTANCE OF POWER AMPLIFIERS


Power Amplifiers

Amplifier circuits form the basis of most electronic systems, many of which need to produce high power to drive some output device. Audio amplifier output power may be anything from less than 1 Watt to several hundred Watts. Radio frequency amplifiers used in transmitters can be required to produce thousands of kilowatts of output power, and DC amplifiers used in electronic control systems may also need high power outputs to drive motors or actuators of many different types. This module describes some commonly encountered classes of power output circuits and techniques used to improve performance.
The voltage amplifiers described in Amplifiers Module 1, Module 2, Module 3, & Module 4 can increase the amplitude of a signal many times but may not, on their own, be able to drive an output device such as a loudspeaker or motor.
                  

Types of Power Amplifiers

Now, the most well known types of amplifiers aren’t the ones described above, but power amplifier types. Often confused as the only categories of amplifiers, they are actually types of power amplifiers and are classified on the basis of the proportion of the input cycle during which the amplifier is giving an output. The proportion of the active input cycle is also known as conduction angle. For example, a 360 degrees conduction angle means that the device is always on, a conduction angle of 180 degrees means that the device is on only for half of each cycle. Now, the different types of power amplifiers are described below:

  • Class G and H amplifiers add complexity to the signal and degrade it because of the need for switching depending on the input signal
  • Class D amplifiers are models of efficiency, but with a loss of detail and fidelity
  • Class B amplifiers generally introduce some crossover distortion, but move away from Class D, G, and H's extreme non-linearity.
  • Class AB amplifiers may introduce some crossover distortion, but they get closer to the ideal of Class A for most of its operating regime.
  • They are indeed the best compromise of performance versus cost.
  • Class A amplifiers introduce no crossover distortion and are the most desirable amps to own, but they are expensive, run hot, and have to be very well-built.


Monday, 5 October 2015

Why BANDWIDTH is important in ELECTRONICS.

In electronics, Bandwidth is used to measure electronic communication. It is defined as the width of the range of the frequencies that an electronic signal uses. Bandwidth is expressed in terms of the difference between the signal having highest-frequency and the signal having the lowest-frequency. In computer networks, bandwidth is often used as a term for the data transfer rate. More easily, the amount of data that is carried or passed from one point to another in a network, in a given time period (usually a second).

Image result for why bandwidth is more important in electronics

Usage:

Bandwidth is often applied to the electromagnetic spectrum (e.g., radio waves, light waves and X-rays). Such waves are vibrations (oscillations) of electric and magnetic fields. To use a radio example, the lowest United States AM radio channel covers the band of frequencies from 535,000 Hz to 545,000 Hz. It therefore has a bandwidth of 10,000 Hz (545,000 - 535,000). All United States AM radio broadcasting stations have this bandwidth (though the location of each band is distinct). The lowest United States FM radiochannel (on the other hand) covers the band from 88,000,000 Hz (88 MHz) to 88,200,000 Hz (88.2 MHz). It therefore has a bandwidth of 200,000 Hz. (Notice that the width of an FM band is 20 times the width of an AM band.)
The term "bandwidth" has been misused in the field of digital data communication. It is often incorrectly used to mean "data carrying capacity". However, there is no such thing as "digital bandwidth". The proper term for the data carrying capacity of a communication channel is channel capacity.
It is true that, in general, the channel capacity of a system increases with the bandwidth used for communication. However, many other effects are also important. Therefore, in many (if not most) real systems, the channel capacity is not easily related to the channel bandwidth.

Broadband:

Sometimes, the word "broadband" is used to mean "high-speed", especially in for high speed internet connections. "Broadband" means "wide band", and suggests high-speed. However, the term is not clear; "high-speed" is more clear. Typically, a dial-up telephone connection is thought to be low-speed, at less than 56,000 bit/s (bits per second). High-speed is usually 200,000 bit/s or faster. DSL (Digital Subscriber Line) or Cable modem connections are usually high-speed.

Controlling Bandwidth

Any amplifier should ideally have a bandwidth suited to the range of frequencies it is intended to amplify, too narrow a bandwidth will result in the loss of some signal frequencies, too wide a bandwidth will allow the introduction of unwanted signals, in the case of an audio amplifier for example these would include low frequency hum and perhaps mechanical noise, and at high frequencies, audible hiss.


Sunday, 4 October 2015

IMPORTANCE OF MICRO CONTROLLER

A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of Ferroelectric RAM, NOR flash or OTP ROMis also often included on chip, as well as a typically small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications.
Microcontrollers are used in automatically controlled products and devices, such as automobile engine control systems, implantable medical devices, remote controls, office machines, appliances, power tools, toys and other embedded systems. By reducing the size and cost compared to a design that uses a separate microprocessor, memory, and input/output devices, microcontrollers make it economical to digitally control even more devices and processes. Mixed signal microcontrollers are common, integrating analog components needed to control non-digital electronic systems.
Some microcontrollers may use four-bit words and operate at clock rate frequencies as low as 4 kHz, for low power consumption (single-digit milliwatts or microwatts). They will generally have the ability to retain functionality while waiting for an event such as a button press or other interrupt; power consumption while sleeping (CPU clock and most peripherals off) may be just nanowatts, making many of them well suited for long lasting battery applications. Other microcontrollers may serve performance-critical roles, where they may need to act more like a digital signal processor (DSP), with higher clock speeds and power consumption.
   
History
The first microprocessor was the 4-bit Intel 4004 released in 1971, with the Intel 8008 and other more capable microprocessors becoming available over the next several years. However, both processors required external chips to implement a working system, raising total system cost, and making it impossible to economically computerize appliances.
The Smithsonian Institution says TI engineers Gary Boone and Michael Cochran succeeded in creating the first microcontroller in 1971. The result of their work was the TMS 1000, which became commercially available in 1974. It combined read-only memory, read/write memory, processor and clock on one chip and was targeted at embedded systems.[1]
Partly in response to the existence of the single-chip TMS 1000,[2] Intel developed a computer system on a chip optimized for control applications, the Intel 8048, with commercial parts first shipping in 1977.[2] It combined RAM and ROM on the same chip. This chip would find its way into over one billion PC keyboards, and other numerous applications. At that time Intel's President, Luke J. Valenter, stated that the microcontroller was one of the most successful in the company's history, and expanded the division's budget over 25%.
In 1993, the introduction of EEPROM memory allowed microcontrollers (beginning with the Microchip PIC16x84)[citation needed] to be electrically erased quickly without an expensive package as required for EPROM, allowing both rapid prototyping, and In System Programming. (EEPROM technology had been available prior to this time, but the earlier EEPROM was more expensive and less durable, making it unsuitable for low-cost mass-produced microcontrollers.) The same year, Atmel introduced the first microcontroller using Flash memory, a special type of EEPROM.[3] Other companies rapidly followed suit, with both memory types.

Types of microcontrollers
As of 2008, there are several dozen microcontroller architectures and vendors including:

Friday, 2 October 2015

IMPORTANCE OF MICROPROCESSOR

Microprocessors are integrated electrical circuits that are capable of carrying out the instructions of a computer software application or program. These electrical circuits receive instructions from the application or program, interpret these instructions and execute an action or set of actions, based upon what the instructions call for.

Image result for importance of microprocessor



  • Importance

    • A device that uses a microprocessor is normally capable of many functions, such as word processing, calculation, and communication via Internet or telephone. However, for the device to work properly, the microprocessor itself has to communicate with other parts of the device. For example, a microprocessor would need to communicate with the video display to control the output data that a program may produce. Therefore, a microprocessor would act as device's "brain" in that it transmits, receives and interprets the data needed to operate a device.

    History

      Technological advances in electronic circuits have allowed much faster (and smaller) microprocessor circuits to be created. For example, in 2009, the Intel Core i7 processor (a 64-bit processor) operated at 3.33 GHz, or 3.33 billion cycles per second
    • Microprocessor circuits were first produced starting in 1969, with the first advertisement for a microprocessor appearing in 1971. The Intel 4004 4-bit microprocessor was developed as a central processing unit for a Japanese calculator manufacturer named Busicom. This microprocessor operated at 740 kHz, or 740,000 cycles per second.
      The Intel 4004 4-bit microprocessor was capable of accepting, translating and communicating 4-bit instructions, or "words" of information. In 1972, Intel released the 8008, an 8-bit microprocessor. Soon after, in 1974, 16-bit processors, such as the National Semiconductor IMP-16 and the National Semiconductor PACE, were offered to the public. AT&T Bell Labs introduced the 32-bit processor in 1979.

    • Types

      • Processor types are often measured in "bits," or how wide of an instruction set the processor can accept.
        A 4-bit microprocessor can accept, translate and communicate a 4-bit, or four-integer (such as "0000"), instruction set, also known as a 4-bit "word." An 8-bit microprocessor can process an 8-bit instruction set (such as "00000000"). A 16-bit microprocessor can utilize a 16-bit word, a 32-bit processor uses a 32-bit word and so forth.
        Most computer microprocessors sold since 2000 have been either 32-bit or 64-bit processors. In particular, since 2004, 64-bit, multicore (often called "dual-core" or "quad-core") processors have become commonly installed in new computers. However, other devices (such as smartphones and PDAs) make use of 32-bit processors.

      Practical Applications

      • Microprocessors can be found in calculators, gaming consoles, wristwatches, consumer electronics and even automobiles.