Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AN2577 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
'AN2577' PDF : 34 Pages View PDF
eTPU software design
AN2577
Table 1. Angle clock system state (continued)
Reference
name
Action
Exit
condition
Counting
Gapping
NewRev
AdjustAngle
StallTimer = StallPeriod at startpoint Time(activeEdge)
PeriodLast = Period
Period = Time(ActiveEdge) - ToothTime
ToothTime = Time(ActiveEdge)
ToothCount += 1
if (ToothCount == LastRealTooth) then LAST = true
TickRate = Period/TicksPerTooth
BlankTimer = Period * BlankingRatio
MISSCNT = NumberMissing
if ((FirstGap && !CamDetected)||(SecondGap &&
CamDetected) then CrankStatus = Full_Sync
else CrankStatus = Error
StallTimer = (StallPeriod + NumberMissing* Period) at
startpoint Time(activeEdge)
BlankTimer = Period *
(NumberMissing + BlankingRatio)
if AngleClock = 0 then ToothCount = 0
ToothTime = Time(ActiveEdge)
BlankTimer = Period * BlankingRatio
EngineAngle = EngineAngle + AngleCorrection
Do Not Change State Number
If ToothCount ==
ToothBeforeGap
If ActiveEdge
If AdjustAngle()
//return
If timeout (StallTimer)
If Receive(Signal)
12
If ActiveEdge
If AdjustAngle()
//return
If timeout (StallTimer)
If ActiveEdge
If AdjustAngle()
//return
If timeout (StallTimer)
Return to last state. x
4.2.1
Initialize crank
The first state is entered by a host service request. The eTPU parameters are initialized and
hardware is setup for the specific application.
Example
if (hsrInitAngleClock) // Sets Entry Vector for the eTPU
{
/* Initialize Parameters */
State1:
// Set the channel mode to detection one input transition and
two match events
SetChannelMode(m2_st);
24/34
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]