eForth for STM8S from STMicroelectronics
eForth for STM8S
STM8S is an 8 bit microcontroller from STMicroelectronics. ST is distributing a
STM8S-Discovery Board for less than $10. It is an excellent kit to learn
microcontroller programming. I ported eForth to this board and now donate it to
the public domain. You can download it and try it for free.
stm8eForth is distributed as an assembly file. You can assemble and test it on
Discovery Board with STtoolset from www.st.com.
Discovery Board is connected to PC through a USB port. However, eForth
communicates with PC through an UART port. You have to build an UART
converter to connect to a COM port on PC. New PC's do not have COM ports
anymore, and you need a USB-UART converter to emulate a COM port to get
things going.
STM8S105C6 chip has 32 Kbytes of flash memory and 2 Kbytes of RAM memory.
eForth core is stored in and executed from flash memory. New FORTH words are
added to RAM memory. 2Kbytes of RAM cannot hold much new words, but are
large enough for experimentation.
stm8eForth is completely optimized and only takes up 5508 bytes of flash
memory. It leaves lot of room for serious applications. It is based on a subroutine
threaded model, and executes very fast. STM8S has two 16 bit index registers
which can do many arithmetic operations, and it is almost a 16 bit
microcontroller.