I have to interface a uc to a ADF7020-1 and I want use adf7020-1 as master and uc as slave in 3-wire spi mode. adf7020-1 have txrxdata that interfacing with uc(it has mosi and miso pins). how did connect 3-wire SPI into uc?
do need isolate mosi and miso pins with diod?
Can i Short MISO and MOSI?
please help me
thanks
short miso and mosi to interface with uc
Best Answer
The ADF7020-1 has two digital interfaces.
DATA CLK
andDATA I/O
are for data to be sent or received on the RF link (0.15 to 200 kbps). This isn't an SPI interface. You need to connect this to something that can continuously stream data at the rate of your RF link. If you are connecting this to a micro, you probably want these pins connected to GPIOs, andDATA CLK
triggering a high-priority interrupt (based on a very quick look at the datasheet).On page 26 in the datasheet, they say there are drivers available for a couple of ADI microcontrollers. Even if you aren't using these devices, it might be worth looking at the code they provide for hints on how to program your micro.
SLE
,SCLK
,SDATA
, andSREAD
are an SPI interface (as far as I can tell from a quick read of the datasheet).SDATA
would connect toMOSI
andSREAD
connects toMISO
. I don't see any reason you should want to connectMOSI
andMISO
to each other.