Hi All,
I'm pretty new at the LM chips, and I am trying to get the LM4F232H5QD to interface to a SPI ADC. I've been through many of the examples and by scoping my SSICk output, I can see the 16 pulses when I transmit something. And I'm trying to send data from LM chip to ADC (the input in AD7887 datasheet). The data I input are eight '0', and the data will send into ADC by CLK. However, when I use oscilloscope to see the Tx waveform, I can't see the eight '0'. The Tx waveform is no rules. I don't know if I may have something configured wrong?
The ADC i'm using is AD7887 datasheet available at
http://www.analog.com/static/imported-files/data_sheets/AD7887.pdf
This is the code i'm using
|
Code: int main(void) // display in LCD // show the initial data (16 bits) for(i=0;i<NUM_SSI_DATA;i++) // Configure the pin muxing for SSI3 functions on port H SSIEnable(SSI3_BASE); //GPIOPinWrite(GPIO_PORTD_BASE,GPIO_PIN_1,GPIO_PIN_1); // while(1) { return((HWREG(SSI3_BASE + SSI_O_SR) & SSI_SR_BSY) ? true : false); |
Any help would be greatly appreciated!
-Unis