05-26-2011 04:30 PM
Im trying to get analog data from amp and ADC with microblaze and SPI core.
I need some help with de C code to get 2 channels data.
05-26-2011 04:37 PM
Your code looks pretty good, so far.
Have you taken a look at the reference design code for this board?
-- Bob Elkind
06-06-2011 02:15 PM - last edited on 05-03-2012 03:43 AM by chughes
I have read the entire manual of your Spartan 3e Starter Kit, especially the part ofADC.
I successfully assigned pins for communication with the LTC6912-1 AMP and theADC LTC1407A-1 in the UCF file.
You've added a IPCORE general purpose I / O. To manage ADC_COV pin, because it has a peculiarity.
I have developed a code for handling input and output SPI.
1. Configure the SPI IPCORE as a teacher. You select the phase 1. And enable bitSPE. Disable the LOOPBACK MODE bit. Established at 1 bits reset the RX and TXFIFOs.
2. Wrote the SPIDTR registry values, but when hardware debug mode are no values in the memory register.
What could be the problem?
I am working with SPI v 2.01a on SDK11.1.