CHAPTER 3 SOFTWARE CONFIGURATION
Application Note U17209EJ1V0AN
50
3.4.3 U zero-cross point interrupt processing
Figure 3-14. U Zero-Cross Point Interrupt Processing
Extract output pattern from CW table according
to present zero-cross point status
int_p20
Initial flag off and stop flag off?
No
Target revolution CCW?
Extract output pattern from CCW table according
to present zero-cross point status
U phase high side output on?
U phase comparison value = 0
Set V and W phase comparison values
Write PWM output pattern
Speed calculation count up
EXIT
Yes
No
W phase comparison value = 0
Set U and V phase comparison
values
Yes
Yes
No
No
: Refer to 4.1.8, 4.2.8, 4.3.8, 4.4.8, 4.5.8 Zero-cross interrupt processing function.
Capture speed measuring timer value and restart
Set reference position from other phase status
V phase high side output on?
V phase comparison value = 0
Set U and W phase comparison
values
Yes