This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069 SPI Interrupt

Other Parts Discussed in Thread: TMS320F28069

Hi,

       I am doing SPI_Loopback_Interrupt example code.It is working well but If I disabled the loopback RX interrupt was still generated.I have not connected SPISOMI and SPISIMO pins to any slave and also each other.then why should generated the RX Interrupt?

  • Sagar, this is some kind of configuration issue!

    Please check all your initialization steps.

    Regards,

    Gautam

  • Hi Gautam,

    In Initialization I am only disable the loopback mode.Also the SPISTEA pin is low for all time.It should be Toggle after 8bit clk.

    // Initialize SPI FIFO registers

    SpiaRegs.SPICCR.bit.SPISWRESET=0; // Reset SPI

    SpiaRegs.SPICCR.all = 0x0047; //8-bit character, Loopback mode disable ,CLK PHA Enable
    SpiaRegs.SPICTL.all = 0x001F; //Interrupt enabled, Master/Slave XMIT enabled
    SpiaRegs.SPISTS.all = 0x0000;
    SpiaRegs.SPIBRR = 0x0063; // Baud rate
    SpiaRegs.SPIFFTX.all = 0xC022; // Enable FIFO's, set TX FIFO level to 4
    SpiaRegs.SPIFFRX.all = 0x0022; // Set RX FIFO level to 4
    SpiaRegs.SPIFFCT.all = 0x00;
    SpiaRegs.SPIPRI.all = 0x0010;

    SpiaRegs.SPICCR.bit.SPISWRESET = 1; // Enable SPI

    SpiaRegs.SPIFFTX.bit.TXFIFO = 1;
    SpiaRegs.SPIFFRX.bit.RXFIFORESET = 1;

  • Hello,

    The SPI will receive data every time a transmission is made whether there is any "data" being sent to the pin or not.  Each time the clock is looking for received data it will shift in whatever value is on the SPI RX buffer.  So even though no data is being sent to the device, it is still shifting in a value and thinking it received something.  If you look at the SPIRXBUF it is probably 0x0 or 0xFFFFFFFF depending if the pin is low or high.

    Kris

  • hi kris,

          can you let me know does i have done the right configuration??

         Actually i want to interface mcp3208 with tms320f28069... Is it necessary to use ti make adc ic??