Re: [Amforth] bitnames.frt issue

2015-12-19 Thread Peter C. Hauser
I seem to remember that I had the same problem a few weeks ago when I got started with AMForth. Cannot confirm this from where I am now, but I think that On 19 Dec 2015, at 07:27, Richard Burden > wrote: > > Hi all, > > I'm trying to load bitnames.frt into my

Re: [Amforth] AVR8 build questions

2017-05-10 Thread Peter C. Hauser
Hello Tristan, If you want a flexible multi-purpose board perhaps you want to include a DAC, and a high resolution ADC. Semiconductor relays for switching loads. It may also be useful to have extra UARTs, but for this you might prefer to use the 2560 instead of the 1284. If you want to

Re: [Amforth] Coolterm on the Mac

2018-10-16 Thread Peter C. Hauser
Jan, By default CoolTerm starts up in the Raw mode, in which each character is sent as it is entered on the keyboard. I presume when you hit the delete key it will be sent as a non-printable ASCII code. If you set CoolTerm to the Line mode (under Options / Terminal) you can then enter and

Re: [Amforth] Setting of the fuses Arduino Ono

2018-10-17 Thread Peter C. Hauser
Jan, For the Arduino Uno we have been using the following command string successfully: avrdude -p m328p -c avrispmkII -P usb -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:uno.hex:i -U eeprom:w:uno.eep.hex:i Thus argument for efuse is set to FF instead of 05. The short

Re: [Amforth] A good editor/terminal for MacOSX

2018-10-15 Thread Peter C. Hauser
Hello, We have been using CoolTerm on the Mac. When you send files with it you just have to make sure to add some delays in the preferences settings of CoolTerm so that Forth does not get overwhelmed. Peter Hauser > On 15 Oct 2018, at 14:56, Jan Kromhout via Amforth-devel > wrote: > >

Re: [Amforth] Arduino nano

2018-10-23 Thread Peter C. Hauser
Jan, Yes, we have done that successfully. Peter > On 23 Oct 2018, at 12:04, Jan Kromhout via Amforth-devel > wrote: > > Hi, > > I have an Arduino Nano 328P, can I load it with the forth of the Arduino Uno? > If posible can I use the same fuse settings as my Arduino Uno? > > Cheers, > >

Re: [Amforth] Coolterm as terminal

2018-10-24 Thread Peter C. Hauser
Jan, With CoolTerm it is not possible to use the “include” mechanism. However, there is a terminal program (shell) specifically written in Python for use with FlashForth (flashforth.com). This most likely also works with AmForth and most likely can handle “include”. I once tried but could not

Re: [Amforth] How to make a Full system

2018-10-24 Thread Peter C. Hauser
Jan, I do not think there is an overview regarding the sequence. In any case, you probably do not just want to load everything, only what you need for your project. As far as I know AVRDude lets you read back the memory contents and it should be possible in this way to easily clone a

Re: [Amforth] Arduino Nano

2018-10-24 Thread Peter C. Hauser
Jan, Yes, we used the same fuse settings for the Arduino Nano as for the Arduino Uno. They both use the same AVR microcontroller and the circuitry (as far as I know is identical), it is just the form factor which is different. We prefer to use the Nano as we can plug that into the printed

Re: [Amforth] the word "see"

2018-10-26 Thread Peter C. Hauser
Jan, It might not solve your immediate problem, but you can find a list of the error codes here: http://forth-standard.org/standard/exception Peter > On 26 Oct 2018, at 13:50, Jan Kromhout wrote: > > Hi, > > I have installed the word

Re: [Amforth] Flashing AmForth to Arduino Leonardo

2018-12-13 Thread Peter C. Hauser
Jan, Have a look at this: https://github.com/arduino/Arduino/pull/5182 At some stage AVRDude changed the way it reads back the unused fuse bits and thus the e-fuse parameter in the command line had to be adjusted. I had this problem with the

Re: [Amforth] Soft Serial Port

2019-01-24 Thread Peter C. Hauser
Jan and Tristan, If you want hardware serial you cannot really use the Arduino Uno as the ATmega328 microcontroller only has one UART, which is used by Forth for its communication. The ATmega2560 on the current Arduino Mega board has 2 spare UARTs. However, one might have to first build the

Re: [Amforth] SPI interface on the arduino

2019-06-04 Thread Peter C. Hauser
amforth/avr8/lib/hardware/spi.frt Peter > On 4 Jun 2019, at 17:29, Jan Kromhout via Amforth-devel > wrote: > > Hello, > > I need to read and write to the SPI interface (bus) on the arduino. (pin > 10,11,12,13) > Wich words are the best to use? > > Thanks for any help. > Cheers, > > Jan >

Re: [Amforth] Need some help with the SPI

2019-06-07 Thread Peter C. Hauser
Jan, Can I suggest that in order to get to grips with it, rather than starting with the Arduino example, study the data book for the microcontroller to learn how SPI is controlled with the related registers, and then study the SPI words provided with the AmForth package. C/C++/Arduino

Re: [Amforth] Need some help with the SPI

2019-06-08 Thread Peter C. Hauser
Jan, You can also use the following words to avoid c!@spi, which is missing from the preassembled package for the Arduino: \ send a byte, ignore received byte : c!spi ( c -- ) SPDR c! ( c addr -- ) ; \ receive a byte, send a dummy one : c@spi ( -- c) 0 SPDR c! 1 ms SPDR c@ ; SPDR

Re: [Amforth] Need some help with the SPI

2019-06-09 Thread Peter C. Hauser
Dear Jan, spi.setmode is used to set one of the 4 SPI modes 0, 1, 2, or 3, e.g. "1 spi.setmode". The mode to use depends on the device you want to connect to, and you will find it in the datasheet (perhaps not explicitely stated, but the necessary information will be there). Most common is

Re: [Amforth] how to use bitmask:

2019-06-17 Thread Peter C. Hauser
Jan, For a general idea on masks you might want to consult p. 92 of "Starting Forth". If I remember correctly "bitmask:" will create a bitmask, but not do the bit-setting for you. One has to write to the registers to do that (not sure anymore if it is just "c!" or a special version of store

Re: [Amforth] Looking for instructions io install Amforth on Arduino

2019-07-10 Thread Peter C. Hauser
You may also find this useful: https://www.chemie1.unibas.ch/~hauser/open-source-lab/styled/index.html (scroll to the bottom of the page) Peter > On 10 Jul 2019, at 21:12, devin davison wrote: > > Hello, New around

Re: [Amforth] Looking for instructions io install Amforth on Arduino

2019-07-17 Thread Peter C. Hauser
t the fuse settings, but im unable to connect via serial > terminal. > Any further help is much appreciated. > > On Wed, Jul 10, 2019 at 4:04 PM Peter C. Hauser > wrote: > >> You may also find this useful: >> >> https://www.chemie1.unibas.ch/~hauser/open-so