Jump to content


  • Content Count

  • Joined

  • Last visited

About mpigsley

  • Rank
    Noob Class
  • Birthday 02/10/1992

Profile Information

  • Gender
    Not Telling
  • Location
    United States
  1. I ended up using SMCLK and increasing the capture compare register. Why this suddenly works while the ACLK didn't... I don't know. The updated code is below for reference. #include <msp430g2553.h> #define MS_TIME 1000 volatile unsigned int s_cnt = 0; unsigned int last_cnt = 0; int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT P1DIR |= BIT0 + BIT6; // P1.0 and P1.6 are the red+green LEDs P1OUT &= ~(BIT0 + BIT6); // Both LEDs off TA0CCTL0 = CCIE; // Enable Timer A0 interrupts TA0CCR0 = 1000;
  2. @@pabigot The capture compare flag needs to be manually reset after each ISR execution? From the user guide page 11-20: @@greeeg Even after removing Low Power Mode I'm still getting that starvation.
  3. @@greeeg This is brilliant. I'll take a look at it later today. I appreciate both of you guys' help!
  4. _enable_interrupts(); It's not declared in the scope. What header is that defined in? I can't seem to find any documentation on it either. I've also played around with the low power modes to no avail. Removing it doesn't help.
  5. Hey all, I've run into a peculiar problem where my main loop doesn't execute. I know my interrupt routine is executing because I can uncomment the led toggle and I can see it blink. From what I've researched thus far, I believe the issue might be that the ISR is starving the main loop from ever executing. If that is the case, I'm not sure what the solution would be. The reason I have my main loop set up this way is because I am going to need different functions executing at different intervals. I'm still fairly new to MSP430 development, so any help will be appreciated! #include &l
  6. I'll do just that. Thank you for your prompt help!
  7. You're right, there's that TimerA_UART_tx() function I missed. It is editied in to the original post. Since there is dedicated UART hardware, does this mean I can remove that dependency on TimerA for bi-directional serial comm? It looks like you did just that in the code snippet. Great! I'll look into this and see where I get. Thank you!
  8. Oh sorry, it's G2553
  9. I'm fairly new to specifically MSP430 development, so any help here is appreciated! I'm trying to send data to and from a Raspberry Pi connected over hardware UART. This I've tested and works. I'm also trying to run two servos on the MSP430 and the basic code I have for them has been tested and also works. The problem occurs when I try to put them together as my timer setup must clash somewhere. It seems to me that the serial communication is all set on TA0 while the other timer is set to TA1. I don't understand why this would prevent the UART from sending and receiving. Edit: I'm us
  • Create New...