Rainbow-electronics ATmega8HVD Manuel d'utilisateur Page 30

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 168
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 29
30
8052B–AVR–09/08
ATmega4HVD/8HVD
Bit 7 – CLKPCE: Clock Prescaler Change Enable
The CLKPCE bit must be written to logic one to enable change of the CLKPS bits. The CLK-
PCE bit is only updated when the other bits in CLKPR are simultaneously written to zero.
CLKPCE is cleared by hardware four cycles after it is written or when CLKPS bits are written.
Rewriting the CLKPCE bit within this time-out period does neither extend the time-out period,
or clear the CLKPCE bit.
Bit 1:0 – CLKPS1:0: Clock Prescaler Select Bit 1..0
These bits define the division factor between the selected clock source and the internal sys-
tem clock. These bits can be written run-time to vary the clock frequency to suit the application
requirements. As the divider divides the master clock input to the MCU, the speed of all syn-
chronous peripherals is reduced when a division factor is used. The division factors are given
in Table 8-4 on page 30. Note that writing to the System Clock Prescaler Select bits will abort
any ongoing ADC conversion.
Note: 1. Reserved values should not be written to CLKPS1..0
8.13.4 OSICSR – Oscillator Sampling Interface Control and Status Register
Bits 7:5,3:2 – RES: Reserved bits
These bits are reserved bits in the ATmega4HVD/8HVD and will always read as zero.
Bit 4 - OSISEL0: Oscillator Sampling Interface Select 0
Bit 1 – OSIST: Oscillator Sampling Interface Status
This bit continuously displays the phase of the prescaled clock. This bit can be polled by the
CPU to determine the rising and falling edges of the prescaled clock.
Table 8-4. System Clock Prescaler Select
CLKPS1 CLKPS0 Clock Division Factor
00Reserved
(1)
012
104
118
Bit 76543210
OSISEL0 OSIST OSIEN OSICSR
Read/Write R R R R/W R R R R/W
Initial Value 0 0 0 0 0 0 0 0
Table 8-5. OSISEL Bit Description
OSISEL0 Oscillator source
0 ULP Oscillator
1 Slow RC Oscillator
Vue de la page 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 167 168

Commentaires sur ces manuels

Pas de commentaire