|
From: pito <pi...@vo...> - 2010-08-13 12:18:03
|
Hi, I've tried the CTS stuff with amforth but not succesfully yet (as I can remeber with that basic it worked ..). I did following (pls mind the reverse CTS against my previuos post)> PORTB 0 portpin: LED ( LED flashes when amforth flashes the flash) PORTD 2 portpin: CTS ( FTDI CTS: when HIGH it indicates to FTDI to stop) : i_cts! CTS pin_output LED pin_output LED high CTS high (i!) LED low CTS low ; ' i_cts! is i! However, when using Terraterm, HW handshake, no delays, no waiting on 'ok', it does not work. The question is whether amforth needs to stop receiving after each character in order to process it, and - whether there is a input buffer, as the FTDI may shoot few bytes (from its buffer)even CTS is pulled high - so one need tu pull CTS high before the input buffer is full. So it is not so easy as I assumed...Pito. ----- PŮVODNÍ ZPRÁVA ----- Od: "pito" <pi...@vo...> Komu: mt...@we..., amf...@li... Předmět: Re: [Amforth-devel] Serial - CTS - word compilation Datum: 13.8.2010 - 11:22:02 > Matthias, thanks for the hint! I immediately (as a > first step) did > the visualization of the flash writes (an blue LED > attached via 1k > to PB.0 and ground, so when PB.0 is high it lits): > > PORTB 0 portpin: PB.0 > > : i_see! PB.0 pin_output PB.0 high (i!) PB.0 low ; > > ' i_see! is i! > > I hope the code is correct.. > When upload e.g. the _sieve_ you can see how the > amforth flashes. > Quite surprised - so many flashes to see.. So you > do not buffer the > whole word to be compiled but do flashes line by > line.. > P. > > ----- PŮVODNÍ ZPRÁVA ----- > Od: "Matthias Trute" <mt...@we...> > Komu: "Everything around amforth" > <amf...@li...> > Předmět: Re: [Amforth-devel] Serial - CTS - word > compilation > Datum: 13.8.2010 - 8:00:29 > > > Hi, > > > > > > > The routine which flashes the flash with a new > > > compiled word shall > > > > simply at very beginning put the CTS signal > > > > to > > > > > > LOW and when finished > > > > put back to HIGH. > > > > Its easy to do since i! is a deferred word to > > (i!). You may define > > your own word which pre and post process > > anything > > > you want and call > > (i1) inside. > > > > In addition you can add a plausibility check for > > the addresses as well > > and increase the robustness at all. > > > > If you send me your code I may include it as an > > example. > > > > > > Matthias > > > > > > > > ------------------------------------------------------------------------------ > > > > > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > Amforth-devel mailing list > > Amf...@li... > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |