beautypg.com

Ce_busy interrupt – Maxim Integrated 71M6513H Power Meter IC Family Software User Manual

Page 49

background image

71M651x Software User’s Guide

pTimers =

&Timers[NUM_TIMERS)

i = NUM_TIMERS

Process_Timers()

(*(pTimers->pfExpire))()

(pTimer->pfExpire) ==1

N

tick_tock ==TRUE?

((--pTimers)-> Timer)

==1

(--(pTimers-> Timer)

==0

Timer present?

Timer expired?

Timer expired function?

execute Timer expired

function.

N

N

--i == 0

N

pTimers =

&Timers[NUM_TIMERS)

i = NUM_TIMERS

TR0 = FALSE
ET0 = FALSE

I == 0 ?

((--pTimers)-> Timer)

==1 ?

Timer present?

N

--i == 0 ?

N

tick_tock = FALSE

N

END

No Timer present?

Disable timer 0

Clear flag

Figure 5-7: Process Timer (non-ISR)

CE_BUSY Interrupt

CE_BUSY interrupt is used for handling the outputs of the CE that are refreshed every 396µs, i.e. CHOP control and
SAG detection. When this routine is called the automatic chopping is re-established if it is off.

Revision 2.4

TERIDIAN Proprietary

49 of 137

© Copyright 2005-2006 TERIDIAN Semiconductor Corporation