![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 76](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602076.webp)
Chapter 1 Device Overview MC9S12ZVM-Family
MC9S12ZVM Family Reference Manual Rev. 1.3
76
Freescale Semiconductor
6. Map the sine/cosine input signals to ADC input channels.
7. Configure the EVDD1 pin as output.
8. Optionally use GDU phase comparators for zero crossing detection to correct dead time distortion.
9. Fetch targeted motor speed parameter from external source (e.g. SCI)
10. Configure PMF period and duty cycle.
11. Start motor by applying startup algorithm.
12. Sample the sine/cosine voltages periodically based on PWM cycle to determine motor position.
13. Use FOC algorithm to determine back EMF and motor speed.
Figure 1-15. PMSM Sine/Cosine Control Loop Configuration
PMF
PTU
ADC0
GDU
M
ADC1
reload
glb_ldok
reload
dc_b
us_current1
dc_bus_voltage
trigger_0
trigger_1
dc_b
us_current0
zero crossing
IS0
IS1
IS2
sine/cosine
sensor
phase comparison