Mecrisp Stellaris Unofficial UserDoc

_images/thinking-cap-forth.jpg

What is Mecrisp-Stellaris?

Mecrisp-Stellaris is an embedded Forth Operating System for ARM Cortex-M Microprocessors. It is closest to the Subroutine Threaded Code model (STC), but it isn’t threaded at all.

What is Mecrisp-Stellaris used for ?

To create microprocessor controlled devices, your imagination is the only limit.

Example: Photoacoustic Gas Sensing Device

_images/photo-electric-gas-sensing.jpg

Abstract

The circuitry comprises a sine wave generator based on direct digital synthesis, a laser diode driver module, a band-pass frequency filter, a synchronous detector with phase adjustment circuitry and a low pass filter to form an analog lock-in amplifier, and an analog-to-digital converter. A 32-bit ARM microcontroller programmed with the open source Mecrisp dialect of the Forth interpreter language is used to set the frequency, and read the data from the analog-to-digital converter. The circuitry is tethered via a serial interface to a personal computer. A graphical user interface written in Phython allows easy interaction with the microcontroller by sending the appropriate Forth commands. The data acquired is visualized and stored on the personal computer for further processing. The circuitry is easy to build as it is based on through-hole devices, except for two necessary surface mount items, which, however, still can be soldered with a fine tipped soldering iron. The performance of the circuitry was demonstrated by the photo-acoustic detection of NO2 using a laser diode with a wavelength of 450 nm.

Full detailed design notes with schematic and code: https://www.hardware-x.com/article/S2468-0672(22)00025-6/fulltext

See also

I think this Mecrisp-Stellaris project required true genius to imagine and create. https://mecrisp-across-folkdoc.sourceforge.io/

What is this Website ?

“This website provides an unofficial user documentation for Mecrisp-Stellaris, which is an embedded Forth Operating System for ARM Microprocessors. It is a port of Mecrisp Forth to the ARM Cortex M architecture written by Matthias Koch. The documentation includes information on the Forth programming language, the Mecrisp-Stellaris Forth, its features, and how to get started with it. The site also offers insights into the history of Forth, its characteristics, and its applications in embedded systems. Additionally, it provides guidance on using Mecrisp-Stellaris Forth for real-time interactive development on microcontrollers, including quick start instructions and tips for beginners. The website also mentions Mecrisp-Across, which is a strong optimizing cross-compiler designed by Matthias Koch for generating code for small classic MSP430 chips like MSP430F2012. It offers global optimizations, automatic inlining, dead code elimination, and register allocation of both data and return stack across control structures. In summary, the website serves as a valuable resource for individuals interested in learning about and working with Mecrisp-Stellaris Forth and Mecrisp-Across, providing detailed information, practical guidance, and historical context.” - https://www.perplexity.ai/search

Index

This Table Shows Why CMSIS Matters.

MCU

Peripherals

Registers

Register Bitfields

MSP430G2553

17

113

503

STM32F0xx

37

413

3044

STM32F303x

38

549

3857

GD32VF103

45

?

?

STM32F103xx

53

722

4833

STM32F103C8

33

466

3503

GD32VF103Cx

46

1074

7713

TM4C129x

65

2137

7347

STM32F746

98

1778

14338

Contents: