ModBus485实用c代码51单片机 #include "reg52.h" typedef unsigned char uint8; typedef unsigned int uint16; typedef unsigned long uint32; sbit bRunLED = P1^4; //运行指示灯 sbit bWatchDog = P1^5; //看门狗复位 sbit b485Send = P2^0; //75LBC184 发送接收控制 #define TIMER_HIGHT 0xf8 #define TIMER_LOW 0xcd extern ui