In case anyone is interested I also coded up the FM radio project in
AmForth. It is available on my website here:
craigandheather.net/misc/fm_receiver.zip
--
Craig Lindley
New Recordings: craigandheather.net/cnmpage.html
Latest rock CD: craigandheather.net/hellinahandbasket.html
Latest non-rock
I like programming in Forth but I spend an inordinate amount of time doing
stack manipulation to get all of the variables and parameters in the right
spots in order to operate on them. Most of the time I spend more time on
the mechanics of programming in Forth then on the logic I am trying to code.
I am starting a new project with AmForth and I was wondering if I should
start with version 5.2. Is there any thought as to when 5.3 will become
available ?
--
Flow-based real-time traffic analytics software. Cisco certifie
It seems to be missing (marker)
Craig Lindley
If you're one in a million, there are now seven thousand people exactly
like you.
--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic,
Is there some reason that 5.2 for Arduino Uno does not include spirw.asm?
If you're one in a million, there are now seven thousand people exactly
like you.
--
Flow-based real-time traffic analytics software. Cisco certifi
Enoch
If that is the case then it is impossible to comment out code if you have
embedded stack diagrams in it. That results in nested comments which are
illegal.
I guess I'm back to trying to add multi line comments with my own code.
Craig Lindley
If you’re one in a million, there are now seven
Enoch,
I just tried out multi line comments for the first time using the shell and
it doesn't seem to work as I would expect.
Here is a little bit of the code I am working on
\ Define some named bit fields
&5 &0 &4 bitfield: READ_BL_LEN
&6 &0 &2 bitfield: C_SIZE_HIGH
&7 &0 &8 bitfield: C_SIZE
Thanks Enoch,
I hadn't realized the shell supported multi line comments and since I only
use the excellent shell, I can accomplish what I want without extra code.
Great,
--
Craig Lindley
If you’re one in a million, there are now seven thousand people exactly
like you.
-
I know I will probably get flamed for wanting multiline comments but I think
they are really handy when writing / debugging code.
I thought it would be a trivial exercise to add multiline comments but I
was wrong.
I tried this code
\ Refill if at end of input line
: ?refill( --- f )
Matthias,
Don't mean to complain but version 5.2 seems to be missing the uno.hex and
uno.eep.hex files.
--
Craig Lindley
If you’re one in a million, there are now seven thousand people exactly
like you.
--
Rapidly trou
Has anyone done measurements to see the relative performance of code
written in these two environments? From my own experience I can see that
AmForth is slower than compiled Arduino code but I wonder by what factor?
Craig Lindley
If you’re one in a million, there are now seven thousand people ex
I figured out what my problem was. It was the fact that when running as a
turnkey application I didn't give my application any delay to allow the
hardware to stabilize. I added 500 ms before the startup code and the
problem when away.
On Thu, Dec 5, 2013 at 10:15 AM, craig and heather
Hello all,
I'm working on a project you might be interested in. Its a digitally
controlled FM radio with LCD display and IR remote control. All of the code
is written in AmForth, of course. I've placed the hardware and software
into the public domain so you can use it anyway you want. The code is
I have a completed app which I will share with the amforth community
shortly that needs one last tweak. I want the app to run as a turnkey
application on an Arduino Uno.
The app runs great interactively via amforth-shell.py. I execute the top
level word and off it goes. When I try to install it as
I just want to say thanks to Keith for his work on this great tool. I had
never run Python in my life but easily got his tool working and have never
looked back. Using the shell has saved me a lot of effort and frustration.
Command line recall and include files are really cool features.
Thanks a b
In case anyone is interested here is a display driver I developed for a
project
I am working on. The code is placed in the public domain so use it anyway
you want.
Cheers !
\ LCD 16x2 Display Driver for Arduino Uno
\ Based on Hitachi HD44780 Controller
\ Written for AmForth
\ By: Craig A. Lindley
In the function
Is the 1+ a typo? If not I do not understand why you would add one to the
hardware address before sending it out.
Please enlighten me
Thanks
--
Craig Lindley / Heather Hubbard
New Recordings: craigandheather.net/cnmpage.html
Latest CD: craigandheather.net/songsilike2013cd.h
Matthias
The writeup looks great except all of the back slashes in the
directory paths are missing.
CL
On Sat, Nov 16, 2013 at 11:24 AM, craig and heather wrote:
> I've written this technique up in the hope it will help others.
>
> Instructions for Building amforth-5-1 using At
FYI,
A new version of the library is now available which has support for text in
two different fonts.
On Tue, Nov 12, 2013 at 8:10 PM, craig and heather wrote:
> Since reading the Hack-A-Day article on AmForth I knew I had to try
> running Forth on an Arduino. Thanks to the good folks o
Posting of this mail message messed up the formatting. Send email to
cal...@gmail.com if you would like the original file.
CL
On Sat, Nov 16, 2013 at 11:24 AM, craig and heather wrote:
> I've written this technique up in the hope it will help others.
>
> Instructions for Buildi
I've written this technique up in the hope it will help others.
Instructions for Building amforth-5-1 using Atmel Studio 6.1 Components
Craig Lindley
November, 2013
Motivation
Building AmForth requires a compatible assembler. Atmel Studio 6.1 for
Windows includes avrasm2.exe
which works great fo
Matthias
I tried your suggesting but sliteral cannot be compiled into another
definition for some reason.
It is not found even though I can see it in my words list and I can '
sliteral . and it is found.
Is it on some non-default wordlist ?
Maybe a better question to ask is "Is there another wor
I'm trying to create a label defining word which I would like to work as
follows:
xPos yPos s" this is the labels text" label: labelName
I tried this code:
\ Define a label that places itself
: label:( x y addr count --- )
create
, , , ,
does>
dup over over
Matthias,
I did as you suggested and removed the environment? word from .res
resulting in the following:
\ dump free resources
: .res ( -- )
base @ >r
decimal
cr
ver ." running at " f_cpu 1000 um/mod . drop ." kHz " cr
s" mcu-info" 2 + @i dp -
." free FLASH cells"
Since reading the Hack-A-Day article on AmForth I knew I had to try running
Forth on an Arduino. Thanks to the good folks on this mailing list I
quickly got AmForth up and running on an Arduino Uno board and started to
look around for a project to use this technology on. I hadn't used Forth in
year
Hello AmForther's
I've been using AmForth to develop a driver and graphics library for a 3.2"
LCD display connected to an Arduino Uno board.
As my code gets longer and longer I seem to have stability issues and am
wondering if I'm running out of flash, RAM or EEPROM. What do you guys use
to gauge
never mind I guess I tired or just an idiot
Sorry
--
Craig Lindley
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading
I just added pick to my amforth executable and unless I'm doing something
wrong I think it has a problem. First I push four numbers onto the stack.
(ATmega328P)> 100 200 300 400
ok
Then I verify what I pushed
(ATmega328P)> .s
400 300 200 100 ok
Now I use pick to print each number individually
Hello,
I'm attempting to interface a 4.3" TFT LCD display to the Arduino Uno. I've
successfully done this running normal Arduino code (see the December 2012
issue of Nuts and Volts magazine) and now I'm trying to do it while running
AmForth.
Doing this requires every I/O pin the Uno has including
I've just got amforth-shell.py running on my Mac with amforth running on my
Arduino Uno and for the most part it is great. I'm very new to
amforth-shell so I may be doing something wrong but,
It seems if I type key from the keyboard and then immediately hit another
key, things hang. I would expect
I think I found a bug in the documentation contained in the bitnames.frt
file for the multi-bit operations. Instead of:
\ multi bit operation
\ PORTD F portpin PD.F ( define the lower nibble of port d )
\ PD.F pin@ ( get the lower nibble bits )
\ 5 PD.F pin!( put the low
Never mind, I found the problem. The generate eep file checkbox was
unchecked. Sorry for the noise.
Craig Lindley
On Tue, Oct 15, 2013 at 12:58 PM, craig and heather wrote:
> I searched the entire C drive and could not find an eep file. Attached is
> a screen shot of the output dir
ome of the included words so I have to be able to
rebuild from source.
Thanks for you help with this and I will first try the pre-canned Arduino
Uno image(s).
Craig Lindley
On Tue, Oct 15, 2013 at 11:33 AM, craig and heather wrote:
> Looking closer at the build results I assume the eseg woul
Looking closer at the build results I assume the eseg would be destined for
the eeprom. Could it be that the hex file has both parts in it? And if so,
what are the chances of success by just programming the single file onto
the Arduino? I would try this but I'm fresh out of Arduino Uno's just now.
Hello Amforth Developers
I just discovered Amforth from a Hack A Day post and I want to try it out
on the Arduino Uno. I downloaded the 5.1 version of Amforth and downloaded
the Atmel Studio 6.1.
I followed the directions given in this post:
http://www.mail-archive.com/amforth-devel@lists.source
35 matches
Mail list logo