PreviousNext
eEEPROM_TempSensorOff
Help > Macros > Serial EEPROM and temperature sensor > eEEPROM_TempSensorOff

Macro

 

Disable serial EEPROM and temperature sensor

Purpose

 

To switch serial EEPROM and temperature sensor off to reduce power consumption

Syntax

 

void eEEPROM_TempSensorOff()

Parameters

 

 –

Return value

 

 –

Output values

 

Serial EEPROM and temperature sensor are disconnected from the power supply

Preconditions

 

Because OS uses serial EEPROM to store some networking information, e.g. during Discovery, it is recommended to utilize such power management for non-networking applications only.

Remarks

 

 

Side effects

 

 –

See also

 

eEEPROM_TempSensorOn

Example

 

eEEPROM_TempSensorOff();         // Recommended in non-networking applications only

        ...

eEEPROM_TempSensorOn();

                                  // A short delay (about 10 µs) required

eeeReadData();

eEEPROM_TempSensorOff();         // Recommended in non-networking applications only

Example

 

eEEPROM_TempSensorOn();

waitDelay(30);                   // 300 ms delay required

getTemperature();

eEEPROM_TempSensorOff();         // Recommended in non-networking applications only

temperature = param3;