Skip to content

sahily/7seg_timer_interrupt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

7seg_timer_interrupt

Interrupt based driver for 7-segment display

Getting Started

Requirements

  • Keil IDE
  • Flash Magic
  • 8051 microcontroller
  • Driver ULN 2803
  • 7-segment displays (x4)

Installing

  1. Connect 7-segment displays to the 8051 microcontroller as shown in the following diagram:
  2. Open Keil and create new project
    • Choose Philips P89V51RD2 database
  3. Add 7seg_timer_interrupt.c file to Source Group
    • Edit numbersToDisplay variable on line 23 of 7seg_timer_interrupt.c: numbersToDisplay[4] = {N,N,N,N}
  4. Build target
  5. Use Flash Magic to write the resulting hex file to the 8051 microcontroller

Example

We can display the numbers 3, 6, 9, and 2 by saving them to the numbersToDisplay variable on line 23. After saving them to the variable, we build the target, and use Flash Magic to write the hex file to the microcontroller.

Authors

  • Sahil Mahajan

License

This project intentionally has no license.

About

Interrupt based driver for 7-segment display

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages