This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import codecs | |
import csv | |
import itertools | |
import sys | |
country_codes = { | |
"AF": "AFGHANISTAN", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple controller for AD9850 modules | |
Uses serial protocol (refer to AD9850 datasheet what pins need to be pulled up/down | |
Uses library by Elecfreaks http://elecfreaks.com/store/download/datasheet/breakout/DDS/EF_AD9850_library.zip | |
(for use with chipkit delete that unnecessary line "#include <avr/pgmspace.h>" from .h file) | |
Fix the pin numbers used to communicate with module | |
Serial comms - 9600, NewLine (0x0A) denotes end of input, | |
f 10000 - set frequency | |
s 20 20000 10 1000 - sweep from frequency to frequency using this step size in that many milliseconds | |
o 10 10000 5 3000 - oscillating sweep from frequency to frequency and back using this step size in that many ms |