The 4 registers of CLK (Clock System), from 0x40, with their reset value and every field. The ATxmega128A1 has 721 registers in 72 peripherals, one page each.
CLK Clock System
CTRLControl Register
Address
0x40 I/O 0x20
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2SCLKSEL2
1SCLKSEL1
0SCLKSEL0
1 field
Field
Bits
What it does
SCLKSEL
2:0
System Clock Selection
0 Internal 2 MHz RC Oscillator
1 Internal 32 MHz RC Oscillator
2 Internal 32.768 kHz RC Oscillator
3 External Crystal Oscillator or Clock
4 Phase Locked Loop
PSCTRLPrescaler Control Register
Address
0x41 I/O 0x21
Reset
0x00
Access
read/write
7–
6PSADIV4
5PSADIV3
4PSADIV2
3PSADIV1
2PSADIV0
1PSBCDIV1
0PSBCDIV0
2 fields
Field
Bits
What it does
PSADIV
6:2
Prescaler A Division Factor
0 Divide by 1
1 Divide by 2
3 Divide by 4
5 Divide by 8
7 Divide by 16
9 Divide by 32
11 Divide by 64
13 Divide by 128
15 Divide by 256
17 Divide by 512
PSBCDIV
1:0
Prescaler B and C Division factor
0 Divide B by 1 and C by 1
1 Divide B by 1 and C by 2
2 Divide B by 4 and C by 1
3 Divide B by 2 and C by 2
LOCKLock register
Address
0x42 I/O 0x22
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2–
1–
0LOCK
1 field
Field
Bits
What it does
LOCK
0
Clock System Lock
RTCCTRLRTC Control Register
Address
0x43 I/O 0x23
Reset
0x00
Access
read/write
7–
6–
5–
4–
3RTCSRC2
2RTCSRC1
1RTCSRC0
0RTCEN
2 fields
Field
Bits
What it does
RTCSRC
3:1
RTC Clock Source
0 1kHz from internal 32kHz ULP
1 1.024 kHz from 32.768 kHz crystal oscillator on TOSC
2 1.024 kHz from internal 32.768 kHz RC oscillator
5 32.768 kHz from 32.768 kHz crystal oscillator on TOSC