Silicon Laboratories Si4010 Software Programming Manual page 65

Hide thumbs Also See for Si4010:
Table of Contents

Advertisement

However, the MTP module is rated to finish programming within 40 ms. For some appli-
cations having a possible randomness in the time spent in this function might not be desir-
able.
Therefore, the user can limit the maximum number of cycles of the MTP programming. If
the MTP is not programmed correctly after the user defined number of the cycles, the
function returns an error. Otherwise, the function returns as soon as the MTP hardware
reports that all the bits were programmed correctly.
When using Silicon Labs IDE for debugging it is required that the user uses the
Step Over (F10) toolbar button and neither the Step (F11) nor Multiple Step toolbar but-
tons when stepping over this function.
Inputs:
biProgLimit: (BYTE) Maximum number of MTP programming cycles allowed
by the user. The recommended value is 40. The user should not use value bigger
than 50 or smaller than 15.
Outputs:
Status: (BYTE) MTP programming status:
vMtp_Strobe
Description: This function strobes the MTP to read the contents from the MTP into the
XDATA mapped read only array abMTP_RDATA[16]. This function is automatically
called by pbMtp_Read() and bMtp_Write() functions just before returning from them.
The function stores the global EA interrupt enable flag at the beginning, disables all the
interrupts during the function execution, and restores the EA value just before returning
from the function.
The function stores the current SYSGEN_DIV field of SYSGEN SFR and forces it to 0,
forcing the fastest, 24 MHz, system clock frequency. Before returning, the function
restores the SYSGEN_DIV to its original value.
The function execution time is about 4µs.
0 .. Success: MTP programmed correctly
1 .. Error: Maximum user specified number of MTP programming
cycles reached before MTP reported that all bits were programmed cor-
rectly.
Rev. 1.0
AN370
65

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Si4010 and is the answer not in the manual?

Table of Contents