📄 ad7705.h
字号:
//=====================================================================================================================
//-------------------------------------- GLOBAL (Variables, Constants & Defines) --------------------------------------
//=====================================================================================================================
// define the software version code to be displayed during functional test
#define SOFTWARE_VERSION 0x00 // before 16 it was hex 0x15 changed to decimal 7/12/01
//The following line is to be commented out if you want code to be built for no load detection
#define TRUE 1
#define FALSE 0
#define OSC_FREQ 11059200L
#define BAUD_115200 256 - (OSC_FREQ/192L)/115200L // 255
#define BAUD_57600 256 - (OSC_FREQ/192L)/57600L // 254
#define BAUD_38400 256 - (OSC_FREQ/192L)/38400L // 253
#define BAUD_28800 256 - (OSC_FREQ/192L)/28800L // 252
#define BAUD_19200 256 - (OSC_FREQ/192L)/19200L // 250
#define BAUD_14400 256 - (OSC_FREQ/192L)/14400L // 248
#define BAUD_9600 256 - (OSC_FREQ/192L)/9600L // 244
#define BAUD_4800 256 - (OSC_FREQ/192L)/4800L // 242
#define RCAP2_50us 65536L - OSC_FREQ/240417L
#define RCAP2_1ms 65536L - OSC_FREQ/12021L
#define RCAP2_10ms 65536L - OSC_FREQ/1200L
#define RCAP2_1s 65536L - OSC_FREQ/12L
//=====================================================================================================================
//-------------------------------------- GLOBAL (Function Prototypes) -------------------------------------------------
//=====================================================================================================================
extern void send_UART(unsigned char);
extern void AD7705_Start();
extern void AD7705_Write_1_BYTE(unsigned char Data_byte);
extern unsigned int AD7705_Read_2_BYTE();
extern unsigned char AD7705_Read_1_BYTE();
extern unsigned int AD7705_CONVERT();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -