Specifications
Scripts specific to the STM32W108xB Platforms
These scripts are meant to be run on the DiZiC MB851 evaluation board, or on a compatible hardware
design based on the underlying STM32W108CB and STM32W108HB chips.
Script Name What it does
STM32W108xB_Example1.py Simple example of how to blink LEDs and read a push
button input from SNAPpy. The LED and button
definitions assume the script is running on a DiZiC
MB851 evaluation board.
STM32W108xB_GPIO.py Some helper definitions and routines for working with
the peripherals built into the ST Microelectronics
STM32W108xB chips. For an example of using this
script, see STM32W108xB_PWM.py
STM32W108xB_PWM.py An example of using the 8 PWM channels (2 sets of 4)
available on this part. For an example of using this
script, see STM32W108xB_ledCycling.py
STM32W108xB_ledCycling.py Uses the PWM support routines in
STM32W108xB_PWM.py to vary the brightness of an
LED attached to the PB6 (IO14) pin. By changing the
script, the PWM functionality can be demonstrated on
the other 11 PWM capable pins
pinWakeupSTM32W108xB.py Shows how to implement advanced hardware features
from SNAPpy scripts, in this case how to access the
“wake up” functionality of the chip
STM32W108xB_sleepTests.py An example of using the “wake up” capabilitites
implemented in pinWakeupSTM32W108xB.py
STM32W108xB_HardTime.py Demonstrates how to access a free running hardware
timer (for example, for benchmarking purposes)
LIS302DL.py Demonstrates how to access the accelerometer readings
from a STMicroelectronics LIS302DL chip
i2cTestsSTM32W108.py Demonstrates how to access various I
2
C devices,
including the LIS302DL chip on the MB851 board
McastCounterMB851evb.py The classic MCastCounter example, this one uses the
two LEDs and the S1 push button of a DiZiC MB851
Evaluation board
SNAP Reference Manual Document Number 600-0007K Page 115 of 202