Hello.
I tried to work StarterWare\UartEcho example in hardware flow.
As a result, THR-empty interrupt is not generated. (Can not data transmit)
But, Receive interrupt is generated when data is received. (Can data receive)
The following shows the modifications. ("-" is delete, "+" is add)
int main(void)
{
unsigned int intFlags = 0;
unsigned int config = 0;
/* Enabling the PSC for UART2.*/
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_UART2, PSC_POWERDOMAIN_ALWAYS_ON,
PSC_MDCTL_NEXT_ENABLE);
/* Setup PINMUX */
- UARTPinMuxSetup(2, FALSE);
+ UARTPinMuxSetup(2, TRUE);
+ UARTModemControlSet(SOC_UART_2_REGS, (UART_AUTOFLOW | UART_RTS));
/* Enabling the transmitter and receiver*/
UARTEnable(SOC_UART_2_REGS);
...
----
Target: AM1808 EVM
IDE: CCS v5.2
To use hardware flow, Do I need to change other than the above me?
Thanks.
shuzaburo