MOD5213 XON/XOFF

Discussion to talk about software related topics only.
Post Reply
jking
Posts: 5
Joined: Thu Apr 24, 2008 6:48 pm

MOD5213 XON/XOFF

Post 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
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: MOD5213 XON/XOFF

Post 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?
jking
Posts: 5
Joined: Thu Apr 24, 2008 6:48 pm

Re: MOD5213 XON/XOFF

Post 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
Post Reply