Driver for LED
- Keil IDE
- Flash Magic
- 8051 microcontroller
- LEDs (x8)
- Connect LEDs to Port 0 of the 8051 microcontroller
- Open Keil and create new project
- Choose Philips P89V51RD2 database
- Add led.c file to Source Group
- Edit led.c's main function: P0 = 0xNN
- Build target
- Use Flash Magic to write the resulting hex file to the 8051 microcontroller
We can turn the 3rd, 6th, and 7th LEDs on by programming Port 0 to 0x26, which is 00100110 in binary. We write P0 = 0x26 in led.c's main function, build the target, and use Flash Magic to write the hex file to the microcontroller.
- Sahil Mahajan
This project intentionally has no license.