STM32F030F4P6串口通讯,modbus协议,IIC18位MCP3421程序,STM32F030F4P6驱动18位ADC MCP3421,并以modbus协议输出ADC的值
2019-12-21 22:24:11 1.86MB MCP3421驱动 STM32F030F4P
1
该代码为PIC单片机MCP3421程序。经过严格测试过后的程序,修改端口保证可以使用!!!只能上传一个文件!!头文件如下 #define AD_SDA_OUT TRISC &= ~0x40 #define AD_SDA_IN TRISC |= 0x40 #define AD_SDA_HIGH LATC |= 0x40 #define AD_SDA_LOW LATC &= ~0x40 #define AD_SCL_HIGH LATC |= 0x80 #define AD_SCL_LOW LATC &= ~0x80 #define AD_SDA_VAL (PORTC & 0x40)
2019-11-22 17:56:19 5KB C1 MCP342
1