I am trying to control a AD9851 DDS [1] with a MicroPython board. Now, is there a function for sending byte data via a data and clock pin, same as the following Arduino function:
https://www.arduino.cc/en/Reference/ShiftOut
?
Basically, what I need to do is sending a 40 bit value to a chip using a clock and a data line.
On an Arduino, this can be neatly done like so (taken from [2]):
Code: Select all
digitalWrite(LOAD, LOW);
shiftOut(DATA, CLOCK, LSBFIRST, tuning_word);
shiftOut(DATA, CLOCK, LSBFIRST, tuning_word >> 8);
shiftOut(DATA, CLOCK, LSBFIRST, tuning_word >> 16);
shiftOut(DATA, CLOCK, LSBFIRST, tuning_word >> 24);
shiftOut(DATA, CLOCK, LSBFIRST, 0x09);
digitalWrite(LOAD, HIGH);
Thanks for your hints!
Martin
[1] http://www.analog.com/media/en/technica ... AD9851.pdf
[2] http://blog.marxy.org/2008/05/controlli ... 2285642730