S i 4 0 1 0 - D K
18
Rev. 0.1
3. Examples provided
There are 5 demonstration examples provided with the development kit documentation pack:
1. aes_demo
2. fcast_demo
3. fstep_demo
4. tone_demo
5. keyfob_demo
6. rke_demo
All are precompiled and ready to be used without compilation for convenience. The user just needs to go to the
<name>_demo/bin
directory and open the Silicon Labs IDE
*.wsp
project file by the Silicon Labs IDE.
Each demo can be built and debugged from within the Silicon Labs IDE.
3.1. AES demo-aes_demo
AES example with timer usage example. The timer counts the number of system clock cycles needed to run
encryption, decryption key preparation, and decryption.
3.2. Frequency casting demo-fcast_demo
This example shows the main flow when using the main
vFCast_Tune
tuning function. It also shows how to
transmit a predefined data packet when a button is pressed. The buttons are not debounced in this simple
example.
3.3. Frequency casting two step demo-fstep_demo
This example shows the main flow when the user wants to switch in between several frequencies fast. It is possible
to call
vFCast_Tune()
for several frequencies in advance, collect the information calculated, and then just quickly
apply it during transmission. This is for the cases when the 5-6 ms time spent in
vFCast_Tune()
is prohibitive for
switching in between frequencies.
3.4. Tone (CW) generation demo-tone_demo
This example shows the steps to generate continuous wave (tone) at a desired frequency. There are two main files
compiled to two separate example applications:
tone_demo
Run main tune
vFCast_Tune
once, then use only fine tuning to track the temperature changes.
tone_demo_ptune
Periodic tuning, run main tune
vFCast_Tune
every minute and use the fine tuning only in between the main tuning
events. However, there will be about 6 ms interruption of the output during the main tuning, once per minute.
The Keil µVision project tone_demo.Uv2 covers both targets:
tone_demo
tone_demo_ptune
For the Silicon Labs IDE there is only one target per
*.wsp
file, so there
are two project files:
tone_demo.wsp
tone_demo_ptune.wsp
Downloaded from
Elcodis.com
electronic components distributor