| Electronic Components Datasheet Search |
|
AN2577 Datasheet(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2577 Datasheet(HTML) 22 Page - STMicroelectronics |
|
22 / 34 page ![]() 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) |
|
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 |
| 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 |