From 21d2c730a29ad37fa901706251eeba73de87702d Mon Sep 17 00:00:00 2001 From: user Date: Tue, 4 Jul 2023 18:22:33 -0500 Subject: [PATCH] Initial commit Contains debug program that reads from the ADC and writes to PORTD, along with a skeleton of comments for future additions. --- .gitignore | 3 + build.sh | 3 + clean.sh | 5 + m328Pdef.inc | 977 +++++++++++++++++++++++++++++++++++++++++++++++++++ program.sh | 9 + siggen.asm | 381 ++++++++++++++++++++ 6 files changed, 1378 insertions(+) create mode 100644 .gitignore create mode 100755 build.sh create mode 100755 clean.sh create mode 100644 m328Pdef.inc create mode 100755 program.sh create mode 100644 siggen.asm diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660312 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.cof +*.hex +*.obj diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..41bfbaf --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +avra siggen.asm diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..21be122 --- /dev/null +++ b/clean.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +rm -f *.hex +rm -f *.cof +rm -f *.obj diff --git a/m328Pdef.inc b/m328Pdef.inc new file mode 100644 index 0000000..1ff56b8 --- /dev/null +++ b/m328Pdef.inc @@ -0,0 +1,977 @@ +;***** THIS IS A MACHINE GENERATED FILE - DO NOT EDIT ******************** +;***** Created: 2008-04-10 09:29 ******* Source: ATmega328P.xml ********** +;************************************************************************* +;* A P P L I C A T I O N N O T E F O R T H E A V R F A M I L Y +;* +;* Number : AVR000 +;* File Name : "m328Pdef.inc" +;* Title : Register/Bit Definitions for the ATmega328P +;* Date : 2008-04-10 +;* Version : 2.25 +;* Support E-mail : avr@atmel.com +;* Target MCU : ATmega328P +;* +;* DESCRIPTION +;* When including this file in the assembly program file, all I/O register +;* names and I/O register bit names appearing in the data book can be used. +;* In addition, the six registers forming the three data pointers X, Y and +;* Z have been assigned names XL - ZH. Highest RAM address for Internal +;* SRAM is also defined +;* +;* The Register names are represented by their hexadecimal address. +;* +;* The Register Bit names are represented by their bit number (0-7). +;* +;* Please observe the difference in using the bit names with instructions +;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc" +;* (skip if bit in register set/cleared). The following example illustrates +;* this: +;* +;* in r16,PORTB ;read PORTB latch +;* sbr r16,(1<