Jump to content

Search the Community

Showing results for tags 'TX'.

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.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 4 results

  1. Hi. I seem to get the following error whenever I try using "GPIOPinConfigure()" as shown below: However I do NOT get the error whenever the function "GPIOPinConfigure()" is NOT used: In essence, I want to be able to make a SSI connection with two TM4C123GH6PM launchpads in order to send temperature information (from one end) and print it onto a Kentec LCD screen (at the other end). The complete code of the sender is posted in the following: #include <LiquidCrystal.h> #include <DHT.h> #include <stdint.h> #include <stdbool.h> #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/gpio.h" #include "driverlib/pin_map.h" #include "driverlib/sysctl.h" #include "driverlib/uart.h" #include "inc/hw_ints.h" #include "driverlib/interrupt.h" #define DHTPIN PF_0 // GPIO pin for data #define DHTTYPE DHT22 //Type of sensor (DHT11 or DHT22) DHT dht(DHTPIN, DHTTYPE); //LCD Print LiquidCrystal lcd(PD_1, PD_2, PD_3, PE_1, PE_2, PE_3); void setup() { // put your setup code here, to run once: Serial.begin(115200); //Serial Baud rate Serial.println("DHT22 test!"); dht.begin(); lcd.begin(16, 2); lcd.print("TEST"); delay(2000); lcd.clear(); } /*void UARTIntHandler(void) { uint32_t ui32Status; ui32Status = UARTIntStatus(UART0_BASE, true); //get interrupt status UARTIntClear(UART0_BASE, ui32Status); //clear the asserted interrupts while(UARTCharsAvail(UART0_BASE)) //loop while there are chars { UARTCharPutNonBlocking(UART0_BASE, UARTCharGetNonBlocking(UART0_BASE)); //echo character GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2, GPIO_PIN_2); //blink LED SysCtlDelay(SysCtlClockGet() / (1000 * 3)); //delay ~1 msec GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2, 0); //turn off LED } }*/ void loop() { //put your main code here, to run repeatedly: SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); //GPIOPinConfigure(GPIO_PA0_U0RX); /*GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_2); UARTConfigSetExpClk(UART0_BASE, SysCtlClockGet(), 115200, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE)); IntMasterEnable(); IntEnable(INT_UART0); UARTIntEnable(UART0_BASE, UART_INT_RX | UART_INT_RT);*/ lcd.noDisplay(); delay(200); lcd.display(); delay(200); delay(2000); float h = dht.readHumidity(); float t = dht.readTemperature(); float f = dht.readTemperature(true); if (isnan(h) || isnan(t) || isnan(f)) { Serial.println("Failed to read from DHT sensor!"); return; } // Prints results on serial monitor Serial.print("Humidity: "); Serial.print(h); Serial.print(" %\t"); Serial.print("Temperature: "); Serial.print(t); Serial.print(" *C"); Serial.print(", "); Serial.print(f); Serial.println(" *F "); // Prints on LCD lcd.setCursor(0, 1); lcd.print("HUMID% = "); lcd.print(h); lcd.println(" %" ); lcd.setCursor(1, 0); lcd.print(" TEMP = "); lcd.print(t); lcd.println("*C"); } I hope someone can help me address this error. Thank you.
  2. 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); }
  3. Is there a way to use the SoftwareSerial library on the Stellaris Launchpad TM4C123GXL board? I am trying to connect a Sparkfun serial enabled LCD screen to the board but the SoftwareSerial library is only compatible with 20, 16, and 8 MHz processors, and the TM4C123GXL is an 80 MHz chip. How can I use this LCD screen with the Stellaris Launchpad over a UART connection? Do I need to use SoftwareSerial or can I do without it? I am programming in Energia 0101E0017 on Windows 7 64 bit. Any help is greatly appreciated, thanks!
  4. Hi I'm new with energia and I'm trying to use the Hardware serial communication with a Lauchpad Rev. 1.4 so I connect the RX end TX jumpers in cross but it doesn't work...Can anyone help me? this is the simple code I use: void setup() { Serial.begin(9600); } void loop() { Serial.println("Hello !!!"); delay(500); } I try to use also the software serial communication for but it doesn't work
  • Create New...