Skip to content

artsi0m/lab1_segment_display

Repository files navigation

lab 01: segment display

Second lab that I did in hackespace.

Assembly project created in Atmel Studio and flashed on Atmega16 on Pinboard2 Rev 2. It used one of the atmega timers, and port d to supply data into 7seg display.

Building this lab on OpenBSD

Started with 8Mhz frequency for MCU and switched to 1Mhz

Table of MCU frequency, OCR1A value and fusebits for avrdude

OCR1A — output control register for timer counter 1.

freqdechexfusebits (xHL)
8 Mhz312500x7A120xE4D9
2 Mhz78130x1E850xE2D9
1 Mhz39070x0C190xE1D9

How to calculate:

  1. 256 / freq = x
  2. 1 / x = res
  3. Round and convert to hex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published