| 数据搜索系统,热门电子元器件搜索 |
|
ADMCF341 数据表(PDF) 21 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADMCF341 数据表(HTML) 21 Page - Analog Devices |
|
21 / 36 page ![]() REV. A ADMC(F)341 –21– in offset mode. In offset mode, the switching frequencies of the two signals on the AUX0 and AUX1 pins are identical and controlled by AUXTM0 in a manner similar to that previously described for independent mode. In addition, the on-times of both the AUX0 and AUX1 signals are controlled by the AUXCH0 and AUXCH1 registers as before. In this mode, however, the AUXTM1 register defines the offset time from the rising edge of the signal on the AUX0 pin to that on the AUX1 pin according to: T AUXTM t OFFSET CK =× + × 21 () 1 For correct operation in this mode, the value written to the AUXTM1 register must be less than the value written to the AUXTM0 register. Typical auxiliary PWM waveforms in offset mode are shown in Figure 18b. Again, duty cycles from 0% to 100% are possible in this mode. In both operating modes, the resolution of the auxiliary PWM system is 16 bits only at the minimum switching frequency (AUXTM0 = AUXTM1 = 65,535 in independent mode, AUXTM0 = 65,535 in offset mode). Obviously, as the switching frequency is increased, the resolution is reduced. Values can be written to the auxiliary PWM registers at any time. However, new duty cycle values written to the AUXCH0 and AUXCH1 registers only become effective at the start of the next cycle. Writing to the AUXTM0 or AUXTM1 registers causes the internal timers to be reset to 0 and new PWM cycles to begin. By default following a reset, Bit 8 of the MODECTRL register is cleared, thus enabling offset mode. In addition, the registers AUXTM0 and AUXTM1 default to 0xFFFF, corresponding to the minimum switching frequency and zero offset. The on-time registers AUXCH0 and AUXCH1 default to 0x0000. AUXPWM R1 R2 C1 C2 R1 = R2 = 13k C1 = C2 = 10nF Figure 17. Auxiliary PWM Output Filter Auxiliary PWM Interface, Registers, and Pins The registers of the auxiliary PWM system are summarized in Figure 27. AUX0 AUX1 2 (AUXTM0 + 1) 2 (AUXTM1 + 1) 2 AUXCH1 2 AUXCH1 2 AUXCH0 Figure 18a. Typical Auxiliary PWM Signals (All Times in Increments of tCK), Independent Mode AUX0 AUX1 2 (AUXTM0 + 1) 2 (AUXTM0 + 1) 2 AUXCH1 2 AUXCH0 2 (AUXTM1 + 1) Figure 18b. Typical Auxiliary PWM Signals (All Times in Increments of tCK), Offset Mode WATCHDOG TIMER The ADMC(F)341 incorporates a watchdog timer that can perform a full reset of the DSP and motor control peripherals in the event of a software error. The watchdog timer is enabled by writing a timeout value to the 16-bit WDTIMER register. The timeout value represents the number of CLKIN cycles required for the watchdog timer to count down to zero. When the watchdog timer reaches zero, a full DSP core and motor control peripheral reset is performed. In addition, Bit 1 of the SYSSTAT register is set so that after a watchdog reset, the ADMC(F)341 can determine that the reset was due to the timeout of the watchdog timer and was not an external reset. Following a watchdog reset, Bit 1 of the SYSSTAT register may be cleared by writing zero to the WDTIMER register. This clears the status bit but does not enable the watchdog timer. On reset, the watchdog timer is disabled and is enabled only when the first timeout value is written to the WDTIMER register. To prevent the watchdog timer from timing out, the user must write to the WDTIMER register at regular intervals (shorter than the programmed WDTIMER period value). On all but the first write to WDTIMER, the particular value written to the register is unimportant, since writing to WDTIMER simply reloads the first value written to this register. PROGRAMMABLE DIGITAL INPUT/OUTPUT The ADMC(F)341 has a 9-pin programmable digital input/ output (PIO) port (PORTA). The nine pins (PORTA0 to PORTA8) are multiplexed with other on-chip peripheral functions, in accordance with Table IX. When configured as a PIO, each of these nine pins can act as an input or output, or an interrupt source. The operating mode (PIO or alternate function) of pins PORTA0 to PORTA8 is controlled by the PORTA_SELECT register. This 9-bit register has a bit for each input so that the mode of each pin may be selected individually. Bit 0 of PORTA_SELECT controls the operation of the PORTA0 pin, Bit 1 controls the PORTA1 pin, and so on. Setting the appropriate bit in the PORTA_SELECT register causes the corresponding pin to be configured for PIO functionality. Clearing the bit selects the alternate mode of the corresponding pin. Following power-on reset, all bits of PORTA_SELECT are set such that PIO functionality is selected. The second |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |