AN 999: Drive-on-Chip with Functional Safety Design Example: Agilex™ 7 Devices

ID 823627
Date 7/04/2024
Public

Visible to Intel only — GUID: mzm1716372462515

Ixiasoft

Document Table of Contents

5.2.2. Speed Estimation Thread (speed_estmation.c/.h)

The thread, which you can change, runs every 25ms (4kHz). The mechanism calculates a wake up time. It runs the speed estimation in every cycle after the wake-up time taking readings from the drive-on-chip encoder, specifically from the Raw Count Capture register (accessing the device doc_qep0). The design passes the values to main functions using pointers and the HPS calculates the next wake up time. The design allocates this thread to core 3, which is isolated for this purpose.
Figure 25. Speed Estimation Thread Flow