Use of PIC18F4520 Internal Timers for Time Keeping Applications-Programming and Computer Logic Design-Lab Report, Exercises of Digital Logic Design and Programming

This is lab report for Programming and Computer Logic Design course lab. It was submited to prof. Rohit Gill at Ankit Institute of Technology and Science. It includes: Programmable, Interrupt, Controller, Internal, Timers, Control, Function, Delay, BCD, Microcontroller, Programmable

Typology: Exercises

2011/2012

Uploaded on 07/24/2012

pariya
pariya 🇮🇳

4.5

(4)

21 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
USE OF PIC18F4520 INTERNAL TIMERS FOR
TIME KEEPING APPLICATIONS
LAB REPORT
Timers are frequently needed in control oriented applications. The
basic function of timers is to time an application and generate a
delay. PIC 18F4520 has 4 programmable timers which can be used
in many tasks. In this lab, we developed a program that uses two
timers simultaneously to time an application and count at the same
time. We used timer-0 and timer-1 for this purpose. Timer-0 can be
used in either 16 bit or 8 bit mode while timer-1 is a 16 bit timer.
We used timer-0 in 8 bit mode to make an LED go on and off
periodically after 0.5 sec delay. At the same time we used timer-1
in 16 bit mode count from 0 to 59 sec and then reset .We did the
counting in two digit BCD code. We displayed the LED on port C
of microcontroller. To display the seconds count we send the
output on port D and displayed it on segment of trainer.
USE OF PIC18F4520 INTERNAL TIMERS FOR
TIME KEEPING APPLICATIONS
LAB REPORT
docsity.com
pf2

Partial preview of the text

Download Use of PIC18F4520 Internal Timers for Time Keeping Applications-Programming and Computer Logic Design-Lab Report and more Exercises Digital Logic Design and Programming in PDF only on Docsity!

USE OF PIC18F4520 INTERNAL TIMERS FOR

TIME KEEPING APPLICATIONS

LAB REPORT

Timers are frequently needed in control oriented applications. The basic function of timers is to time an application and generate a delay. PIC 18F4520 has 4 programmable timers which can be used in many tasks. In this lab, we developed a program that uses two timers simultaneously to time an application and count at the same time. We used timer-0 and timer-1 for this purpose. Timer-0 can be used in either 16 bit or 8 bit mode while timer-1 is a 16 bit timer. We used timer-0 in 8 bit mode to make an LED go on and off periodically after 0.5 sec delay. At the same time we used timer- in 16 bit mode count from 0 to 59 sec and then reset .We did the counting in two digit BCD code. We displayed the LED on port C of microcontroller. To display the seconds count we send the output on port D and displayed it on segment of trainer.

USE OF PIC18F4520 INTERNAL TIMERS FOR

TIME KEEPING APPLICATIONS

LAB REPORT

docsity.com

Timers are frequently needed in control oriented applications. The basic function of timers is to time an application and generate a delay. PIC 18F4520 has 4 programmable timers which can be used in many tasks. In this lab, we developed a program that uses two timers simultaneously to time an application and count at the same time. We used timer-0 and timer-1 for this purpose. Timer-0 can be used in either 16 bit or 8 bit mode while timer-1 is a 16 bit timer. We used timer-0 in 8 bit mode to make an LED go on and off periodically after 0.5 sec delay. At the same time we used timer- in 16 bit mode count from 0 to 59 sec and then reset .We did the counting in two digit BCD code. We displayed the LED on port C of microcontroller. To display the seconds count we send the output on port D and displayed it on segment of trainer.

docsity.com