Hello,
perhaps this is a question you will laugh, but I work with the Arduino the first time and I do not have big knowledge.
I want to connect the Arduino board to the ddc110. The Attach shows the Datasheet.
Now I must sent a 12-bit word to the ddc. (page 21)
How can I do this?
Can I create an array, for example like this: int numbers [12];
Then I read every figure, like this: numbers[0]=Serial.read() and this for ervery figure.
Or is there an other posibility?
I hope you can help me.
ddc101.pdf (260 KB)
Store the 12 bits in an integer, not an array and use bit operators to shift them out or in.
Basically the the DDC101 has a data line and a clock line. If you send something, you set up the data line with the next bit, the toggle the clock line to tell it that the data is ready. Repeat 12 times to send 12 bits.
Look at Figure 5 and 6 on page 8 in the document you attached, those are the important ones to understand.
If you need to implement this as a first project, things can be very confusing. To get some idea, look at the shift out and shift in tutorials to understand how it works. It's basically the same technique.
Korman