| Electronic Components Datasheet Search |
|
ADuC7122BBCZ Datasheet(PDF) 49 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADuC7122BBCZ Datasheet(HTML) 49 Page - Analog Devices |
|
49 / 96 page ![]() Data Sheet ADuC7122 Rev. A | Page 49 of 96 DIGITAL PERIPHERALS PWM GENERAL OVERVIEW The ADuC7122 integrates a 6-channel PWM interface. The PWM outputs can be configured to drive an H-bridge or can be used as standard PWM outputs. On power-up, the PWM outputs default to H-bridge mode. This ensures that the H-bridge controlled motor is turned off by default. In standard PWM mode, the outputs are arranged as three pairs of PWM pins. Users have control over the period of each pair of outputs and over the duty cycle of each individual output. Table 77. PWM MMRs Name Function PWMCON1 PWM control PWM1COM1 Compare Register 1 for PWM Output 1 and Output 2 PWM1COM2 Compare Register 2 for PWM Output 1 and Output 2 PWM1COM3 Compare Register 3 for PWM Output 1 and Output 2 PWM1LEN Frequency control for PWM Output 1 and Output 2 PWM2COM1 Compare Register 1 for PWM Output 3 and Output 4 PWM2COM2 Compare Register 2 for PWM Output 3 and Output 4 PWM2COM3 Compare Register 3 for PWM Output 3 and Output 4 PWM2LEN Frequency control for PWM Output 3 and Output 4 PWM3COM1 Compare Register 1 for PWM Output 5 and Output 6 PWM3COM2 Compare Register 2 for PWM Output 5 and Output 6 PWM3COM3 Compare Register 3 for PWM Output 5 and Output 6 PWM3LEN Frequency control for PWM Output 5 and Output 6 PWMCON2 PWM convert start control PWMICLR PWM interrupt clear In all modes, the PWMxCOMx MMRs control the point at which the PWM outputs change state. An example of the first pair of PWM outputs (PWM1 and PWM2) is shown in Figure 32. HIGH SIDE (PWM1) LOW SIDE (PWM2) PWM1COM3 PWM1COM2 PWM1COM1 PWM1LEN Figure 32. PWM Timing The PWM clock is selectable via PWMCON1 with UCLK divided by one of the following values: 2, 4, 8, 16, 32, 64, 128, or 256. The length of a PWM period is defined by PWMxLEN. The PWM waveforms are set by the count value of the 16-bit timer and the compare registers contents, as shown in the PWM1 and PWM2 waveforms in Figure 32. The low-side waveform, PWM2, goes high when the timer count reaches PWM1LEN, and it goes low when the timer count reaches the value held in PWM1COM3 or when the high-side waveform PWM1 goes low. The high-side waveform, PWM1, goes high when the timer count reaches the value held in PWM1COM1, and it goes low when the timer count reaches the value held in PWM1COM2. In H-bridge mode, HMODE = 1 and Table 78 determine the PWM outputs. Table 78. PWMCON1 MMR Bit Designations (Address = 0xFFFF0F80, Default Value = 0x0012) Bit Name Description 15 Reserved This bit is reserved. 14 SYNC Enables PWM synchronization. Set to 1 by the user so that all PWM counters are reset on the next clock edge after the detection of a high-to-low transition on the SYNC pin. Cleared by the user to ignore transitions on the SYNC pin. 13 PWM6INV Set to 1 by the user to invert PWM6. Cleared by the user to use PWM6 in normal mode. 12 PWM4NV Set to 1 by the user to invert PWM4. Cleared by the user to use PWM4 in normal mode. 11 PWM2INV Set to 1 by the user to invert PWM2. Cleared by the user to use PWM2 in normal mode. 10 PWMTRIP Set to 1 by the user to enable PWM trip interrupt. When the PWMTRIP input is low, the PWMEN bit is cleared and an interrupt is generated. Cleared by the user to disable the PWMTRIP interrupt. 9 ENA If HOFF = 0 and HMODE = 1. Set to 1 by the user to enable PWM outputs. Cleared by the user to disable PWM outputs. If HOFF = 1 and HMODE = 1, see Table 79. If not in H-Bridge mode, this bit has no effect. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |