summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Geldenhuis <andre@team9.99.org.nz>2012-04-12 00:27:33 +1200
committerAndre Geldenhuis <andre@team9.99.org.nz>2012-04-12 00:27:33 +1200
commit9d11920c8171202cdd3962afd68e391258cd9a01 (patch)
tree9ae6c35fee8ed509e032dd27beb350607fd8e353
parent5fa265c67552e2e12c9bae24ad39f115b3a16355 (diff)
downloadDDS-master.tar.gz
DDS-master.tar.bz2
DDS-master.zip
removed the port7 timingHEADmaster
-rw-r--r--DDS.cpp4
-rw-r--r--genwave.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/DDS.cpp b/DDS.cpp
index 2ab3ab4..731e2dd 100644
--- a/DDS.cpp
+++ b/DDS.cpp
@@ -138,7 +138,7 @@ void DDS::SetDDSTimers(byte enableCom){
// runtime : 8 microseconds ( inclusive push and pop)
ISR(TIMER1_OVF_vect) {
- enableT(PORTD,7); // Test / set PORTD,7 high to observe timing with a oscope
+ //enableT(PORTD,7); // Test / set PORTD,7 high to observe timing with a oscope
phaccu=phaccu+tword_m; // soft DDS, phase accu with 32 bits
icnt=phaccu >> truncval; // use upper 8 bits for phase accu as frequency information
@@ -161,5 +161,5 @@ ISR(TIMER1_OVF_vect) {
icnt1=0;
}
- disableT(PORTD,7); // reset PORTD,7
+// disableT(PORTD,7); // reset PORTD,7
}
diff --git a/genwave.py b/genwave.py
index 95fc01a..96ba0c1 100644
--- a/genwave.py
+++ b/genwave.py
@@ -1,7 +1,7 @@
import numpy as np
import matplotlib.pyplot as plt
-freespace=24000 #the amount of flash sapce available for the lookuptable
+freespace=24000*4 #the amount of flash sapce available for the lookuptable
elementsize=8 #size of each element in the wave table in bits, probabably 8, 16 or 32 bits
phaccu_len=32
@@ -52,7 +52,7 @@ f=open(fileout,'w')
f.write("#ifndef wavetable_h\n#define wavetable_h\n")
f.write("// table of {} sine values of {} bit resolution\n\n".format(tablelength,elementsize))
f.write("const char truncval = {};\n".format(truncval))
-f.write("PROGMEM prog_prog_uint16_t sine256[] = {\n")
+f.write("PROGMEM prog_uint16_t sine256[] = {\n")
widthcounter=0