Jul302009

I2C RTC[PCF8563] and SPI EEPROM[25AA020A] Sample codes

These are samples for PCF8563 and 25AA020A[SPI- EEPROM]. The codes are for P89v664 controller on SDCC compiler. A slight modification can make these to run on KIEL.Read the README.txt before starting.Happy coding.... rtc spi samples.zip (93.05 kb)

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed tweet this 7 Responses

Jul282009

8051 single-chip pulse width modulation (PWM) brightness control of LED lights

This program is used to control an LED brightness through PWM. Since the AT89S52 dont have a hardware PWM we are using an software PWM with help of the timer 0. By changing the duty cycle of the PWM signal we can control the brightness of the LED. The brightness is varied from 0-10. Here's the circuit diagram and the C code [More]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed tweet this 4 Responses