The communication between AD chip and MCU is realized through data buffer
. Due to the high working speed of the AD chip and the relatively low working speed of the MCU, and the MCU often has multiple tasks, the working mode of reading data once the MCU converts AD can not be adopted, so it is necessary to add a data buffer between the AD chip and the MCU in order to temporarily store the data converted by AD. When the data amount reaches a certain depth, the data can be temporarily stored. It is then removed by the MCU. Data buffer can have a variety of choices, such as RAM, SRAM, etc., and FIFO memory because of its simple operation, good reliability and other characteristics, is widely used in the data acquisition system, has become a bridge connecting MCU and AD chip.
The communication between AD chip and MCU can usually be carried out through SPI, I2C, UART and other interfaces. First of all, the communication protocol and interface type are determined according to the data manual of the AD chip, and then the corresponding communication parameters are configured in the MCU program, including clock frequency, data bits, etc.
Then the corresponding library function or driver is used to write code on MCU to realize the data reading and writing operation to ensure the stability and accuracy of data transmission.
Finally, the actual test and debugging are carried out to ensure the normal operation of the communication between AD chip and MCU.