Some FIGnition Questions

127 views
Skip to first unread message

Komponist Christoph

unread,
Oct 31, 2014, 10:14:42 AM10/31/14
to fign...@googlegroups.com
Hello, at first:
my name is Christoph and i come from germany.
So i built up my FIGnition 2 days ago and its working perfectly. 
So i have some Questions:
1. How can i save Programs on the EEPROM?
2. Where i can find the .hex file for the Firmware update
So these are the questions. 
Greetings

Bob

unread,
Oct 31, 2014, 11:15:27 AM10/31/14
to fign...@googlegroups.com
Is this the latest release?


--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

carl

unread,
Oct 31, 2014, 12:58:38 PM10/31/14
to fign...@googlegroups.com
Congratulations Christoph,



If you have questions after reading that, then post here and I am sure someone can help :-) . DO you have figKeys keyboard too?

Gruss

Komponist Christoph

unread,
Oct 31, 2014, 1:17:17 PM10/31/14
to fign...@googlegroups.com
no, at this moment not
i want to build my own interface after understanding the hardware
but i didn't understand the upgrade. 
Can anybody give me a step by step instruction?
Greetings

--
You received this message because you are subscribed to a topic in the Google Groups "FIGnition" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fignition/_JxCuZrCzeA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fignition+...@googlegroups.com.

Komponist Christoph

unread,
Oct 31, 2014, 3:34:43 PM10/31/14
to fign...@googlegroups.com
Ok, i understand the Working of the Editor. 
Can i delete one page of code? 
Because i delete every page of code with deleting the complete code on this site.

So for the Update:
There is now just one problem
Whats the right .hex file.
In the Folder are so much files. I don't know whats the right. It is FIGnitionPAL32.hex because i have a 328 CPU
Greetings

carl

unread,
Nov 1, 2014, 4:50:47 AM11/1/14
to fign...@googlegroups.com
Hi,

You can delete one page by using the cmd + Z then saving that block again.
On the update, if you have a atMega 328 chip, then you are right to say that you need firmware with 328 in the name.
If you have a 168 then select firmware with 168 in the filename. 
You then decide if PAL or NTSC is best for your display and select that file in the AVRDude command.

I have a 328 chip and a PAL display so I would select

FIGnitionPAL32.hex   and do avrdude -c usbasp -p m328p -u -U flash:w:FIGnitionPAL32.hex when in command prompt in my firmware directory.

1.0.1 is the latest release, but 1.0.0 works well enough to get used to the FIGnition.  

Regards.




Komponist Christoph

unread,
Nov 1, 2014, 6:44:32 AM11/1/14
to fign...@googlegroups.com
Hi,
there is a problem when i try to do the Upgrade.
My Computer can't install the USBasp software and after some times it says at CMD Shell:
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

What did I wrong?

carl

unread,
Nov 2, 2014, 4:52:19 AM11/2/14
to fign...@googlegroups.com
Sounds like sw1 was not held down.

Make sure you have sw1 held down and kept held *before* connecting the fignition, you will then see the LED flicker.
Then run the command, it should then transfer; when it is complete, release sw1

Komponist Christoph

unread,
Nov 2, 2014, 3:33:12 PM11/2/14
to fign...@googlegroups.com
That i did. It was not working

Julian Skidmore

unread,
Nov 2, 2014, 4:47:40 PM11/2/14
to FIGnition

Hi Christoph,

It sounds to me like you're having issues with your installation of avrdude under windows. That's a pretty common problem. It's much easier with Linux or mac os x , but with some effort it will work with ms Windows.

I don't have Windows on any of my computers, so I'm not the best at helping here.

However, I noticed a couple of things. Firstly, if you install a current version of avdude then support for usbasp should come with it. Do you have the latest version?

Secondly, your spelling of usbasp looks wrong, I think it's all lower case: usbasp , not USBasp ; the avrdude program will think that's two different devices.

Does this help? Don't worry, you'll get there :-)

Cheers julz

--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.

Komponist Christoph

unread,
Nov 5, 2014, 9:21:03 AM11/5/14
to fign...@googlegroups.com
Hi,
so i found the error. 
Now my FIGnition is running Firmware 1.0.1
Can anybody help me how i can use floating point numbers?

Here is the Vid:
Greetings

Si Brindley

unread,
Nov 5, 2014, 9:52:58 AM11/5/14
to fign...@googlegroups.com, FIGnition
What was the error? Or is it embarrassing to admit? :)

- Si


Sent from Mailbox

Julian Skidmore

unread,
Nov 5, 2014, 5:26:49 PM11/5/14
to FIGnition
Yay! Well done :-)

The documentation does tell you how floating point arithmetic works, but for example:

1.2 2.3e4 f+ f. 

Should give you: 2.30012e4 or thereabouts!

So, you can enter floating point numbers by including a decimal point and optionally 'e' followed by an integer to represent multiplying by a power of 10, i.e. the same kind of notation as in ZX Basic.

You display floating point numbers using f.

The basic arithmetic operations are:

f+ f- fneg f* f/

You can convert from a long to a float using float, e.g. 12345d float f. 1.2345e4

You can convert from a float to a long using fint e.g. 1.2345e4 fint d. 12345

There's a whole set of scientific commands available from:


Finally, you can find out more details about the new commands in the pdf Release notes for 1.0.0.

Enjoy!

-cheers from Julz
                             
                  The DIY 8-bit computer from nichemachines™

FIG - black on whiteMini.jpg
NmLogoMini.jpg

Komponist Christoph

unread,
Dec 4, 2014, 9:59:07 AM12/4/14
to fign...@googlegroups.com
Thanks for your Help. 
I will try it. And i start to write Programs: 
Here is my first ever written FIGnition Forth Program:

: test
 
begin
  dup
. 1+ dup
 0= until
;
 

Julian Skidmore

unread,
Dec 4, 2014, 11:25:07 AM12/4/14
to FIGnition
yay, it displays an incrementing number from whatever you start it with, e.g:

5 test

5 6 7 8 9 10 11 12 13 14 15 16 17 ...

You can break out of it (if you're not using FIGkeys) by pressing SW5+SW2+SW3+SW8. That's this pattern:

[_][O][O][_]
[O][_][_][O]

on the keypad. But don't try breaking into a program if you're using a FIGkeys add-on because it'll clash and perhaps even damage FIGkeys itself!

You can do fun stuff like changing the base:

17 2 base ! test

10001 10010 10011 etc...

[_][O][O][_]
[O][_][_][O]

Or even choose really silly bases:

decimal 36 base ! 19 test

19 2A ...

-cheers from Julz

--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
FIG - black on whiteMini.jpg
NmLogoMini.jpg

Komponist Christoph

unread,
Dec 9, 2014, 3:20:31 PM12/9/14
to fign...@googlegroups.com
Hello Julz and all other, 
i have a simple question, i want to define a string and work with it. I don't know how.
I want to know: 
1. How to define a string
2. How to find out the lengh of this string
3. And what character is on what position
Greetings

Julian Skidmore

unread,
Dec 9, 2014, 4:01:02 PM12/9/14
to FIGnition
Hi Komponist,

The documentation for strings is under "Text Processing" in the 0.9.8 Command guide.


But briefly, strings work like this:

There are two ways to define strings, either a constant string, or a buffer for a string.

A constant string can be created with create and followed with " sometext" For example:

create myString " Hello World Message."

It works as follows: create variableName creates a header for a variable at the current end of the program, but doesn't add any data to it.

sometext" adds a string to the current end of your program.

You can display a string using the command stringAddr ". (which is like .", but with the . and " the opposite way round). ". is pronounced quote-dot . So,

myString ".

Should display Hello World Message OK

Similarly, 6 myString + ". would display World Message OK

You can create a buffer for a string by using bufferSize  allot . For example, let's say you want to create a 64 character buffer called myBuff1:

create myBuff1 64 allot

As before create myBuff1 creates the name and 64 allot just allocates 64 bytes of space to it.

FIGnition strings work like 'C' strings, the end of the string is determined by a null character, a character whose code is 0.

There's an easy function for finding the length of a string: stringAddr "len . For example:

myString "len .

should display 19 OK I think.

In FIGnition Forth, we can find a character in a string using the command direction stringAddr character cIn" . cIn" will stop at the end of a string if it doesn't find the character. direction can be 1 to search forwards or -1 to search backwards. For example:

1 myString asc e cIn" .

should display the address where it found the next occurrence of 'e', which should be the same as myString 1+ . since the second character (at offset 1 from the beginning of the string) is an 'e'.

There are a few other commands available for string processing in FIGnition Forth: for copying, cutting, adding and because the format of a string is so simple, it's easy to build up other commands.

I hope this helps!

-cheers from Julz



--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
FIG - black on whiteMini.jpg
NmLogoMini.jpg

Komponist Christoph

unread,
Dec 10, 2014, 10:37:42 AM12/10/14
to fign...@googlegroups.com
Thanks a lot !!!!
I have an idea for a bigger program for the FIGnition. I will post it, when its ready and it will take a while to create it, because these days school is busy ... 
Reply all
Reply to author
Forward
0 new messages