Jump to content


  • Content Count

  • Joined

  • Last visited

About demonGeek

  • Rank
    Noob Class

Profile Information

  • Location
  1. Like the OP, I'm just starting out with microcontrollers and electronics and found RobG's reply really helpful. Just out of interest, what's the best advice for using flyback diodes in this situation? Do you treat a servo the same as any other inductive load?
  2. Thanks Rob, I've already tried that example - it works well. Just out of interest, you mentioned 'additional parts', by which I assume you're talking about using the MSP430 to drive something that does the PWM - that sounds interesting - can you explain that in a little more detail or point me at the kind of thing you had in mind?
  3. I liked this method because it seemed like a halfway house between hardware and software PWM but with the obvious restriction on the duration. I'm not knowledgeable enough about the electronics side of things to know whether the 50MHz hobby servo I have sitting on my desk will work at 60MHz and I'm reluctant to try it in case I break it. I'd certainly be interesting in hearing your results if you do play around with the overflowing timer.
  4. I've been learning about PWM - reading the datasheets and trying the code samples - on my Launchpad (MSP430G2231). I came across the last post in this thread which talks about driving two PWM signals by overflowing Timer_A and using that to generate the PWM period leaving CCR0 and CCR1 to generate the duty cycles. It seems to me that doing it this way will limit the PWM period accuracy to just the available clock speeds and dividers so that, for example, I could get ~60Hz by using an 8MHz clock and dividing by 2 but if I needed 50Hz I'd be out of luck. Is this correct or have I got
  5. Thanks everyone - your help is much appreciated. Although I had been reading the Family User's Guide and the device datasheet, I hadn't made the connection that the function was hardwired - my background is in programming so the electronics aspect of this is still new to me. I have just downloaded the Grace plug-in and it's excellent, just what I needed to help bridge my knowledge gap between the software and hardware. TI's documentation is superb but there's so much of it that it's difficult not to be totally overwhelmed, Grace should help with that considerably. - Adam
  6. Just started playing with my Launchpad (MSP430G2231) and I'm working my way through the PWM (ta_20.c) code sample: P1DIR |= 0x0C; // P1.2 and P1.3 output P1SEL |= 0x0C; // P1.2 and P1.3 TA1/2 otions CCR0 = 128; // PWM Period/2 CCTL1 = OUTMOD_6; // CCR1 toggle/set CCR1 = 32; // CCR1 PWM duty cycle TACTL = TASSEL_1 + MC_3; // ACLK, up-down mode It works fine and I understand most of it except for one thing: What determines that the PWM out
  • Create New...