The MSP430FR5969 processor is 16MHz and provides 64 Kbytes of FRAM and 2 Kbytes of SRAM. The FRAM can be used as SRAM, so uLisp uses it for the workspace, providing plenty of room. The FRAM is also used for save-image and load-image.

MSP430FR5969 LaunchPad

The MSP430FR5969 LaunchPad is a low-cost board based on the MSP430FR5969 that can be programmed via the Energia IDE:


This board is capable of running all the uLisp examples.


The MSP430FR5969 LaunchPad has a red and green LEDs connected to the digital pins 25 and 26 which you can flash alternately with the following program:

(defun blink (x)
  (pinmode 25 t)
  (pinmode 26 t)
  (digitalwrite 25 x)
  (digitalwrite 26 (not x))
  (delay 1000)
  (blink (not x)))

Run it by typing:

(blink t)

Pin 26 can also be used as an analogue pin, so you can pulsate the green LED slowly on and off with the program:

(defun pulse ()
  (let ((x 0))
     (analogwrite 26 (ash 1 (abs (- (mod (incf x) 14) 7)))) 
     (delay 100))))

Push buttons

The MSP430FR5969 LaunchPad has push buttons connected to the digital pins 27 and 28; you can print their status with the following program:

(defun buttons ()
  (pinmode 27 2)
  (pinmode 28 2)
  (loop (print (list (digitalread 27) (digitalread 28)))))