LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver for the open SPI port with the BF548 with an ADC7476A?

I am trying to use the Blackfin 548 SPI port with the ADC7476A SPI Stamp board.

 

I tried the provided ADC7476A LabVIEW drivers, but received linking errors.  

Last two lines read:

 

[Error li1021]  The following symbols referenced in processor 'p0' could not be resolved:

        'lv_adi_AD7476A_Control [_lv_adi_AD7476A_Control]' referenced from '.\BF_AD7476A_Control.doj'

        'lv_adi_AD7476A_Open [_lv_adi_AD7476A_Open]' referenced from '.\BF_AD7476A_Open.doj'

 

I also tried to build up an example is VisualC++ per the document "adi_spi_dma.pdf", but the compiler complained that this chip was not supported with this device.  

 

I did also read that the touch screen display and the Serial Flash memory are shared devices on the bus with the open SPI connection.  The Visual DSP help for the SPI bus states that SPI flag pin for EZ-Extender board interface that the SPI0SEL3 flag pin should be set becuase SPI0SEL1 and SPI0SEL2 are dedicated for the serial flash and touchscreen controller, respectively.

 

So my question to the experts are, "Is it possible to use the BF548 with the AD7476A?", and if I can not, is there a SPI or SPORT ADC that has drivers that can be implemented on this board?  Thanks...

0 Kudos
Message 1 of 4
(6,598 Views)

Hello,

 

The source file may give a good indication:

C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\lib\src\drivers\adc\adi_ad7476a.c

 

#ifndef __ADSP_BRAEMAR__
#error "AD7476A driver is not available for the current processor"
#endif

 

What this seems to mean is that if you're not using a "Braemar" processor (codename for a certain kind of Blackfin chip), then the driver is not supported. I believe that the Braemar processors are basically the 533 and 537s.

 

Have a great day!

Kameralina

0 Kudos
Message 2 of 4
(6,562 Views)
Thanks for the reply.  So, do you think I could use the SPI port with general SPI code (I would have to write) on the BF548 to write and read data to a different Analog to Digital Converter?  Basically I don't want to go down a road that the BF548 EZ can not support.
0 Kudos
Message 3 of 4
(6,555 Views)

Hello Joe,

 

To answer your question, it is possible to use the generic SPI VI’s to read a SPI based ADC. It will take extra programming without a driver but it is possible.

You would have to write the spi code, which means that you would have to refer to the adi system services driver docs.

 

Have a great afternoon.

Kameralina

0 Kudos
Message 4 of 4
(6,506 Views)