Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.04 KB

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.