TXZ Family
Advanced Programmable Motor Control Circuit
2018-05-08
1 / 58 Rev. 2.0
© 2017-2018
Toshiba Electronic Devices & Storage Corporation
32-bit RISC Microcontroller
TXZ Family
Reference Manual
Advanced Programmable Motor Control
Circuit
(A-PMD-B)
Revision 2.0
2018-05
TXZ Family
Advanced Programmable Motor Control Circuit
2018-05-08
2 / 58 Rev. 2.0
Contents
Preface .............................................................................................................................................................. 5
Related document ..................................................................................................................................................... 5
Conventions .............................................................................................................................................................. 6
Terms and Abbreviations .......................................................................................................................................... 8
1. Outlines ...................................................................................................................................................... 9
2. Configuration ............................................................................................................................................ 11
3. Function and Operation ............................................................................................................................ 13
3.1. Clock Supply .................................................................................................................................................... 13
3.2. Pulse Width Modulation Circuit ........................................................................................................................ 13
3.2.1. PWM Carrier Generation ............................................................................................................................................ 13
3.2.2. 3 Phase PWM Wave Generation ................................................................................................................................ 16
3.3. Conduction Control Circuit ............................................................................................................................... 19
3.4. Protection Control Circuit ................................................................................................................................. 21
3.4.1. EMG Protection Control Circuit ................................................................................................................................... 22
3.4.2. OVV Protection Control Circuit ................................................................................................................................... 24
3.4.3. Protection control when using the debug tool ............................................................................................................. 25
3.5. Dead time Control Circuit ................................................................................................................................. 26
3.6. Synchronous Trigger Generation Circuit ......................................................................................................... 28
3.7. Buffer Operation ............................................................................................................................................... 30
3.8. Decimation of Execution Buffer Update Timing and Synchronous Trigger Output Timing ............................. 32
3.9. Debug Output Function .................................................................................................................................... 33
4. Registers .................................................................................................................................................. 34
4.1. List of Registers ............................................................................................................................................... 34
4.2. Details of Registers .......................................................................................................................................... 35
4.2.1. [PMDxMDEN] (PMD enable register) ......................................................................................................................... 35
4.2.2. [PMDxPORTMD] (Port output mode register)............................................................................................................. 35
4.2.3. [PMDxMDCR] (PMD control register) ......................................................................................................................... 36
4.2.4. [PMDxCARSTA] (PWM carrier status register) ........................................................................................................... 38
4.2.5. [PMDxBCARI] (Basic carrier register) ......................................................................................................................... 38
4.2.6. [PMDxRATE] (PWM frequency register) .................................................................................................................... 38
4.2.7. PWM duty comparison register ................................................................................................................................... 39
4.2.7.1. [PMDxCMPU] (PWM duty comparison U register) .......................................................................................................... 39
4.2.7.2. [PMDxCMPV] (PWM duty comparison V register) ........................................................................................................... 39
4.2.7.3. [PMDxCMPW] (PWM duty comparison W register) ......................................................................................................... 40
4.2.8. PWM carrier phase difference register ....................................................................................................................... 40
4.2.8.1. [PMDxVPWMPH] (V-phase phase difference register) .................................................................................................... 40
4.2.8.2. [PMDxWPWMPH] (W-phase phase difference register) .................................................................................................. 40
4.2.9. [PMDxMDPOT] (PMD output setting register) ............................................................................................................ 41
4.2.10. [PMDxMDOUT] (PMD conduction control register) .................................................................................................. 42
4.2.11. [PMDxEMGCR] (EMG control register) .................................................................................................................... 43
4.2.12. [PMDxEMGSTA] (EMG status register) .................................................................................................................... 44