| Zakładka z wyszukiwarką danych komponentów |
|
ST72141K2 Arkusz danych(PDF) 57 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST72141K2 Arkusz danych(HTML) 57 Page - STMicroelectronics |
|
57 / 132 page ![]() ST72141K 57/132 MOTOR CONTROLLER (Cont’d) Table 19. MTIM Timer-related Registers Note on using the auto-updated MTIM timer: The auto-updated MTIM timer works accurately within its operating range but some care has to be taken when processing timer-dependent data such as the step duration for regulation or demagnetiza- tion. For example if an overflow occurs when calculat- ing a software end of demagnetization (MCOMP+demagnetisation_time>FFh), the value that stored in MDREG will be: 7Fh+(MCOMP+demagnetization_time-FFh)/2. Note on commutation interrupts: It is good prac- tice to modify the configuration for the next step as soon as possible, i.e within the commutation inter- rupt routine. All registers that need to be changed at each step have a preload register that enables the modifica- tions for a complete new configuration to be per- formed at the same time (at C event in normal mode or when writing the MPHST register in direct access mode). These configuration bits are: CPB, HDM, SDM and OS2 in the MCRB register and IS[1:0], OO[5:0] in the MPHST register. Note on initializing the MTC: As shown in Table 21 all the MTIM timer registers are in read-write mode until the MTC clock is enabled (with the MOE and DAC bits). This allows the timer, prescal- er and compare registers to be properly initialized for start-up. In sensorless mode, the motor has to be started in switched mode until a BEMF voltage is present on the inputs. This means the prescaler ST[3:0] bits and MCOMP register have to be modified by soft- ware. When running the ST[3:0] bits can only be incremented/decremented, so the initial value is very important. When starting directly in autoswitched mode (in sensor mode for example), write an appropriate value in the MZREG and MZPRV register to per- form a step calculation as soon as the clock is en- abled. Name Reset Value Contents MTIM 00h Timer Value MZPRV 00h Capture Zn-1 MZREG 00h Capture Zn MCOMP 00h Compare Cn+1 MDREG 00h Demagnetization Dn |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |