Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of TAU_ZOOLOG_Chirp_Generator by
Diff: main.cpp
- Revision:
- 25:060831b7aadd
- Parent:
- 23:6dbd2d20697c
- Child:
- 26:c07bf3beb241
--- a/main.cpp Wed Apr 25 08:54:23 2018 +0000
+++ b/main.cpp Sun Jul 15 09:10:00 2018 +0000
@@ -15,9 +15,9 @@
*/
#include "mbed.h"
#include "signal.h"
-#define PULSE_RATE 2.0f // in HZ
+#define PULSE_RATE 10.0f // in HZ
#define FREQ_POT_EN // Potentiometer to set PULSE Rate
-#define MIN_FREQ 0.1f //(HZ)
+#define MIN_FREQ 0.5f //(HZ)
#define SAMPLE_RATE_375_KHZ // basic sample rate is 1Mhz, this mode adds delay in between sample to meet the audio sample rate
float pulseRate=PULSE_RATE;
@@ -97,13 +97,13 @@
#ifdef SAMPLE_RATE_375_KHZ
// generate delay
- for (int jj=0; jj<69; jj++) {
+ for (int jj=0; jj<62; jj++) {
NOP();
}
// micro nops :)
- NOP();
- NOP();
- NOP();
+ //NOP();
+ //NOP();
+ //NOP();
//NOP();
//NOP();
#endif
