Simple counter 0000 to 9999
- Keil IDE
- Flash Magic
- 8051 microcontroller
- Driver ULN 2803
- 7-segment displays (x4)
- Connect 7-segment displays to the 8051 microcontroller as shown in the following diagram:
- Open Keil and create new project
- Choose Philips P89V51RD2 database
- Add counter.c file to Source Group
- Build target
- Use Flash Magic to write the resulting hex file to the 8051 microcontroller
Count starts from 0000 and steadily increments thereafter. In this example the current count is 84.
- Sahil Mahajan
This project intentionally has no license.