thomgun_lc
Member level 5
led fade in fade out
I want to build fade in and fade out led, so the led act like heartbeat (like in the game on Need For Speed underground). Ussually i used at89s51 and programming with assembly language. Plz help me how to assembly that program. I have try it , but i only can build in one mode PWM like 4,5 volt, 3,5 volt. I want that led turn on from 5 volt and then smooth decrease to 0 volt and then increasing smoothly to 5 volt again (like running led). What must i do with the timer? How to make the timer, so the timer can decrease and increase volt of the led smoothly? Need ur help!! 8O. What interrupts must i used? timer interrupts?
Thx very much!!!
I want to build fade in and fade out led, so the led act like heartbeat (like in the game on Need For Speed underground). Ussually i used at89s51 and programming with assembly language. Plz help me how to assembly that program. I have try it , but i only can build in one mode PWM like 4,5 volt, 3,5 volt. I want that led turn on from 5 volt and then smooth decrease to 0 volt and then increasing smoothly to 5 volt again (like running led). What must i do with the timer? How to make the timer, so the timer can decrease and increase volt of the led smoothly? Need ur help!! 8O. What interrupts must i used? timer interrupts?
Thx very much!!!