Hello,
I am using two UARTs in my system.One UART is for transmission and one UART is reception in duplex mode.
Here is a part of my Program
for(;;)
{
/* Place your application code here. */
//Wait for command
recv_byte=0;
UART_1_WriteTxData(0x0d);UART_1_WriteTxData(0x0a);
UART_1_PutString("Company Name.......");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("auoto Zero => Z");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("Measure => M");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("Setup => S");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display oN => N");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display oFf => F");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display Test=> T");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
CyDelay(20);
.
.
.
.
.
so on.............and I am displaying all these datas through serial port in Hyperterminal in a PC
the problem that now I am facing is,there is only one or two lines is displaying or transmitting.After that the execution of the program is in a Pause state.
Can anyone please tell what is the reason for this problem ?
|