SlideShare une entreprise Scribd logo
1  sur  6
MICRO CONTROLLER AND MICRO PROCESSER 
PROJECT REPORT: 
Frequency meter 
Submitted to : 
Ma’am Maria 
Submitted by : 
Aroosa 
Sheher 
Sidra Ali
Objective: 
Measuring frequency is one of the prime requirements for many applications. The most 
obvious method of measuring frequency is using CRO (or now a days using DSO). But 
this instrument is not handheld or available with all the students or hobbyists at any 
time. It is actually laboratory instrument and not the portable one. Also it is costlier. Also 
conventional CRO does not give the direct frequency value read out. One has to first set 
the waveform then find time/division and finely calculate time period and frequency. So 
it’s a long process that takes time. Another way is use frequency counter that will give 
us direct digital readout of frequency. In this no need of first adjusting the waveform into 
screen then find time / division and then calculate time period and frequency such as 
CRO. Just apply the signal input and get the read out of frequency. That’s why 
frequency counters finding their own place in measuring instruments. 
Component Details: 
AT89C51 Microcontroller: 
AT89S51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. AT89S51 has 
4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. It 
can be erased and program to a maximum of 1000 times. 
In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit 
bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which 
needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these 
port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports 
are also bit addressable and so their bits can also be accessed individually.
LCD: 
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of 
applications. A 16x2 LCD display is very basic module and is very commonly used in various 
devices and circuits.A 16x2 LCD means it can display 16 characters per line and there are 2 such 
lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, 
namely, Command and Data. 
Crystal Oscilator 
Implementation on proteus:
CODE EXPLANATION: 
Our project consist of six functions : 
Description of each of the function is given below: 
 void delay(unsigned int time) 
 void One_Sec_Delay() 
 void lcd_initilize() 
 void lcd_command(unsigned char cmd) 
 void lcd_string(unsigned char str[]) 
 void lcd_int(unsigned int i)
void delay(unsigned int time): 
This function will generated delay every time before any byte is sent to LCD 
unsigned int i,j; 
for(i=0;i<time;i++) 
for(j=0;j<255;j++); 
void One_Sec_Delay(): 
This function will calculate number of frequencies per second and set the timers initial 
value.from where the timer will start.. 
TH1 = 0x3C; // for 50 ms delay 
TL1 = 0xB0; 
void lcd_initilize(): 
lcd_command(0x38); Function Set: 8-bit, 2 Line, 5x7 Dots 
lcd_command(0x0E); Display on Cursor on 
lcd_command(0x06); During write operation only shift cursor right (increment cursor) 
lcd_command(0x01); Clear Display (also clear DDRAM content) 
lcd_command(0x80); it will select top line(first line) 
void lcd_command(unsigned char cmd): 
function sends command byte to be displayed on LCD.In this command register is selected. and data is 
write on the LCD to micro controller. and LCD is enable Now data will start execute 
LCD_DATA = cmd; 
RS=0; 
RW=0; 
EN=1; 
delay(2);
EN=0; 
void lcd_string(unsigned char str[]): 
for(i=0 ; str[i] ; i++) 
LCD_DATA=str[i]; 
RS=1; 
RW=0; 
EN=1; 
delay(1); 
EN=0; 
void lcd_int(unsigned int i): 
This function takes two arguments. It converts HEX numbers into decimal and then decimal to 
ASCII so that they can be displayed on screen . 
unsigned char ascii[6]; 
ascii[5] = 0; // = NULL 
ascii[4] = i % 10 | 0x30 ; i = i / 10; 
ascii[3] = i % 10 | 0x30 ; i = i / 10; 
ascii[2] = i % 10 | 0x30 ; i = i / 10; 
ascii[1] = i % 10 | 0x30 ; i = i / 10; 
ascii[0] = i % 10 | 0x30 ; i = i / 10; 
lcd_string(ascii);

Contenu connexe

Tendances

Monitoring and data logging system for a generator
Monitoring and data logging system for a generatorMonitoring and data logging system for a generator
Monitoring and data logging system for a generator
Moon Shahzad
 
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
SERENEWorkshop
 
microcontroller based temperature sensor
microcontroller based temperature sensormicrocontroller based temperature sensor
microcontroller based temperature sensor
Derrick D'souza
 
Aeav 311 lecture 25 26- inst.amp+noise
Aeav 311 lecture 25 26- inst.amp+noiseAeav 311 lecture 25 26- inst.amp+noise
Aeav 311 lecture 25 26- inst.amp+noise
0mehdi
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
9766686371
 

Tendances (20)

Digital voltmeter (DVM) and its Classification
Digital voltmeter (DVM) and its ClassificationDigital voltmeter (DVM) and its Classification
Digital voltmeter (DVM) and its Classification
 
Temperature Controller with Atmega16
Temperature Controller with Atmega16Temperature Controller with Atmega16
Temperature Controller with Atmega16
 
Special technique in Low Power VLSI design
Special technique in Low Power VLSI designSpecial technique in Low Power VLSI design
Special technique in Low Power VLSI design
 
Digital design chap 6
Digital design  chap 6Digital design  chap 6
Digital design chap 6
 
Monitoring and data logging system for a generator
Monitoring and data logging system for a generatorMonitoring and data logging system for a generator
Monitoring and data logging system for a generator
 
Signal conditioning & condition monitoring using LabView by Prof. shakeb ahm...
Signal conditioning & condition monitoring  using LabView by Prof. shakeb ahm...Signal conditioning & condition monitoring  using LabView by Prof. shakeb ahm...
Signal conditioning & condition monitoring using LabView by Prof. shakeb ahm...
 
Presentation 3 PLL_Analog_digital.pptx
Presentation 3 PLL_Analog_digital.pptxPresentation 3 PLL_Analog_digital.pptx
Presentation 3 PLL_Analog_digital.pptx
 
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
Hot Stand-By Disaster Recovery Solutions for Ensuring the Resilience of Railw...
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
 
Presentation1 comb filter
Presentation1 comb filterPresentation1 comb filter
Presentation1 comb filter
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
 
Short notes on digital electronics for specialist officer it exam by das sir,...
Short notes on digital electronics for specialist officer it exam by das sir,...Short notes on digital electronics for specialist officer it exam by das sir,...
Short notes on digital electronics for specialist officer it exam by das sir,...
 
microcontroller based temperature sensor
microcontroller based temperature sensormicrocontroller based temperature sensor
microcontroller based temperature sensor
 
Presentation1 (1)
Presentation1 (1)Presentation1 (1)
Presentation1 (1)
 
Aeav 311 lecture 25 26- inst.amp+noise
Aeav 311 lecture 25 26- inst.amp+noiseAeav 311 lecture 25 26- inst.amp+noise
Aeav 311 lecture 25 26- inst.amp+noise
 
Digital Signal Conditioning
Digital Signal ConditioningDigital Signal Conditioning
Digital Signal Conditioning
 
REMOTE CONTROL FOR FAN SLIDE SHARE
REMOTE CONTROL FOR FAN  SLIDE SHAREREMOTE CONTROL FOR FAN  SLIDE SHARE
REMOTE CONTROL FOR FAN SLIDE SHARE
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
 
Weather meter
Weather meterWeather meter
Weather meter
 

En vedette

En vedette (20)

Measurement of frequency
Measurement of frequencyMeasurement of frequency
Measurement of frequency
 
Measurement of frequency notes
Measurement of frequency notesMeasurement of frequency notes
Measurement of frequency notes
 
digita storage oscilloscope (dso)
digita storage oscilloscope (dso)digita storage oscilloscope (dso)
digita storage oscilloscope (dso)
 
Energy Meters
Energy MetersEnergy Meters
Energy Meters
 
Energy meter
Energy meterEnergy meter
Energy meter
 
Digital Energy Meter Project Report
Digital Energy Meter Project ReportDigital Energy Meter Project Report
Digital Energy Meter Project Report
 
DIGITAL WATTMETER
DIGITAL WATTMETERDIGITAL WATTMETER
DIGITAL WATTMETER
 
Energy meter presentation
Energy meter presentationEnergy meter presentation
Energy meter presentation
 
Ece221 Ch7 Part1
Ece221 Ch7 Part1Ece221 Ch7 Part1
Ece221 Ch7 Part1
 
Unit 1 cro ppt
Unit 1  cro pptUnit 1  cro ppt
Unit 1 cro ppt
 
Digital Energy Meter project
Digital Energy Meter projectDigital Energy Meter project
Digital Energy Meter project
 
Wattmeter
WattmeterWattmeter
Wattmeter
 
Strain gauge
Strain gaugeStrain gauge
Strain gauge
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Strain guage
Strain guageStrain guage
Strain guage
 
Cathode Ray Oscilloscope CRO
Cathode Ray Oscilloscope CROCathode Ray Oscilloscope CRO
Cathode Ray Oscilloscope CRO
 
Strain gauge loadcell ppt
Strain gauge loadcell pptStrain gauge loadcell ppt
Strain gauge loadcell ppt
 
Power Factor: what it is, how to measure it and how to improve it to reduce u...
Power Factor: what it is, how to measure it and how to improve it to reduce u...Power Factor: what it is, how to measure it and how to improve it to reduce u...
Power Factor: what it is, how to measure it and how to improve it to reduce u...
 
Power Factor
Power FactorPower Factor
Power Factor
 
Cellphone detector report
Cellphone detector reportCellphone detector report
Cellphone detector report
 

Similaire à SIMPLE Frequency METER using AT89c51

Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
Akash Mhankale
 
Moving message display
Moving message displayMoving message display
Moving message display
viraj1989
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)
Kavya Gupta
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL Code
Sunil Kumar R
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
Saurabh Uniyal
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
Jitendra Saroj
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
mercysuttle
 
Radio frequency identification system
Radio frequency identification systemRadio frequency identification system
Radio frequency identification system
Aminu Bugaje
 

Similaire à SIMPLE Frequency METER using AT89c51 (20)

Automatic room light controller with visible counter
Automatic room light controller with visible counterAutomatic room light controller with visible counter
Automatic room light controller with visible counter
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Moving message display
Moving message displayMoving message display
Moving message display
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)
 
report cs
report csreport cs
report cs
 
Basic standard calculator
Basic standard calculatorBasic standard calculator
Basic standard calculator
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL Code
 
FINGER-PRINT BASED ELECTRONIC VOTING MACHINE
FINGER-PRINT BASED ELECTRONIC VOTING MACHINEFINGER-PRINT BASED ELECTRONIC VOTING MACHINE
FINGER-PRINT BASED ELECTRONIC VOTING MACHINE
 
131080111003 mci
131080111003 mci131080111003 mci
131080111003 mci
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
 
Best-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiBest-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbai
 
Project Report
Project ReportProject Report
Project Report
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
 
Radio frequency identification system
Radio frequency identification systemRadio frequency identification system
Radio frequency identification system
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 

Plus de aroosa khan

Antenna Equation for uniform Linear Array
Antenna Equation for uniform Linear Array Antenna Equation for uniform Linear Array
Antenna Equation for uniform Linear Array
aroosa khan
 
Device to Device Communication in Cellular Networks
Device to Device Communication in Cellular NetworksDevice to Device Communication in Cellular Networks
Device to Device Communication in Cellular Networks
aroosa khan
 
Implementation strategies for digital ics
Implementation strategies for digital icsImplementation strategies for digital ics
Implementation strategies for digital ics
aroosa khan
 

Plus de aroosa khan (20)

Antenna Equation for uniform Linear Array
Antenna Equation for uniform Linear Array Antenna Equation for uniform Linear Array
Antenna Equation for uniform Linear Array
 
Device to Device Communication in Cellular Networks
Device to Device Communication in Cellular NetworksDevice to Device Communication in Cellular Networks
Device to Device Communication in Cellular Networks
 
Wsn Wireless Hart Architecture,Mechanism,Components
Wsn Wireless Hart Architecture,Mechanism,ComponentsWsn Wireless Hart Architecture,Mechanism,Components
Wsn Wireless Hart Architecture,Mechanism,Components
 
WSN (BACnet,Lonworks,KNX)
WSN (BACnet,Lonworks,KNX)WSN (BACnet,Lonworks,KNX)
WSN (BACnet,Lonworks,KNX)
 
Education in Pakistan
Education in PakistanEducation in Pakistan
Education in Pakistan
 
Contribution of malaysia in science and technology
Contribution of malaysia in science and technologyContribution of malaysia in science and technology
Contribution of malaysia in science and technology
 
Chemical Vapour Deposition
Chemical Vapour DepositionChemical Vapour Deposition
Chemical Vapour Deposition
 
Implementation strategies for digital ics
Implementation strategies for digital icsImplementation strategies for digital ics
Implementation strategies for digital ics
 
Brief summary of signals
Brief summary of signalsBrief summary of signals
Brief summary of signals
 
Adidas memo
Adidas memoAdidas memo
Adidas memo
 
Bussiness report
Bussiness reportBussiness report
Bussiness report
 
Timing issues in digital circuits
Timing issues in digital circuitsTiming issues in digital circuits
Timing issues in digital circuits
 
Umts(3g)
Umts(3g)Umts(3g)
Umts(3g)
 
Presentation fpgakit
Presentation fpgakitPresentation fpgakit
Presentation fpgakit
 
Fpga project
Fpga projectFpga project
Fpga project
 
Milling machine
Milling machineMilling machine
Milling machine
 
Brushless dc motor
Brushless dc motorBrushless dc motor
Brushless dc motor
 
impact of cartoons
impact of cartoons impact of cartoons
impact of cartoons
 
OOP/ project Employees information system
OOP/ project Employees information systemOOP/ project Employees information system
OOP/ project Employees information system
 
Security alarm/ECD
Security alarm/ECDSecurity alarm/ECD
Security alarm/ECD
 

Dernier

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Dernier (20)

Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

SIMPLE Frequency METER using AT89c51

  • 1. MICRO CONTROLLER AND MICRO PROCESSER PROJECT REPORT: Frequency meter Submitted to : Ma’am Maria Submitted by : Aroosa Sheher Sidra Ali
  • 2. Objective: Measuring frequency is one of the prime requirements for many applications. The most obvious method of measuring frequency is using CRO (or now a days using DSO). But this instrument is not handheld or available with all the students or hobbyists at any time. It is actually laboratory instrument and not the portable one. Also it is costlier. Also conventional CRO does not give the direct frequency value read out. One has to first set the waveform then find time/division and finely calculate time period and frequency. So it’s a long process that takes time. Another way is use frequency counter that will give us direct digital readout of frequency. In this no need of first adjusting the waveform into screen then find time / division and then calculate time period and frequency such as CRO. Just apply the signal input and get the read out of frequency. That’s why frequency counters finding their own place in measuring instruments. Component Details: AT89C51 Microcontroller: AT89S51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. AT89S51 has 4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times. In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individually.
  • 3. LCD: LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits.A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command and Data. Crystal Oscilator Implementation on proteus:
  • 4. CODE EXPLANATION: Our project consist of six functions : Description of each of the function is given below:  void delay(unsigned int time)  void One_Sec_Delay()  void lcd_initilize()  void lcd_command(unsigned char cmd)  void lcd_string(unsigned char str[])  void lcd_int(unsigned int i)
  • 5. void delay(unsigned int time): This function will generated delay every time before any byte is sent to LCD unsigned int i,j; for(i=0;i<time;i++) for(j=0;j<255;j++); void One_Sec_Delay(): This function will calculate number of frequencies per second and set the timers initial value.from where the timer will start.. TH1 = 0x3C; // for 50 ms delay TL1 = 0xB0; void lcd_initilize(): lcd_command(0x38); Function Set: 8-bit, 2 Line, 5x7 Dots lcd_command(0x0E); Display on Cursor on lcd_command(0x06); During write operation only shift cursor right (increment cursor) lcd_command(0x01); Clear Display (also clear DDRAM content) lcd_command(0x80); it will select top line(first line) void lcd_command(unsigned char cmd): function sends command byte to be displayed on LCD.In this command register is selected. and data is write on the LCD to micro controller. and LCD is enable Now data will start execute LCD_DATA = cmd; RS=0; RW=0; EN=1; delay(2);
  • 6. EN=0; void lcd_string(unsigned char str[]): for(i=0 ; str[i] ; i++) LCD_DATA=str[i]; RS=1; RW=0; EN=1; delay(1); EN=0; void lcd_int(unsigned int i): This function takes two arguments. It converts HEX numbers into decimal and then decimal to ASCII so that they can be displayed on screen . unsigned char ascii[6]; ascii[5] = 0; // = NULL ascii[4] = i % 10 | 0x30 ; i = i / 10; ascii[3] = i % 10 | 0x30 ; i = i / 10; ascii[2] = i % 10 | 0x30 ; i = i / 10; ascii[1] = i % 10 | 0x30 ; i = i / 10; ascii[0] = i % 10 | 0x30 ; i = i / 10; lcd_string(ascii);