Search found 5 matches

by Theicaruseffect
Fri Aug 01, 2014 8:56 am
Forum: MSP Microcontrollers
Topic: Msp430 PWM launchpad P1.0 issue
Replies: 6
Views: 3311

Re: Msp430 PWM launchpad P1.0 issue

Hello again. I'm still having trouble trying to generate a PWM on any arbitary pin on my texas instrument launchpad (msp430g2553). The light comes on, but I haven't got any control of the duty cycle. I really would like to be able to drive any pin on the microcontroller using PWM. #include <legacyms...
by Theicaruseffect
Fri Jul 25, 2014 3:56 am
Forum: MSP Microcontrollers
Topic: msp430f1611, create a vpoltage comparator
Replies: 3
Views: 2727

Re: msp430f1611, create a vpoltage comparator

Couldn't you read in the voltage using the ADC converter?
by Theicaruseffect
Thu Jul 24, 2014 3:19 pm
Forum: MSP Microcontrollers
Topic: Msp430 PWM launchpad P1.0 issue
Replies: 6
Views: 3311

Re: Msp430 PWM launchpad P1.0 issue

"you would need two interrupts. For example you could the TACCR0 interrupt to reset the output and TACCR1 to set it." I thought of this today! However, I really like to reduce to the CPU, so this option may not suffice. I've read the datasheet. I will just hook up an led to the pin that's connected ...
by Theicaruseffect
Thu Jul 24, 2014 2:41 pm
Forum: MSP Microcontrollers
Topic: Msp430 PWM launchpad P1.0 issue
Replies: 6
Views: 3311

Re: Msp430 PWM launchpad P1.0 issue

Cheers for the reply. Yes, I'm using the msp430g2553. Are you saying that the only way I can configure a timer for PWM is by connecting it to the pin thats connected to the timer? I'm not too sure if I'm correct, but surely I can control the outputs inside the ISR of a configured PWM timer? I unders...
by Theicaruseffect
Wed Jul 23, 2014 1:04 pm
Forum: MSP Microcontrollers
Topic: Msp430 PWM launchpad P1.0 issue
Replies: 6
Views: 3311

Msp430 PWM launchpad P1.0 issue

Hello all. I'm trying to get PWM working on P1.0 but it's having issues where the light is just staying on, not clearing at the end of each pulse. Now I've enable CCIE and the ISR is being execuited, but I'm unable to have any control over the PWM. I've looked into TAIV too, but I'm having no luck w...