Well, we want to have an SPI interface for controlling DAC, (maybe ADC), PGA, clock…
The problems is that not allof these device allow chaining… so we need one CS for each chip (on the ti eval boad for dac they use one Dout for each chip too… but as they are in High Z mode when CS is high, I think there’s no problem to use the same dout for all chip).
SO how is the best to do this? Use one pic pin per CS, or use an adress bus? the problem in both case is how to wire stuff. It’s easy to do yes, but as we want to keep it modular, how to setup adress for module (chip) easily?
I think in any case using adress decoding stuff is the key (instead of one pin per chip). But where to put those? on the core with the pic, or on the module… that’s the question.
Maybe there’s an other solution, a software one.
I know this is not really MIOS programming, but as I want to use MIOS to control it, what I can and what I can’t do (I don’t use analog input so I can use them as output for adress/CS I think).
I though about this for about 2 days now and I’m bit lost… don’t know what’s the best way…
thanks