SlideShare a Scribd company logo
1 of 12
Explain the pin configuration of 8051 microcontroller. 5 marks
1. Pin diagram of 8051:
2. 8051 consists of 40 pins. There are four ports in 8051 microcontroller port0, port1, port2,
port3.
3. Total 32 pins are set aside for the four ports where each port takes 8 pins.
4. There are another pins like VCC, RST, XTAL2, XTAL1, GND, -EA/VPP, ALE/PROG and -
PSEN.
5. PORT 0:
ī‚ˇ Port 0 is 8 bit bidirectional input output port.
ī‚ˇ Port 0 pins can be used as high impedance pins.
ī‚ˇ We are using pin numbers from 32 to 39.
ī‚ˇ When used as an output the pin latches are programmed to 0.
ī‚ˇ When used as an input the pin latches are programmed to 1.
6. PORT 1:
ī‚ˇ Port 1 is 8 bit bidirectional input output port.
ī‚ˇ Port 1 has no dual functions.
ī‚ˇ We are using pin numbers from 1 to 9.
ī‚ˇ When used as an output the pin latches are programmed to 0.
ī‚ˇ When used as an input the pin latches are programmed to 1.
7. PORT 2:
ī‚ˇ Port 2 is 8 bit bidirectional input output port.
ī‚ˇ Port 2 emits the high address byte during fetches from external program memory and
during accesses to external data memory that use 16-bit addresses.
ī‚ˇ We are using pin numbers from 21 to 29.
ī‚ˇ When used as an output the pin latches are programmed to 0.
ī‚ˇ When used as an input the pin latches are programmed to 1.
8. PORT 3:
ī‚ˇ Port 3 is 8 bit bidirectional input output port.
ī‚ˇ We are using pin numbers from 10 to 17.
ī‚ˇ When used as an output the pin latches are programmed to 0.
ī‚ˇ When used as an input the pin latches are programmed to 1.
9. VCC- VCC pin provides +5v supply to the 8051 microcontroller chip.
10. GND- this is ground pin.
11. RST- this is reset input pin.
12. XTAL 2- input to the inverting oscillator amplifier and internal clock circuit.
13. XTAL 1- output from the inverting oscillator amplifier.
14. Crystal may be connected between XTAL 2 and XTAL 1.
15. ALE/PROG- address latch enable pin.
16. PSEN- program store enable pin.
17. EA/VPP- external access enable pin.
18. 8051 consists of 4KB of on chip program memory and 128 bytes of on chip data memory.
19. 8051 has 64KB program external ROM and 64KB external RAM addressability.
20. The devices 8031, 8751 have the same pin-out, same timing and same electrical
characteristics as 8051.
Explain addressing modes of 8051 microcontroller. 10 marks
1. Addressing modes of 8051:
2. The ways by which address locations of data on which specific functions are performed while
microcontroller executes an instruction, are called as addressing modes.
3. Direct addressing mode:
i) In this mode the operand is specified by an 8 bit address field in the instruction.
ii) Example: MOV A,40H copy data from address 40H into A
MOV R0,14H copy data from address 14H into register R0
4. Indirect addressing mode:
i) In this addressing mode, the instruction specifies register which contains address of an
operand.
ii) Example: MOV A,@R1 copy the contents of memory location, whose address is specified in
R1 register to the accumulator
5. Register addressing mode:
i) Each register bank consists of registers R0 to R7. To access these registers there are special
instructions.
ii) Example: MOV A,R2 copy the data from register R2 to the selected register bank A
6. Register specific addressing:
i) In this addressing mode the instruction refers to a specific register such as accumulator or
data pointer DPTR.
ii) Example: DA A decimal adjust accumulator for addition
RR A rotate the contents of accumulator to right
7. Immediate addressing mode:
i) This method is the simplest method to get the data. In this addressing mode the source
operand is constant rather than a variable.
ii) Example: MOV A,#30H copy 30H immediately to accumulator
MOV P1,#0FFH copy FFH immediately to PORT1
MOV DPTR,#1234H copy 1234H immediately to DPTR
8. External addressing mode:
a) Code Access:
i) Using this instruction only external program memory can be accessed.
ii) Example: MOVC A,@A+DPTR this instruction will load the accumulator with the byte from
program memory
b) Data Access:
i) Using this instruction the programmer can access the external data memory.
ii) Example: MOVX @R0,A this instruction will copy the data from accumulator to external
memory location
Explain in detail ARM7 pipelining. 10M
1. The process of fetching the next instruction while the current instruction is being executed is
called as pipelining.
2. Pipelining is supported by the processor to increase speed of program execution.
3. Pipelining also increases throughput.
4. Many operations take place simultaneously in pipelining.
5. The pipelining has three stages FETCH, DECODE and EXECUTE.
6. Three stage pipeline:
7. FETCH: In this stage the ARM processor fetches the instruction from the memory.
8. DECODE: In this stage the ARM processor recognizes the instruction that is to be executed.
9. EXECUTE: In this stage the processor processes the instruction and writes the result back to
desired register.
10. These three stage of execution are overlapped, higher speed of execution will be achieved.
11. Once the pipeline is filled, each instruction requires one cycle to complete execution.
12. Single cycle instruction execution for a 3-stage pipeline in ARM7:
13. Multi cycle instruction execution for 3-stage pipeline in ARM7:
14. In case of single cycle instruction,
ī‚ˇ In first cycle the processor fetches instruction 1 from the memory.
ī‚ˇ In second cycle the processor fetches instruction 2 from the memory and decodes
instruction 1.
ī‚ˇ In third cycle the processor fetches instruction 3 from the memory, decodes instruction 2
and executes instruction 1.
ī‚ˇ In the fourth cycle the processor fetches instruction 4 from the memory, decodes
instruction 3 and executes instruction 2.
15. In single cycle execution the pipeline executes an instruction in three cycles i.e. it delivers a
throughput equal to one instruction per cycle.
16. In case of multi cycle instruction,
ī‚ˇ Instruction 2 requires 4 clock cycles and hence the pipeline stalls for one clock pulse.
ī‚ˇ The first instruction completes execution in the third clock pulse, while the second
instruction instead of completing execution in fourth clock pulse completes the same in
fifth clock pulse.
ī‚ˇ Thereafter every instruction completes execution in one clock pulse.
17. The amount of work done at each stage can be reduced by increasing the number of stages
in the pipeline.
18. To improve the performance, the processor then can be operated at higher operating
frequency.
19. As ore number of cycles required filling the pipeline, the system latency also increases.
20. The data dependency between the stages can also be increased as the stages of pipeline
increase.
21. ARM7 processor consists of Register bank, Barrel shifter, ALU, Address register &
incrementer, Data register and Instruction decoder.
22. Register bank: This includes various registers.
23. Barrel shifter: Barrel shifter is used to do various operations.
24. The ALU: This is arithmetic logic unit. This unit performs various arithmetic and logical
operations.
25. Data registers: Data register is used as a buffer to store the data.
26. Instruction decoder: It decodes the instructions and it is associated with control logic.
Explain addressing modes of ARM7 processor. 10M
Answer:
Addressing modes of ARM7 processor:
Addressing modes for data processing operands:
1. Unmodified value:
i. In this addressing mode, the register or the value is given unmodified i.e. without any shift or
rotation.
ii. Example:
a. MOV R0,#1234H
This instruction will move the constant value (1234)10 into register R0.
b. MOV R0,R1
This instruction will move the value in register R1 to the register R0.
2. Modified value:
i. In this addressing mode the register or a value is shifted or rotated.
ii. Different shift and rotate operations:
a. Logical Shift Left (LSL):
MOV R0,R1,LSL#2
After the execution of this instruction R0 will become the value of R1shifted left by 2 bits.
b. Logical Shift Right (LSR):
MOV R0,R1,LSRR2
After the execution of this instructionR0 will have the value of R1 shifted right by R2 times.
c. Arithmetic Shift Right (ASR):
MOV R0,R1,ASR#2
After the execution of this instructionR0 will have the value of R1 arithmetic shifted right by 2
units.
d. Rotate Right (ROR):
This will take the value of register and rotate it right by n bits.
MOV R0,R1,RORR2
After the execution of this instructionR0 will have the value of R1 rotated right for R2 times.
e. Rotate Right Extended (RRX):
It is similar to rotate right through carry.
MOV R0,R1RRX
After the execution of this instructionR0 will have the value of R1 rotated right through carry by 1
bit.
Addressing modes for memory access operands:
1. Register indirect addressing mode:
i. In this addressing mode register is used to give the address of the memory location to be
accessed.
ii. LDR R0,[R1]
This instruction will load the register R0 with 32-bit word at the memory address held in the
register R1.
2. Relative register indirect addressing mode:
i. In this addressing mode the memory address is generated by an immediate value added to a
register. Pre index and post index are supported.
ii. LDR R0,[R1,#4]
This instruction will load the register R0 with the word at the memory address calculated by
adding by constant value 4 to the memory address contained in the R1 register.
3. Base indexed indirect addressing mode:
i. In this addressing mode the memory address is generated by adding the values of two
registers. Pre index and post index are supported.
ii. LDR R0,[R1,R2]
This instruction will load the register R0 with the word at the memory address calculated by
adding register R1 to register R2.
4. Base with scaled register addressing mode:
i. In this addressing mode the memory address is generated by a register value added to
another register shifted left. Pre index and post index are supported.
ii. LDR R0,[R1,R2,LSL#2]
This instruction will load the register R0 with the word at the memory address calculated by
adding register R1 with register R2 shifted left by 2 bits.
Difference between RISC and CISC 5/10M
No. RISC CISC
1 RISC stands for reduced instruction set
computing.
CISC stands for complex instruction set
computing.
2 In RISC number of instructions is less as
compare to CISC.
In CISC number of instructions is more as
compare to RISC.
3 Addressing modes are less in RISC. Addressing modes are more in CISC.
4 In RISC instruction formats are less
compare to CISC.
In CISC instruction formats are more
compare to RISC.
5 Control unit is hardwired in RISC. Control unit is micro-programmed in CISC.
6 Single CPU cycle requires executing an
instruction.
Multiple CPU cycle requires executing an
instruction.
7 Control unit and decoding subsystem is
simple in RISC.
Control unit and decoding subsystem is
complex.
8 RISC takes less time to design. CISC takes more time to design.
9 Complexity of compiler is simple in RISC. Complexity of compiler is complex in CISC.
10 HLL instructions are supported by RISC. HLL instructions are not supported by CISC.
11 The instruction size is small and it is fixed. The instruction size is big and it is variable.
12 The on chip CPU size is smaller, thus
there is space for cache.
There is no on chip space for cache.
13 The instruction set is compact, it can be
stored in on chip ROM.
External storage is needed for execution
instruction set.
14 The software and hardware manufacture
of RISC is simple.
The software and hardware manufacture of
CISC is complicated.
15 RISC’s are cheap as compare to CISC. CISC’s are expensive as compare to RISC.
Digital clock embedded system 5M/7M
1. LCD display, switches, micro-controller, power supply, clock circuit and reset pin are the
various components required for digital clock implementation.
2. Circuit diagram for digital clock implementation:
3. The above figure describes the standard circuit of digital clock for the 8051 microcontroller.
4. Circuit diagram for power supply of digital clock:
5. The power supply is implemented using transformer followed by regulator and rectifier.
6. The clock circuit of digital clock is implemented using standard circuit of 8051 which is
powered by INTEL.
7. The very important component of the digital clock is crystal.
8. The crystal of 12 MHz is used in between XTAL2 and XTAL1.
9. Circuit requires +5V power supply which is connected to VCC pin.
10. The various signals connected to the LCD display are power supply pins, VEE pin, data
pins, RS, RW and E pin.
11. RS pin is used to indicate a command to LCD.
12. RW pin is read or write operation to LCD.
13. E pin is called as enable pin. It is used to indicate the latching of data.
14. To do various operations on the timer such as, set the time and set the alarm the switch is
required.
Automated meter reading system 5M/10M
1. Block diagram of automated meter reading system:
2. The automated meter reading system is used to read power consumed and to generate the
power bill.
3. Power supply, clock or oscillator circuit, communication port (LCD display), current and
voltage sensors, ADC, modem, wireless AMR interface, program memory, data memory and
microcontroller are components used in automated meter reading system.
4. The power supply is implemented using transformer, rectifier and regulator.
5. Circuit diagram for power supply of AMR:
6. The clock circuit of digital clock is implemented using standard circuit of 8051 which is
powered by INTEL.
7. Power supply and crystal are very important components of the AMR system.
8. To implement serial communication easily 11.0592 MHz crystal is used.
9. Power supply, VEE pin, RS, RW, E pin and data pins are the various signals connected to the
LCD.
10. To measure the current, current sensor is used.
11. To measure the voltage, voltage sensor is used.
12. The arrangement of all these components will give result of the power consumed.
13. Wireless AMR interface is used for communication purpose.
14. To get the information from the system about the power consumption RE reader and
receiver is used.
15. The mechanism of the Automated Meter Reading System is implemented to transfer the
data over the power line and receiving in the office of the power provider.

More Related Content

What's hot

Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureJamia Hamdard
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051Sudhanshu Janwadkar
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Basil John
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manualDhaval Shukla
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction setSaumitra Rukmangad
 
Adc and dac
Adc and dacAdc and dac
Adc and dacnitugatkal
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085shiji v r
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing ModesSenthil Kumar
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSORAkhila Rahul
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction setManoj Babar
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
 
Lpc2148 i2c
Lpc2148 i2cLpc2148 i2c
Lpc2148 i2canishgoel
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 

What's hot (20)

Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Intel 8051 - pin description
Intel 8051  - pin descriptionIntel 8051  - pin description
Intel 8051 - pin description
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSOR
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction set
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
Lpc2148 i2c
Lpc2148 i2cLpc2148 i2c
Lpc2148 i2c
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 

Similar to 8051 microcontroller

Micro controller(pratheesh)
Micro controller(pratheesh)Micro controller(pratheesh)
Micro controller(pratheesh)Pratheesh Pala
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01cairo university
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessorssweta suman
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent vijaydeepakg
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsSreenivas Hanumandla
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdfSANTHAKUMARP5
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTSssuser2b759d
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessorsNeelam Kapoor
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptxAmbika Naik
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptxBhagyarajKosamia
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modesbalbirvirdi
 
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processorPriyatham Bollimpalli
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set Deepak John
 

Similar to 8051 microcontroller (20)

Micro controller(pratheesh)
Micro controller(pratheesh)Micro controller(pratheesh)
Micro controller(pratheesh)
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessors
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller ppts
 
Mpi lab manual eee
Mpi lab manual eeeMpi lab manual eee
Mpi lab manual eee
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTS
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
addressingmodes8051.ppt
addressingmodes8051.pptaddressingmodes8051.ppt
addressingmodes8051.ppt
 
8051d
8051d8051d
8051d
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processor
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 

More from chirag patil

Wh Yes-No questions.pptx
Wh Yes-No questions.pptxWh Yes-No questions.pptx
Wh Yes-No questions.pptxchirag patil
 
joining words not only but also.pptx
joining words not only but also.pptxjoining words not only but also.pptx
joining words not only but also.pptxchirag patil
 
Basic English Grammar 2.pptx
Basic English Grammar 2.pptxBasic English Grammar 2.pptx
Basic English Grammar 2.pptxchirag patil
 
Basic English Grammar.pptx
Basic English Grammar.pptxBasic English Grammar.pptx
Basic English Grammar.pptxchirag patil
 
Maths formulae
Maths formulaeMaths formulae
Maths formulaechirag patil
 
Input output devices
Input output devicesInput output devices
Input output deviceschirag patil
 
Shortcut keys
Shortcut keysShortcut keys
Shortcut keyschirag patil
 
Operating system
Operating systemOperating system
Operating systemchirag patil
 
Network topology
Network topologyNetwork topology
Network topologychirag patil
 
Decimal and binary conversion
Decimal and binary conversionDecimal and binary conversion
Decimal and binary conversionchirag patil
 
Abbreviations and full forms
Abbreviations and full formsAbbreviations and full forms
Abbreviations and full formschirag patil
 
Web engineering and Technology
Web engineering and TechnologyWeb engineering and Technology
Web engineering and Technologychirag patil
 
Web data management
Web data managementWeb data management
Web data managementchirag patil
 
Web application development
Web application developmentWeb application development
Web application developmentchirag patil
 
Programming the web
Programming the webProgramming the web
Programming the webchirag patil
 
Operating System
Operating SystemOperating System
Operating Systemchirag patil
 
Computer Graphics and Virtual Reality
Computer Graphics and Virtual RealityComputer Graphics and Virtual Reality
Computer Graphics and Virtual Realitychirag patil
 
Advanced Database Management Syatem
Advanced Database Management SyatemAdvanced Database Management Syatem
Advanced Database Management Syatemchirag patil
 
The law of attraction for positive things
The law of attraction for positive thingsThe law of attraction for positive things
The law of attraction for positive thingschirag patil
 

More from chirag patil (20)

Wh Yes-No questions.pptx
Wh Yes-No questions.pptxWh Yes-No questions.pptx
Wh Yes-No questions.pptx
 
joining words not only but also.pptx
joining words not only but also.pptxjoining words not only but also.pptx
joining words not only but also.pptx
 
Basic English Grammar 2.pptx
Basic English Grammar 2.pptxBasic English Grammar 2.pptx
Basic English Grammar 2.pptx
 
Basic English Grammar.pptx
Basic English Grammar.pptxBasic English Grammar.pptx
Basic English Grammar.pptx
 
Maths formulae
Maths formulaeMaths formulae
Maths formulae
 
Input output devices
Input output devicesInput output devices
Input output devices
 
Shortcut keys
Shortcut keysShortcut keys
Shortcut keys
 
Operating system
Operating systemOperating system
Operating system
 
Network topology
Network topologyNetwork topology
Network topology
 
Decimal and binary conversion
Decimal and binary conversionDecimal and binary conversion
Decimal and binary conversion
 
Abbreviations and full forms
Abbreviations and full formsAbbreviations and full forms
Abbreviations and full forms
 
ASCII Code
ASCII CodeASCII Code
ASCII Code
 
Web engineering and Technology
Web engineering and TechnologyWeb engineering and Technology
Web engineering and Technology
 
Web data management
Web data managementWeb data management
Web data management
 
Web application development
Web application developmentWeb application development
Web application development
 
Programming the web
Programming the webProgramming the web
Programming the web
 
Operating System
Operating SystemOperating System
Operating System
 
Computer Graphics and Virtual Reality
Computer Graphics and Virtual RealityComputer Graphics and Virtual Reality
Computer Graphics and Virtual Reality
 
Advanced Database Management Syatem
Advanced Database Management SyatemAdvanced Database Management Syatem
Advanced Database Management Syatem
 
The law of attraction for positive things
The law of attraction for positive thingsThe law of attraction for positive things
The law of attraction for positive things
 

Recently uploaded

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerAnamika Sarkar
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoÃŖo Esperancinha
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 

Recently uploaded (20)

POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡ī¸9711147426✨Call In girls Gurgaon Sector 51 escort service
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 

8051 microcontroller

  • 1. Explain the pin configuration of 8051 microcontroller. 5 marks 1. Pin diagram of 8051: 2. 8051 consists of 40 pins. There are four ports in 8051 microcontroller port0, port1, port2, port3. 3. Total 32 pins are set aside for the four ports where each port takes 8 pins. 4. There are another pins like VCC, RST, XTAL2, XTAL1, GND, -EA/VPP, ALE/PROG and - PSEN. 5. PORT 0: ī‚ˇ Port 0 is 8 bit bidirectional input output port. ī‚ˇ Port 0 pins can be used as high impedance pins. ī‚ˇ We are using pin numbers from 32 to 39. ī‚ˇ When used as an output the pin latches are programmed to 0. ī‚ˇ When used as an input the pin latches are programmed to 1. 6. PORT 1: ī‚ˇ Port 1 is 8 bit bidirectional input output port. ī‚ˇ Port 1 has no dual functions.
  • 2. ī‚ˇ We are using pin numbers from 1 to 9. ī‚ˇ When used as an output the pin latches are programmed to 0. ī‚ˇ When used as an input the pin latches are programmed to 1. 7. PORT 2: ī‚ˇ Port 2 is 8 bit bidirectional input output port. ī‚ˇ Port 2 emits the high address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses. ī‚ˇ We are using pin numbers from 21 to 29. ī‚ˇ When used as an output the pin latches are programmed to 0. ī‚ˇ When used as an input the pin latches are programmed to 1. 8. PORT 3: ī‚ˇ Port 3 is 8 bit bidirectional input output port. ī‚ˇ We are using pin numbers from 10 to 17. ī‚ˇ When used as an output the pin latches are programmed to 0. ī‚ˇ When used as an input the pin latches are programmed to 1. 9. VCC- VCC pin provides +5v supply to the 8051 microcontroller chip. 10. GND- this is ground pin. 11. RST- this is reset input pin. 12. XTAL 2- input to the inverting oscillator amplifier and internal clock circuit. 13. XTAL 1- output from the inverting oscillator amplifier. 14. Crystal may be connected between XTAL 2 and XTAL 1. 15. ALE/PROG- address latch enable pin. 16. PSEN- program store enable pin. 17. EA/VPP- external access enable pin. 18. 8051 consists of 4KB of on chip program memory and 128 bytes of on chip data memory. 19. 8051 has 64KB program external ROM and 64KB external RAM addressability.
  • 3. 20. The devices 8031, 8751 have the same pin-out, same timing and same electrical characteristics as 8051. Explain addressing modes of 8051 microcontroller. 10 marks 1. Addressing modes of 8051: 2. The ways by which address locations of data on which specific functions are performed while microcontroller executes an instruction, are called as addressing modes. 3. Direct addressing mode: i) In this mode the operand is specified by an 8 bit address field in the instruction. ii) Example: MOV A,40H copy data from address 40H into A MOV R0,14H copy data from address 14H into register R0 4. Indirect addressing mode: i) In this addressing mode, the instruction specifies register which contains address of an operand. ii) Example: MOV A,@R1 copy the contents of memory location, whose address is specified in R1 register to the accumulator 5. Register addressing mode: i) Each register bank consists of registers R0 to R7. To access these registers there are special instructions. ii) Example: MOV A,R2 copy the data from register R2 to the selected register bank A
  • 4. 6. Register specific addressing: i) In this addressing mode the instruction refers to a specific register such as accumulator or data pointer DPTR. ii) Example: DA A decimal adjust accumulator for addition RR A rotate the contents of accumulator to right 7. Immediate addressing mode: i) This method is the simplest method to get the data. In this addressing mode the source operand is constant rather than a variable. ii) Example: MOV A,#30H copy 30H immediately to accumulator MOV P1,#0FFH copy FFH immediately to PORT1 MOV DPTR,#1234H copy 1234H immediately to DPTR 8. External addressing mode: a) Code Access: i) Using this instruction only external program memory can be accessed. ii) Example: MOVC A,@A+DPTR this instruction will load the accumulator with the byte from program memory b) Data Access: i) Using this instruction the programmer can access the external data memory. ii) Example: MOVX @R0,A this instruction will copy the data from accumulator to external memory location Explain in detail ARM7 pipelining. 10M 1. The process of fetching the next instruction while the current instruction is being executed is called as pipelining. 2. Pipelining is supported by the processor to increase speed of program execution. 3. Pipelining also increases throughput. 4. Many operations take place simultaneously in pipelining. 5. The pipelining has three stages FETCH, DECODE and EXECUTE.
  • 5. 6. Three stage pipeline: 7. FETCH: In this stage the ARM processor fetches the instruction from the memory. 8. DECODE: In this stage the ARM processor recognizes the instruction that is to be executed. 9. EXECUTE: In this stage the processor processes the instruction and writes the result back to desired register. 10. These three stage of execution are overlapped, higher speed of execution will be achieved. 11. Once the pipeline is filled, each instruction requires one cycle to complete execution. 12. Single cycle instruction execution for a 3-stage pipeline in ARM7: 13. Multi cycle instruction execution for 3-stage pipeline in ARM7:
  • 6. 14. In case of single cycle instruction, ī‚ˇ In first cycle the processor fetches instruction 1 from the memory. ī‚ˇ In second cycle the processor fetches instruction 2 from the memory and decodes instruction 1. ī‚ˇ In third cycle the processor fetches instruction 3 from the memory, decodes instruction 2 and executes instruction 1. ī‚ˇ In the fourth cycle the processor fetches instruction 4 from the memory, decodes instruction 3 and executes instruction 2. 15. In single cycle execution the pipeline executes an instruction in three cycles i.e. it delivers a throughput equal to one instruction per cycle. 16. In case of multi cycle instruction, ī‚ˇ Instruction 2 requires 4 clock cycles and hence the pipeline stalls for one clock pulse. ī‚ˇ The first instruction completes execution in the third clock pulse, while the second instruction instead of completing execution in fourth clock pulse completes the same in fifth clock pulse. ī‚ˇ Thereafter every instruction completes execution in one clock pulse. 17. The amount of work done at each stage can be reduced by increasing the number of stages in the pipeline. 18. To improve the performance, the processor then can be operated at higher operating frequency. 19. As ore number of cycles required filling the pipeline, the system latency also increases. 20. The data dependency between the stages can also be increased as the stages of pipeline increase. 21. ARM7 processor consists of Register bank, Barrel shifter, ALU, Address register & incrementer, Data register and Instruction decoder. 22. Register bank: This includes various registers. 23. Barrel shifter: Barrel shifter is used to do various operations. 24. The ALU: This is arithmetic logic unit. This unit performs various arithmetic and logical operations. 25. Data registers: Data register is used as a buffer to store the data. 26. Instruction decoder: It decodes the instructions and it is associated with control logic. Explain addressing modes of ARM7 processor. 10M Answer:
  • 7. Addressing modes of ARM7 processor: Addressing modes for data processing operands: 1. Unmodified value: i. In this addressing mode, the register or the value is given unmodified i.e. without any shift or rotation. ii. Example: a. MOV R0,#1234H This instruction will move the constant value (1234)10 into register R0. b. MOV R0,R1 This instruction will move the value in register R1 to the register R0. 2. Modified value: i. In this addressing mode the register or a value is shifted or rotated. ii. Different shift and rotate operations: a. Logical Shift Left (LSL): MOV R0,R1,LSL#2 After the execution of this instruction R0 will become the value of R1shifted left by 2 bits. b. Logical Shift Right (LSR): MOV R0,R1,LSRR2 After the execution of this instructionR0 will have the value of R1 shifted right by R2 times.
  • 8. c. Arithmetic Shift Right (ASR): MOV R0,R1,ASR#2 After the execution of this instructionR0 will have the value of R1 arithmetic shifted right by 2 units. d. Rotate Right (ROR): This will take the value of register and rotate it right by n bits. MOV R0,R1,RORR2 After the execution of this instructionR0 will have the value of R1 rotated right for R2 times. e. Rotate Right Extended (RRX): It is similar to rotate right through carry. MOV R0,R1RRX After the execution of this instructionR0 will have the value of R1 rotated right through carry by 1 bit. Addressing modes for memory access operands: 1. Register indirect addressing mode: i. In this addressing mode register is used to give the address of the memory location to be accessed. ii. LDR R0,[R1] This instruction will load the register R0 with 32-bit word at the memory address held in the register R1. 2. Relative register indirect addressing mode: i. In this addressing mode the memory address is generated by an immediate value added to a register. Pre index and post index are supported. ii. LDR R0,[R1,#4] This instruction will load the register R0 with the word at the memory address calculated by adding by constant value 4 to the memory address contained in the R1 register. 3. Base indexed indirect addressing mode: i. In this addressing mode the memory address is generated by adding the values of two registers. Pre index and post index are supported.
  • 9. ii. LDR R0,[R1,R2] This instruction will load the register R0 with the word at the memory address calculated by adding register R1 to register R2. 4. Base with scaled register addressing mode: i. In this addressing mode the memory address is generated by a register value added to another register shifted left. Pre index and post index are supported. ii. LDR R0,[R1,R2,LSL#2] This instruction will load the register R0 with the word at the memory address calculated by adding register R1 with register R2 shifted left by 2 bits. Difference between RISC and CISC 5/10M No. RISC CISC 1 RISC stands for reduced instruction set computing. CISC stands for complex instruction set computing. 2 In RISC number of instructions is less as compare to CISC. In CISC number of instructions is more as compare to RISC. 3 Addressing modes are less in RISC. Addressing modes are more in CISC. 4 In RISC instruction formats are less compare to CISC. In CISC instruction formats are more compare to RISC. 5 Control unit is hardwired in RISC. Control unit is micro-programmed in CISC. 6 Single CPU cycle requires executing an instruction. Multiple CPU cycle requires executing an instruction. 7 Control unit and decoding subsystem is simple in RISC. Control unit and decoding subsystem is complex. 8 RISC takes less time to design. CISC takes more time to design. 9 Complexity of compiler is simple in RISC. Complexity of compiler is complex in CISC. 10 HLL instructions are supported by RISC. HLL instructions are not supported by CISC. 11 The instruction size is small and it is fixed. The instruction size is big and it is variable. 12 The on chip CPU size is smaller, thus there is space for cache. There is no on chip space for cache. 13 The instruction set is compact, it can be stored in on chip ROM. External storage is needed for execution instruction set. 14 The software and hardware manufacture of RISC is simple. The software and hardware manufacture of CISC is complicated. 15 RISC’s are cheap as compare to CISC. CISC’s are expensive as compare to RISC. Digital clock embedded system 5M/7M 1. LCD display, switches, micro-controller, power supply, clock circuit and reset pin are the various components required for digital clock implementation. 2. Circuit diagram for digital clock implementation:
  • 10. 3. The above figure describes the standard circuit of digital clock for the 8051 microcontroller. 4. Circuit diagram for power supply of digital clock: 5. The power supply is implemented using transformer followed by regulator and rectifier. 6. The clock circuit of digital clock is implemented using standard circuit of 8051 which is powered by INTEL. 7. The very important component of the digital clock is crystal. 8. The crystal of 12 MHz is used in between XTAL2 and XTAL1. 9. Circuit requires +5V power supply which is connected to VCC pin.
  • 11. 10. The various signals connected to the LCD display are power supply pins, VEE pin, data pins, RS, RW and E pin. 11. RS pin is used to indicate a command to LCD. 12. RW pin is read or write operation to LCD. 13. E pin is called as enable pin. It is used to indicate the latching of data. 14. To do various operations on the timer such as, set the time and set the alarm the switch is required. Automated meter reading system 5M/10M 1. Block diagram of automated meter reading system: 2. The automated meter reading system is used to read power consumed and to generate the power bill. 3. Power supply, clock or oscillator circuit, communication port (LCD display), current and voltage sensors, ADC, modem, wireless AMR interface, program memory, data memory and microcontroller are components used in automated meter reading system. 4. The power supply is implemented using transformer, rectifier and regulator. 5. Circuit diagram for power supply of AMR:
  • 12. 6. The clock circuit of digital clock is implemented using standard circuit of 8051 which is powered by INTEL. 7. Power supply and crystal are very important components of the AMR system. 8. To implement serial communication easily 11.0592 MHz crystal is used. 9. Power supply, VEE pin, RS, RW, E pin and data pins are the various signals connected to the LCD. 10. To measure the current, current sensor is used. 11. To measure the voltage, voltage sensor is used. 12. The arrangement of all these components will give result of the power consumed. 13. Wireless AMR interface is used for communication purpose. 14. To get the information from the system about the power consumption RE reader and receiver is used. 15. The mechanism of the Automated Meter Reading System is implemented to transfer the data over the power line and receiving in the office of the power provider.