Hi all,
I have modified the UART Lab10 example of workbook and to implement the UART5 for continuous data transmission and to see the same on terminal.
I used the PC6 & PC7 port pins on X8 Connector in Launchpad for UART5 by collecting information from the TM4C1294NCPDT data sheet and modified the code with same pins.
From PC6(RX) & PC7(TX) of launchpad i am connecting to input of MAX232IC and output of MAX232IC to DB9 Female connector.Through DB9 i am using USB to Serial Converter to see the data from putty on PC.
But i can't able to see the data on the putty,so please help to slove the issue.My main.c file is as below
#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"
uint32_t ui32SysClkFreq;
int main(void)
{
ui32SysClkFreq = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART5);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
GPIOPinConfigure(GPIO_PC6_U5RX);
GPIOPinConfigure(GPIO_PC7_U5TX);
GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_6 | GPIO_PIN_7);
UARTConfigSetExpClk(UART5_BASE, ui32SysClkFreq, 115200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE));
UARTCharPutNonBlocking(UART5_BASE, 'E');
UARTCharPutNonBlocking(UART5_BASE, 'n');
UARTCharPutNonBlocking(UART5_BASE, 't');
UARTCharPutNonBlocking(UART5_BASE, 'e');
UARTCharPutNonBlocking(UART5_BASE, 'r');
UARTCharPutNonBlocking(UART5_BASE, ' ');
UARTCharPutNonBlocking(UART5_BASE, 'T');
UARTCharPutNonBlocking(UART5_BASE, 'e');
UARTCharPutNonBlocking(UART5_BASE, 'x');
UARTCharPutNonBlocking(UART5_BASE, 't');
UARTCharPutNonBlocking(UART5_BASE, ':');
UARTCharPutNonBlocking(UART5_BASE, ' ');
while (1)
{
UARTCharPutNonBlocking(UART5_BASE, 's');
}
}
while setting the baud rate for putty i am using the com port of USB to Serial Converter.