AN370
Rev. 1.0
87
bSys_GetRevId
:
Description
: Returns the device revision ID. The number represents different die revi-
sions. Current revision is 0x02.
Inputs
:
None
Outputs
:
Revision ID: (BYTE) Returns a byte with revision ID.
lSys_GetProdId
Description
: Returns the Silicon Labs production ID. It is a 4 byte LWORD unique
sequential number generated during production. It is a public number visible to anybody.
Inputs
:
None
Outputs
:
Production ID: (LWORD) Production ID.
vSys_SetClkSys
Description
: Sets the system clock division factor field SYSGEN_DIV field of the SYS-
GEN SFR. The setting is guaranteed to be glitch free.
Only the bottom 3 bits of the biClkSetting are used. Upper bits are masked by the function
and ignored. This simplifies user code when the current clock setting needs to be stored
for later restoration. The user does not have to worry about masking the other unrelated
bits. This function will take care of it.
For example
:
/* Old system clock frequency storage */