Hello Folks,
i've been using AVR for a while now and I am new to MSP430 family, i am trying to do a simple exercise in PWM on MSP430. LED needs to be ramped up and down in 4secs. first 2 secs, the led increments from 0% to 100% and in next 2 secs it does the opposite -100% to 0% and the cycle repeats endlessly.
D.S of MSP4302012 tells me that i have to use CCR0 and CCR1 and TAR, if i am using all the blocks then from where will i get the interval timer ?. for example: i want to do 8 bit Fast PWM with 256 steps, then 2 secs divided by 256 gives me (7.8mS) the interval at which i need to increment or decrement the PWM duty cycle register ( CCR1 in this case). since i am using the CCR0 ,CCR1 and TAR, how do i do this?
in AVR the PWM terminology is different, there we call TOP and BOTTOM of the PWM signal or count. also in AVR we can select 8,9,10 bit PWM resolution but in MSP430 i am unable to select this or i don't know how it should be done.
Can any one throw some light on this ?
Regards,
Nischay