PSOC3 EEPROM模块应用中,有个温度问题,没有相关文档详细说明。
CyFlash.c中有一段代码,会出现死循环吗?
如果要在全温度范围应用内置EEPROM,应如何处理?
/* Write the command. */
if(CySpcWriteCommand(0, 0) == CYRET_STARTED)
{
do
{
if(CySpcReadData(dieTemperature, 2) == 2)
{
status = CYRET_SUCCESS;
/* Spin until idle. */
while(!(*SPC_STATUS & SPC_SPC_IDLE))
{
CyDelayUs(1);
}
break;
}
/* Spin until completion. */
} while(!(*SPC_STATUS & SPC_SPC_IDLE));
} |