User manual
Script Name What it does
STK600demo.py Implements an up/down binary mer on the STK600
demo board. Push the buon to reverse the direcon.
Scripts specific to the SM700/MC13224 Platforms
These scripts are meant to be run on the Synapse SM700 surface-mount module, or the Freescale MC13224 chip
on which it is based, or on a compable board that uses one of the two.
Script Name What it does
MC13224_PWM.py Demonstrates Pulse Width Modulaon on the
TMR0/TMR1/TMR2 pins (GPIO8-10). For an example of using
this script, see MC13224_ledCycling.py.
MC13224_ledCycling.py Uses the PWM support rounes in MC13224_PWM.py to
vary the brightness of an LED aached to the TMR0(GPIO8)
pin. By changing variable “TMR” within the script, the LED
can be moved to either TMR1 (GPIO9) or TMR2 (GPIO10).
McastCounterSM700evb.py The classic MCastCounter example, this one uses the LEDs
and the SW1 push buon of a CEL Freestar Pro Evaluaon
board (EVB)
Scripts specific to the STM32W108xB Platforms
These scripts are meant to be run on the DiZiC MB851 evaluaon board, or on a compable 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 buon
input from SNAPpy. The LED and buon definions assume
the script is running on a DiZiC MB851 evaluaon board.
STM32W108xB_GPIO.py Some helper definions and rounes 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
56 SNAP® Network Operang System