From 8685fb930a5aca917da6412f283b081ce1e6a896 Mon Sep 17 00:00:00 2001 From: Raoul Branten Date: Tue, 8 Jul 2025 12:19:15 +0200 Subject: [PATCH] Update --- README.md | 16 +++++++++++----- counter.hex => hex/counter.hex | 0 counter.asm => src/counter.asm | 0 3 files changed, 11 insertions(+), 5 deletions(-) rename counter.hex => hex/counter.hex (100%) rename counter.asm => src/counter.asm (100%) diff --git a/README.md b/README.md index 1f8b852..580645a 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ Hand held device with display to count button presses. It uses buttons to detect user input one +1 and one for -1. Made with of the shelf components. -For me this is a exploration in programming ASM assembly as I had never done this before. -Also the designing was interesting. +For me this is an exploration in programming ASM assembly as I had never done this before. +Also, the designing was interesting. ## Components ### The ATTiny microcontroller -As I had a `ATTiny26L` 8-bit microcontroller laying around I decided to use that. As it already has an onboard clock which is plenty +As I had a `ATTiny26L` 8-bit microcontroller lying around I decided to use that. As it already has an onboard clock which is plenty fast enough for this simple project it saved me from connection a XTAL. ``` @@ -64,7 +64,7 @@ o--|GND Q7S|--o ``` ### Something to read the number -A 7-segment display sporting 4 digits is used for outputting the number to the user. I used a `CL5642BH-30` as you guessed it already, was the one I had laying around. +A 7-segment display sporting 4 digits is used for outputting the number to the user. I used a `CL5642BH-30` as you guessed it already, was the one I had lying around. ``` CL5642BH-30 @@ -111,4 +111,10 @@ Something to mount it all on, for this perfboard was used. As I use a 9v battery a 5 volt regulator was used. 2 buttons to read the user input. A 3d printed case. -Supporting electronics like condensators and current resisters as pull-up/down and current limiting. +Supporting electronics like capacitors and current resisters as pull-up/down and current limiting. + +### Create hex file +`avra counter.asm` + +### Write to chip using UsbAsp +`sudo avrdude -c usbasp -F -p t26 -U flash:w:counter.hex:i` diff --git a/counter.hex b/hex/counter.hex similarity index 100% rename from counter.hex rename to hex/counter.hex diff --git a/counter.asm b/src/counter.asm similarity index 100% rename from counter.asm rename to src/counter.asm