2010-07-19 10:08 PM
Here is a FORTH interpreter-compiler for Discovery Board. It is in the form of an assembly file stm8ef.asm. You can assemble it on STVD and download it to Discovery. You need a UART connection to Hyperterminal on PC to interact with STM8S microcontroller.
If you are lucky enough, or persist enough to get it going, the whole Hyperterminal project will be reduced to 6 lines of FORTH code:1 500F C! ; turn off LED
0 500F C! ; turn on LED
3E 50F3 C! ; turn on 1 KHz beep
7E 50F3 C! ; turn on 2 KHz beep
FE 50F3 C! ; turn on 4 KHz beep
1E 50F3 C! ; turn off beep
This is how microcontrollers are to be used. Good luck, Ting.2010-12-07 04:52 AM
I just found a little trouble in the UART's configuration
UARTCR1 is set to 0x06 instead of 0x00 for a 8data bits, no parity as configuration.
It works well if people don't forget to execute HEX word first ;)
Nice job, I need to save my new words in flash now ;)
Regards
Slim
2010-12-07 02:53 PM
''You need a UART connection to Hyperterminal''
I'm sure you don't need Hyperterminal - any terminal will do!
2010-12-16 07:23 AM
I've bought several stm8s discovery board to play under stm8s eForth.developped by Dr. Ting. I've designed my own assembler to facilate the programming. See if you are interested in this kind of assembler--- High Level Algebraic Assembler (HLAA). I need someone to use it to see if it's usefullness.
The whole assembler/disassembler/decompiler/compiler are all included in one package with free of charge. Have fun with Forth and HLAA. holi ps. stm8s47.f can be found in the website of ARMForth.2010-12-16 06:52 PM
the folder for eForth related files is stm8s-Discovery on:
2010-12-21 02:48 PM
''I need someone to use it to see if it's usefullness''
I guess Obiwan Kenobi might like it...?
2010-12-23 11:46 PM
May I ask who is Obiwan Kenobi? Maybe I can get in contact with him to show how the usefullness of what I've developed if he knows forth or so as to say. I've had several followers to help me to test or verify the code. But still I need more people helping the test.
2010-12-24 07:26 AM
http://en.wikipedia.org/wiki/Obi-Wan_Kenobi
Sorry - it was a joke: ''may the FORTH be with you''
2010-12-28 05:37 PM
I can feel it.
But if you look at it seriously, you'll find it's a great breakthrough of the assembler you've ever seen in your life. It's a completely different story you'll see. stm8s65.f is the main file to download.
2010-12-29 04:29 PM
You could download the whole system from:
the folder file is stm8s-discovery.