资源简介

这个是我当初在调试TI公司的24位AD芯片ADS1256时所有的资料,其中包括中文资料和英文资料,还有部分参考程序,希望对大家有帮助

资源截图

代码片段和文件信息

#include “stm32f10x_lib.h“
#include “ads1255.h“

//----------------------------------------------------------
#define REG_STAUTS      0x00
#define ORDER_MSB  (0<<3)
#define ORDER_LSB  (1<<3)
#define ACAL_ENABLE (1<<2)
#define ACAL_DISABLE (0<<2)
#define BUF_ENABLE (1<<1) //缓冲器使能
#define BUF_DISABLE (0<<1) //缓冲器使能

//----------------------------------------------------------
#define REG_MUX  0x01
#define PAIN0  0x00
#define PAIN1  0x10
#define PAIN2  0x20
#define PAIN3  0x30
#define PAIN4  0x40
#define PAIN5  0x50
#define PAIN6  0x60
#define PAIN7  0x70
#define PAINCOM 0x80
#define NAIN0  0x00
#define NAIN1  0x01
#define NAIN2  0x02
#define NAIN3  0x03
#define NAIN4  0x04
#define NAIN5  0x05
#define NAIN6  0x06
#define NAIN7  0x07
#define NAINCOM 0x08

//------------------------------------------------------------
#define REG_ADCON  0x02

#define CLKOUT_OFF (0x00<<5)
#define CLKOUT_CLKIN (0x01<<5)
#define CLKOUT_CLKIN_DIV2 (0x02<<5)
#define CLKOUT_CLKIN_DIV4 (0x03<<5)

#define SD_OFF (0x00<<3)
#define SD_05UA (0x01<<3)
#define SD_2UA (0x02<<3)
#define SD_10UA (0x03<<3)

#define PGA_1 (0x00)
#define PGA_2 (0x01)
#define PGA_4 (0x02)
#define PGA_8 (0x03)
#define PGA_16 (0x04)
#define PGA_32 (0x05)
#define PGA_64 (0x06)
//--------------------------------------------------------------
#define REG_DRATE  0x03

#define DRATE_2_5 0x03
#define DRATE_5 0x13
#define DRATE_10 0x23
#define DRATE_15 0x33
#define DRATE_25 0x43
#define DRATE_30 0x53
#define DRATE_50 0x63
#define DRATE_60 0x72
#define DRATE_100 0x82
#define DRATE_500 0x92
#define DRATE_1000 0xa1
#define DRATE_2000 0xb0
#define DRATE_3750 0xc0
#define DRATE_7500 0xd0
#define DRATE_15000 0xe0
#define DRATE_30000 0xf0
//---------------------------------------------------------------
#define REG_GPIOC 0x04
//---------------------------------------------------------------
#define REG_OFC0 0x05
//---------------------------------------------------------------
#define REG_OFC1 0x06
//---------------------------------------------------------------
#define REG_OFC2 0x07
//---------------------------------------------------------------
#define REG_FSC0 0x08
//---------------------------------------------------------------
#define REG_FSC1 0x09
//---------------------------------------------------------------
#define REG_FSC2 0x0a
//---------------------------------------------------------------


#define CMD_WAKEUP 0x00
#define CMD_RDATA 0x01
#define CMD_RDATAC 0x03
#define CMD_SDATAC 0x0f
#define CMD_RREG 0x10
#define CMD_WREG 0x50
#define CMD_SELFCAL 0xf0
#define CMD_SELFOCAL 0xf1
#define CMD_SELFGCAL 0xf2
#define CMD_SYSOCAL 0xf3
#define CMD_SYSGCAL 0xf4
#define CMD_SYNC 0xfc
#define CMD_STANDBY 0xfd
#define CMD_RESET 0xfe



unsigned char result1;
unsigned char result2;
unsigned char result3;
unsigne

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-08-06 10:19  ads1256all\
     文件     2055052  2011-08-03 10:04  ads1256all\ads1255.pdf
     文件      540595  2011-08-07 16:56  ads1256all\ADS1255中文资料.pdf
     目录           0  2011-08-06 10:19  ads1256all\ads1256\
     文件      434576  2011-07-20 12:31  ads1256all\ADS1256IDB.pdf
     文件      424304  2010-08-31 09:07  ads1256all\ads1256\24位AD转换器ADS1255及其应用.pdf
     目录           0  2011-08-06 10:19  ads1256all\ads1256\ADS1256\
     文件      424304  2010-08-31 09:07  ads1256all\ads1256\ADS1256\24位AD转换器ADS1255及其应用.pdf
     文件        6967  2010-09-04 14:36  ads1256all\ads1256\ADS1256\ads1255.c
     文件        1290  2010-09-04 14:13  ads1256all\ads1256\ADS1256\ads1255.h
     文件        9707  2011-08-03 16:18  ads1256all\ads1256\ADS1256\ADS1256.C
     文件         416  2010-08-31 16:36  ads1256all\ads1256\ADS1256\ads1256.h
     文件        9161  2010-09-04 14:28  ads1256all\ads1256\ADS1256\ADS1256_old.C
     文件         416  2010-08-31 16:36  ads1256all\ads1256\ADS1256\ads1256_old.h
     文件      437322  2010-08-30 14:47  ads1256all\ads1256\ADS1256\ADS1256芯片资料.pdf
     目录           0  2011-08-06 10:19  ads1256all\ads1256\ADS1256\HEX\
     文件         232  2011-08-01 16:37  ads1256all\ads1256\ADS1256\HEX\YW-B340iv3.plg
     目录           0  2011-08-06 10:19  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\
     目录           0  2011-08-06 10:19  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\
     文件        9707  2010-09-07 13:38  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\ADS1256.C
     文件         416  2010-08-31 16:36  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\ads1256.h
     文件        6008  2010-09-07 13:41  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO.opt.bak
     文件        7118  2010-09-03 17:48  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO.Uv2.bak
     文件       77532  2011-08-01 16:07  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO.uvopt
     文件       41402  2011-08-01 16:07  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO.uvproj
     文件        6007  2010-09-07 13:38  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO_Opt.Bak
     文件       29325  2011-08-01 16:37  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO_STM32F10x Release.dep
     文件        7118  2010-09-02 16:06  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\GPIO_Uv2.Bak
     文件        9138  2010-08-27 15:55  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\H340I.c
     文件         756  2010-08-27 14:46  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\H340I.h
     文件        8057  2010-04-29 13:33  ads1256all\ads1256\ADS1256\STM32_USB_ADS1256\STM32_USB_ADS1256\hw_config.c
............此处省略524个文件信息

评论

共有 条评论