The 27 registers of TCE0 (16-bit Timer/Counter Type E), from 0xA00, with their reset value and every field. The AVR16EB20 has 423 registers in 40 peripherals, one page each.
TCE0 16-bit Timer/Counter Type E
CTRLAControl A
Address
0xA00
Reset
0x00
Access
read/write
7RUNSTDBY
6–
5–
4–
3CLKSEL2
2CLKSEL1
1CLKSEL0
0ENABLE
3 fields
Field
Bits
What it does
RUNSTDBY
7
Run in Standby
CLKSEL
3:1
Clock Selection
0 System Clock
1 System Clock / 2
2 System Clock / 4
3 System Clock / 8
4 System Clock / 16
5 System Clock / 64
6 System Clock / 256
7 System Clock / 1024
ENABLE
0
Module Enable
CTRLBControl B
Address
0xA01
Reset
0x00
Access
read/write
7CMP3EN
6CMP2EN
5CMP1EN
4CMP0EN
3ALUPD
2WGMODE2
1WGMODE1
0WGMODE0
6 fields
Field
Bits
What it does
CMP3EN
7
Compare 3 Enable
CMP2EN
6
Compare 2 Enable
CMP1EN
5
Compare 1 Enable
CMP0EN
4
Compare 0 Enable
ALUPD
3
Auto Lock Update
WGMODE
2:0
Waveform generation mode
0 Normal Mode
1 Frequency Generation Mode
3 Single Slope PWM
5 Dual Slope PWM, overflow on TOP
6 Dual Slope PWM, overflow on TOP and BOTTOM
7 Dual Slope PWM, overflow on BOTTOM
CTRLCControl C
Address
0xA02
Reset
0x00
Access
read/write
7CMP3POL
6CMP2POL
5CMP1POL
4CMP0POL
3CMP3OV
2CMP2OV
1CMP1OV
0CMP0OV
8 fields
Field
Bits
What it does
CMP3POL
7
Compare 3 Polarity
CMP2POL
6
Compare 2 Polarity
CMP1POL
5
Compare 1 Polarity
CMP0POL
4
Compare 0 Polarity
CMP3OV
3
Compare 3 Waveform Output Value
CMP2OV
2
Compare 2 Waveform Output Value
CMP1OV
1
Compare 1 Waveform Output Value
CMP0OV
0
Compare 0 Waveform Output Value
CTRLDControl D
Address
0xA03
Reset
0x00
Access
read/write
7HREN1
6HREN0
5SCALEMODE1
4SCALEMODE0
3AMPEN
2SCALE
1–
0–
4 fields
Field
Bits
What it does
HREN
7:6
High Resolution Enable
0 High Resolution Disable
1 Resolution increased by 4 (2 bits)
2 Resolution increased by 4 (3 bits)
SCALEMODE
5:4
Scaling Mode
0 CMPn registers scaled vs center (50% duty cycle)
1 CMPn registers scaled vs BOTTOM (0% duty cycle)
2 CMPn registers scaled vs TOP (100% duty cycle)
3 CMPn registers scaled vs TOP or BOTTOM depending on written value.
AMPEN
3
Amplitude Control Enable
SCALE
2
Scaled Write
0 Absolute values used when writing to CMPn, CMPnBUF and registers
1 Fractional values used when writing to CMPn, CMPnBUF and registers
CTRLECLRControl E Clear
Address
0xA04
Reset
0x00
Access
read/write
7–
6–
5–
4–
3CMD1
2CMD0
1LUPD
0DIR
3 fields
Field
Bits
What it does
CMD
3:2
Command
0 No Command
1 Force Update
2 Force Restart
3 Force Hard Reset
LUPD
1
Lock Update
DIR
0
Direction
CTRLESETControl E Set
Address
0xA05
Reset
0x00
Access
read/write
7–
6–
5–
4–
3CMD1
2CMD0
1LUPD
0DIR
3 fields
Field
Bits
What it does
CMD
3:2
Command
0 No Command
1 Force Update
2 Force Restart
3 Force Hard Reset
LUPD
1
Lock Update
DIR
0
Direction
0 Count up
1 Count down
CTRLFCLRControl F Clear
Address
0xA06
Reset
0x00
Access
read/write
7–
6–
5–
4CMP3BV
3CMP2BV
2CMP1BV
1CMP0BV
0PERBV
5 fields
Field
Bits
What it does
CMP3BV
4
Compare 3 Buffer Valid
CMP2BV
3
Compare 2 Buffer Valid
CMP1BV
2
Compare 1 Buffer Valid
CMP0BV
1
Compare 0 Buffer Valid
PERBV
0
Period Buffer Valid
CTRLFSETControl F Set
Address
0xA07
Reset
0x00
Access
read/write
7–
6–
5–
4CMP3BV
3CMP2BV
2CMP1BV
1CMP0BV
0PERBV
5 fields
Field
Bits
What it does
CMP3BV
4
Compare 3 Buffer Valid
CMP2BV
3
Compare 2 Buffer Valid
CMP1BV
2
Compare 1 Buffer Valid
CMP0BV
1
Compare 0 Buffer Valid
PERBV
0
Period Buffer Valid
EVGENCTRLEvent Generation Control
Address
0xA08
Reset
0x00
Access
read/write
7CMP3EV
6CMP2EV
5CMP1EV
4CMP0EV
3–
2–
1–
0–
4 fields
Field
Bits
What it does
CMP3EV
7
Compare 3 Event
0 Event output for CMP is a pulse
1 Event output for CMP is equal to waveform
CMP2EV
6
Compare 2 Event
0 Event output for CMP is a pulse
1 Event output for CMP is equal to waveform
CMP1EV
5
Compare 1 Event
0 Event output for CMP is a pulse
1 Event output for CMP is equal to waveform
CMP0EV
4
Compare 0 Event
0 Event output for CMP is a pulse
1 Event output for CMP is equal to waveform
EVCTRLEvent Control
Address
0xA09
Reset
0x00
Access
read/write
7EVACTB2
6EVACTB1
5EVACTB0
4CNTBEI
3EVACTA2
2EVACTA1
1EVACTA0
0CNTAEI
4 fields
Field
Bits
What it does
EVACTB
7:5
Event Action B
0 No Action
3 Count on prescaled clock. Event controls count direction. Up-count when event line is 0, down-count when event line is 1.
4 Restart counter at positive edge event
5 Restart counter on any edge event
6 Restart counter while event line is 1.
CNTBEI
4
Count on Event Input B
EVACTA
3:1
Event Action A
0 Count on positive edge event
1 Count on any edge event
2 Count on prescaled clock while event line is 1.
3 Count on prescaled clock. Event controls count direction. Up-count when event line is 0, down-count when event line is 1.