Hi I am using stellaris lm3s3748 EVP and I want to send HEX value to an external module the poin is when I use the UARTCharPut() to send say 0x55 : UARTCharPut(UART0_BASE,0x55); the RealTerm software the received value is wrong can someone help me with how can I get the data sent right
The below is my code following a snapshot of the result in the RealTerm
#include "hw_types.h" #include "hw_memmap.h" #include "driverlib/adc.h" #include "inc/lm3s3748.h" #include <stdio.h> #include "driverlib/gpio.h" #include "hw_types.h" #include "utils/ustdlib.h" #include "grlib/grlib.h" #include "driverlib/uart.h" #include "driverlib/sysctl.h" #include "driverlib/interrupt.h" #include "driverlib/rom.h" #include "driverlib/debug.h" #include "inc/hw_ints.h" int main(void) { SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); IntMasterEnable(); GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); UARTConfigSetExpClk(UART0_BASE, SysCtlClockGet(), 115200,(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE)); UARTEnable(UART0_BASE); UARTIntEnable(UART0_BASE, UART_INT_TX); while(1) { UARTCharPut(UART0_BASE,0x55); } }
Please some one help me I have get this right in 3 days
Thanks in advance