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.
Fork of AD9850 function generator SPI driver by
Diff: main.cpp
- Revision:
- 1:b0e6c82af2ef
- Parent:
- 0:b5fb7b3adfe2
- Child:
- 2:e9d2346ea1bb
--- a/main.cpp Sat Sep 28 04:32:20 2013 +0000
+++ b/main.cpp Sat Sep 28 06:44:57 2013 +0000
@@ -70,14 +70,14 @@
while(1)
{
- while (targetFrq<0x28F5C28F) // 20MHz
+ while (targetFrq<0x28F5C28F) // up to 20MHz
{
- writeSPI(reverseBits(targetFrq),0);
+ writeSPI(reverseBits(targetFrq),0); // Don't use phase so set to zero.
targetFrq=targetFrq+increment;
//wait_ms(100);
}
- while (targetFrq>0x147AE148) // 10MHz
+ while (targetFrq>0x147AE148) // down to 10MHz
{
writeSPI(reverseBits(targetFrq),0);
targetFrq=targetFrq-increment;
