avr-assembly-play/7_segment_display
lucic71 10f12f31cd Added readme 2020-06-06 14:00:52 +03:00
..
.gdbinit Managed to display the numbers and fixed a bug in PIN d 2020-06-05 23:28:24 +03:00
7seg-pinout-annotated_1500.jpg implemented boolean functions for each pin 2020-06-04 21:27:42 +03:00
Makefile Implemented signal a, wrote Makefile and some gdb config 2020-06-03 20:59:43 +03:00
README.md Added readme 2020-06-06 14:00:52 +03:00
segment.s Added some comments in the undocumented parts and deleted some unuseful instructions 2020-06-06 13:41:56 +03:00

README.md

7 SEGMENT DISPLAY

segment.s implements the logic behind displaying numbers between 0 and 9 on a 7 segment display. The PIN configuration is the following:

  • a - DIGITAL PIN 0
  • b - DIGITAL PIN 1
  • c - DIGITAL PIN 2
  • d - DIGITAL PIN 3
  • e - DIGITAL PIN 4
  • f - DIGITAL PIN 5
  • d - DIGITAL PIN 6

All these PINs are connected on PORTD, so we need to keep that in mind when writing our output to the correct PORT.

The boolean formulas used to configure the PINs are calcualted using Karnaugh Diagrams.

As a final word, don't forget to add resistors in series with each display PIN, on the breadboard, because I forgot to do so and I completely screwed a display.