hello. i am new-be...dsp.
i wonder "example_280xSpi_ffdlb_int.c" code.
function void spi_fifo_init()
"SpibRegs.SPISTS.all=0X0000;" -> I wonder if any changes occur.
i think it would not mean anything.
let me know who...
thanks...
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.
hello. i am new-be...dsp.
i wonder "example_280xSpi_ffdlb_int.c" code.
function void spi_fifo_init()
"SpibRegs.SPISTS.all=0X0000;" -> I wonder if any changes occur.
i think it would not mean anything.
let me know who...
thanks...
thanks for your reply.
Of course I am well aware of that information.
I wonder why the example code written for No effect ?
Regards...
I wonder why the example code written for No effect ?
If you check the initialization, they're just trying to initialize SPISTS to default 0 values (disabling the receiver overrun flag) Also the developer wants the user to know what he's doing, even though that step is not required :)
void spi_fifo_init()
{
// Initialize SPI FIFO registers
SpiaRegs.SPICCR.bit.SPISWRESET=0; // Reset SPI
SpiaRegs.SPICCR.all=0x001F; //16-bit character, Loopback mode
SpiaRegs.SPICTL.all=0x0017; //Interrupt enabled, Master/Slave XMIT enabled
SpiaRegs.SPISTS.all=0x0000;
SpiaRegs.SPIBRR=0x0063; // Baud rate
SpiaRegs.SPIFFTX.all=0xC028; // Enable FIFO's, set TX FIFO level to 8
SpiaRegs.SPIFFRX.all=0x0028; // Set RX FIFO level to 8
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;
}
Regards,
Gautam