Jump to content

weirdnerd10

Members
  • Content Count

    5
  • Joined

  • Last visited

About weirdnerd10

  • Rank
    Noob Class

Profile Information

  • Location
    California
  1. I manually set the clock speed to 1MHz and it works great!!! Thank you so much for your help roadrunner84 and chicken!
  2. I didn't pay attention to the clock speed since I was using a basic example off of Energia. I will try to go back and redo the blink code while manually setting the clock speed to be lower. I was using a green LED but also probing the output pin with a DMM to ensure the voltages. I will redo this as well without the LED and just the DMM. Thank you both for your help!!
  3. Hello All, I am a beginner to MSP430G2553, however all I am trying to do is get the MSP430 to execute the blink code while on 1.8V power supply. I have tried it on the launchpad board and it seems to stop working around 2.1V power supply. I then tried the barebones method by only using a bypass capacitor, pull up resistor for reset, and LED/current limiting resistor on a breadboard, but it seems that again the circuit only works down to around 2.0V. I measured the output pin while at 1.8V and it is in 10's of mV so it is not a problem of the LED getting degraded voltage levels but the fact that its barely getting any voltage. Is there something special I need to set on the chip before using this at 1.8V? Thank you for your time!
  4. Thank you both so much for these responses as they were very helpful!!! Especially knowing that it is being treated as an octal value was a great explanation. I have started using hexadecimal now along with the bitwise operators like &= talked about above and it works great!
  5. Hello everyone, I am new to MSP430G2553 and a beginner at programming. But I am trying to do something simple to start off which is to do the blink example, but without using digitalWrite and instead using P1DIR/P1OUT/etc. Goal: Take the MSP430G2 Launchpad Development Board and blink P1.6 only. Issue: I noticed that the following code doesn't work and that I need to initialize P1.7 along with P1.6 for it to work: void setup() { // initialize pin 1.6 as output P1DIR = 01000000; } // the loop routine runs over and over again to blink the LED: void loop() { P1OUT = 01000000; delay(1000); // wait for a second P1OUT = 00000000; delay(1000); // wait for a second } -----------------------The code below works fine (initializing P1.7 as well)------------------------------------ void setup() { P1DIR = 11000000; } // the loop routine runs over and over again to blink the LED: void loop() { P1OUT = 11000000; delay(1000); // wait for a second P1OUT = 00000000; delay(1000); // wait for a second }
×
×
  • Create New...