AN370
Outputs:
None
vMtp_SetDecCount
Description: Converts an input decimal value to the internal counter representation for-
mat used in the MTP. This function allows user to load predefined decimal value to the
counter. The user must call the pbMtp_Read() first before working with this function.
This function does not write the updated counter value into the actual MTP. In order to
write the updated counter value into MTP memory the user should call the vMtp_Write()
function.
Inputs:
pliDecValue: (Pointer to LWORD in XDATA) Pointer to a new desired value of
the counter. Needed to be done through a pointer since it is not possible to pass
LWORD value and additional parameters to the function in registers only.
biIndex: (BYTE) Starting byte index of the desired counter in the MTP array. Rec-
ommended values: 0, 4, 8, 12.
biNibbleCnt: (BYTE) Width of the counter (see biNibbleCnt table above.) Valid
values: 3 through 6.
Outputs:
None
bMtp_Write
Description: The function writes all 128 bits of the global XDATA RAM array into the
MTP. It is highly recommended that all interrupts be disabled before calling this function.
This is because the write operation to the MTP is time sensitive and interrupts could cause
an unpredictable result during write. See the complete discussion about interrupts during
the bMtp_Write() execution above.
The function applies programming cycles until the MTP memory returns a status that all
bits were updated successfully. There is no predefined number of cycles. Each program-
ming cycle takes about 1 ms. It typically takes about 9 ms to update the MTP content.
64
Rev. 1.0
Need help?
Do you have a question about the Si4010 and is the answer not in the manual?
Questions and answers