Hi there,
i have two AFE4490 sharing one SPI bus.
Everything works well. I have to enable DIAGOUT Tristate in one so i can read the other.
I get the ADC values with no problem.
Now i want to use DMA on the MSP432 to write and read to the AFE4490.
Would it work if i send multiple Write and Read on to the AFE4490 ? On the Datasheet it only says Write two times and read one.
Becouse i have to Enable/Disable DIGOUT Tristate some how, so the SPI Bus wont be Loaded while reading the oposite IC.
First i select the correct Chip Select(CS) for the AFE4490, than i enable DMA to send data to SPI Buffer.
When DMA receive Bytes are completed i get an Interrupt and i disable Chip Select(CS).
Here is my DMA send Buffer:
uint8_t AFE4490_DMA_sendBuffer[28] = { 0x00, 0x00, 0x00, 0x00, //Disable Read (WRITE)
0x23, 0x04, 0x00, 0x00, //Tristate Disable (WRITE)
0x00, 0x00, 0x00, 0x01, //Enable Read (WRITE)
0x37, 0x00, 0x00, 0x00, //Read LED1-AMB1 (READ)
0x00, 0x00, 0x00, 0x00, //Disable Read (WRITE)
0x23, 0x04, 0x04, 0x00, //Tristate Enable (WRITE)
0x00, 0x00, 0x00, 0x01, //Enable Read (WRITE)
};