-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathatmega169pa.yaml
More file actions
77 lines (75 loc) · 2.5 KB
/
Copy pathatmega169pa.yaml
File metadata and controls
77 lines (75 loc) · 2.5 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
TC0:
TCCR?A:
_delete:
- "WGM??"
_add:
WGM00:
description: Waveform Generation Mode
bitOffset: 6
bitWidth: 1
access: read-write
WGM01:
description: Waveform Generation Mode
bitOffset: 3
bitWidth: 1
access: read-write
_modify:
COM?A:
description: "Compare Output A Mode"
_write_constraint: enum
FOC??:
access: write-only
COM??:
_replace_enum:
DISCONNECTED: [0, "Normal port operation, OCix disconnected"]
MATCH_TOGGLE: [1, "Toggle OCix on Compare Match (Might depend on WGM)"]
MATCH_CLEAR: [2, "Clear OCix on Compare Match (If PWM is enabled, OCix is set at TOP)"]
MATCH_SET: [3, "Set OCix on Compare Match (If PWM is enabled, OCix is cleared at TOP)"]
CS?:
_replace_enum:
NO_CLOCK: [0, "No clock source (Timer/Counter stopped)"]
DIRECT: [1, "Running, No Prescaling"]
PRESCALE_8: [2, "Running, CLK/8"]
PRESCALE_64: [3, "Running, CLK/64"]
PRESCALE_256: [4, "Running, CLK/256"]
PRESCALE_1024: [5, "Running, CLK/1024"]
EXT_FALLING: [6, "Running, ExtClk Tx Falling Edge"]
EXT_RISING: [7, "Running, ExtClk Tx Rising Edge"]
TC1:
_include:
- "dev/16bit.yaml"
TC2:
TCCR?A:
_delete:
- "WGM??"
_add:
WGM20:
description: Waveform Generation Mode
bitOffset: 6
bitWidth: 1
access: read-write
WGM21:
description: Waveform Generation Mode
bitOffset: 3
bitWidth: 1
access: read-write
_modify:
COM?A:
description: "Compare Output A Mode"
_write_constraint: enum
COM??:
_replace_enum:
DISCONNECTED: [0, "Normal port operation, OCix disconnected"]
MATCH_TOGGLE: [1, "Toggle OCix on Compare Match (Might depend on WGM)"]
MATCH_CLEAR: [2, "Clear OCix on Compare Match (If PWM is enabled, OCix is set at TOP)"]
MATCH_SET: [3, "Set OCix on Compare Match (If PWM is enabled, OCix is cleared at TOP)"]
CS?:
_replace_enum:
NO_CLOCK: [0, "No clock source (Timer/Counter stopped)"]
DIRECT: [1, "Running, No Prescaling"]
PRESCALE_8: [2, "Running, CLK/8"]
PRESCALE_32: [3, "Running, CLK/32"]
PRESCALE_64: [4, "Running, CLK/64"]
PRESCALE_128: [5, "Running, CLK/128"]
PRESCALE_256: [6, "Running, CLK/256"]
PRESCALE_1024: [7, "Running, CLK/1024"]