Re: [Amforth] R: Re: R: Re: HW flow control

2014-08-10 Thread Matthias Trute
Hi, > How can I know if the mcu is ready to receive another line? A nice discussion ;) The forth text interpreter in amforth is line based. This is coded in QUIT as follows (simplified) : quit ( stack setup ) [ \ turn on interpret state begin ( some prompt magic) refill ['] inte

[Amforth] R: Re: R: Re: R: Re: HW flow control

2014-08-10 Thread Paolo Garro
Hi Matthias, Does REFILL load a single line? In a multiline colon definition is it called for each line? If so I think the best place to handle XON/XOFF is QUIT itself. At the begin of the loop after calling REFILL assert XOFF and before closing the loop assert XON. That way transmission is blocke

[Amforth] R: Re: R: Re: R: Re: HW flow control

2014-08-10 Thread Paolo Garro
I apologize Matthias, Your solution is ok. Managing flow control inside REFILL is the same of my proposal and is a better implementation. Paolo  Inviato da Samsung Mobile Original message Subject: Re: [Amforth] R: Re: R: Re: HW flow control From: Matthias Trute To: amfort

Re: [Amforth] R: Re: R: Re: R: Re: HW flow control

2014-08-10 Thread Michael Kalus
Never forget: xon/xoff is for *single* character exchange - send one, get echo, check it, send another one... Sender must interpret *each* echo character immediately and stop at xoff at once. Use xon/xoff to connect two amforth devices via TXD/RXD. Or on a PC use a sending tool able to do that

[Amforth] R: Re: R: Re: R: Re: R: Re: HW flow control

2014-08-10 Thread Paolo Garro
Hi Michael, The Matthias implementation handles flow control once for each line. That's ok for me. Perhaps XON XOFF are not the right names... The goal is to manage a ready/busy flag. The canonical SW flow control might work different but also the echo control is not a standard. Using both of the

Re: [Amforth] R: Re: R: Re: R: Re: R: Re: HW flow control

2014-08-10 Thread Michael Kalus
Good luck for your project. Michael Am 10.08.2014 um 16:22 schrieb Paolo Garro: > Hi Michael, > The Matthias implementation handles flow control once for each line. > That's ok for me. > Perhaps XON XOFF are not the right names... The goal is to manage a > ready/busy flag. > The canonical SW fl