Shop OBEX P1 Docs P2 Docs Learn Events
Using fullduplexserialplus object — Parallax Forums

Using fullduplexserialplus object

dr hydradr hydra Posts: 212
edited 2013-07-08 18:55 in Propeller 1
I am using the fullduplexserialplus object to send information from a PC to the propeller. I am also using a tv video object to display results on a tv screen. The tv display has some animated graphics that are updated every 1/60th sec based on the vsync. However, the getDec function in the fullduplexserialplus object freezes the animation as it pause the program until the "return" key is pushed on the pc. Is there a different function that I can use to check the rxbuffer for information and continue the program instead of waiting for the "return" key and pausing the animation? Or do I need to separate the functions into different cogs?

Comments

  • SRLMSRLM Posts: 5,045
    edited 2013-07-08 12:43
    You can you rxcheck(). It doesn't block, so as long as the rest of your program doesn't have a block you'll be fine.
  • dr hydradr hydra Posts: 212
    edited 2013-07-08 14:15
    SRLM..thank you for the response...

    I have one more quick question(I do not have my propeller with me)...on the PC side..the serial program only sends the char when the 'return' key is entered. Therefore, the last byte sent will always be the return key...does using the checkrx() only return the 'return' (chr$13) or does it return the value entered on the PC before the return key?
  • SRLMSRLM Posts: 5,045
    edited 2013-07-08 18:55
    FDS+ reads the serial byte by byte. So, if your terminal program sends two bytes FDS+ will read two bytes.
Sign In or Register to comment.