- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using the DieTemp_Start and DieTemp_Query functions periodically in my main loop. If I write data to the EEPROM it fails. I have to disable the DieTemp functions to get the EEPROM written. Is there a way to get periodic Die Temperature measurement and EEPROM writing both together ? Maybe by blocking the Temp reading when accessing the EEPROM ?
Here is the update function from the main loop:
void UpdateDieTemp()
{
if (DieTemp_Query(&dieTemp) == CYRET_SUCCESS)
DieTemp_Start();
}
void SecondLoop()
Thanks
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest you to use DieTemp_GetTemp(*int16). Your sequence of calls seem to be a bit confusing and you should read the die temp. twice. Have a look at the APIs in the datasheet.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reason for failling is probably an unterminated read request for the temperature. The eeprom write routines query the temp to calculate the write-pulse length according to temp to ensure a reliable programming. This may fail if you leave the DieTemp APIs "hanging"
Bob