REMOTE POWER MONITORING SYSTEM USING MICROCONTROLLER

Size: px
Start display at page:

Download "REMOTE POWER MONITORING SYSTEM USING MICROCONTROLLER"

Transcription

1 REMOTE POWER MONITORING SYSTEM USING MICROCONTROLLER A Project report Submitted in partial fulfillment of the requirement For the award of the degree of BACHELOR OF TECHNOLOGY IN ELECTRONICS AND COMMUNICATION ENGINEERING By B. MOHAN KRISHNA (05391A0468) B. VIDYA SAGAR (05391A0489) S.K. RABBANI (05391A0475) Under the guidance of (Mr. P.J.REGINALD) Assistant Professor Department of Electronics and Communication Engineering VIGNAN S ENGINEERING COLLEGE ISO Certified, NBA & NAAC Accredited with A Grade VADLAMUDI GUNTUR (Dt.) ( )

2 CERTIFICATE This is to certify that this project report entitled REMOTE POWER MONITORING USING SYSTEM MICROCONTROLLER is a bonafide record of work done by B. MOHAN KRISHNA (05391A0468) B. VIDYA SAGAR (05391A0489) S.K. RABBANI (05391A0475) Under my guidance and supervision and submitted in partial fulfillment of the requirements for the award of the degree of Bachelor of Technology in Electronics and Communication Engineering by the Jawaharlal Nehru Technological University, Kakinada. (Mr. P.J.REGINALD) Guide Certified by the Head of the Department (Dr. D. VENKATA RAO) Professor and Head Department of Electronics and Communication Engineering VIGNAN S ENGINEERING COLLEGE ISO Certified, NBA & NAAC Accredited with A Grade VADLAMUDI GUNTUR (Dt.) ( )

3 ACKNOWLEDGEMENT The completion of any project brings with it a sense of satisfaction, but it is never complete without thanking those people who made it possible and whose constant support has crowned our efforts with success. We would also like to thank our guide, Mr. P.J.REGINALD Assistant professor, Dept. of Electronics And Communication for his expert guidance, encouragement and valuable suggestions at every step. We would also like to express our gratitude to Dr. D. VENKATA RAO, Head of the Department, Electronics and Communication V.E.C, Vadlamudi, for encouraging and inspiring us to carry out the project in the department lab. We are grateful to our esteemed principal, VIGNAN S ENGINEERING COLLEGE, Vadlamudi, Dr. K.V.N.SRINIVASA RAO f o r supporting and funding this endeavor. We also would like to thank all the staff members of E&C dept., classmates for providing us with the required facilities and support towards the completion of the project. PROJECT ASSOCIATES B. MOHAN KRISHNA (05391A0468) B. VIDYA SAGAR (05391A0489) S.K. RABBANI (05391A0475)

4 ABSTRACT Electricity is the modern man's most convenient and useful form of energy without which the present social infrastructure would not be feasible. The increase in per capita production is the reflection of the increase in the living standard of people. When importance of electricity is on the increasing side, then how much should theft of this energy or illegal consumption of power from the transmission lines be averted? Power theft has become a great challenge to the electricity board. Our project identifies the Power theft and indicates it to the Electricity board through Power line. We had also dealt about the remote monitoring of an energy meter. The project is constructed with the popular microcontroller MC551 series 8051 microcontroller, power measurement IC, voltage, current transformers. The central office is having a PC connected to the different energy meters fixed at different organizations wireless link. The energy meter connected at the consumer point continuous reads power data and sends it to the PC. The program written in micro controller to read and transmit the power data to the PC on request. The PC can connected to number of users with there unique ID number. Initially PC transmits the ID code to the energy meters then the corresponding energy meters transmits the energy information to the PC with the help of this centrally we can monitor energy consumed by different consumers and useful for analyzing the unauthorized usage. The software is written in the PC for sending request to the energy meter and receiving the energy meter and receiving the energy data from consumer point.

5 CONTENTS 1. INTRODUCTION 1 2. BLOCK DIAGRAM 3 3. POWER MEASURMENT VOLTAGE TRANSFORMERS PRINCIPLE OF OPERATION TYPICAL TERMS USED FOR SPECIFYING A PT CURRENT TRANSFORMERS PRINCIPLE OF OPERATION 8 4. ADC PIN CONFIGURATION FEATURES KEY SPECIFICATIONS BLOCK DIAGRAM FUNCTIONAL DESCRIPTION MULTIPLEXER CONVERTER CHARACTERSTICS C52 MICROCONTROLLER INTRODUCTION DESCRIPTION FEATURES PIN DIGRAM PIN CONFIGURATIONS PIN DESCRIPTION MEMORY 23

6 5.7.1 ON-CHIP MEMORY EXTERNAL CODE MEMORY EXTERNAL RAM SPECIAL FUNCTION REGISTER (SFR) MEMORY ADDRESSING MODES IMMEDIATE ADDRESSING DIRECT ADDRESSING EXTERNAL INDIRECT PROGRAMMING THE FLASH MEMORY PROGRAMMING ALGORITHM SERIAL COMMUNICATION SPEED OF TRANSMISSION RS RS-232 CABLING MAX 232C LOGIC DIAGRAM OPERATING CIRCUIT FEATURES APPLICATIONS RS-232 DRIVERS RS-232 RECEIVERS 41 7.CIRCUIT DIAGRAM HARDWARE PHOTOGRAPHY 45 9.RESULT CONCLUSION AND SCOPE OF FUTURE WORK 47

7 11. MICROCONTROLLER PROGRAM BIBLIOGRAPHY 71

8 1. INTRODUCTION With the electric industry undergoing change, increased attention is being focused on power supply reliability and power quality. Power providers and users alike are concerned about reliable power, whether the focus is on interruptions and disturbances or extended outages. One of the most critical elements in ensuring reliability is monitoring power system performance. Monitoring can provide information about power flow and demand and help identify the cause of power system disturbances. It can even help identify problem conditions on a power system before they cause interruptions or disturbances. The implementation of this project is to monitor the power consumed by a model organization such a household consumers from a centrally located point. Monitoring the power means calculating the power consumed exactly by the user at a given time. The power consumed by the user is measured and communicated to the controlling substation when ever needed by the person at the sub station. The communication can be of two types 1. Wired communication like using the existing transmission lines and sending the data by modulating with high frequency carrier signal or using the existing telephone lines. 2. Wireless communication based on the available technologies like IR communication, Bluetooth technology or GSM technology. Among these two communications, the one used in our project is wired communication which suits best for long distance communication. A microcontroller is equipped at the 1

9 consumers terminal to measure the power consumed by the user at a given instant. The process is not continuous it does this when ever there is a request from the substation control person. The power can be on and off to the user from the substation by operating a relay connected in series to the user. Whenever there is no supply at the user the information can be obtained at the substation. The practical application of the project can be implemented along with a data backup for billing and dispatching the bills with out manual labor and avoid any disturbances in supply at the user side. The project consists of the topics 1. Power measurement unit 2. 89C52 microcontroller 3. ADC Serial communication with the PC Power measurement unit consists of the power measurement by using the instrument transformers and their features. Serial communication with the PC includes the hardware and software description of how the communication is done using the serial port of a PC 2

10 2. BLOCK DIAGRAM The block diagram consists of Load, current transformer, voltage transformer, 89C52 microcontroller, ADC 0809, and a differential relay. The household load to be supplied is connected in series to the AC supply mains through a switch which is operated by the action of a relay. Current transformer is used to measure the current required for the user and the voltage transformer is used to measure the voltage of operation for the user. The measured values are given to the ADC to convert the analog values to the digital values. These values are stored in microcontroller registers and the information is transmitted to the pc when ever there is a request for the data from the remote controlling station. Oscillator is provided for the ADC and microcontroller for the clock signal and the reference voltage is given for the each of the IC used. 3

11 This supplier side is the basic for the operation of the project; the entire consumer side is controlled in accordance with the program written on this supplier side. The supplier side (substation) is located remotely at some distance away from the user and the signal is sent to the consumer side for data or to control the supply of power to the user. The request for information and the power data is received from the user side via RS232. Microcontroller is interfaced to the personal computer serial port through MAX23C to drive between RS232 and TTL levels. 3. POWER MEASUREMENT 4

12 The main aim of the Remote power monitoring is to measure the exact amount of power that is consumed by the user at a given instant of time so the power measurement unit is essential and is connected on the consumer side. The power is measured by using the instrument transformers. Instrument transformers are used for measurement and protective application, together with equipment such as meters and relays. Their role in electrical systems is of primary importance as they are a means of "stepping down" the current or voltage of a system to measurable values, such as 5A or 1A in the case of a current transformers or 110V or 100V in the case of a voltage transformer. This offers the advantage that measurement and protective equipment can be standardized on a few values of current and voltage. The types of instrument transformers available are Voltage transformers Current transformers 3.1VOLTAGE TRANSFORMERS 3.1.1PRINCIPLE OF OPERATION: The voltage transformer is one in which "the secondary voltage is substantially proportional to the primary voltage and differs in phase from it by an angle which is approximately zero for an appropriate direction of the connections." In an "ideal" transformer, the secondary voltage vector is exactly opposite and equal to the primary voltage vector, when multiplied by the turns ratio. In a "practical" transformer, errors are 5

13 introduced because some current is drawn for the magnetization of the core and because of drops in the primary and secondary windings due to leakage reactance and winding resistance. One can thus talk of a voltage error, which is the amount by which the voltage is less than the applied primary voltage, and the phase error, which is the phase angle by which the reversed secondary voltage vector is displaced from the primary voltage vector TYPICAL TERMS USED FOR SPECIFYING A PT a. RATED PRIMARY VOLTAGE: This is the rated voltage of the system whose voltage is required to be stepped down for measurement and protective purposes. b. RATED SECONDARY VOLTAGE: This is the voltage at which the meters and protective devices connected to the secondary circuit of the voltage transformer operate. c. RATED BURDEN: This is the load in terms of volt-amperes (VA) posed by the devices in the secondary circuit on the VT. This includes the burden imposed by the connecting leads. The VT is required to be accurate at both the rated burden and 25% of the rated burden. d. RATED VOLTAGE FACTOR: Depending on the system in which the VT is to be used, the rated voltage factors to be specified are different. The table below is adopted from Indian and International standards. 6

14 Rated voltage factor Rated time Method of connecting primary winding in system 1.2 Continuous Between phases in any network Between transformer star-point and earth in any network Continuous Between phase and earth in an effectively earthed for 30 second neutral system Continuous Between phase and earth in a non-effectively earthed for 30 second neutral system with automatic fault tripping Continuous for 8 hours Between phase and earth in an isolated neutral system without automatic fault tripping or in a resonant earthed system without automatic fault tripping e. TEMPERATURE CLASS OF INSULATION: The permissible temperature rise over the specified ambient temperature. Typically, classes E, B and F. f. RESIDUAL VOLTAGE TRANSFORMER (RVT): RVTs are used for residual earth fault protection and for discharging capacitor banks. The secondary residual voltage winding is connected in open delta. Under normal conditions of operation, there is no voltage output across the residual voltage winding. When there is an earth fault, a voltage is developed across the open delta winding which activates the relay. When using a three phase RVT, the primary neutral should be earthed, as 7

15 otherwise third harmonic voltages will appear across the residual winding. 3 phase RVTs typically have 5 limb construction. 3.2 CURRENT TRANSFORMERS PRINCIPLE OF OPERATION: A current transformer is defined as "as an instrument transformer in which the secondary current is substantially proportional to the primary current (under normal conditions of operation) and differs in phase from it by an angle which is approximately zero for an appropriate direction of the connections." This highlights the accuracy requirement of the current transformer but also important is the isolating function, which means no matter what the system voltage the secondary circuit need be insulated only for a low voltage. The current transformer works on the principle of variable flux. In the "ideal" current transformer, secondary current would be exactly equal (when multiplied by the turns ratio) and opposite to the primary current. But, as in the voltage transformer, some of the primary current or the primary ampere-turns is utilized for magnetizing the core, thus leaving less than the actual primary ampere turns to be "transformed" into the secondary ampere-turns. This naturally introduces an error in the transformation. The error is classified into two-the current or ratio error and the phase error. 8

16 4. ADC 0809 The ADC0809, data acquisition component is a monolithic CMOS device with an 8- bit analog-to-digital converter, 8-channel multiplexer and microprocessor compatible control logic. The 8-bit A/D converter uses successive approximation as the conversion technique. The converter features a high impedance chopper stabilized comparator, a 256R voltage divider with analog switch tree and a successive approximation register. The 8-channel multiplexer can directly access any of 8-single-ended analog signals. The device eliminates the need for external zero and full-scale adjustments. Easy interfacing to microprocessors is provided by the latched and decoded multiplexer address inputs and latched TTL TRI- STATE outputs. The design of the ADC0809 has been optimized by incorporating the most desirable aspects of several A/D conversion techniques. The ADC0809 offers high speed, high accuracy, minimal temperature dependence, excellent long-term accuracy and repeatability, and consumes minimal power. These features make this device ideally suited to applications from process and machine control to consumer and automotive applications 9

17 4.1 PIN CONFIGURATION 4.2 FEATURES Easy interface to all microprocessors Operates ratio metrically or with 5 VDC or analog span adjusted voltage reference No zero or full-scale adjust required 8-channel multiplexer with address logic 0V to 5V input range with single 5V power supply Outputs meet TTL voltage level specifications Standard hermetic or molded 28-pin DIP package 28-pin molded chip carrier package 10

18 4.3 KEY SPECIFICATIONS Resolution 8 Bits Total Unadjusted Error ±1 2 LSB and ±1 LSB Single Supply 5V DC Low Power 15 mw Conversion Time 100 μs 4.4 BLOCK DIAGRAM 11

19 4.5 FUNCTIONAL DESCRIPTION MULTIPLEXER The device contains an 8-channel single-ended analog signal multiplexer. A particular input channel is selected by using the address decoder. Table shows the input states for the address lines to select any channel. The address is latched into the decoder on the low-to-high transition of the address latch enable signal CONVERTER CHARACTERISTICS THE CONVERTER The heart of this single chip data acquisition system is its 8-bit analog-to-digital converter. The converter is designed to give fast, accurate, and repeatable conversions over a wide range of temperatures. The converter is partitioned into 3 major sections: the 256R ladder network, the successive approximation register, and the comparator. The converter s 12

20 digital outputs are positive true. The 256R ladder network approach was chosen over the conventional R/2R ladder because of its inherent monotonicity, which guarantees no missing digital codes. Monotonicity is particularly important in closed loop feedback control systems. A non-monotonic relationship can cause oscillations that will be catastrophic for the system. Additionally, the 256R network does not cause load variations on the reference voltage. The bottom resistor and the top resistor of the ladder network in are not the same value as the remainder of the network. The difference in these resistors causes the output characteristic to be symmetrical with the zero and full-scale points of the transfer curve. The first output transition occurs when the analog signal has reached +1 2 LSB and succeeding output transitions occur every 1 LSB later up to full-scale. The successive approximation register (SAR) performs 8 iterations to approximate the input voltage. For any SAR type converter, n-iterations are required for an n-bit converter. In the ADC0809, the approximation technique is extended to 8 bits using the 256R network. The A/D converter s successive approximation register (SAR) is reset on the positive edge of the start conversion start pulse. The conversion is begun on the falling edge of the start conversion pulse. A conversion in process will be interrupted by receipt of a new start conversion pulse. Continuous conversion may be accomplished by tying the end of conversion (EOC) output to the SC input. If used in this mode, an external start conversion pulse should be applied after power up. End-of-conversion will go low between 0 and 8 clock pulses after the rising edge of start conversion. 13

21 5. 89C52 MICROCONTROLLER 5.1 INTRODUCTION Micro controller is a true computer on a chip. Microprocessors are intended to be general-purpose digital computers whereas micro controllers are intended to be special purpose digital controllers. Generally microprocessors contain a CPU, memory- addressing units and interrupt handling circuits. Micro controllers have these features as well as timers, parallel and serial I/O and internal RAM and ROM. Like the microprocessor, a micro controller is a general-purpose device, but one that is meant to read data, and control its environmental based on those calculations. The contrast between a micro controller and a microprocessor is best exemplified by the fact that microprocessors have many operational codes for moving data from external memory to CPU; microcontrollers may have one or two. Microprocessors may have one or two types of bit-handling instructions; micro controllers will have many. The microprocessor is concerned with the rapid movement of code and data from external addresses to the chip; the microcontroller is concerned with rapid movements of bits with in the chip. The micro controller can function as a computer with the addition of no external digital parts; the microprocessor must have many additional parts to be operational. Generally 4-bit microcontrollers are intended for use in large volumes as true 1-chip computers. Typical applications consist of appliances and toys. Eight bit micro controllers represent a transition zone between the dedicated, high volume, 4-bit micro controllers and 14

22 the high performance, 16 and 32-bit units. Eight bit micro controllers are very useful word size for small computing tasks. 16-bit controllers have also been designed to take the advantage of high level programming languages in the expectation that very little assembly language programming will be done when employing these controllers in sophisticated applications. 32 bit controllers are also used in high speed control and signal processing applications. 5.2 DESCRIPTION The AT89C52 is a low-power, high-performance CMOS 8-bit microcomputer with 8K bytes of Flash programmable and erasable read only memory (PEROM). The device is manufactured using Atmel s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set and pin out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C52 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications. 5.3 FEATURES 1. Compatible with MCS-51 Products 2. 8K Bytes of In-System Reprogrammable Flash Memory (Endurance: 1,000 Write/Erase Cycles) 3. Fully Static Operation: 0 Hz to 24 MHz 15

23 4. Three-level Program Memory Lock x 8-bit Internal RAM Programmable I/O Lines 7. Two 16-bit Timer/Counters 8. Six Interrupt Sources 9. Programmable Serial Channel 10. Low-power Idle and Power-down Modes 5.4 PIN DIAGRAM: (T2) P1.0 (T2 EX) P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD) P3.0 (TXD) P3.1 (INT0) P3.2 (INT1) P3.3 (T0) P ATMEL 8 9 C VCC P0.0(AD0) P0.1(AD1) P0.2(AD2) P0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6) P0.7(AD7) EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A14) (T1) P3.5 (W R) P3.6 (RD) P P2.5(A13) P2.4(A12) P2.3(A11) XTAL P2.2(A10) XTAL1 GND P2.1(A9) P2.0(A8) 16

24 5.5 PIN CONFIGURATIONS The AT89C52 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit timer/counters, five vector two-level interrupt architecture, a full duplex serial port, and on chip oscillator and clock circuitry. IN addition, the AT89C52 is designed with static logic for operation down to zero frequency and supports two software selectable power selecting modes. The idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning. The Power down Mode saves the RAM contents but freezes the oscillator all other chip functions until the next hardware reset. 5.6 PIN DESCRIPTION VCC Supply voltage. GND Ground. Port 0 Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high impedance inputs. Port 0 may also be configured to be the multiplexed low order 17

25 address/data bus during accesses to external program and data memory. In this mode P0 has internal pull ups. Port 0 also receives the code bytes during Flash programming, and outputs the code bytes during program verification. External pull ups are required during program verification. Port 1 Port 1 is an 8-bit bi-directional I/O port with internal pull ups. The Port 1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 1 also receives the low-order address bytes during Flash programming and verification. Port 2 Port 2 is an 8-bit bi-directional I/O port with internal pull ups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 2 emits the highorder address byte during fetches from external program memory and during accesses to external data memory that uses 16-bit addresses DPTR). In this application, it uses strong internal pull-ups when emitting 1s. During accesses to external data memory that uses 8-bit addresses RI); Port 2 emits the contents of the P2 Special Function 18

26 Register. Port 2 also receives the high-order address bits and some control signals during Flash programming and verification. Port 3 Port 3 is an 8-bit bi-directional I/O port with internal pull ups. The Port 3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull ups. Port 3 also serves the functions of various special features of the AT89C51 as listed below: Port 3 also receives some control signals for Flash programming and verification. RST Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device. 19

27 ALE/PROG Address Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming. In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. PSEN Program Store Enable is the read strobe to external program memory. When the AT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory. EA/VPP External Access Enable: EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be strapped to 20

28 VCC for internal program executions. This pin also receives the 12-volt programming enable voltage (VPP) during Flash programming, for parts that require 12-volt VPP. XTAL1 circuit. Input to the inverting oscillator amplifier and input to the internal clock operating XTAL2 Output from the inverting oscillator amplifier. OSCILLATOR CHARACTERISTICS XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in Figure 1. Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure. There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed. 21

29 IDLE MODE In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all the special functions registers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset. It should be noted that when idle is terminated by a hardware reset, the device normally resumes program execution, from where it left off, up to two machine cycles before the internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port pin when Idle is terminated by reset, the instruction following the one that invokes Idle should not be one that writes to a port pin or to external memory. 22

30 POWER DOWN MODE: In the power-down mode, the oscillator is stopped, and the instruction that invokes power-down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the power-down mode is terminated. The only exit from power-down is hardware reset. Reset redefines the SFRs but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize. PROGRAM MEMORY LOCK BITS: On the chip are three lock bits which can be left un programmed (U) or can be programmed (P) to obtain the additional features listed in the table below. When lock bit 1 is programmed, the logic level at the EA pin is sampled and latched during reset. If the device is powered up without a reset, the latch initializes to a random value, and holds that value until reset is activated. It is necessary that the latched value of EA be in agreement with the current logic level at that pin in order for the device to function properly. 5.7 MEMORY The 8051 has three very general types of memory. To effectively program the 8051 it is necessary to have a basic understanding of these memory types. The memory types are illustrated in the following graphic. They are: 23

31 1. on-chip memory 2. External Code Memory 3. External RAM 4. Special function register memory ON-CHIP MEMORY This refers to any memories (Code, RAM or other) that physically exist on the microcontroller itself. On- Chip memory can be of several types. The 8051 has a bank of 128 bytes if Internal RAM. This internal RAM available and it is also the most flexible in terms of reading, writing, and modifying its contents. Internal RAM is volatile, so when the 8051 is rest this memory is cleared. 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. Bit memory also lives and is part of internal RAM. The 80bytes remaining of Internal RAM, from addresses 30h through 7Fh, may be used by user variables that need to be accessed frequently or at a high speed. This area is also utilized by the microcontroller as a storage area for the operating stack. This fact severely limits the 8051 s 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 stack and user. 24

32 5.7.2 EXTERNAL CODE MEMORY This is code (or program) memory that resides off-chip. This is often in the form of an external (EPROM). Code Memory is the memory that holds the actual 8051 program that is to be run. This memory is limited to 64K and comes in many shapes ands sizes. Code Memory may be found on-chip, either burned in to 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 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. When the program is stored in-chip the 64K maximum is often reduced to 4K, 8K or 16K. This varies depending on the version of the chip that is being used. Each version offers how much ROM/EPROM spacer the chip has. However, code memory is most commonly implemented as off-chip EPROM. This is especially true in low-cost development systems EXTERNAL RAM or flash RAM. This RAM memory resides off-chip. This is often in the form of standard static RAM 25

33 As an obvious of Internal RAM, the 8051 also supports what is called 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 8051 supports External RAM up to 64K SPECIAL FUNCTION REGISTER (SFR) MEMORY Special Function Register (SFRs) are areas of memory that control specific functionality of the 8051 processor. For example, four SFRs permit access to the 8051 s 32 input/output lines. Another SFR allows a program to read or write to the 8051 s serial port. Other SFRs allow the user to set the serial baud rate, control and access timers, and configure the 8051 s interrupt system. 26

34 5.8 ADDRESSING MODES An addressing mode refers to how you are addressing given memory location. In summary, the addressing modes are as follows, with an example of each: Immediate Addressing Direct Addressing In Direct Addressing External Direct Code Indirect MOV A,#20H MOVA,30H MOV MOVX Each of these addressing modes provides important flexibility IMMEDIATE ADDRESSING Immediate Addressing is so-named because the value to be stored in memory immediately follows the operation code in memory. That is to say, the instruction itself dictates what value will be stored in memory. For example, the instruction: MOV A, #20H This instruction uses Immediate Addressing because the Accumulator will be loaded with the value that immediately follows; in this case 20 (hexadecimal). Immediate addressing is very fast since the value to be loaded is included in the instruction. However, since the value to be loaded is fixed at compile-time it is not very flexible. 27

35 5.8.2 DIRECT ADDRESSING Indirect Addressing is a very powerful addressing which in many cases provides an exceptional level of flexibility. Indirect Addressing is also only way to access the extra 128 bytes of Internal RAM found on an Indirect Addressing appears as follows: MOV A,@R 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. An example of this addressing mode is Eg: A. 5.9 PROGRAMMING THE FLASH MEMORY The AT89C52 is normally shipped with the on chip flash memory array in the erased state (that is, contents FFH) and ready to be programmed. The programming interface accepts either a high voltage (12-volt) or a low voltage (V CC ) program enable signal. The low voltage programming mode provides enable signal. The low voltage programming mode provides convenient way to program the AT89C52 inside the user s system, while the highvoltage programming mode is compatible with Flash or EPROM programmers. The 28

36 AT89C52 is shipped with either the high voltage or low voltage programming mode enabled. The AT89C52 code memory array is programmed byte by byte in either programming mode. The program any non blank byte in the chip Flash Memory, the entire memory must be erased using the Chip Erase Mode PROGRAMMING ALGORITHM: Before programming the AT89C52, the address, the data and control signals should be set up according to the flash programming mode table. To program the AT89C52, take the following steps: 1. Input the desired memory location on the address line 2. Input the appropriate data b byte on the data lines. 3. Activate the correct combination of control signals. 4. Raise EA/V PP to 12V for the high voltage programming mode. 5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte write cycle is self timed and typically takes no more than 1.5ms. repeat steps 1 through 5, changing the address and data for the entire array or until the end of the object file is reached. DATA POLLING: The AT89C52 features Data Polling to indicate the end of a write cycle. During a write cycle, an attempted read of the last byte written will result in the complement of the 29

37 written datum on P0.7. Once the write cycle has been completed, true data are valid on all outputs, and the next cycle may begin. Data polling may begin any time after a write cycle had been initiated. Ready/Busy: The progress of byte programming can also be monitored by the RDY/BSY output signal. P3.4 is pulled low after ALE goes high during programming to indicate BUSY.P3.4. is pulled high again when programming is done to indicate READY. Program Verify: If the lock bits LB1 and LB2 have not been programmed, the programmed code data can be read via the address and data lines for verification. The lock bits cannot be verified directly. Verification of the lock bits is achieved by observing that their features are enabled. Chip Erase: The entire Flash array is erased electrically by using the proper combination of control signals and by holding ALE/PROG low for 10ms. The code array is written with all 1 s. The chip erase operation must be executed before the code memory can be reprogrammed. 30

38 READING THE SIGNATURE BYTES: The signature bytes are read by the same procedure as a normal verification of locations 030H, 031H and 032H except that P3.6 and P3.7 must be pulled to a logic low. The values returned are as follows. (030H)=1EH indicates manufactured by Atmel (031H)=51H indicates 89C51 (032H)=FFH indicates 12V programming (032H)=05H indicated 5V programming PROGRAMMING INTERFACE: Every code byte in the Flash array can be written and the entire array can be erased by using the appropriate combination of control signals. The write operation cycle is self timed and once initiated, will automatically time itself to completion 31

39 6. SERIAL COMMUNICATION Serial communication is a popular means of transmitting data between a computer and a peripheral device such as a programmable instrument or even another computer. Serial communication uses a transmitter to send data, one bit at a time, over a single communication line to a receiver. You can use this method when data transfer rates are low or you must transfer data over long distances. Serial communication is popular because most computers have one or more serial ports, so no extra hardware is needed other than a cable to connect the instrument to the computer or two computers together Serial communication requires that you specify the following four parameters: The baud rate of the transmission The number of data bits encoding a character The sense of the optional parity bit The number of stop bits Each transmitted character is packaged in a character frame that consists of a single start bit followed by the data bits, the optional parity bit, and the stop bit or bits. Figure shows a typical character frame. 32

40 Baud rate is a measure of how fast data are moving between instruments that use serial communication. RS-232 uses only two voltage states, called MARK and SPACE. In such a two-state coding scheme, the baud rate is identical to the maximum number of bits of information, including control bits, that are transmitted per second. MARK is a negative voltage, and SPACE is positive. Figure 2 shows how the idealized signal looks on an oscilloscope. The truth table for RS-232: Signal>3V=0 Signal>-3V=1. The output signal level usually swings between +12 V and -12 V. The dead area between +3 V and -3 V is designed to absorb line noise. A start bit signals the beginning of each character frame. It is a transition from negative (MARK) to positive (SPACE) voltage. Its duration in seconds is the reciprocal of the baud rate. If the instrument is transmitting at 9,600 baud, the duration of the start bit and each subsequent bit is about ms. Data bits are transmitted upside down and backwards. That is, inverted logic is used, and the order of transmission is from least significant bit (LSB) to most significant bit 33

41 (MSB). To interpret the data bits in a character frame, you must read from right to left and read 1 for negative voltage and 0 for positive voltage. An optional parity bit follows the data bits in the character frame. The parity bit, if present, also follows inverted logic, 1 for negative voltage and 0 for positive voltage. This bit is included as a simple means of error handling. You specify ahead of time whether the parity of the transmission is to be even or odd. If the parity is chosen to be odd, the transmitter then sets the parity bit in such a way as to make an odd number of ones among the data bits and the parity bit. This transmission uses odd parity. There are five ones among the data bits, already an odd number, so the parity bit is set to SPEED OF TRANSMISSION: Knowing the structure of a character frame and the meaning of baud rate as it applies to serial communication, you can calculate the maximum transmission rate, in characters per second, for a given communication setting. This rate is just the baud rate divided by the bits per frame. This is the maximum character transmission rate. The hardware on one end or the other of the serial link might not be able to reach these rates, for various reasons. There are many different recommended standards of serial port communication, the most common types is as following 6.2 RS-232 The RS-232 is a standard developed by the Electronic Industries Association (EIA) and other interested parties, specifying the serial interface between Data Terminal Equipment 34

42 (DTE) and Data Communications Equipment (DCE). It is commonly used in computer serial ports. The RS-232 standard includes electrical signal characteristics (voltage levels), interface mechanical characteristics (connectors), functional description of interchange circuits (the function of each electrical signal), and some recipes for common kinds of terminal-to-modem connections. RS-232C is a long-established standard ("C" is the current version) that describes the physical interface and protocol for relatively low-speed serial data communication between computers and related devices. Parts of this standard have been adopted (with various degrees of fidelity) for use in serial communications between computers and printers, modems, and other equipment. The serial ports on standard IBMcompatible personal computers follow RS-232. Somewhere in your PC, typically on a Universal Asynchronous Receiver/Transmitter (UART) chip on your motherboard, the data from your computer is transmitted to a serial device from its Data Terminal Equipment (DTE) interface. Since data in your computer flows along parallel circuits and serial devices can handle only one bit at a time, the UART chip converts the groups of bits in parallel to a serial stream of bits. As your PC's DTE agent, it also communicates with the serial device, which, in accordance with the RS-232C standard, has a complementary interface called the Data Communications Equipment (DCE) interface. 6.3 RS-232 CABLING Devices that use serial cables for their communication are split into two categories. These are DCE and DTE. DCE are devices such as a modem, TA adapter, plotter, and so on, while DTE is a computer or terminal. RS-232 serial ports come in two sizes, the D-Type 25-35

43 pin connector and the D-Type 9-pin connector. Both of these connectors are male on the back of the PC. Thus, you require a female connector on the device. Table 1 shows the pin connections for the 9-pin Type connectors. Function Signal PIN DTE DCE Data TxD 3 Output Input RxD 2 Input Output RTS 7 Output Input CTS 8 Input Output Handshake DSR 6 Input Output DCD 1 Input Output STR 4 Output Input Common Com Other RI 9 Output Input 36

44 1. The TD (transmit data) wire is the one through which data from a DTE device is transmitted to a DCE device. This name can be deceiving, because this wire is used by a DCE device to receive its data. The TD line is kept in a mark condition by the DTE device when it is idle. The RD (receive data) wire is the one on which data is received by a DTE device, and the DCE device keeps this line in a mark condition when idle. 2. RTS stands for Request To Send. This line and the CTS line are used when "hardware flow control" is enabled in both the DTE and DCE devices. The DTE device puts this line in a mark condition to tell the remote device that it is ready and able to receive data. If the DTE device is not able to receive data (typically because its receive buffer is almost full), it will put this line in the space condition as a signal to the DCE to stop sending data. When the DTE device is ready to receive more data (i.e. after data has been removed from its receive buffer), it will place this line back in the mark condition. The complement of the RTS wire is CTS, which stands for Clear To Send. The DCE device puts this line in a mark condition to tell the DTE device that it is ready to receive the data. Likewise, if the DCE device is unable to receive data, it will place this line in the space condition. Together, these two lines make up what is called RTS/CTS or "hardware" flow control. DTR stands for Data Terminal Ready. Its intended function is very similar to the RTS line. DSR (Data Set Ready) is the companion to DTR in the same way that CTS is to RTS. Some serial devices use DTR and DSR as signals to simply confirm that a device is connected and is turned on. The Software Wedge sets DTR to the mark 37

45 state when the serial port is opened and leaves it in that state until the port is closed. The DTR and DSR lines were originally designed to provide an alternate method of hardware handshaking. It would be pointless to use both RTS/CTS and DTR/DSR for flow control signals at the same time. Because of this, DTR and DSR are rarely used for flow control. 3. CD stands for Carrier Detect. Carrier Detect is used by a modem to signal that it has a made a connection with another modem, or has detected a carrier tone. 4. The last remaining line is RI or Ring Indicator. A modem toggles the state of this line when an incoming call rings your phone. The Carrier Detect (CD) and the Ring Indicator (RI) lines are only available in connections to a modem. Because most modems transmit status information to a PC when either a carrier signal is detected (i.e. when a connection is made to another modem) or when the line is ringing, these two lines are rarely used. 6.4 MAX 232C MAX 232C is used to interface the transmitter and receiver circuit to the PC. It is used to match between the RS232C and TTL levels. The MAX232 is a dual driver/receiver that includes a capacitive voltage generator to supply RS232C voltage levels from a single 5V supply. Each receiver converts RS232C inputs to 5V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V, a typical hysteresis of 0.5 V, and can accept ±30V inputs. Each driver converts TTL/CMOS input levels into RS232C levels. 38

46 6.4.1 LOGIC DIAGRAM: OPERATING CIRCUIT: 39

47 6.4.3 FEATURES: Meets or Exceeds RS232C Operates From a Single 5-V Power Supply with 1.0 microf Charge- Pump Capacitors Operates Up To 120 kbit/s Two Drivers and Two Receivers ±30-V Input Levels Low Supply Current of 8 ma Typical APPLICATIONS RS232C Battery-Powered Systems Terminals Modems Computers RS-232 DRIVERS The typical driver output voltage swing is ±8V when loaded with a nominal 5kΩ RS- 232 receiver and VCC = +5V. Output swing is guaranteed to meet the RS-232C specification, which calls for ±5V minimum driver output levels under worst-case 40

48 conditions. These include a minimum 3kΩ load, VCC = +4.5V, and maximum operating temperature. Unloaded driver output voltage ranges from (V+ -1.3V) to (V- +0.5V). Input thresholds are both TTL and CMOS compatible. The MAX232 has both a receiver threestate control line and a low-power shutdown control RS-232 RECEIVERS: RS-232C specifications define a voltage level greater than 3V as logic 0, so all receivers invert. Input thresholds are set at 0.8V and 2.4V, so receivers respond to TTL level inputs as well as RS-232C levels. The receiver inputs withstand an input overvoltage up to ±25V and provide input terminating resistors with nominal 5kΩ values. The receiver input hysteresis is typically 0.5V with a guaranteed minimum of 0.2V. 41

49 7. CIRCUIT DIAGRAM The above figure shows the circuit diagram for the consumer side. A relay operated switch is connected in series with the load. The switch is used to switch on and off the power. By the relay is initially in on state and whenever the voltage across its terminals changes the relay senses the voltage and trips which in turns closes the switch. The relay is connected to the port of the microcontroller through a transistor and zener diode to drive the relay. The current transformer primary is connected to the load in series to the mains and the 42

50 secondary is connected across the variable resistance to change the measured value to the close actual value. The potential transformer primary is connected in parallel to the load to measure the applied voltage and the secondary is connected to the variable resistance to adjust the measured value to the close accurate value. The outputs of this are given to the ADC analog input pins. A 555 timer is connected in astable multivibrator mode and is given as clock signal to the ADC. The digital outputs are given as inputs to the microcontroller port. The control pins of the ADC are given from the microcontroller port to select the input to be received. The voltage and current measured are received in accordance to the inputs given to the status pins A, B, C by the controller. The ADC starts the conversion at the end of the pulse Start and sends data at the end of the pulse EOC these are also connected to the port of the microcontroller. The microcontroller is provided with a quartz crystal to provide the clock signal, the clock frequency is changed by the capacitors connected to the crystal the operating frequency in this circuit is MHz. A series combination of the resistor and capacitor is taken and the capacitor voltage is given as the reset logic to the 9 th pin of the microcontroller. The 10 th pin of the microcontroller is the RXD pin is connected to the receiver data pin of RS232. The data from the RXD is stored internally for further processing. The 11 th pin of the microcontroller is the TXD pin is connected to the RS232 which transmits the data from the microcontroller. The microcontroller baud rate is set in accordance to the frequency of the 555 timer to ensure consistency of data. Thus data is transmitted from the microcontroller at a preset frequency and the request for data is received by the microcontroller connected to the port and the further processing is done as per the code written to calculate the power by taking the correction factors in to consideration. 43

51 The computer is programmed so as to send requests for data and receive data via the serial port. The work at TTL voltage levels and the computer works at RS232C voltage levels. So to bridge this voltage variation MAX 232C is used which is driver cum receiver. The driver is connected to the IR transmitter and the receiver is connected to the IR receiver. The data from data pin of IR receiver is given to the computer and displayed on the screen. IR transmitter is connected to the computer and the program is written to send the data via the serial port to the IR transmitter to send data at a given baud rate. The oscillator is connected to the transmitter to match the transmission with the baud rate. The oscillator used is 555 timer using astable multivibrator. 44

52 8. HARDWARE PHOTOGRAPHY 45

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52 Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

C H A P T E R 1 INTRODUCTION

C H A P T E R 1 INTRODUCTION C H A P T E R 1 INTRODUCTION The mentioned project is based on the worlds most powerful intel controller 8051. Most of the services provided in todays world are voice interactive, you call up your bank

More information

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016 Serial Interfaces Part 1 ECE 153B Sensor & Peripheral Interface Design Serial Interfaces Simple Serial Interfaces RS-232C (UART) Provides for point to point communications, primarily Among the simplest

More information

Sender Receiver Sender

Sender Receiver Sender EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 19 Outline of the Lecture Interfacing the Serial Port Basics of Serial Communication Asynchronous Data Communication and Data Framing RS232 and other

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information

POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40%

POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40% POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40% Prof. Dipesh. M.Patel 1 Kandarp mehta 2 Himanshu amrutiya 3 Ravi bhalodia 4 Chirag amrutiya 5 1. Head, Electrical Engg. Department,

More information

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution CHAPTER 1 MICROCOMPUTER SYSTEMS 1.1 Introduction The term microcomputer is used to describe a system that includes a microprocessor, program memory, data memory, and an input/output (I/O). Some microcomputer

More information

8-Bit Microcontroller with 2K Bytes Flash AT89C2051. Features. Description. Pin Configuration

8-Bit Microcontroller with 2K Bytes Flash AT89C2051. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 2K Bytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7V to 6V Operating Range Fully Static Operation: 0 Hz to 24 MHz Two-Level Program

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system. Syllabus: : Introduction to, 8051 Microcontroller Architecture and an example of Microcontroller based stepper motor control system (only Block Diagram approach). (5 Hours) Introduction to A microcontroller

More information

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations Features Compatible with MCS-51 Products 128K Bytes of In-System Reprogrammable Flash data memory and 4K Bytes of Downloadable Flash Program Memory Endurance: 1,000 Write/Erase Cycles per Sector Data Retention:

More information

P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0.

P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0. Features Compatible with MCS-51 Products 4K Bytes of In-System Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles Fully Static Operation: 0 Hz to 24 MHz Three-Level Program Memory Lock 128

More information

3 PHASE FAULT ANALYSIS WITH AUTO RESET FOR TEMPORARY FAULT AND TRIP FOR PREMANENT

3 PHASE FAULT ANALYSIS WITH AUTO RESET FOR TEMPORARY FAULT AND TRIP FOR PREMANENT e-issn 2455 1392 Volume 3 Issue 4, April 2017 pp. 80 84 Scientific Journal Impact Factor : 3.468 http://www.ijcter.com 3 PHASE FAULT ANALYSIS WITH AUTO RESET FOR TEMPORARY FAULT AND TRIP FOR PREMANENT

More information

8-Bit Microcontroller with 1K Bytes Flash. AT89C1051U Preliminary. Features. Description. Pin Configuration

8-Bit Microcontroller with 1K Bytes Flash. AT89C1051U Preliminary. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 1K Bytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7V to 6V Operating Range Fully Static Operation: 0 Hz to 24 MHz Two-Level Program

More information

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices A presentation on INTRODUCTION We are living in the Embedded World. We are surrounded with many embedded products and our daily life largely depends on the proper functioning of these gadgets. Television,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller. UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip

More information

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 Exp:1 STUDY OF MICROCONTROLLER 8051 To study the microcontroller and familiarize the 8051microcontroller kit Theory:- A Microcontroller consists of a powerful

More information

PDIP P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0.

PDIP P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0. Features Compatible with MCS-51 Products 4K Bytes of User Programmable QuickFlash Memory Fully Static Operation: 0 Hz to 24 MHz Three-Level Program Memory Lock 128 x 8-Bit Internal RAM 32 Programmable

More information

output devices. connected to the controller. data communications link. relay systems. user program. MECH1500Quiz1ReviewVersion2 Name: Class: Date:

output devices. connected to the controller. data communications link. relay systems. user program. MECH1500Quiz1ReviewVersion2 Name: Class: Date: Class: Date: MECH1500Quiz1ReviewVersion2 True/False Indicate whether the statement is true or false. 1. The number and type of I/Os cannot be changed in a fixed PLC. 2. In a PLC system, there is a physical

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

Keywords Digital IC tester, Microcontroller AT89S52

Keywords Digital IC tester, Microcontroller AT89S52 Volume 6, Issue 1, January 2016 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Digital Integrated

More information

ALE/PROG# is pulsed low during programming,

ALE/PROG# is pulsed low during programming, AT9C In-Circuit Programming This application note illustrates the incircuit programmability of the Atmel AT9C Flash-based microcontroller. Guidelines for the addition of in-circuit programmability to AT9C

More information

80C51FA/83C51FA EVENT-CONTROL CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive

80C51FA/83C51FA EVENT-CONTROL CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive 80C51FA/83C51FA EVENT-CONTROL CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive Y Extended Automotive Temperature Range (b40 C to a125 C Ambient) Y High Performance CHMOS Process Y Three 16-Bit Timer/Counters

More information

A TECHNICAL REVIEW ON DTMF BASED ELECTRONIC VOTING MACHINE

A TECHNICAL REVIEW ON DTMF BASED ELECTRONIC VOTING MACHINE A TECHNICAL REVIEW ON DTMF BASED ELECTRONIC VOTING MACHINE Aryan Singh 1, Amit Anand 2, Akshay Anand 3, Md. Shah Alam 4 Raj Kapoor Kumar Gaund 5 1,2,3,4 Student, Electronics & Communication Engineering

More information

80C51GB, 83C51GB, 87C51GB SPECIFICATION UPDATE

80C51GB, 83C51GB, 87C51GB SPECIFICATION UPDATE 80C51GB, 83C51GB, 87C51GB SPECIFICATION UPDATE Release Date: December, 1996 Order Number: 272880-003 The 80C51GB, 83C51GB, 87C51GB may contain design defects or errors known as errata. Characterized errata

More information

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH NOVEMBER 1998 FEATURES 80C51 based architecture 4-Kbytes of on-chip Reprogrammable Flash Memory 128 x 8 RAM Two 16-bit Timer/Counters

More information

APPLICATION NOTE 655 Supervisor ICs Monitor Battery-Powered Equipment

APPLICATION NOTE 655 Supervisor ICs Monitor Battery-Powered Equipment Maxim > Design Support > Technical Documents > Application Notes > Automotive > APP 655 Maxim > Design Support > Technical Documents > Application Notes > Microprocessor Supervisor Circuits > APP 655 Keywords:

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051: DEPARTMENT OF ECE MICROPROCESSORS AND MICROCONTROLLERS MATERIAL UNIT V 8051 MICROCONTROLLERS To make a complete microcomputer system, only microprocessor is not sufficient. It is necessary to add other

More information

8051 INTERFACING TO EXTERNAL MEMORY

8051 INTERFACING TO EXTERNAL MEMORY 8051 INTERFACING TO EXTERNAL MEMORY Memory Capacity The number of bits that a semiconductor memory chip can store Called chip capacity It can be in units of Kbits (kilobits), Mbits (megabits), and so on

More information

4.3 Digital Communication

4.3 Digital Communication Data Acquisition & Computer Control 11 4.3 Digital Communication Why digital communication (often termed digital input/output, or DIO)? Because the language of computers (and many peripheral devices) is

More information

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC. MICROCONTROLLERS AND APPLICATIONS 1 Module 1 Module I Introduction to Microcontrollers: Comparison with Microprocessors Harvard and Von Neumann Architectures - 80C51 microcontroller features - internal

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

Single-Wire, I/O Powered 1-Kbit (128 x 8) Serial EEPROM with a Unique, Factory-Programmed 64-Bit Serial Number

Single-Wire, I/O Powered 1-Kbit (128 x 8) Serial EEPROM with a Unique, Factory-Programmed 64-Bit Serial Number Single-Wire, I/O Powered 1-Kbit (128 x 8) Serial EEPROM with a Unique, Factory-Programmed 64-Bit Serial Number Features Low Voltage Operation: AT21CS01 is self-powered via the 1.7V to 3.6V pull up voltage

More information

The Wireless Connectivity Expert

The Wireless Connectivity Expert The Wireless Connectivity Expert 48511 Warm Springs Blvd., Suite 206, Fremont CA 94539 Tel: (510) 490-8024 Fax: (510) 623-7268 Website: http://www.actisys.com/ E-mail: irda-info@actisys.com ACT-IR100SD

More information

1. Pin diagram of 8051 and ports

1. Pin diagram of 8051 and ports e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Programming parallel ports Module No: CS/ES/9 Quadrant 1 e-text In this lecture pin diagram of 8051 controller will be shown and

More information

DTMF BASED INDUSTRIAL AUTOMATION

DTMF BASED INDUSTRIAL AUTOMATION DTMF BASED INDUSTRIAL AUTOMATION Shobhnendra Kumar 1, Shrishti Srivastava 2, Pallavi Gupta 3 1, 2 Students, Electrical Engineering Department, Greater Noida Institutes of Technology, Gr.Noida, (India)

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

Parallel-to-Serial and Serial-to-Parallel Converters

Parallel-to-Serial and Serial-to-Parallel Converters Session 1532 Parallel-to-Serial and Serial-to-Parallel Converters Max Rabiee, Ph.D., P.E. University of Cincinnati Abstract: Microprocessors (MPUs) on a computer motherboard communicate in a parallel format

More information

Microcontroller Based Code Locking System with Alarm

Microcontroller Based Code Locking System with Alarm IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-issn: 2278-1676,p-ISSN: 2320-3331, Volume 9, Issue 1 Ver. II (Jan. 2014), PP 09-17 Microcontroller Based Code Locking System with Alarm

More information

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer Chapter 11: Input/Output Organisation Lesson 05: Asynchronous RS232C Serial Port data transfer Objective Understand the RS232C asynchronous data transfer and signals Learn the RS232C serial port communication

More information

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)

More information

UNIT IV MICROCONTROLLER

UNIT IV MICROCONTROLLER UNIT IV 8051- MICROCONTROLLER Prepared by R. Kavitha Page 1 Application Prepared by R. Kavitha Page 2 Pin Description of the 8051 UNIT IV- 8051 MICROCONTROLLER P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST

More information

I. INTRODUCTION II. METHODS AND MATERIAL

I. INTRODUCTION II. METHODS AND MATERIAL 2015 IJSRSET Volume 1 Issue 3 Print ISSN : 2395-1990 Online ISSN : 2394-4099 Themed Section: Engineering and Technology Alcohol Detection in Car R. Balasubhramanian Electronic and Communication Engineering,

More information

Integrity Instruments Application Notes. Release 1

Integrity Instruments Application Notes. Release 1 Integrity Instruments Application Notes Release 1 What is EIA/TIA/RS-485 What is EIA/TIA/RS-422 Half Duplex and Full Duplex Communication Asynchronous Communicatin Grounding EIA/TIA/RS-485/422 Shielding

More information

P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0.

P1.0 P P0.0 (AD0) P1.2 P P0.1 (AD1) P P0.2 (AD2) P P0.3 (AD3) P P0.4 (AD4) P P0. Features Compatible with MCS-51 Products 4K Bytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7V to 6V Operating Range Fully Static Operation: 0 Hz to 12 MHz Three-Level Program

More information

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods

More information

DSP240-LPI Inverter Controller Card. Technical Brief

DSP240-LPI Inverter Controller Card. Technical Brief DSP240-LPI Inverter Controller Card Technical Brief September 2006 Manual Release 3.0 Card Revision 3.0 Copyright 2001-2006 Creative Power Technologies P.O. Box 714 MULGRAVE Victoria, 3170 Tel: +61-3-9543-8802

More information

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 8K bytes of On-Board Program Memory Fully Static Operation: 0 Hz to 16 MHz 256 x 8 Bit Internal RAM 32 Programmable I/O Lines Three 16 Bit Timer/Counters Eight

More information

+5V Powered Multi-Channel RS-232 Drivers/Receivers

+5V Powered Multi-Channel RS-232 Drivers/Receivers SP238A 5V Powered Multi-Channel RS-232 Drivers/Receivers Operates from a Single 5V Power Supply Meets All RS-232D and V.28 Specifications ±30V Receiver Input Levels Low Power CMOS Operation Operates with

More information

Craft Port Tiny RS-232 Transceiver for Portable Applications ADM101E. Data Sheet FUNCTIONAL BLOCK DIAGRAM

Craft Port Tiny RS-232 Transceiver for Portable Applications ADM101E. Data Sheet FUNCTIONAL BLOCK DIAGRAM Data Sheet FEATURES 460 kbit/s Transmission Rate Single 5 V Power Supply Compatible with RS-232 Input/Output Levels 0.1 μf Charge Pump Capacitors One Driver and One Receiver On-Board DC-DC Converter ±4.2

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text In this lecture, serial port communication will be discussed in

More information

DS1306. Serial Alarm Real Time Clock (RTC)

DS1306. Serial Alarm Real Time Clock (RTC) www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 96-byte nonvolatile RAM for data

More information

8051 MICROCONTROLLER

8051 MICROCONTROLLER 8051 MICROCONTROLLER Mr.Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor Department of Electrical Engineering Sankalchand Patel College of Engineering-Visnagar WHY DO WE NEED TO LEARN

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

More information

PCL Port RS-232 Interface Card

PCL Port RS-232 Interface Card PCL-858 8-Port RS-232 Interface Card Copyright Notice This documentation and the software included with this product are copyrighted 2001 by Advantech Co., Ltd. All rights are reserved. Advantech Co.,

More information

3. The MC6802 MICROPROCESSOR

3. The MC6802 MICROPROCESSOR 3. The MC6802 MICROPROCESSOR This chapter provides hardware detail on the Motorola MC6802 microprocessor to enable the reader to use of this microprocessor. It is important to learn the operation and interfacing

More information

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka INTRODUCTION Microcontroller vs General Purpose Microprocessor General-purpose microprocessors contains No RAM No

More information

AT49BV004(T) TSOP Top View Type 1 1. AT49BV4096A(T) TSOP Top View Type 1 A16 BYTE GND I/O7 I/O14 I/O6 I/O13 I/O5 I/O12 I/O4 VCC I/O11 I/O3 I/O10 I/O2

AT49BV004(T) TSOP Top View Type 1 1. AT49BV4096A(T) TSOP Top View Type 1 A16 BYTE GND I/O7 I/O14 I/O6 I/O13 I/O5 I/O12 I/O4 VCC I/O11 I/O3 I/O10 I/O2 Features 2.7V to 3.6V Read/Write Operation Fast Read Access Time - 120 ns Internal Erase/Program Control Sector Architecture One 8K Words (16K bytes) Boot Block with Programming Lockout Two 4K Words (8K

More information

MODERN SYSTEM TO PROTECTION AN ELECTRICAL TRANSFORMER

MODERN SYSTEM TO PROTECTION AN ELECTRICAL TRANSFORMER MODERN SYSTEM TO PROTECTION AN ELECTRICAL TRANSFORMER Florin Grofu, Constantin Brancusi University of Targu Jiu, ROMANIA Abstract: In this paper will be presented a possibility for realization of numerical

More information

School of Computer Science Faculty of Engineering and Computer Science Student ID Number. Lab Cover Page. Lab Date and Time:

School of Computer Science Faculty of Engineering and Computer Science Student ID Number. Lab Cover Page. Lab Date and Time: Student Information First Name School of Computer Science Faculty of Engineering and Computer Science Last Name Student ID Number Lab Cover Page Please complete all fields: Course Name: Structure and Application

More information

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

User-configurable Resolution. 9 to 12 bits (0.5 C to C) AT30TS75A 9- to 12-bit Selectable, ±0.5 C Accurate Digital Temperature Sensor DATASHEET See Errata in Section 12. Features Single 1.7V to 5.5V Supply Measures Temperature -55 C to +125 C Highly Accurate

More information

FIGURE 1. ADC0808/ADC0809

FIGURE 1. ADC0808/ADC0809 Using the ADC0808/ADC0809 8-Bit µp Compatible A/D Converters with 8-Channel Analog Multiplexer Introduction The ADC0808/ADC0809 Data Acquisition Devices (DAD) implement on a single chip most the elements

More information

DS1845 Dual NV Potentiometer and Memory

DS1845 Dual NV Potentiometer and Memory www.maxim-ic.com FEATURES Two linear taper potentiometers -010 one 10k, 100 position & one 10k, 256 position -050 one 10k, 100 position & one 50k, 256 postition -100 one 10k, 100 position & one 100k, 256

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

EE6502- MICROPROCESSOR AND MICROCONTROLLER

EE6502- MICROPROCESSOR AND MICROCONTROLLER . EE6502- MICROPROCESSOR AND MICROCONTROLLER UNIT III - 8051 MICROCONTROLLER PART - A 1. What is Microcontroller? A device which contains the microprocessor with integrated peripherals like memory, serial

More information

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp.

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp. C-Programmable Controller P00 Series The P00 Series of C-programmable controllers is based on the Zilog Z80 microprocessor. The P00 includes digital, serial, and high-current switching interfaces. The

More information

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD AD-8923-BCD Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD4002137 2010 A&D Company, Limited. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, or translated

More information

DTMF BASED HOME AUTOMATION

DTMF BASED HOME AUTOMATION DTMF BASED HOME AUTOMATION Vimlesh Kumar Agrahari 1, Md Arzoo 2, Harish Kumar 3 1, 2 Students, Electrical Engineering Department Greater Noida Institutes of Technology, Gr.Noida, (India) 3 Assistant Professor,

More information

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description Features Compatible with MCS-51 Products 8K Bytes of In-System Reprogrammable Downloadable Flash Memory SPI Serial Interface for Program Downloading Endurance: 1,000 Write/Erase Cycles 2K Bytes EEPROM

More information

The Microcontroller Idea Book

The Microcontroller Idea Book The following material is excerpted from: The Microcontroller Idea Book Circuits, Programs, & Applications featuring the 8052-BASIC Microcontroller by Jan Axelson copyright 1994, 1997 by Jan Axelson ISBN

More information

Home Security System with Remote Home Automation Control

Home Security System with Remote Home Automation Control Home Security System with Remote Home Automation Control Justin Klumpp Senior Project Hardware Description Western Washington University April 24 2005 Professor Todd Morton Introduction: This document

More information

Serial Interfacing. Asynchronous Frame

Serial Interfacing. Asynchronous Frame Serial Interfacing Serial Data Transfer used by keyboards, plotters, modems and other peripherals with low data transfer rates (low bandwidth) 2 Types: Asynchronous CPU and device are not using a common

More information

Vikas Kumar, EE Department, BKBIET, Pilani, Rajasthan, India

Vikas Kumar, EE Department, BKBIET, Pilani, Rajasthan, India Checking correct billing system using GSM modem with Wireless SCADA Vikas Kumar, EE Department, BKBIET, Pilani, Rajasthan, India vicky.bkbiet@gmail.com Abstract: Energy meter are monitored using automatic

More information

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors Ron Boe 5/15/2014 This user guide details the servo drives capabilities and physical interfaces. Users will be able to

More information

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is

More information

Z8 Pod Adapter. for the. Fluke 9000-Series Troubleshooter

Z8 Pod Adapter. for the. Fluke 9000-Series Troubleshooter Z8 Pod Adapter for the Fluke 9000-Series Troubleshooter May 23, 1984 Table of Contents 1. Conventions Used in This Document... 1 2. Overview... 2 3. Pod Adapter Setup... 3 3.1. Drivability Checking Control

More information

AT89C Bit Microcontroller with 2 Kbytes Flash. Features. Description. Pin Configuration

AT89C Bit Microcontroller with 2 Kbytes Flash. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 2 Kbytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7 V to 6 V Operating Range Fully Static Operation: 0 Hz to 24 MHz Two-Level Program

More information

Address connections Data connections Selection connections

Address connections Data connections Selection connections Interface (cont..) We have four common types of memory: Read only memory ( ROM ) Flash memory ( EEPROM ) Static Random access memory ( SARAM ) Dynamic Random access memory ( DRAM ). Pin connections common

More information

Next Generation Power Generation System for Smart City

Next Generation Power Generation System for Smart City IJSRD - International Journal for Scientific Research & Development Vol. 5, Issue 01, 2017 ISSN (online): 2321-0613 Next Generation Power Generation System for Smart City Nitesh D. Sah 1 Swapnil P. Kale

More information

8051SERIAL PORT PROGRAMMING

8051SERIAL PORT PROGRAMMING 8051SERIAL PORT PROGRAMMING Basics of Serial Communication Computers transfer data in two ways: Parallel Often 8 or more lines (wire conductors) are used to transfer data to a device that is only a few

More information

GNS-MC35iT, GNS-MC35iU Terminals datasheet

GNS-MC35iT, GNS-MC35iU Terminals datasheet datasheet 2007 Contents Document history...3 1 Abstracts...4 2 Key features...4 3 Electrical and environmental characteristics...5 4 Operating modes...7 5 Power supply...8 6 Power on/off control...9 7

More information

TFS 2100 Traveling Wave Fault Location System

TFS 2100 Traveling Wave Fault Location System Traveling Wave Fault Location System The most accurate overhead transmission and distribution line fault locator Accuracy: ±150m typical regardless the line length Unaffected by fault resistance Suitable

More information

Manual Industry Interfaces

Manual Industry Interfaces Manual Industry Interfaces W&T Release. Type 0, 0 0, 00 0, 0 0, 0 Industry Interfaces 0/0 by Wiesemann & Theis GmbH Subject to errors and changes: Since we can make mistakes, none of our statements should

More information

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all bits of a data word are transformed simultaneously. This

More information

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Serial Communication Prof. James L. Frankel Harvard University Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Overview of the Serial Protocol Simple protocol for communicating

More information

Lab #2: Building the System

Lab #2: Building the System Lab #: Building the System Goal: In this second lab exercise, you will design and build a minimal microprocessor system, consisting of the processor, an EPROM chip for the program, necessary logic chips

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations Features Single 2.7V - 3.6V Supply Serial Interface Architecture Page Program Operation Single Cycle Reprogram (Erase and Program) 2048 Pages (264 Bytes/Page) Main Memory Two 264-Byte SRAM Data Buffers

More information

80C31BH 80C51BH 87C51 CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER

80C31BH 80C51BH 87C51 CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER 80C31BH 80C51BH 87C51 MCS 51 CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive Extended Automotive Temperature Range (b40 C toa125 C Ambient) High Performance CHMOS Process Power Control Modes 4 Kbyte

More information

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024A Features Description Pin Configurations

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024A Features Description Pin Configurations BDTIC www.bdtic.com/atmel Features Single-voltage Operation 5V Read 5V Reprogramming Fast Read Access Time 45 ns Internal Program Control and Timer 8K Word Boot Block with Lockout Fast Erase Cycle Time

More information

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

User-configurable Resolution. 9 to 12 bits (0.5 C to C) AT30TS74 9- to 12-bit Selectable, ±1.0 C Accurate Digital Temperature Sensor DATASHEET Features Single 1.7V to 5.5V Supply Measures Temperature From -55 C to +125 C Highly Accurate Temperature Measurements

More information

4-Megabit (512K x 8) 5-volt Only CMOS Flash Memory AT49F040 AT49F040T AT49F040/040T AT49F040/040T. Features. Description. Pin Configurations

4-Megabit (512K x 8) 5-volt Only CMOS Flash Memory AT49F040 AT49F040T AT49F040/040T AT49F040/040T. Features. Description. Pin Configurations Features Single Voltage Operation 5V Read 5V Reprogramming Fast Read Access Time - 70 ns Internal Program Control and Timer 16K bytes Boot Block With Lockout Fast Erase Cycle Time - 10 seconds Byte By

More information

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20 INTEGRATED CIRCUITS DATA SHEET File under Integrated Circuits, IC20 1997 Dec 15 CONTENTS 1 FEATURES 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 FUNCTIONAL DIAGRAM 6 PINNING INFORMATION

More information

Am29F004B. 4 Megabit (512 K x 8-Bit) CMOS 5.0 Volt-only Boot Sector Flash Memory DISTINCTIVE CHARACTERISTICS

Am29F004B. 4 Megabit (512 K x 8-Bit) CMOS 5.0 Volt-only Boot Sector Flash Memory DISTINCTIVE CHARACTERISTICS Am29F004B 4 Megabit (512 K x 8-Bit) CMOS 5.0 Volt-only Boot Sector Flash Memory DISTINCTIVE CHARACTERISTICS 5.0 Volt single power supply operation Minimizes system-level power requirements High performance

More information

DS1676 Total Elapsed Time Recorder, Erasable

DS1676 Total Elapsed Time Recorder, Erasable www.dalsemi.com Preliminary DS1676 Total Elapsed Time Recorder, Erasable FEATURES Records the total time that the Event Input has been active and the number of events that have occurred. Volatile Elapsed

More information

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM Preliminary Single-Chip USB to UART Bridge SINGLE-CHIP USB to UART DATA TRANSFER - Integrated USB Transceiver; No External Resistors Required - Integrated Clock; No External Crystal Required - Integrated

More information