Once the application code development is completed it is time to connect the
potentiometer to the ADC input pin available on ATtiny817 Xplained Pro and
program the device on ATtiny817 Xplained Pro.
Todo:
- Connect the potentiometer to the ADC
input pin on ATtiny817 Xplained Pro
- Connect ATtiny817 Xplained Pro to Atmel Studio
- Program the device on ATtiny817 Xplained Pro
- Connect the potentiometer to the
breadboard. Notice how the pins correspond to the letters/numbers on the breadboard.
- Connect the pins on the potentiometer to
the extension header of ATtiny817 Xplained Pro, as shown in Figure 1.
- Potmeter pin 1: Connect to the
GND pin on the kit.
- Potmeter pin 2: Connect to the
PB1 pin on the kit.
- Potmeter pin 3: Connect to the
VCC pin on the kit.
Figure 1. Connect Potentiometer to the
ATtiny817 Xplained Pro Kit
Info: A
potentiometer, also called a potmeter, is a three-terminal resistor with a sliding or
rotating contact that provides an adjustable voltage divider.
- Enable current measurement of the device by
placing the jumper on MEASURE for MCU, as shown in Figure 1.
- Disable current measurement of the I/O pins
by placing the jumper on BYPASS for I/O, as shown in Figure 1.
- Connect ATtiny817 Xplained Pro to the computer by using a Micro-USB cable, as shown in Figure 1.
Info: The ATtiny817 screen shows up.
- Program the device on ATtiny817 Xplained Pro by
- Open the Tool pane in project
properties by clicking No Tool, as shown in Figure 2.
Figure 2. Tool Button
- Choose EDBG as the Selected
debugger/programmer as shown in Figure 3.
Figure 3. Debugger Selection
- Program the device by clicking
Debug->Start Without Debugging or by using the shortcut
Ctrl+Alt+F5.
Info: Start Without Debugging will
build the project and program the device as long as there are no build
errors.
Tip: The
device can also be programmed by using the Device Programming menu, by clicking
Tools → Device Programming.
Result: Hardware
setup is completed and the application code is running on ATtiny817 Xplained Pro.