

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 2
This page cannot be seen from the preview
Don't miss anything!


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.
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