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

Summary:

The described circuit is designed for photo-acoustic detection, utilizing a sine wave generator with direct digital synthesis, a laser diode driver, band-pass filter, synchronous detector with phase adjustment, low pass filter (forming an analog lock-in amplifier), and an analog-to-digital converter.

The system employs a 32-bit ARM microcontroller programmed with Mecrisp Forth to set frequencies and read data from the ADC. It connects via serial interface to a personal computer, where a Phython GUI sends Forth commands to control the microcontroller. Data is visualized and stored for further processing.

The circuit is user-friendly, using mostly through-hole components (with only two surface mount items that are solderable by hand). Its effectiveness was demonstrated in detecting NO2 using a 450 nm laser diode.

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.

Generated by Deepseek AI running locally on a Nvidia 3060 GPU

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: