Hi,

Is there a 16 byte input buffer or something on the default UART? I'm
trying to read input on the UART that the interpreter uses but I can't read
more than 16 characters. I am using an ATMega644PA with an FTDI connection
to my PC running cutecom.

I have defined a word:

: wait4key ( -- )
    BEGIN
       key?
    UNTIL
;

If I give the command:

> wait4key key emit

And then enter:

abcdefghijklmnopqrstuvwxyz

I get the response:

q ok

> rstuvwxyz

rstuvwxyz ?? -13 9


So it has lost the first 16 characters. How do I read more than 16?


I can of course do


> ." abcdefghijklmnopqrstuvwxyz" type


and it works fine. Is the interpreter reading the input buffer somewhere
esle?


Many thanks for your help,


David
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to