Search the Community

Showing results for tags 'TM4C123G'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Found 4 results

  1. Hello everyone.. I am beginner with Energia. I have Tiva C series launchpad which features TM4C123G series microcontroller. Now this microcontroller has 8 UARTs. I have tested basic serial communication using energia and it works perfectly fine. Now i want to use UART module 3 of this microcontroller which is pin no 13 and 14 (PC6 and PC7). So how can i do this using Energia..?? Thank you.
  2. I am new to the TI development world, I'm coming from Atmel so I have a decent working background. I have been stuck on getting interrupts to work. Below is the code I'm currently working with; any help would be appreciated; thanks! Objective: Toggle LED on PF3 when the button on PB0 is pressed. #include <stdbool.h> #include <stdint.h> #include <inc/hw_memmap.h> #include <driverlib/debug.h> #include <driverlib/gpio.h> #include <driverlib/rom.h> #include <driverlib/sysctl.h> #include <tiva_device.h> #include "driverlib/interrupt.h" volatile bool state = false; void intGPIOb(void) { if (GPIO_PORTB_DATA_R & 0b00000001) { if (state) { GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3, GPIO_PIN_3); } else { GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3, 0); } state = !state; } GPIO_PORTB_DATA_R = 0; } int main(void) { SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); SysCtlDelay(3); GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_3); GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3, 0); GPIOPinTypeGPIOInput(GPIO_PORTB_BASE, GPIO_PIN_0); GPIOPadConfigSet(GPIO_PORTB_BASE, GPIO_PIN_0, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU); GPIOIntTypeSet(GPIO_PORTB_BASE, GPIO_PIN_0, GPIO_FALLING_EDGE); GPIOIntEnable(GPIO_PORTB_BASE, GPIO_PIN_0); GPIOIntClear(GPIO_PORTB_BASE, GPIO_PIN_0); IntMasterEnable(); IntEnable(INT_GPIOB); while (1) { } }
  3. Hello, I want to make a wireless thermometer using two microcontrollers. How do I write the code in Energia to transmit and receive a variable using a 433 Mhz RF module? Transmitter Setup: I have a TM4C123G connected to a RF transmitter using TX(3) pin 34 on the MCU. The TM4C123G is also connected to a LM34DZ Temp sensor. I need help to modify this working code to send the temperature variable using tx(3) pin 34 /*TM4C123G*/ //initializes/defines the output pin of the LM34 temperature sensor int outputpin= A11; // (pin # 2), use A11 analog input //--------------------------------------------------------------------- //this sets the ground pin to LOW and the input voltage pin to high void setup() { Serial.begin(9600); Serial3.begin(9600); //---------------------------------------------------------------------- } void loop() { int rawvoltage= analogRead(outputpin); float millivolts= (rawvoltage/4095.0) * 3300; float fahrenheit= millivolts/10; Serial3.write(fahrenheit); //transmits temperature to receiver Serial.println(fahrenheit);//displays temperatur on Serial monitor delay(200); } Receiver Setup: I also have a MSP432 connected to a RF receiver using rx pin 3 on the MCU. The MSP432 is connected to a 16x2 LCD. I need help to modify this working code to receive the temperature variable using rx pin 3 and display to the lcd. /*Receiver MSP432*/ #include <LiquidCrystal_I2C.h> #include <Wire.h> #define rfReceivePin 3 //RF Receiver pin = pin 3 unsigned int data = 0; // variable used to store received data byte address = 0x3F; // LCD I2C address int columns = 16; // number of columns on LCD int rows = 2; // number of rows on LCD LiquidCrystal_I2C lcd(address, columns, rows); //----------------------------------------------------------------- void setup() { lcd.init(); // initialize the lcd lcd.backlight(); } //----------------------------------------------------------------- void loop() { lcd.clear(); lcd.setCursor(0,0); data=analogRead(rfReceivePin); //listen for data on pin 3 lcd.print("Temperature"); lcd.setCursor(0,1); lcd.print(data); delay(500); }
  4. Hello, I am trying to measure voltage across a voltage diviter with a Tiva-C series boards, and I am consistently getting mis results. I get 0-4096 for 0 to 3.3V. I also have a seperate battery, that goes in to a 100K + 15K voltage divider network and PE_2 is connected to the middle of the voltage divider. It measures 1.1V approximately, when it should be measuring 0.77V. But here is the interesting part. When I use a multimeter to measure the same middle point in the voltage divider, it reads 0.77, and the value from the analog read also converges to 0.77 - then i disconnect the multimeter it will go up to 1.1V back. This brings the question: what is the analog state of this adc pin? does it has to be initialized with pinMode as input, in order to do analogRead? Best regards, C.A.