Datasheet

I2C Bootloader
Document Number: 001-13258 Rev. *J Page 18 of 39
C Prototype:
void BL_SetTemp (CHAR cTemp);
Assembler:
mov A, cTemp
lcall BL_SetTemp
Example Code:
void main(void)
{
CHAR cDieTemp = -20; // Allocate a variable to hold the die temperature
// Use -20C as the default value
...
// Measure die temperature here and copy to cDieTemp variable
BL_SetTemp(cDieTemp); // Update Bootloader with real die temperature
ENTER_BOOTLOADER(); // Run the BootLoader
...
}
Parameters:
cTemp: Die Temperature in Celsius degrees.
Return Value:
None
Side Effects:
The A and X registers may be modified by this or future implementations of this function. This is true
for all RAM page pointer registers in the Large Memory Model (CY8C29xxx). When necessary, it is
the calling function's responsibility to preserve the values across calls to fastcall16 functions.
BootLdrI2C_Start
Description:
Empty routine given for compatibility.
C Prototype:
void BootLdrI2C_Start(void);
Assembler:
lcall BootLdrI2C_Start
Parameters:
None
Return Value:
None
Side Effects:
The A and X registers may be modified by this or future implementations of this function. This is true
for all RAM page pointer registers in the Large Memory Model (CY8C29xxx). When necessary, it is
the calling function's responsibility to preserve the values across calls to fastcall16 functions.