You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/cheat-sheet/cheat-sheet.md
+53-9Lines changed: 53 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,16 @@ value = analogRead(pin, value);
132
132
133
133
The reference voltage of these pins is 3.3V.
134
134
135
+
### OPAMP Pins
136
+
137
+
The **RA4M1** has an internal OPAMP that is exposed on the **UNO R4 WiFi** as follows:
138
+
139
+
| Pin | OPAMP |
140
+
| --- | --------- |
141
+
| A1 | OPAMP + |
142
+
| A2 | OPAMP - |
143
+
| A3 | OPAMP OUT |
144
+
135
145
#### Additional PWM Pins
136
146
137
147
The following pins are PWM capable but may interfer with other functionalities of the UNO R4 WiFi board. When writing library functions, please do not use this as they are officially supported PWM pins.
@@ -196,9 +206,9 @@ You may use them as analog output pins with the function:
196
206
analogWrite(pin, value);
197
207
```
198
208
199
-
###DAC Pin
209
+
## DAC
200
210
201
-
The **UNO R4 WiFi** also has a DAC pin (A0) that can act as genuine analog output pin which means it's even more capable than PWM pins.
211
+
The **UNO R4 WiFi** also has a DAC with up to 12-bit resolution, that can act as genuine analog output pin which means it's even more capable than PWM pins.
202
212
203
213
```arduino
204
214
analogWrite(pin, value);
@@ -214,15 +224,49 @@ However you may change this write resolution if you need to, to up to 12-bits, a
214
224
analogWriteResolution(12);
215
225
```
216
226
217
-
### OPAMP Pins
227
+
##RTC
218
228
219
-
The **RA4M1** has an internal OPAMP that is exposed on the **UNO R4 WiFi** as follows:
229
+
A real-time clock (RTC) is used to measure the time, and is useful in any time-tracking applications.
220
230
221
-
| Pin | OPAMP |
222
-
| --- | --------- |
223
-
| A1 | OPAMP + |
224
-
| A2 | OPAMP - |
225
-
| A3 | OPAMP OUT |
231
+
Below is a minimal example that shows how to obtain the date and time from the RTC:
0 commit comments