~ruther/avr-device

ref: c0b5119ab1ad4d1b23b7a63fb9d297d82ee6ccf0 avr-device/patch/timer/dev/8bit-tiny85-tc1.yaml -rw-r--r-- 1.6 KiB
c0b5119a — Andrew Dona-Couch attiny85: Timer patch fixes 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
TCCR?,GTCCR:
  COM??:
    _replace_enum:
      DISCONNECTED:  [0, "Normal port operation, OCix disconnected"]
      MATCH_TOGGLE:  [1, "Toggle OCix on Compare Match"]
      MATCH_CLEAR:   [2, "Clear OCix on Compare Match"]
      MATCH_SET:     [3, "Set OCix on Compare Match"]

TCCR?:
  CS?:
    _replace_enum:
      NO_CLOCK:       [0,  "No clock source (Timer/Counter stopped)"]
      DIRECT:         [1,  "Running, No Prescaling"]
      PRESCALE_2:     [2,  "Running, CLK/2"]
      PRESCALE_4:     [3,  "Running, CLK/4"]
      PRESCALE_8:     [4,  "Running, CLK/8"]
      PRESCALE_16:    [5,  "Running, CLK/16"]
      PRESCALE_32:    [6,  "Running, CLK/32"]
      PRESCALE_64:    [7,  "Running, CLK/64"]
      PRESCALE_128:   [8,  "Running, CLK/128"]
      PRESCALE_256:   [9,  "Running, CLK/256"]
      PRESCALE_512:   [10, "Running, CLK/512"]
      PRESCALE_1024:  [11, "Running, CLK/1024"]
      PRESCALE_2048:  [12, "Running, CLK/2048"]
      PRESCALE_4096:  [13, "Running, CLK/4096"]
      PRESCALE_8192:  [14, "Running, CLK/8192"]
      PRESCALE_16384: [15, "Running, CLK/16384"]

_modify:
  DT1A:
    description: "Dead Time Value Register A"
  DT1B:
    description: "Dead Time Value Register B"
  OCR1A:
    description: "Output Compare Register A"
  OCR1B:
    description: "Output Compare Register B"
  OCR1C:
    description: "Output Compare Register C"
  TCNT?:
    access: read-write

GTCCR:
  _modify:
    FOC??:
      access: write-only

DTPS:
  DTPS:
    _replace_enum:
      DIRECT: [0, "No Prescaling"]
      PRESCALE_2: [1, "Division factor 2"]
      PRESCALE_4: [2, "Division factor 4"]
      PRESCALE_8: [3, "Division factor 8"]
Do not follow this link