Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Nisarg

  1. i guess i finally get it. Instead of AINx, the pins work with Ax and instead of PFx they correspond to PF_x. will have a look at http://energia.nu/Guide_StellarisLaunchPad.html before asking next time. Thanks people!
  2. I get it! hopefully the 12bit ADC instead of 10bit (on 2553) will help. Thanks! I am using Energia 0101E0011, and analogReference() or analogReference(EXTERNAL) or analogReference(INTERNAL) doesn't compile. Moreover, SPMU296 lists analog pins as AINx (x = 0 to 11), but the code doesnt compile with it! It compiles with Ax (as used in 2553), but I dont have any idea about the corresponding pins on J3 and J4 column on launchpad.
  3. Hi, I am just learning to use TM4C123G launchpad with energia. I wanted to use one of my old codes (which used MSP430G2553) on it. The only problem is that the compiler doesnt allow me to use analogReference. The datasheet of the controller doesnt mention any internal voltage reference. Will it be fine if i generate required VREFP on any other GPIO via analogWrite and then connect it with VREFP pin externally? Help!
  4. Yeah! I was using the reference docs when I noticed it. Did not notice on the site. Thanks!
  5. Hey there, there is an error on the site in the example of attachInterrupt function. the page: http://energia.nu/AttachInterrupt.html Tested the code on my MSP430G2 Launchpad. The correct code should be: volatile int state = HIGH; volatile int flag = HIGH; int count = 0; void setup() { Serial.begin(9600); pinMode(GREEN_LED, OUTPUT); digitalWrite(GREEN_LED, state); pinMode(PUSH2, INPUT_PULLUP); //The correction attachInterrupt(PUSH2, blink, FALLING); // Interrupt is fired whenever button is pressed } void loop() { digitalWrite(GREEN_LED, state); //LED starts ON
  • Create New...