This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C1294NCPDT: how to interface sim800l using UART1

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL,

Tool/software: Code Composer Studio

I am using sim800l to interface with tm4c1294xl  but i don't know how to deal with UART1 .

please tell me how to send data to the sim800l module using UART1 and how can i enable UART1 

below is my code and it print nothing on console .

void
ConfigureUART(void)
{
//
// Enable the GPIO Peripheral used by the UART.
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);

//
// Enable UART1
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART1);

//
// Configure GPIO Pins for UART mode.
//
ROM_GPIOPinConfigure(GPIO_PB0_U1RX);
ROM_GPIOPinConfigure(GPIO_PB1_U1TX);
ROM_GPIOPinTypeUART(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1);

//
// Initialize the UART for console I/O.
//
UARTStdioConfig(1, 9600, g_ui32SysClock);
}

//*****************************************************************************
//
// Print "Hello World!" to the UART on the Intelligent UART Module.
//
//*****************************************************************************
int
main(void)
{
//
// Run from the PLL at 120 MHz.
//
g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);

//
// Configure the device pins.
//
PinoutSet(false, false);

//
// Enable the GPIO pins for the LED D1 (PN1).
//
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_1);

//
// Initialize the UART.
//
ConfigureUART();

//
// Hello!
//
UARTprintf("Hello, world!\n");
UARTCharPut(UART0_BASE, '@');

  • What hardware are you using? Is it an EK-TM4C1294XL Launchpad or your custom hardware? How have you interfaced UART1 to your console? (Note that on the EK-TM4C1294XL PB0 and PB1 are connected to the device USB connector.
  • i want to communicate between sim800l GSM module and TM4C1294XL launchpad .SIM800L module only interface with UART so i want to enable UART1 for communication. I am using UART0 for ultrasonic sensor interfacing and it work fine but now i want to use UART1 but i don't know how to use. is there need for USB to TTL logic converter for UART1 so my question is ,what is a procedure should be follow to enable UART1.
  • I did not find the datasheet for the SIM800L. Adafruits has replaced it with the SIM800H. They claim that except for the addition of some features the datasheet is the same, but you should contact them to verify.
    cdn-shop.adafruit.com/.../sim800h_hardware_design_v1.00.pdf
    The VBAT specification of 3.4V to 4.4V with a maximum input voltage of 3.1V will not make this an easy part to interface. You might be OK if you add a series limiting resistor on the UART1 TX pin. You need to compare the electrical specifications of the SIM800L to the specifications of the TM4C1294NCPDT yourself. While I am sure many hobbyists have interfaced this module directly to the UART pins of a 3.3V microcontroller, I never recommend operating a part outside of the manufacturer's recommended specifications.