Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2577 Datasheet(PDF) 22 Page - STMicroelectronics

Part # AN2577
Description  Using the eTPU angle clock
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2577 Datasheet(HTML) 22 Page - STMicroelectronics

Back Button AN2577 Datasheet HTML 18Page - STMicroelectronics AN2577 Datasheet HTML 19Page - STMicroelectronics AN2577 Datasheet HTML 20Page - STMicroelectronics AN2577 Datasheet HTML 21Page - STMicroelectronics AN2577 Datasheet HTML 22Page - STMicroelectronics AN2577 Datasheet HTML 23Page - STMicroelectronics AN2577 Datasheet HTML 24Page - STMicroelectronics AN2577 Datasheet HTML 25Page - STMicroelectronics AN2577 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 34 page
background image
eTPU software design
AN2577
22/34
4
eTPU software design
The software shown below is taken from an automotive reference design which
demonstrates the operation and application of the eTPU angle clock in a practical
automotive engine control system. Code that is directly copied is displayed in Courier
New
font. The reference design can be obtained from your ST representative.
4.1
Host setup
The host must setup the registers and parameters in the eTPU to enable the angle clock. In
addition to the setup required for any eTPU operation, use of the angle clock requires the
following steps.
a)
The Angle Mode bit in the ETPUTBCR must be set.
b)
The TCRCLK Filter Mode must be setup.
c)
Initial Channel 0 parameters must be written.
d)
Channel 0 must be initialized.
e)
The TCR2 Clock Source in the ETPUTBCR must be set for rising or falling edges
to match the IPAC setting for the tooth in Channel 0.
The last step may be delayed until Channel 0 has confirmed synchronization.
4.2
State machine description
Table 1 shows a simplified state table for an angle clock system, similar to the
implementation in the reference design. The states are referenced in the following
description of an angle clock system implementation.
Table 1.
Angle clock system state
Reference
name
Action
Exit
condition
InitializeCrank
TICKS = TicksPerToot - 1
If ActiveEdge
ToothCount = 0
CrankStatus = Stall;
First_edge
CrankStatus = WaitingGap
If timeout (StallTimer)
StallTimer = StallPeriod at startpoint Time(activeEdge)
If ActiveEdge
ToothTime = Time(ActiveEdge)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com