RS485测控模块,非常实用。#include #define uint unsigned int #define uchar unsigned char #define Tim 65536-50000 sbit DAT0 =P2^2; sbit DAT1 =P2^3; sbit DICS =P2^4; sbit DOCS =P2^5; sbit CLK =P2^6; sbit ADCS =P1^5; sbit DAT3 =P1^6; sbit DAT4 =P1^7; sbit DACS =P3^5; sbit DAT2 =P3^4; bit KeyOn; uch