User's Manual

USER MANUA
L
V0.6
© 2010 EnOcean | www.enocean.com STM 31x / STM 31xC User Manual V0.6 | Page 15
/
28
STM 31X / STM 31XC
2.7.2 Configuration via serial interface
Via the programming interface the configuration area can be modified. This provides a lot
more configuration options. Values set via serial interface override hardware settings!
These settings are read after RESET or power-on reset only and not at every wake-up of
the module!
The interface is shown in the figure below:
Parameter Configuration
via pins
Configuration
via serial interface
Wake up cycle See section 2.7.1 Value can be set from 1 s to 65534 s
Redundant
Retransmission cycle
See section 2.7.1
Min…Max values for random interval
If Min=Max -> random switched off
Threshold values for
analog inputs
(transmission of telegram if
threshold value exceeded)
No
The default values are: 5 LSB at AD_1 input, 6
LSB at AD_0 and 14 LSB at AD_2.
The threshold value can be set between 0 and
full scale for every input individually.
Resolution of the analog
inputs
No
Default: AD_0: 8 bit, AD_1: 8 bit, AD_2: 8 bit
Option: AD_0: 10 bit, AD_1: 6 bit, AD_2: 8 bit
Input mask No
A digital input mask for ignoring changes on
digital input pins. At default all input bits are
checked.
Delay time between SWPWR
on and sampling moment
(for stabilization of external sensor
measurement values)
No
Value can be set from 0 ms to 508 ms in steps
of 2 ms. Default delay time is 2 ms.
Source of AD_2 No
Select if AD_2 contains measurement value of
external ADIO2 pin or from internal VDD/4
Edge of wake pin change
causing a telegram trans-
mission
No
Every change of a wake pin triggers a wake-up.
For both wake pins it can be configured indi-
vidually if a telegram shall be sent on rising,
falling or both edges.
Manufacturer ID and EEP
(EnOcean Equipment Profile)
No
Information about manufacturer and type of
device. This feature is needed for “automatic”
interoperability of sensors and actuators or bus
systems. Unique manufacturer IDs are distrib-
uted by the EnOcean Alliance.
USB <=> SPI
interface
SPI
USB
Dolphin Studio, or EOP
Reset
PROG_EN
ADIO7
SCSEDIO0
SCLKDIO1
WSDADIO2
RSDADIO3
STM
31
x
VDD
GND