Rainbow-electronics ATmega8515L Manual do Utilizador Página 89

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 223
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 88
89
ATmega8515(L)
2512A–AVR–04/02
Note: 1. A specialcaseoccurs when OCR0 equals TOPandCOM01 isset. Inthiscase, the
comparematch is ignored, but the set orclear isdone at TOP. See “FastPWM Mode”
on page 83for more details.
Table47shows the COM01:0 bit functionalitywhen the WGM01:0 bits are set to phase
correctPWM mode.
Note: 1. A specialcaseoccurs when OCR0 equals TOPandCOM01 isset. Inthiscase, the
comparematch is ignored, but the set orclear isdone at TOP. See “Phase Correct
PWM Mode” on page 85 for more details.
Bit 2:0 – CS02:0: Clock Select
Thethree Clock Select bitsselectthe clock sourcetobeusedbytheTimer/Counter.
If externalpin modes areusedfor theTimer/Counter0, transitions on theT0pin will
clock the counter even if the pin isconfigured as an output. Thisfeatureallows software
control of the counting.
Table 46. Compare Output Mode,FastPWM Mode
(1)
COM01 COM00 Description
00Normalportoperation,OC0 disconnected.
01Reserved
10ClearOC0oncomparematch, set OC0atTOP.
11Set OC0oncomparematch, clearOC0atTOP.
Table 47. Compare Output Mode, Phase CorrectPWM Mode
(1)
COM01 COM00 Description
00Normalportoperation,OC0 disconnected.
01Reserved
10ClearOC0oncomparematch when up-counting. Set OC0on
comparematch when downcounting.
11Set OC0oncomparematch when up-counting. ClearOC0on
comparematch when downcounting.
Table 48. Clock Select Bit Description
CS02 CS01 CS00 Description
000No clock source (Timer/counterstopped).
001
clk
I/O
/(No prescaling)
010
clk
I/O
/8 (From prescaler)
011
clk
I/O
/64 (From prescaler)
100
clk
I/O
/256(From prescaler)
101
clk
I/O
/1024 (From prescaler)
110Externalclock sourceonT0pin. Clock on falling edge.
111Externalclock sourceonT0pin. Clock on rising edge.
Vista de página 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 222 223

Comentários a estes Manuais

Sem comentários