User manual

Script Name What it does
STK600demo.py Implements an up/down binary mer on the STK600
demo board. Push the buon to reverse the direcon.
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 compable board that uses one of the two.
Script Name What it does
MC13224_PWM.py Demonstrates Pulse Width Modulaon 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 rounes in MC13224_PWM.py to
vary the brightness of an LED aached 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 buon of a CEL Freestar Pro Evaluaon
board (EVB)
Scripts specific to the STM32W108xB Platforms
These scripts are meant to be run on the DiZiC MB851 evaluaon board, or on a compable 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 buon
input from SNAPpy. The LED and buon definions assume
the script is running on a DiZiC MB851 evaluaon board.
STM32W108xB_GPIO.py Some helper definions and rounes 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 Operang System