summaryrefslogtreecommitdiffstats
path: root/_archive
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-11-02 11:45:32 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-11-02 11:45:32 +0800
commit5c9f61600f3a81de6d1750b07dd609e19af4212f (patch)
tree9f85e275a9e3ffb6c0261bf13b0ce43dabe3c21a /_archive
parent6c9901d88be67a1704d60c6f7fc1745b3c5817ec (diff)
downloadwww-5c9f61600f3a81de6d1750b07dd609e19af4212f.tar.gz
Fix typography in Arduino Uno post.
Diffstat (limited to '_archive')
-rw-r--r--_archive/arduino-due.md4
-rw-r--r--_archive/arduino-uno.md34
2 files changed, 18 insertions, 20 deletions
diff --git a/_archive/arduino-due.md b/_archive/arduino-due.md
index 89e3d7f..648bb4b 100644
--- a/_archive/arduino-due.md
+++ b/_archive/arduino-due.md
@@ -59,9 +59,7 @@ OpenOCD config file and a linker script.
```
$ openocd -f openocd-due.cfg
```
- 2. Open a telnet session and check that the GPNVM1 bit is set. Otherwise
- set it to 1:
-
+ 2. Open a telnet session and set the GPNVM1 bit to 1:
```
$ telnet localhost 4444
> halt
diff --git a/_archive/arduino-uno.md b/_archive/arduino-uno.md
index e750304..99e3985 100644
--- a/_archive/arduino-uno.md
+++ b/_archive/arduino-uno.md
@@ -5,10 +5,10 @@ author: Wickramage Don Sadeep Madurange
layout: post
---
-This post is a step-by-step guide for wiring up ATmega328P ICs to run at 5 V
-with a 16 MHz crystal and 3.3 V with an 8 MHz crystal. While the 5 V
-configuration is common, the 3.3 V configuration can be advantageous in
-low-power applications and when interfacing with parts that run at 3.3 V.
+This post is a step-by-step guide for wiring up ATmega328P ICs to run at 5V
+with a 16MHz crystal and 3.3V with an 8MHz crystal. While the 5V
+configuration is common, the 3.3V configuration can be advantageous in
+low-power applications and when interfacing with parts that run at 3.3V.
## 5V-16MHz configuration
@@ -27,40 +27,40 @@ The steps that follow refer to the following pinout.
</tr>
</table>
- 1. Connect pin 1 to 5 V via a 10 kΩ resistor.
- 2. Connect a 16 MHz crystal oscillator across pins 9 and 10.
- 3. Connect each pin of the crystal to ground via 22 pF capacitors.
- 4. Connect pins 7, 20, and 21 to 5 V.
+ 1. Connect pin 1 to 5V via a 10kΩ resistor.
+ 2. Connect a 16MHz crystal oscillator across pins 9 and 10.
+ 3. Connect each pin of the crystal to ground via 22pF capacitors.
+ 4. Connect pins 7, 20, and 21 to 5V.
5. Connect pins 8 and 22 to ground.
-In addition to the connections described above, it's a good idea to add 0.1 μF
+In addition to the connections described above, it's a good idea to add 0.1μF
decoupling capacitors between pins 7, 20, and 21 and ground.
[Here's](Makefile) a sample Makefile for avr-gcc and avrdude.
## 3.3V-8MHz configuration
The following steps use Arduino Uno as an ISP and Arduino utilities to program
-ATmega328P's bootloader and the fuses (e.g., BOD level) for a 3.3 V supply.
+ATmega328P's bootloader and the fuses (e.g., BOD level) for a 3.3V supply.
1. Upload the 'ArduinoISP' sketch to the Uno.
- 2. Wire up the ATmega328P as described in the previous section. Replace the 5 V
- supply with a 3.3 V supply and use an 8 MHz crystal instead of the 16 MHz
+ 2. Wire up the ATmega328P as described in the previous section. Replace the 5V
+ supply with a 3.3V supply and use an 8MHz crystal instead of the 16MHz
crystal.
3. Connect the SPI ports (SCK, MISO, and MOSI) of the two MCUs.
4. Connect Uno's SS pin to the IC's pin 1 (RESET).
- 5. The IC can be powered by the Arduino Uno's 5 V pin.
+ 5. The IC can be powered by the Arduino Uno's 5V pin.
6. Burn the bootloader to the ATmega328P:
- - Select 'ATmega328P (3.3 V, 8 MHz)' from Tools > Processor.
+ - Select 'ATmega328P (3.3V, 8MHz)' from Tools > Processor.
- Select 'Arduino as ISP' from Tools > Programmer.
- Select Tools > Burn Bootloader.
-The ATmega328P is now ready to run at 8 MHz with a 3.3 V power supply. You can
+The ATmega328P is now ready to run at 8MHz with a 3.3V power supply. You can
upload programs to the ATmega328P as you usually would using avrdude.
[Here's](3v3.Makefile) a sample Makefile with adjusted parameters (e.g., baud
-rate) for an 8 MHz clock.
+rate) for an 8MHz clock.
In both configurations, if you intend to use the ATmega328P's analog-to-digital
-converter with the internal 1.1 V or AV<sub>cc</sub> voltage as reference, do
+converter with the internal 1.1V or AV<sub>cc</sub> voltage as reference, do
not connect AREF (pin 21) to V<sub>cc</sub>. Refer to section 23.5.2 ADC
Voltage Reference in the datasheet for more information.