summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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