/*
* File: main.c
* Author: Vincent
*
* Created on 2021年9月8日, 上午10:00
*/
#include "system.h"
#include "p33FJ128MC804.h"
//定义变量
int RS485_paratemer_tx_end = 0;
int RS485_paratemer_rx_end = 0;
int n = 0;
int word_number = 1;
unsigned RS485_Buff[13];
unsigned RS485_Buff_tx[13] ;//{0x150,0x0D,0x43,0x0D,0x05,0x03,0x05,0x03,0x01,0x00,0x00,0x00,0xBE};
int m = 0;
int i;
int RS485_parameter_tx_counter = 13;
int RS485_patameter_length;
int buff_sum = 0;
int judge_word4;
int cmd_parameter_save;
int cmd_parameter_transfer;//发参数
int rx_counter;
void RS485_parameter_read(void);
void RS485_parameter_transfer(void);
void RS485_parameter_write(void);
void RS485_parameter_dispose(void);
void Delay_1ms(unsigned int t)//t = 1000大概1s
{
unsigned int i,j;
for(i = 0;i < t;i ++)
for(j = 0;j < 100;j ++);
}