| поискавой системы для электроныых деталей |
|
UPSD3233 датащи(PDF) 67 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD3233 датащи(HTML) 67 Page - STMicroelectronics |
|
67 / 170 page ![]() 67/170 uPSD3234A, uPSD3234BV, uPSD3233B, uPSD3233BV PULSE WIDTH MODULATION (PWM) The PWM block has the following features: ■ Four-channel, 8-bit PWM unit with 16-bit prescaler ■ One-channel, 8-bit unit with programmable frequency and pulse width ■ PWM Output with programmable polarity 4-channel PWM Unit (PWM 0-3) The 8-bit counter of a PWM counts module 256 (i.e., from 0 to 255, inclusive). The value held in the 8-bit counter is compared to the contents of the Special Function Register (PWM 0-3) of the corre- sponding PWM. The polarity of the PWM outputs is programmable and selected by the PWML Bit in PWMCON register. Provided the contents of a PWM 0-3 register is greater than the counter val- ue, the corresponding PWM output is set HIGH (with PWML = 0). When the contents of this regis- ter is less than or equal to the counter value, the corresponding PWM output is set LOW (with PWML = 0). The pulse-width-ratio is therefore de- fined by the contents of the corresponding Special Function Register (PWM 0-3) of a PWM. By load- ing the corresponding Special Function Register (PWM 0-3) with either 00H or FFH, the PWM out- put can be retained at a constant HIGH or LOW level respectively (with PWML = 0). For each PWM unit, there is a 16-bit Prescaler that are used to divide the main system clock to form the input clock for the corresponding PWM unit. This prescaler is used to define the desired repeti- tion rate for the PWM unit. SFR registers B1h - B2h are used to hold the 16-bit divisor values. The repetition frequency of the PWM output is giv- en by: fPWM8 = (fOSC / prescaler0) / (2 x 256) And the input clock frequency to the PWM counters is = fOSC / 2 / (prescaler data value + 1) See I/O PORTS (MCU MODULE), page 42 for more information on how to configure the Port 4 pin as PWM output. Figure 36. Four-Channel 8-bit PWM Block Diagram AI06647 8-bit PWM0-PWM3 Comparators Registers 8-bit PWM0-PWM3 Comparators 8-bit Counter x 4 8-bit PWM0-PWM3 Data Registers x 4 Port4.3 Port4.4 Port4.5 Port4.6 Overflow clock load 16-bit Prescaler Register (B2h,B1h) 16-bit Prescaler Counter f OSC/2 CPU rd/wr CPU rd/wr load PWMCON bit5 (PWME) PWMCON bit7 (PWML) 4 8 DATA BUS x 4 8 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |