![Page 1: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/1.jpg)
Czech Technical University in Prague – Faculty of Electrical Engineering
Digital Control of Electric Drives
Ver.1.00
Special Peripherals for Control
J. Zdenek 2017
![Page 2: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/2.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 2
Electric drive structure
![Page 3: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/3.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 3
Control computer structure
![Page 4: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/4.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 4
Control computer structure (with FPGA support)
![Page 5: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/5.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 5
Interrupt controller
![Page 6: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/6.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 6
Interrupt controller principle
Interrupt Request
Maskable Interrupt Enable/Disable
Interrupt Flag
Interrupt Enable
![Page 7: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/7.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 7
Using timer and interrupt for period measurement
![Page 8: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/8.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 8
Analog to Digital converter in embedded computer
Ana
log I
np
uts
![Page 9: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/9.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 9
Quadrature encoder signals
![Page 10: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/10.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 10
Precise pulse signal period measurement (Capture Unit)
![Page 11: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/11.jpg)
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
![Page 12: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/12.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 12
Pulse signal generation (Carrier and Modulation wave)
![Page 13: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/13.jpg)
BE1M14DEP Digital Control of Electric Drives - 7 13
Pulse signal generation (Carrier and Modulation wave)
![Page 14: Digital Control of Electric Drives - O násmotor.feld.cvut.cz/sites/...07z-special-peripherals-for-control_2.pdf · Czech Technical University in Prague – Faculty of El ectrical](https://reader031.vdocuments.site/reader031/viewer/2022022507/5acb32e67f8b9aa1298e553c/html5/thumbnails/14.jpg)
Digital Control of Electric Drives
Special Peripherals for Control
END
Czech Technical University in Prague – Faculty of Electrical Engineering