This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430 program for battery charge controller

Other Parts Discussed in Thread: MSP430G2432

Hi,

I am a beginner in MSP430 programming in CCS. I am currently working on a Battery charge controller. The micro-controller I am using is MSP430G2432.
Here is what I am looking for:
1) Read ADC input.
2) When ADC value reaches a particular Threshold voltage (V1), a PWM with a specific duty cycle (say 50%) is to be generated.
3) When the ADC value reaches another Threshold voltage (V2), the duty cycle of the PWM changes to another value (say 25%). 
Can you help me on this?

**Attention** This is a public forum