AN370
Rev. 1.0
23
6.2. Interrupt Enable Control
Only the temperature sensor demodulator interrupt enabled EDMD bit and the global interrupt enable bit EA are
manipulated by the API functions. One of the functions clears the EODS as well.
There are functions manipulating the EA and EDMD flags directly and then functions manipulating them indirectly
by calling the direct manipulator functions. Table 2 shows what happens with each of the interrupt enables:
Table 2. Functions Summary
Function
EA
EDMD
Notes
Direct Functions
vDmdTs_RunForTemp
1
1
Force both interrupt flags to enable
iDmdTs_GetLatestDmdSample
S, 0, R
—
Disable interrupts during operation. They are
disabled only for a dozen clock cycles.
vMtp_Strobe
S, 0, R
—
Disable interrupts during operation. They are
disabled for about 4us.
bMtp_Write
S, X, R
—
Disable interrupts only around critical portions
of the code. See function description for
details.
iMVdd_Measure
S, 1, R
1, 0
Needs DMD TS interrupt service to run. It
forcibly enables the DMD interrupt and then
disables it. User needs to re-enable the
EDMD=1 if that was the previous state.
vStl_PostLoop
—
0
It also forces EODS=0, but the ODS interrupt
is not currently used by API.
Calling Direct Functions
vFCast_Tune
1
1
From vDmdTs_RunForTemp
vStl_PreLoop
1
1
From vDmdTs_RunForTemp
vSys_LpOscAdj
1
1
From vDmdTs_RunForTemp
iDmdTs_GetLatestTemp
S, 0, R
—
From iDmdTs_GetLatestDmdSample
pbMtp_Read
S, 0, R
—
From vMtp_Strobe
Notes:
S, 0, R: Save the original value upon entry, force value to 0 for function processing, restore the original value
before return.
S, 1, R: Save the original value upon entry, force value to 1 for function processing, restore the original value
before return.
S, X, R: Save the original value upon entry, force both 0 and 1 values during the function processing, restore the
original value before return.
1: Force value to 1.
0: Force value to 0.
—: The function does not affect this bit.