Hi all,
This is the first time I've ever played with any microcontroller, and I'm stuck. The goal is to take my processor (I have an ADuC7026 eval board) and expand it with two external chips. I want to interface both, a better set of DACs to it as well as a DDS chip. For these expansions, I made sure to choose chips that are SPI compatible. For now, the question is where do I go from here? Snooping around, at first, I thought I would have to daisy-chain these devices, but it seems like that would be harder to deal with in code. However, it seems like I would be able to use a GPIO pin as a second chip select allowing for two independent slave selects. Is this true? And how would I go about assigning this functionality to a GPIO pin? I'd really appreciate any advice. Thanks in advance.
-Larry
all the slave select input on each slave is looking for is a high signal
Slaves are usually active LOW, i.e. nCS0, nCS1, etc. See this: www.totalphase.com/.../ and/or: en.wikipedia.org/.../Serial_Peripheral_Interface_Bus For more, google: "SPI bus protocol".
Thanks. That sounds okay. But in any case, it's as simple as one line of code to select a slave, then transmit to it, and deselect it (by bringing that SS high?). I read through the links and that makes sense. But then I have another (related) question about that. My DAC chip has a 3-wire SPI interface. I get my clock in and DIN. However, I have my sync line (I assume that acts as my SS). However, it's a /sync line (as in sync-bar). What does this mean? Does this mean this chip is expecting a high signal? I believe the DDS I'm also putting on here denotes its pin by (non-bar) "FSYNC". Once my DAC chip comes in, and it's all soldered down, then I need to start figuring out the code side...
Ha, we'll see. Thanks.
If you see a signal named /reset or /select or whatever, that / signifies that the signal has inverted logic, i.e. that it is active low.
Okay! Thank you so much for your help. You guys are great. I'm sure I'll get stuck again when I have to actually install these chips. Thanks again.