This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i copied old mesage about rs23

Hallo everyone,
I have problem with communication over serial port.

This is what I am having problem with:

I need to make communication with device which has usb on rs232 convertor and fifo memory.

I sent data to fifo memory in same time device read data from fifo memory.

When micro (in device) sees that memory is full, it change state of CTS signal. CTS signal stays in that state until memory is half full.

I have problem to write code in C that sends data to device but considering CTS.

I send data as char byte array, memory is 4K , speed is 38400

Does anyone have a clue how I can solve this mistery

Milan

Parents
  • But you didn't bother to update the old thread to say where this new one is, did you?

    The old thread was about an ARM (lpc2148); now you've chosen C51 - so what chip, exactly, are you actually using?

    "I have problem to write code in C that sends data to device but considering CTS"

    What problem, exactly, do you have?

    Isn't it obvious:

    IF cts is clear
       THEN you can send data
       ELSE you must wait & try again
    

    "Does anyone have a clue how I can solve this mistery"

    There is no mystery - it's just a perfectly normal case of thinking about your control logic!

    Hardware Flow Control is, of course, very common indeed - have you actually tried googling, or any other research...?

Reply
  • But you didn't bother to update the old thread to say where this new one is, did you?

    The old thread was about an ARM (lpc2148); now you've chosen C51 - so what chip, exactly, are you actually using?

    "I have problem to write code in C that sends data to device but considering CTS"

    What problem, exactly, do you have?

    Isn't it obvious:

    IF cts is clear
       THEN you can send data
       ELSE you must wait & try again
    

    "Does anyone have a clue how I can solve this mistery"

    There is no mystery - it's just a perfectly normal case of thinking about your control logic!

    Hardware Flow Control is, of course, very common indeed - have you actually tried googling, or any other research...?

Children
No data