![Silicon Laboratories Si4012 Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/silicon-laboratories/si4012/si4012_programming-manual_1272046015.webp)
AN746
Rev. 0.1
15
The
SampleCode_Demo_Pollhandler()
includes a state machine, and the different states represent the
previously mentioned tasks.
1. SM_START:
Turn off the Si4012 RFIC
Check if the RF EBID is available on the Pico board
Read the EBID content to determine the radio type and the frequency band
Having detected the RF Pico board successfully, the next state will configure the Si4012 RFIC.
2. SM_STEP1:
Configure the radio with the WDS generated parameters
Turn on the fourth LED on the LCD baseboard
Having configured the RFIC successfully, the next state will execute the user application code.
3. SM_STEP2:
User application code can be started from this point.
The state of
SM_STEP1
simply configures the chip by calling the
Si4012_Configure()
function. The fourth LED will
be turned on if there were no failures during the radio initialization. If any kinds of failures occurred either in
SM_START or in SM_STEP1 states, for example, communication error, configuration error, or unavailable RF Pico
board, the program execution will be forced to the
ERROR_HOOK
immediately. The fourth LED will then blink
rapidly to indicate that the error detection occurred.
The state of
SM_STEP2
can contain the user application code. Since it is an empty project, it does not execute any
code after the radio initialization.
Содержание Si4012
Страница 14: ...AN746 14 Rev 0 1...
Страница 18: ...AN746 18 Rev 0 1...
Страница 29: ...AN746 Rev 0 1 29 NOTES...