#include "c8051F350.h"
#define UART_Status_Wait 0
#define UART_Status_Header1 UART_Status_Wait+1
#define UART_Status_Header2 UART_Status_Header1+1
#define UART_Status_Address UART_Status_Header2+1
#define UART_Status_CMD UART_Status_Address+1
#define UART_Status_Datalength1 UART_Status_CMD+1
#define UART_Status_Datalength2 UART_Status_Datalength1+1
#define UART_Status_Data UART_Status_Datalength2+1
#define UART_Status_Checkout UART_Status_Data+1
#define UART_Status_EndFlag UART_Status_Checkout+1
#define UART_Statues_OK UART_Status_EndFlag+1//数据接收完成
#define UART_START_HEADER1 0X3A
#define UART_START_HEADER2 0X5A
#define UART_END_HEADER 0X0A
#define BOARD_ADDRESS 0X01
//修改大一些防止出现负的电压
#define IDAC1_PT100 140//PT100
#define IDAC1_PT1000 140//PT1000
//一个字=0.015V
#define IDAC0_Value1 128 // >=4.2
#define IDAC0_Value2 121//4
1