AN370
Rev. 1.0
47
If the user wants to disable the temperature sensor to save power and then restart it later, it is more convenient to
disable it and then reconfigure it again from scratch as shown in the following example:
/* Setup the DMD temperature sensor for temperature mode */
vDmdTs_RunForTemp( 3 ); /* Skip first 3 samples */
…
/* Disable the DMD TS interrupt. Make sure that each interrupt
* disable is followed by at least 2 byte instruction! */
EDMD = 0;
EDMD = 0; /* Wasteful, but no need to inspect the assembly */
/* Disable the DMD and TS to save power */
vDmdTs_Enable( 0 );
…
/* Restart the DMD TS for temperature measurement */
vDmdTs_RunForTemp( 3 ); /* Skip first 3 samples */
Inputs
:
biSampleSkipCount: (BYTE) number of output samples to skip before collecting
values for the function vDmdTs_IsrCall(). This parameter is equivalent to the one
passed into vDmdTs_RunForTemp().
Outputs
:
None