Fast SPI-based serial interface to AD9850 clock generator. Has same interface as (bit-banging based) AD9850 library, but more than x100 faster in frequency update speed. Can sweep 1KHz to 30MHz in 1KHz step in a few seconds.

Files at this revision

API Documentation at this revision

Comitter:
Taisuke Yamada
Date:
Mon Jan 13 23:20:58 2020 +0900
Branch:
switch-to-cmsis-bitops
Parent:
5:bf9087d1671b
Commit message:
Minor macro update

Changed in this revision

AD9850SPI.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AD9850SPI.cpp	Fri Jan 10 10:24:50 2020 +0900
+++ b/AD9850SPI.cpp	Mon Jan 13 23:20:58 2020 +0900
@@ -12,7 +12,7 @@
 #endif
 
 #ifndef UINT32_MAX
-#define UINT32_MAX -1U
+#define UINT32_MAX ((uint32_t)-1)
 #endif
 
 #define UINT5_MAX 31
@@ -140,4 +140,4 @@
     _spi.write(buffer, sizeof(buffer), NULL, 0);
     _fq_ud = 1; wait_us(1);
     _fq_ud = 0; wait_us(1);
-}
\ No newline at end of file
+}