Hi,
We are developing a project by using AFE031 with Renesas MCU. I was facing problem in SPI communication. Once I write a register in AFE031 and again read from the register I couldn't get that expected write data. I receive the data as 255.
I was referred in many topics but my problem was not solved.
In our using MCU as can only transfer 8 bit data. So I Send the data as Split into two 8 bit data.
SPI configured as,
Mode: 1,1
Baudrate:9600 bps
Transfer direction :MSB
/*----------------------------
SPI WRITE
----------------------------/*
test_send_buf[1]=0x32; //Write Value
test_send_buf[0]=AFE_WRITE | AFE_GAIN_SELECT; // 0x00 | 0x02
/*----------------------------
SPI READ
----------------------------/*
test_send_buf[1]=0x00; //random Value for read
test_send_buf[0]=AFE_READ | AFE_GAIN_SELECT; // 0x80 | 0x02
Is anything I want to change in above config ?
Is necessary to change chip select (CS) pin state High to low in after every 16 bit data transfer complete ?
If there is any example application note is available with access registers please give us.
Thanks,