Description: #include <REGX52.H>
#include<intrins.h>//_nop_()
#define OSFREQ 11059200
char TimeInterval
char MyAddress
char data DI[6]={1,2,3,4,5,6}
char data DO[6]={6,7,8,9,10,11}
char data AI[6]={11,12,13,14,15,16}
char data AO[6]={16,17,18,19,20,21}
unsigned char data ReceiveData[14]
unsigned char data countnumber
sbit Recenable =P1^6 //控制端
sbit led =P2^7 //控制端
To Search:
File list (Check if you may need any files):
Modbus协议51单片机C语言实现 (1).doc