Hai,
i am doing one project on tms320c5515 controller. i bought evm board. i was started doing some sample codes, i just tried uart code it was worked good for few days . but i suddenly gets problem with my uart . it was not at transmitting any thing.
this code was actually worked, but now this was not working ........
i was just seeing the output in watch in that terminal , transmitting register
UART_THR is not transmitting any thing......... this is my code........please help out from this...................
#include #include static Uint8 dummy, *x; Int16 EVM5515_UART_open( ) { SYS_EXBUSSEL &= ~0xF000; SYS_EXBUSSEL |= 0x1000; SYS_PRCNTRLR &= ~0x0080; SYS_PCGCR1 &= ~0x0004; UART_PWREMU_MGMT &= ~0xe000; UART_DLL = 0x36;
// Set baud rate //36
UART_DLH = 0x00; UART_FCR = 0x0007; UART_FCR = 0x0000; UART_IER = 0x0007; UART_LCR = 0x0003; UART_MCR = 0x0000; UART_PWREMU_MGMT = 0xe001; dummy = UART_THR;
return 0;
} Int16 EVM5515_UART_putChar( Uint8 data ) { UART_THR = data;
return 0;
} Int16 EVM5515_UART_getChar( Uint8* data ) { *data = UART_THR;
return 0;
}
void main()
{ EVM5515_UART_open();
while (1)
{ EVM5515_UART_putChar(
'A');
*x= UART_THR; j=0;
while (j<5)
j++; EVM5515_UART_putChar(
'C');
}
}