At89c2051 Projects
while(1) { P1 = ~led; // Active low on most dev boards? Adjust as needed. delay(100); if(dir == 0) { led = led << 1; if(led == 0x80) dir = 1; } else { led = led >> 1; if(led == 0x01) dir = 0; } } }
Writing the timing code without a hardware timer overflow is tricky but immensely satisfying. This project teaches you how to implement a Software ADC. Project 4: Stepper Motor Controller Difficulty: ★★☆☆☆ at89c2051 projects
A cheap external character display for a Raspberry Pi or an old PC without a serial LCD. while(1) { P1 = ~led; // Active low on most dev boards
Frequency = (Timer 0 count in 1 second). This project teaches you how to implement a Software ADC
Connect eight LEDs to port P1 (P1.0 to P1.7). Write a program that shifts a single '1' back and forth.