-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathT85 reff
More file actions
135 lines (130 loc) · 8.55 KB
/
T85 reff
File metadata and controls
135 lines (130 loc) · 8.55 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
+---------------------ADCSRA--------------------+
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+-----------------------------------------------+
|ADEN |ADSC |ADATE|ADIF |ADIE |ADPS2|ADSP1|ADSP0|
+-----------------------------------------------+
| 1 | | | | | | | | ADC Enable
+-----------------------------------------------+
| | 1 | | | | | | | ADC Start Conversion
+-----------------------------------------------+
| | | 1 | | | | | | ADC Auto Trigger Enable, start a conversion on a positive edge of the selected trigger signal.
+-----------------------------------------------+
| | | | x | | | | | ADC Interrupt Flag
+-----------------------------------------------+
| | | | | 1 | | | | ADC Interrupt Enabl
+-----------------------------------------------+
+-----------------------------------------------+ ADC Prescaler Select Bits
| | | | | | 0 | 0 | 1 | Division Factor 2
+-----------------------------------------------+
| | | | | | 0 | 1 | 0 | Division Factor 4
+-----------------------------------------------+
| | | | | | ... | ... | ... | 8,16,32
+-----------------------------------------------+
| | | | | | 1 | 1 | 0 | Division Factor 64
+-----------------------------------------------+
| | | | | | 1 | 1 | 1 | Division Factor 128
+-----------------------------------------------+
+---------------------ADMUX---------------------+
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+-----------------------------------------------+
|REFS1|REFS0|ADLAR|REFS2|MUX3 |MUX2 |MUX1 |MUX0 |
+-----------------------------------------------+
| 0 | 0 | | | | | | | VCC used as Voltage Reference, disconnected from PB0 (AREF)
+-----------------------------------------------+
| 0 | 1 | | | | | | | External Voltage Reference at PB0 (AREF) pin, Internal Voltage Reference turned off
+-----------------------------------------------+
| 1 | 0 | | 0 | | | | | Internal 1.1V Voltage Reference
+-----------------------------------------------+
| 1 | 1 | | 0 | | | | | Reserved
+-----------------------------------------------+
| 1 | 0 | | 1 | | | | | Internal 2.56V Voltage Reference without external bypass capacitor, disconnected from PB0 (AREF)
+-----------------------------------------------+
| 1 | 1 | | 1 | | | | | Internal 2.56V Voltage Reference with external bypass capacitor at PB0 (AREF) pi
+-----------------------------------------------+
| | | 1 | | | | | | left adjust the result
+-----------------------------------------------+
| | | 0 | | | | | | Right adjust the result
+-----------------------------------------------+
+-----------------------------------------------+ Analog Channel and Gain Selection Bits
| | | | | 0 | 0 | 0 | 0 | Single Ended Input ADC0 (PB5)
+-----------------------------------------------+
| | | | | 0 | 0 | 0 | 1 | Single Ended Input ADC1 (PB2)
+-----------------------------------------------+
| | | | | 0 | 0 | 1 | 0 | Single Ended Input ADC2 (PB4)
+-----------------------------------------------+
| | | | | 0 | 0 | 1 | 1 | Single Ended Input ADC3 (PB3)
+-----------------------------------------------+
| | | | | 0 | 1 | 0 | | Differential Input Positive ADC2 (PB4) ,Negative ADC2 (PB4)
+-----------------------------------------------+
| | | | | | 1 | 1 | | Differential Input Positive ADC2 (PB4) ,Negative ADC3 (PB3)
+-----------------------------------------------+
| | | | | 1 | 0 | 0 | | Differential Input Positive ADC0 (PB5) ,Negative ADC0 (PB5)
+-----------------------------------------------+
| | | | 1 | 1 | 0 | 0 | | Differential Input Positive ADC0 (PB5) ,Negative ADC1 (PB2)
+-----------------------------------------------+
| | | | | | | | 0 | *Differential Inputs Gain x1
+-----------------------------------------------+
| | | | | | | | 1 | *Differential Inputs Gain x20
+-----------------------------------------------+
| | | | | 1 | 1 | 0 | 0 | VSG
+-----------------------------------------------+
| | | | | 1 | 1 | 0 | 1 | GND
+-----------------------------------------------+
| | | | | 1 | 1 | 1 | x | N/A
+-----------------------------------------------+
| | | | | 1 | 1 | 1 | 1 | ADC4 For temperature sensor
+-----------------------------------------------+
+---------------------TCCR1-----------------------+
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+-------------------------------------------------+
|CTC1 |PWM1A|COM1A1|COM1A0|CS13 |CS12 |CS11 |CS10 |
+-------------------------------------------------+
| 1 | | | | | | | | Clear Timer/Counter on Compare Match
+-------------------------------------------------+
| | 1 | | | | | | | Pulse Width Modulator A Enabl
+-------------------------------------------------+
+-------------------------------------------------+ Comparator A Output Mod
| | | 0 | 0 | | | | | Timer/Counter Comparator A disconnected from output pin OC1A
+-------------------------------------------------+
| | | 0 | 1 | | | | | Toggle the OC1A output line
+-------------------------------------------------+
| | | 1 | 0 | | | | | Clear the OC1A output line
+-------------------------------------------------+
| | | 1 | 1 | | | | | Set the OC1A output lin
+-------------------------------------------------+
+-------------------------------------------------+ Clock Select Bits
| | | | | 0 | 0 | 0 | 0 | Clocking Mode T/C1 stoppe
+-------------------------------------------------+
| | | | | 0 | 0 | 0 | 1 | Clocking Mode CK
+-------------------------------------------------+
| | | | | 0 | 0 | 1 | 0 | Clocking Mode CK/2
+-------------------------------------------------+
| | | | | 0 | 0 | 1 | 1 | Clocking Mode CK/4
+-------------------------------------------------+
| | | | | ... | ... | ... | ... | CK/8, CK/16, CK/32, CK/64, CK/128, CK/256, CK/512, CK/1024, CK/2048
+-------------------------------------------------+
| | | | | 1 | 1 | 0 | 1 | Clocking Mode CK/4096
+-------------------------------------------------+
| | | | | 1 | 1 | 1 | 0 | Clocking Mode CK/8192
+-------------------------------------------------+
| | | | | 1 | 1 | 1 | 1 | Clocking Mode CK/16384
+-------------------------------------------------+
+---------------------TIFR----------------------+
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+-----------------------------------------------+
| - |OCF1A|OCF1B|OCFOA|OCF0B|TOV1 |TOV0 | - |
+-----------------------------------------------+
| - | | | | | | | - | Reserved Bit
+-----------------------------------------------+
| | | | x | | | | | Output Compa re Flag 0A
+-----------------------------------------------+
| | | | | x | | | | Output Compare Flag 0B
+-----------------------------------------------+
| | | | | | | x | | Timer/Counter0 Overflow Flag
+-----------------------------------------------+
| | x | | | | | | | Output Compare Flag 1A
+-----------------------------------------------+
| | | x | | | | | | Output Compare Flag 1B
+-----------------------------------------------+
| | | | | | x | | | Timer/Counter1 overflow interrupt flag
+-----------------------------------------------+