Re: [Amforth] Soft Serial Port
Tristian, Thank, I will start soon to explore this version. Let you know my findings. With kindly regars, Jan Verstuurd vanaf mijn iPad > Op 16 feb. 2019 om 21:27 heeft Tristan Williams het > volgende geschreven: > > Jan, > > My prebuilt hex files for the ARDUINO MEGA 2560 are linked below > > https://www.mostlymostly.uk/post/2019.02.16/ > > Hope this helps and interested to hear how you get on. > > Best wishes, > Tristan > > > >> On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote: >> Tristan, >> >> First thanks for the quick response. >> Yes I found out the hex file wasn’t working after flashing to the Mega. >> My flasher is from Pololu and is working great on my macbook pro and avrdude. >> >> Is there an possibility to get the hex files from you? >> I’m not a star in compiling this kind of things without a good portion of >> help. >> >> My email is krom1109 at hotmail dot com >> >> With kindly regards, >> >> Jan >> >> >> >>> Op 15 feb. 2019, om 16:38 heeft Tristan Williams het >>> volgende geschreven: >>> >>> Jan, >>> >>> A number of things. >>> >>> The hex file you have found may not be one for the Arduino >>> Mega2560. If I remember correctly, the distribution has an appl folder >>> for the atmega2561 and the configuration assembler file >>> >>> https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm >>> >>> suggests that it was built for an ATmega2561 with an 14.745600MHz crystal >>> and uart1 >>> hosting the AmForth interpreter. >>> >>> I adjusted the AmForth make system (on OSX) to build a custom hex file >>> for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz >>> crystal. I also put the AmForth interpreter on uart0. The AmForth >>> build system is one of its many strengths, though getting it to work >>> on OS X does require a few extra steps. >>> >>> I used these fuse values for my Arduino Mega2560 >>> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE) >>> >>> Finally, what hex programmer you use may be important with the Mega2560. I >>> used an avrisp2 compatible programmer and had no problems. However, I can >>> confirm that my usbtiny programmer couldn't program my Mega2560 >>> successfully. >>> >>> Best wishes, >>> Tristan >>> >>> >>> >>> >>> >>> >>> >>> On 15Feb19 14:20, Jan Kromhout wrote: Tristan, Found the hex files for the Mega, but don’t found the fuse values. Please can you help me out with these. Cheers, Jan > Op 15 feb. 2019, om 13:21 heeft Jan Kromhout het > volgende geschreven: > > Tristan, > > Thank. Where to find the hex files for the mega, and what fuse settings > you have used. > I wont to play with it this evening. Verry exciting how it works. > Cheers, > > Jan > > Verstuurd vanaf mijn iPad > >> Op 15 feb. 2019 om 12:45 heeft Tristan Williams het >> volgende geschreven: >> >> Jan, >> >> There is a link "source" in the text, but below is the url from the >> link. >> >> https://www.mostlymostly.uk/files/source/uart1.forth >> >> Tristan >> >> >>> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote: >>> Hi Tristan, >>> >>> How can I acces the source, the link shows only an overview! >>> >>> Cheers, >>> >>> Jan >>> >>> Verstuurd vanaf mijn iPad >>> Op 15 feb. 2019 om 09:21 heeft Tristan Williams het volgende geschreven: I've linked (below) some AmForth words I've written to help me use the second hardware serial port on an AVR atmega mcu, should there be one. https://www.mostlymostly.uk/post/2019.02.01/ Tristan ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel >>> >>> >>> >>> ___ >>> Amforth-devel mailing list for http://amforth.sf.net/ >>> Amforth-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel >>> >> >> >> ___ >> Amforth-devel mailing list for http://amforth.sf.net/ >> Amforth-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > ___ > Amforth-devel mailing list for http://amforth.sf.net/ > Amforth-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amforth-devel ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-
Re: [Amforth] Soft Serial Port
Jan, My prebuilt hex files for the ARDUINO MEGA 2560 are linked below https://www.mostlymostly.uk/post/2019.02.16/ Hope this helps and interested to hear how you get on. Best wishes, Tristan On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote: > Tristan, > > First thanks for the quick response. > Yes I found out the hex file wasn’t working after flashing to the Mega. > My flasher is from Pololu and is working great on my macbook pro and avrdude. > > Is there an possibility to get the hex files from you? > I’m not a star in compiling this kind of things without a good portion of > help. > > My email is krom1109 at hotmail dot com > > With kindly regards, > > Jan > > > > > Op 15 feb. 2019, om 16:38 heeft Tristan Williams het > > volgende geschreven: > > > > Jan, > > > > A number of things. > > > > The hex file you have found may not be one for the Arduino > > Mega2560. If I remember correctly, the distribution has an appl folder > > for the atmega2561 and the configuration assembler file > > > > https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm > > > > suggests that it was built for an ATmega2561 with an 14.745600MHz crystal > > and uart1 > > hosting the AmForth interpreter. > > > > I adjusted the AmForth make system (on OSX) to build a custom hex file > > for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz > > crystal. I also put the AmForth interpreter on uart0. The AmForth > > build system is one of its many strengths, though getting it to work > > on OS X does require a few extra steps. > > > > I used these fuse values for my Arduino Mega2560 > > > >> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE) > > > > Finally, what hex programmer you use may be important with the Mega2560. I > > used an avrisp2 compatible programmer and had no problems. However, I can > > confirm that my usbtiny programmer couldn't program my Mega2560 > > successfully. > > > > Best wishes, > > Tristan > > > > > > > > > > > > > > > > > > On 15Feb19 14:20, Jan Kromhout wrote: > >> Tristan, > >> > >> Found the hex files for the Mega, but don’t found the fuse values. > >> Please can you help me out with these. > >> > >> Cheers, > >> > >> Jan > >> > >> > >> > >>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout het > >>> volgende geschreven: > >>> > >>> Tristan, > >>> > >>> Thank. Where to find the hex files for the mega, and what fuse settings > >>> you have used. > >>> I wont to play with it this evening. Verry exciting how it works. > >>> Cheers, > >>> > >>> Jan > >>> > >>> Verstuurd vanaf mijn iPad > >>> > Op 15 feb. 2019 om 12:45 heeft Tristan Williams het > volgende geschreven: > > Jan, > > There is a link "source" in the text, but below is the url from the > link. > > https://www.mostlymostly.uk/files/source/uart1.forth > > Tristan > > > > On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote: > > Hi Tristan, > > > > How can I acces the source, the link shows only an overview! > > > > Cheers, > > > > Jan > > > > Verstuurd vanaf mijn iPad > > > >> Op 15 feb. 2019 om 09:21 heeft Tristan Williams het > >> volgende geschreven: > >> > >> > >> > >> I've linked (below) some AmForth words I've written to help me use the > >> second hardware serial port on an AVR atmega mcu, should there be one. > >> > >> https://www.mostlymostly.uk/post/2019.02.01/ > >> > >> > >> Tristan > >> > >> > >> > >> > >> ___ > >> Amforth-devel mailing list for http://amforth.sf.net/ > >> Amforth-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > > > > ___ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > ___ > Amforth-devel mailing list for http://amforth.sf.net/ > Amforth-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amforth-devel > >>> > >>> > >>> ___ > >>> Amforth-devel mailing list for http://amforth.sf.net/ > >>> Amforth-devel@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel > >> > >> > >> ___ > >> Amforth-devel mailing list for http://amforth.sf.net/ > >> Amforth-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > > ___ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.s
Re: [Amforth] Soft Serial Port
Am Samstag, den 16.02.2019, 13:13 + schrieb Tristan Williams: > Matthias, > > Do you have any objection to me putting up a link to my prebuilt hex > files for the ARDUINO MEGA 2560? No. Simon^wGPL says... ;) Matthias ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel
Re: [Amforth] Soft Serial Port
Am Freitag, den 15.02.2019, 08:21 + schrieb Tristan Williams: > > I've linked (below) some AmForth words I've written to help me use > the > second hardware serial port on an AVR atmega mcu, should there be > one. Really nice. Good work Matthias ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel
Re: [Amforth] double-precision number to string conversion
Am Samstag, den 16.02.2019, 17:55 +0100 schrieb f.zelders--- via Amforth-devel: > Hello forth-professionals and fellow forth enthousiasts. > > I created a word that converts a positive double-precision number to > an 8 character string like this: > > : dpNumberToString ( d -- address count ) > <# # # # # # # # # #> ; > This works fine for positive numbers. > However I want to convert negative double-precision numbers too. Here's the code for d.r : d.r ( d n -- ) >r swap over dabs <# #s rot sign #> r> over - spaces type the essential part is that the "swap over dabs" creates a signed single cell number (value is not relevant) with the same sign as the double cell number and the double number is converted to a positive number (dabs). Inside the <# #> block, sign uses the signed number (again, numeric value irrelevant) to put the - (or nothing) in the picture numeric buffer (pic). Matthias ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel
Re: [Amforth] double-precision number to string conversion
Hello Fred, f.zelders--- via Amforth-devel writes: > I created a word that converts a positive double-precision number to an 8 > character string like this: > > : dpNumberToString ( d -- address count ) > <# # # # # # # # # #> ; > This works fine for positive numbers. > However I want to convert negative double-precision numbers too. > > Any idea how I can make that work? Check out the definitions of "d." "d.r". common/words/d-dot.asm common/words/d-dot-r.asm At the end of these files there is equivalent forth code. Also be sure to check out Leo Brodie's "Starting Forth", chapter 7 on numbers: http://home.iae.nl/users/mhx/sf.html Cheers, Erich -- May the Forth be with you ... ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel
[Amforth] double-precision number to string conversion
Hello forth-professionals and fellow forth enthousiasts. I created a word that converts a positive double-precision number to an 8 character string like this: : dpNumberToString ( d -- address count ) <# # # # # # # # # #> ; This works fine for positive numbers. However I want to convert negative double-precision numbers too. Any idea how I can make that work? Groeten uit Nederland! Fred ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel
Re: [Amforth] Soft Serial Port
Matthias, Do you have any objection to me putting up a link to my prebuilt hex files for the ARDUINO MEGA 2560? Best wishes, Tristan On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote: > Tristan, > > First thanks for the quick response. > Yes I found out the hex file wasn’t working after flashing to the Mega. > My flasher is from Pololu and is working great on my macbook pro and avrdude. > > Is there an possibility to get the hex files from you? > I’m not a star in compiling this kind of things without a good portion of > help. > > My email is krom1109 at hotmail dot com > > With kindly regards, > > Jan > > > > > Op 15 feb. 2019, om 16:38 heeft Tristan Williams het > > volgende geschreven: > > > > Jan, > > > > A number of things. > > > > The hex file you have found may not be one for the Arduino > > Mega2560. If I remember correctly, the distribution has an appl folder > > for the atmega2561 and the configuration assembler file > > > > https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm > > > > suggests that it was built for an ATmega2561 with an 14.745600MHz crystal > > and uart1 > > hosting the AmForth interpreter. > > > > I adjusted the AmForth make system (on OSX) to build a custom hex file > > for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz > > crystal. I also put the AmForth interpreter on uart0. The AmForth > > build system is one of its many strengths, though getting it to work > > on OS X does require a few extra steps. > > > > I used these fuse values for my Arduino Mega2560 > > > >> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE) > > > > Finally, what hex programmer you use may be important with the Mega2560. I > > used an avrisp2 compatible programmer and had no problems. However, I can > > confirm that my usbtiny programmer couldn't program my Mega2560 > > successfully. > > > > Best wishes, > > Tristan > > > > > > > > > > > > > > > > > > On 15Feb19 14:20, Jan Kromhout wrote: > >> Tristan, > >> > >> Found the hex files for the Mega, but don’t found the fuse values. > >> Please can you help me out with these. > >> > >> Cheers, > >> > >> Jan > >> > >> > >> > >>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout het > >>> volgende geschreven: > >>> > >>> Tristan, > >>> > >>> Thank. Where to find the hex files for the mega, and what fuse settings > >>> you have used. > >>> I wont to play with it this evening. Verry exciting how it works. > >>> Cheers, > >>> > >>> Jan > >>> > >>> Verstuurd vanaf mijn iPad > >>> > Op 15 feb. 2019 om 12:45 heeft Tristan Williams het > volgende geschreven: > > Jan, > > There is a link "source" in the text, but below is the url from the > link. > > https://www.mostlymostly.uk/files/source/uart1.forth > > Tristan > > > > On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote: > > Hi Tristan, > > > > How can I acces the source, the link shows only an overview! > > > > Cheers, > > > > Jan > > > > Verstuurd vanaf mijn iPad > > > >> Op 15 feb. 2019 om 09:21 heeft Tristan Williams het > >> volgende geschreven: > >> > >> > >> > >> I've linked (below) some AmForth words I've written to help me use the > >> second hardware serial port on an AVR atmega mcu, should there be one. > >> > >> https://www.mostlymostly.uk/post/2019.02.01/ > >> > >> > >> Tristan > >> > >> > >> > >> > >> ___ > >> Amforth-devel mailing list for http://amforth.sf.net/ > >> Amforth-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > > > > ___ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > ___ > Amforth-devel mailing list for http://amforth.sf.net/ > Amforth-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amforth-devel > >>> > >>> > >>> ___ > >>> Amforth-devel mailing list for http://amforth.sf.net/ > >>> Amforth-devel@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel > >> > >> > >> ___ > >> Amforth-devel mailing list for http://amforth.sf.net/ > >> Amforth-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > > ___ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > __