EmbeddedRelated.com
Forums

Soft-Start to "ON" and Soft-Start to "OFF" - LED

Started by shskurkra April 15, 2010
Hi Group,

LED is program to stay high and low for interrupt; from switch and timer. Looked at PWM application program from TI.

Interested to make LED act as PWM kind of; starting at slowly increases its brightness and slowly decreasing its brightness for the interrupts.

I tried to use Timer B to do the PWM. Inserted the for loop inside ISR of port interrupt and timer interrupt routine. Here is the initializations of timer B. Help me out with this code. Thank you.

Beginning Microcontrollers with the MSP430