
phaseform
Members-
Content Count
17 -
Joined
-
Last visited
-
Days Won
1
Everything posted by phaseform
-
Thanks Fmilburn, the example you linked looks like it will be fine
-
I don't understand how TI brought this out to go against Arduino when example codes for the hardware are so scarce, clearly they don't focus on the hobbyist market, or at least they really suck at doing it. Energia is linked on the launchpad website.. should it be confusing something as simple as power management would appear so tricky. I guess I'm just going to keep poking it with a stick until it works?
-
Ok so I want to save battery life, I thought I could get the chip to power down when hibernating (which I assumed meant main would not run?). I also thought not as relevantly I could save power by powering via vbus and removing the jumper pin to (I hoped) disconnect the debug chip... I dont need calendar mode since I'm using a timedate library. Am I totally misunderstanding the hibernate module??!
-
Trying to get the hibernate library to work as in the pastebin example for the tm4c123 here. I've modified it with the request at the end. //#include <DateTimeLibrary.h> #include "driverlib/hibernate.c" boolean redstate = false; boolean bluestate = false; int green = 0; void setup() { uint32_t hibact = HibernateIsActive(); // put your setup code here, to run once: pinMode(GREEN_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT); HibernateEnableExpClk(F_CPU); HibernateRTCEnable(); HibernateRTCMatchSet(0,HibernateRTCGet()+5); HibernateIntRegister(HibernateHandler); HibernateInt
-
is something required in main to go to sleep, HibernateRequest(void)?
-
RTC to I2C LCD Working on TM4C123 / LM4F120
phaseform replied to phaseform's topic in Energia - TivaC/CC3XXX
-
Credit to pixelk for this code: (I changed the NTP server, removed some possible infinite loops and put it in an Energia sketch) /* ESP8266 connected to Serial1 */ void setup() { // initialize both serial ports: Serial.begin(9600); Serial1.begin(9600); Serial.println("..."); } void loop() { delay(3000); Serial.println(); Serial.println("Getting time.."); int Epoch = GetTime(); Serial.print("Epoch is: "); Serial.println(Epoch); delay(5000); } const int NTP_PACKET_SIZE= 48; // NTP time stamp is in the first 48 bytes of the message byte packetBuffer[ NTP_PACKET_SIZE];
-
Just been able to get an RTC output on an I2C LCD working on a TM4C123. Using this RTC Library which I understand uses the chips built in RTC/hibernate function and this I2C LCD Library, which seems to only like I2C(3) // Core library for code-sense - IDE-based #if defined(WIRING) // Wiring specific # include "Wiring.h" #elif defined(ENERGIA) // LaunchPad specific # include "Energia.h" #else // error # error Platform not defined #endif // end IDE // Include application, user and local libraries // The time library provides all the tools. // No need for reinventing them! #include "t
-
[Energia Library] LCD 2x16 library
phaseform replied to cosmok82's topic in TivaC / CC3XXX Energia Libraries
In the sketchbook location (under file > preferences) is a libraries folder, extract your library there -
would someone be able to explain the function of hibernate, in post #21 I don't understand why main is running concurrently to the hibernate timer?
-
I'm just thinking in as far as using the launchpad for a project, unless I'm understanding the process wrong, the debugging chip is only used as usb serial and debugging? Yer thats what I thought, if I remove the jumper possibly I could remove the ICDI from VBUS? then I'd just have to use an external 5v other than USB..?
-
How can I remove power from the ICDI on a Launchpad board? It seems my lm4f120 will use 40mA through my usb power meter when in sleep, and 70mA when not in sleep.. (sleepSeconds) I've been looking through the users manual on the product page and can't find anything useful in the scematic or the hibernate section.
-
On the stellaris, is it possible to power from VBUS while using debug usb? I was intending to use the debug serial sometimes to connect to the board, but I want it to run all the time, even when not connected to the debug USB. Is this possible?! I was going to source a 5v power supply to run the VBUS. thanks!
-
Heres the Library I modified to work with the Stellaris, not sure how that affects the MSP430 Mfrc522_Stellaris.zip
-
I've been trying to get this library to work with my Stellaris, which has proved a bit of a challenge for a beginner like myself.. I edited Mfrc522.cpp where I changed Mfrc522::Mfrc522(int chipSelectPin, int NRSTPD) { pinMode(chipSelectPin, OUTPUT); _chipSelectPin = chipSelectPin; pinMode(NRSTPD, OUTPUT); digitalWrite(NRSTPD, HIGH); _NRSTPD = NRSTPD; } to Mfrc522::Mfrc522(int chipSelectPin, int NRSTPD) { _chipSelectPin = chipSelectPin; _NRSTPD = NRSTPD; } and moved pinMode(chipSelectPin, OUTPUT); pinMode(NRSTPD, OUTPUT); digi
-
[Energia Library] NFC card reading with Energia - MF RC 522
phaseform replied to eelcor's topic in MSP Energia Libraries
I have a whole bunch of problems getting my Stellaris to play nice with my ebay 522 reader... EDIT: got it here So far I cant get the serial monitor to send anything back to the computer. I've tried changing the baud rate - 9600 and 2400. also, I'm confused at to the pin connection, I've tried: // SDA on Stellaris pinmap SDA(0) is PB_3 // SCK on Stellaris pinmap SCK(0) is PA_2 // Mosi on Stellaris pinmap MOSI(0) is PA_5 // Miso on Stellaris pinmap MISO(0) is PA_4 // IRQ - not connected // GND - GND // RST - 1.3 on 430 refers to PUSH2; on Stellaris = PF_0... not sure -
I'm not having any luck getting this to compile for my lm4f120. Are there libraries that need to be added, if so where can I find them?! "Energia.h" was used as an example library?! thanks!