Hi everyone;
I have a problem. I'm using ADS7953 IC. The datas which I read manual mode or auto-1 mode are overshoot (e.g. for channel 8; between "1000 0000 0001 0011" - "1000 1111 0011 1001") I'm using spi protocol. Mcu name is concerto (F28M35Hx). And I'm using SPI-A module. Could you help me ?
My codes; (for manual mode)
void main()
{
Initialize();
spi_write(0x1000 | 0x0800 | 0x0400 | 0x0040 | 0x0000 | 0x0000);
for(i=0; i<50; i++) {} // CPUCLK 150MHz and SCLK 1700000 Hz
while(1)
{
spi_write(0x0000);
for(i=0; i<50; i++) {}
spi_read();
}
}
void spi_write(Uint16 data)
{
SpiaRegs.SPITXBUF = data;
}
void spi_read()
{
while (SpiaRegs.SPIFFRX.bit.RXFFST != 1) {}
receive_data = SpiaRegs.SPIRXBUF;
}