AN2577
eTPU software design
Table 1. Angle clock system state (continued)
Reference
name
Action
Exit
condition
First Period
StallTimer = StallPeriod at startpoint Time(activeEdge)
Period = Time(ActiveEdge) - ToothTime
ToothTime = Time(ActiveEdge)
ToothCount += 1
TickRate = Period/TicksPerTooth
BlankTimer = Period * BlankingRatio
StallTimer = StallPeriod at startpoint Time(activeEdge)
PeriodLast = Period
Period = Time(ActiveEdge) - ToothTime
Testing_Possible_Gap ToothTime = Time(ActiveEdge)
ToothCount += 1
TickRate = Period/TicksPerTooth
BlankTimer = Period * BlankingRatio
Apparent_Gap
Period = PeriodLast
TickRate = Period/TicksPerTooth
StallTimer = StallPeriod at startpoint Time(activeEdge)
PossibleGapVerifying
GapVerified
PeriodLast = Period
Period = Time(ActiveEdge) - ToothTime
ToothTime = Time(ActiveEdge)
ToothCount += 1
TickRate = Period/TicksPerTooth
BlankTimer = Period * BlankingRatio
CrankStatus = HalfSync
ToothCount = AngleSync/TicksPerTooth
Period = PeriodLast
TickRate = Period/TicksPerTooth
BlankTimer = Period * BlankingRatio
EngineAngle = AngleSync
If ActiveEdge
If timeout (StallTimer)
If Period>GapRatio *
PeriodLast
If ActiveEdge
If timeout (StallTimer)
If ActiveEdge
If timeout (StallTimer)
If Tooth_Period*Gap_
Ratio < PeriodLast
If Active Edge
If timeout (StallTimer)
If ActiveEdge
If timeout (StallTimer)
23/34