The study utilized the PCF8951 chip as the A/D conversion module, which includes four 8-bit A/D input channels, a built-in sample and hold circuit, an 8-bit output channel, and an ADC data register. The program is divided into four cases based on the number of channels, with Case0 used to read the analog value of the first channel, 0x41 controlling the byte sent, and IRcvByte(PCF8591) used to receive the AD conversion data. In the AD module, the PCF8951 chip is used for input and output voltage sample holding, with two internal samplings performed, resulting in the final output voltage needing to be multiplied by 2 for input and output data to be the same, ensuring data accuracy. The ADC is used to store the output data of each channel. The final if statement is the operation in manual mode

重写这句话本次研究采用PCF8951芯片作为AD转换模块该芯片有四个8位AD输入通道内置采样保持电路同时还有一个8位输出通道和ADC数据寄存器。程序根据芯片通道数分为四种情况Case0用于读取第一通道的模拟量值0x41是控制发送的字节IRcvBytePCF8591用于接收AD转换数据。在AD模块中我们使用芯片PCF8951进行输入和输出电压保持采样系统内部进行了两次采样因此最终输出电压需要乘以2以

原文地址: https://www.cveoy.top/t/topic/cOuE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录