| поискавой системы для электроныых деталей |
|
AT89LP2052 датащи(PDF) 26 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT89LP2052 датащи(HTML) 26 Page - ATMEL Corporation |
|
26 / 90 page ![]() 26 3547F–MICRO–6/06 AT89LP2052/LP4052 15.5 Pulse Width Modulation Timer 0 and Timer 1 may be independently configured as 8-bit asymmetrical pulse width modu- lators (PWM) by setting the PWM0EN or PWM1EN bits in TCONB, respectively. In PWM Mode the generated waveform is output on the timer's pin, T0 or T1. C/T must be set to “0” when in PWM mode. In Timer 0's PWM mode, TH0 acts as an 8-bit counter while RH0 stores the 8-bit compare value. When TH0 is 00H the PWM output is set high. When the TH0 count reaches the value stored in RH0 the PWM output is set low. Therefore, the pulse width is proportional to the value in RH0. To prevent glitches writes to RH0 only take effect on the FFH to 00H overflow of TH0. Timer 1 has the same behavior using TH1 and RH1. See Figure 15-5 for PWM waveform example. Setting RH0 to 00H will keep the PWM output low. The PWM will only function if the timer is in Mode 0 or Mode 1. In Mode 0, TL0 acts as a logarith- mic prescaler driving TH0 (see Figure 15-6). The PSC0 bits in TCONB control the prescaler value. In Mode 1, TL0 provides linear prescaling with an 8-bit auto-reload from RL0 (see Figure 15-7). Figure 15-5. Asymmetrical Pulse Width Modulation Table 15-3. TCONB – Timer/Counter Control Register B TCONB = 91H Reset Value = 0010 0100B Not Bit Addressable PWM1EN PWM0EN PSC12 PSC11 PSC10 PSC02 PSC01 PSC00 Bit 7 65 43 21 0 Symbol Function PWM1EN Configures Timer 1 for Pulse Width Modulation output on T1 (P3.5). PWM0EN Configures Timer 0 for Pulse Width Modulation output on T0 (P3.4). PSC12 PSC11 PSC10 Prescaler for Timer 1 Mode 0. The number of active bits in TL1 equals PSC1 + 1. After reset PSC1 = 100B which enables 5 bits of TL1 for compatibility with the 13-bit Mode 0 in AT89S2051. PSC02 PSC01 PSC00 Prescaler for Timer 0 Mode 0. The number of active bits in TL0 equals PSC0 + 1. After reset PSC0 = 100B which enables 5 bits of TL0 for compatibility with the 13-bit Mode 0 in AT89C52. PWM Output (T0) Counter Value (TH0) Compare Value (RH0) |
|
ссылки 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 |