Digital Control of Electric Drives - O...
Transcript of Digital Control of Electric Drives - O...
Czech Technical University in Prague – Faculty of Electrical Engineering
Digital Control of Electric Drives
Ver.1.00
Special Peripherals for Control
J. Zdenek 2017
BE1M14DEP Digital Control of Electric Drives - 7 2
Electric drive structure
BE1M14DEP Digital Control of Electric Drives - 7 3
Control computer structure
BE1M14DEP Digital Control of Electric Drives - 7 4
Control computer structure (with FPGA support)
BE1M14DEP Digital Control of Electric Drives - 7 5
Interrupt controller
BE1M14DEP Digital Control of Electric Drives - 7 6
Interrupt controller principle
Interrupt Request
Maskable Interrupt Enable/Disable
Interrupt Flag
Interrupt Enable
BE1M14DEP Digital Control of Electric Drives - 7 7
Using timer and interrupt for period measurement
BE1M14DEP Digital Control of Electric Drives - 7 8
Analog to Digital converter in embedded computer
Ana
log I
np
uts
BE1M14DEP Digital Control of Electric Drives - 7 9
Quadrature encoder signals
BE1M14DEP Digital Control of Electric Drives - 7 10
Precise pulse signal period measurement (Capture Unit)
BE1M14DEP Digital Control of Electric Drives - 7 11
Precise pulse signal generation (Compare Unit)
CR
Prescaler Timer
Timer Count
Comparator
Compare Register
Program
Program
Event
Generator
Int
Event Register
Program
TC
ER
Clock
Output
INIT
RET
ISR
RET
Int
T0 T1 T2 T3
∆T1
ER ←
CR ← X+T1
ER ←
CR ← TC+T0
ISR
RET
X ← TC+T0 X ← X+T1
ER ←
CR ← X+T2
X ← X+T2
∆T2
Int
ISR
RET
ER ←
CR ← X+T3
X ← X+T3
∆T3
Int
time
Output
BE1M14DEP Digital Control of Electric Drives - 7 12
Pulse signal generation (Carrier and Modulation wave)
BE1M14DEP Digital Control of Electric Drives - 7 13
Pulse signal generation (Carrier and Modulation wave)
Digital Control of Electric Drives
Special Peripherals for Control
END
Czech Technical University in Prague – Faculty of Electrical Engineering