Page 1 of 1

MOD5213 XON/XOFF

Posted: Sat Oct 13, 2012 11:58 am
by jking
Been fighting with communicating with a serial LCD.
The LCD generates an XOFF char when expected.
The MOD5213 seems to ignore it and over-runs the LCD buffer.
Early in main, before anything is sent to the LCD, I set the following:

Code: Select all

    InitIRQUart( 1, 115200, 1, 8, eParityNone );
    IRQ_TX_XON_Flow( 1, TRUE );                     /* use XON/XOFF on transmit */
    IRQ_RX_XON_Flow( 1, TRUE );                     /* use XON/XOFF on receive */
Can anyone confirm that software handshaking does in fact work?
Using NNDK release tag version:Rel_2_6_0

Thanks,
Jeff

Re: MOD5213 XON/XOFF

Posted: Sun Oct 14, 2012 8:14 am
by rnixon
Hi Jeff,

How do you know the lcd is sending an xoff. Can you see it on a scope connected to the serial lines?

Re: MOD5213 XON/XOFF

Posted: Sun Oct 14, 2012 9:36 am
by jking
For testing, I'm echoing characters received on COM1 to COM0.
I have a terminal program connected to COM0.

Code: Select all

        char serByte = sgetchar( 1 );  /* wait for received character */

        /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This line for test only */
        writechar( 0, serByte );
        /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Above line for test only */
I can see the XOFF char from the LCD.

I've used Windows Grep 2.3 to search the nburn folder to try to figure out where the XOFF char is tested for,
but I can't see how it can work.

Thanks,
Jeff