Revision | Description |
---|---|
1.0 |
|
1.1 |
|
1.2 |
|
# install build tools
sudo apt-get install binutils gcc-avr avr-libc uisp avrdude flex byacc bison
Execute the following commands in the software-design
folder,
# Windows 10
cmake --preset default
cmake --build . --preset default
# Ubuntu
cmake --preset default
cmake --build --preset default
# Windows 10
cmake --preset avrispii
cmake --build . --preset avrispii
# Ubuntu
cmake --preset avrispii
cmake --build --preset avrispii
After building the default
preset the following targets will be made available in the generated makefile,
# flash command for a simple blink program
make flash-blink-sync
make disassemble-blink-sync
# enables the use of an external 16MHz clock source
make fuse
Microcontroller | D0 | D1 | D2 | D3 | D4 | D6 | D7 | C0 | C1 | C2 | C3 |
---|---|---|---|---|---|---|---|---|---|---|---|
7-segment | F | C | A | G | B | E | DEC | Digit 1 | Digit 2 | Digit 3 | Digit 4 |
Value | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | HEX |
---|---|---|---|---|---|---|---|---|---|
0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0x88 |
1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 0xED |
2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0x83 |
3 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0xC1 |
4 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0xE4 |
5 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0xD0 |
6 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0x90 |
7 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0xE9 |
8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0x80 |
9 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0xE0 |
Two active high LEDs located on pins B1 and B2 of the microcontroller.
A 50k linear potentiometer connected to pin C4. The potentiometer has two 1K resistors in series for current limiting & protection. It is expected that the analog readout on the potentiometer will never reach GND or VCC (but will come close).
The NE555 chip feeds into the input capture pin (B0) of the microcontroller. The output frequency ranges from 100Hz~1000Hz by setting the individual DIP switches.
Top | Bottom |
---|---|
Top | Bottom |
---|---|
Top | Bottom |
---|---|