Skip to main content
ting
Associate
July 20, 2010
Question

FORTH for STM8S-Discovery

  • July 20, 2010
  • 14 replies
  • 4975 views
Posted on July 20, 2010 at 07:08

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. 
    This topic has been closed for replies.

    14 replies

    holinepu
    Associate
    January 18, 2011
    Posted on January 18, 2011 at 02:40

    A win32for4.2.671 based stm8s eForth development system can be found on the web site. The development process is simple, just type  H to see the operation.

    This system is capable of develop the stm8s eForth as well as 8bit/16bit tinyForth that accompanying with stm8s eForth. Besides that, you don't have to design it in forth language, it can be treated as an assembler that can develop the program in an easy read/write style which is completely diferrent from the traditional ones. The same approach can also be used in diferrent cpus such as 8051, ARM, ... It's a revolutionary reformation of the assembly language you've ever seen, and it's universal. 

    you could find it on the web site below with the folder name: stm8s discovery.

    the main file is stm8s69d.f.  Just load it, and type H, then words' to see the whole things behind.

    infoinfo967
    Associate II
    January 21, 2011
    Posted on January 21, 2011 at 20:09

    Hi Chang.jyijinn,

    I cant not find this file, I did the login in yahoogroups, and I dont find the file or not understand exactly how to obtain.

    are there other option to obtain information about Forth, I always program with asm and I'm interested.

    Thanks

    holinepu
    Associate
    February 1, 2011
    Posted on February 01, 2011 at 02:54

    hi, there.

        It's easy to find the folder name to get the main file. From which you could find the including file needed to couple with main file to work with.

        Firstly by reading  the ...lst.f  to see what all the things inside the memory to appeal to you if you'd like you'll be willing to indulge into this interseting assembly language as well as tinyFoth.                 holi