MSP430 FR5969 LaunchPad

The MSP430 FR5969 LaunchPad is based on the MSP430FR5969 running at 16 MHz, and it provides 64 Kbytes of FRAM and 2 Kbytes of SRAM. The FRAM can be used as SRAM, so uLisp uses it for the workspace. The FRAM is also used for save-image and load-image:

FR5969.jpg

This board is capable of running all the uLisp examples.

The SD card interface is not currently supported on the MSP430 boards.

LEDs

The MSP430 FR5969 LaunchPad has 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))
    (loop
     (analogwrite 26 (ash 1 (abs (- (mod (incf x) 14) 7)))) 
     (delay 100))))

Run it by typing:

(pulse)

Push buttons

The MSP430 FR5969 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)))
   (delay 500)))