First of all, thank you for taking time to read my post.
My team is trying to design a EMG system with 16 channels. We try to use multiple ads1298 (possibly 4) as the adcs. The MCU we choose is a PIC24f 44pin. We have some issues that would like some helps from the forum:
1. We are planning to use bipolar configuration with +-2.5V power supply, 4kHz sampling rate for each channel. What should i use for Vref+ and Vref- ? (I am still new to how adc works). I read somewhere that Vref+ is the max voltage that the adc can convert, does that mean that we set Vref+ = +2.5V?, how about Vref-. Also I read that Vref = Vref+ - Vref- = dynamic range?
2. Since the MCU will be communication with multiple ads1298. The adcs need to be connected to spi through either cascade or daisy-chain configuration. Since we will not be able to control settings of each adc device in daisy-chain configuration, we decided to use the cascade configuration. Now the main concern is that if we will be able to make sure there will be no sample loss due to MCU communicating with each device in sequence. (for example, if the MCU is getting data from device 4, will the data in device 1 be replaced by new samples since the MCU can not talk to all 4 devices simultaneously?)
3. Trough some research, I also found out that DMA can be used to smooth out data throughput in MCU. So I am wondering if I should use DMA with SPI to alleviate problem 2. (I am also new with DMA, never used it before.)
4. The data collected from adcs will than be processed (or just leave it raw), then send to MatLab in PC through UART. So another question is that if I should use DMA with UART as well (or just with SPI) to make data transition more smooth.
I would really appreciate it if any one can help me with these questions.
Thank you