How to see the data in Terminal window (Async communication code)

I am running async communication program ....(Demonstration of SCI in asynchronous mode. The program communicates from the RX111 to a terminal program via SCI and RS-232. )

I am not able to see the data comming ....i have used doclite and hyper terminal software also but i am not able to see the data comming..... please suggest me solution to see the data comming...

  • Jeevan,

    Which example are you using?
    What IDE and compiler are you using?
    Some more information will make it easier for you to receive an answer to your question

    Mike Clements
    RenesasRulz Moderator
  • In reply to Mike Clements:

    IDE = CS+
    compiler = CC-RX
    Example code name = Async_Serial

    i am also using hyperterminal software to view the data which is sent by the RX111 controller.....but i am not able to see the data in the hyperterminal ... please help...
  • In reply to Jeevan:

    Jeevan,

    Do you have any code that shows how you are addressing your SCI?
    Which version of CS+ and CC-RX are you using?
    What are your hardware settings on the board?

    It is rather difficult to find a problem without at least the code snippet that you use to attempt communication with.

    Mike Clements
    RenesasRulz Moderator
  • In reply to Mike Clements:

    CS+ = version 3.0

    Hardware setting = shorted pins 1,2 of J12

    Code

    void main(void)

    {

       /* Displays the application name on the debug LCD */

       Clear_Display();

       DisplayCenter(0,  (uint8_t *)"CRC");

       DisplayCenter(1, (uint8_t *)"Sample");

       /* Set the CRC module for LSB first */

       R_CRC_SetCRC16(CRC_LSB);

       /* enable uart reception and transmission */

       startSCI1();

       initSCI1Receive();

       /* Clear the text on terminal window */

       text_write(cmd_clr_scr);

       /* Display splash screen on terminal window */

       text_write("\r");

       text_write("Renesas RX111 CRC Sample \r\n");

       text_write("Enter any printable key, and the checksum will be displayed below\r\n\n");

       while (1U)

       {

           /* Wait here until a character is received */

           while (g_sci1_data_available == 0)

           {

               /* Wait */

           }

           g_sci1_data_available = 0;

            /* Read the character */

           input = gp_sci1_rx_buf[0];

           /* Load data for CRC calculation */

           R_CRC_Input_Data(input);

           /* read the result */

           R_CRC_Get_Result(&checksum);

           /* Replace X in the transmit buffer string with the received character */

           tx_buffer[13] = input;

           /* Convert the received character into a hex number, and insert into transmit buffer string to replace YYYY */

           uint16_to_string(tx_buffer, 18, (uint16_t)input);  

           /* Convert the checksum into a hex number, and insert into transmit buffer string to replace YYYY */

           uint16_to_string(tx_buffer, 38, checksum);

           /* Display the result */    

           text_write((const char *) tx_buffer);    

       }

       /* End user code. Do not edit comment generated here */

    }

  • This thread will be archived due to inactivity.

    Mike Clements
    RenesasRulz Moderator