• 大小: 1.55M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-21
  • 语言: C/C++
  • 标签: STM32  STM3  ads  56  程序  

资源简介

ADS1256-STM32参考程序

资源截图

代码片段和文件信息

#include “STM32F10x_map.h“



#define uchar unsigned char
#define uint unsigned int

unsigned char   amp_ch1=0;  
unsigned char   amp_ch2=0;
unsigned char   amp_ch3=0;
unsigned char   amp_ch4=0;
unsigned char   amp_ch5=0;
unsigned char   amp_ch6=0;
unsigned char   amp_ch7=0;
unsigned char   amp_ch8=0;


#define FIXAMP 100

#define SetCh1Amp0() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x00<<0) //0  AA1 BB1 CC1
#define SetCh1Amp1() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x01<<0)  //1
#define SetCh1Amp2() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x02<<0) //2
#define SetCh1Amp3() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x03<<0)//3
#define SetCh1Amp4() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x04<<0) //4
#define SetCh1Amp5() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x05<<0) //5
#define SetCh1Amp6() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x06<<0) //6
#define SetCh1Amp7() GPIOD->BRR = (0x07<<0);GPIOD->BSRR = (0x07<<0) //7

#define SetCh2Amp0() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x00<<10) //0   AA2 BB2 CC2
#define SetCh2Amp1() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x01<<10)  //1
#define SetCh2Amp2() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x02<<10) //2
#define SetCh2Amp3() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x03<<10)//3
#define SetCh2Amp4() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x04<<10) //4
#define SetCh2Amp5() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x05<<10) //5
#define SetCh2Amp6() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x06<<10) //6
#define SetCh2Amp7() GPIOC->BRR = (0x07<<10);GPIOC->BSRR = (0x07<<10) //7

#define SetCh3Amp0() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x00<<4) //0   AA3 BB3 CC3
#define SetCh3Amp1() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x01<<4)  //1
#define SetCh3Amp2() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x02<<4) //2
#define SetCh3Amp3() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x03<<4)//3
#define SetCh3Amp4() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x04<<4) //4
#define SetCh3Amp5() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x07<<4) //7
#define SetCh3Amp6() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x07<<4) //7
#define SetCh3Amp7() GPIOC->BRR = (0x07<<4);GPIOC->BSRR = (0x07<<4) //7

#define SetCh4Amp0() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x00<<14) //0  AA4 BB4 CC4
#define SetCh4Amp1() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x01<<14)  //1
#define SetCh4Amp2() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x02<<14) //2
#define SetCh4Amp3() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x03<<14)//3
#define SetCh4Amp4() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x04<<14) //4
#define SetCh4Amp5() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x05<<14) //5
#define SetCh4Amp6() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x06<<14) //6
#define SetCh4Amp7() GPIOD->BRR = (0x07<<14);GPIOD->BSRR = (0x07<<14) //7

#define SetCh5Amp0() GPIOD->BRR = (0x07<<11);GPIOD->BSRR = (0x00<<11) //0  AA5 BB5 CC5
#define SetCh5Amp1() GPIOD->BRR = (0x07<<11);GPIOD->BSRR = (0x01<<11)  //1
#define SetCh5Amp2() GPIOD->BRR = (0x07<<11);GPIOD->BSRR = (0x

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9707  2010-09-07 13:38  ADS1256-STM32参考程序\ADS1256.C

     文件        416  2010-08-31 16:36  ADS1256-STM32参考程序\ads1256.h

     文件       6008  2010-09-07 13:41  ADS1256-STM32参考程序\GPIO.Opt

     文件       7118  2010-09-03 17:48  ADS1256-STM32参考程序\GPIO.Uv2

     文件       6007  2010-09-07 13:38  ADS1256-STM32参考程序\GPIO_Opt.Bak

     文件      39899  2010-09-07 13:38  ADS1256-STM32参考程序\GPIO_STM32F10x Release.dep

     文件       7118  2010-09-02 16:06  ADS1256-STM32参考程序\GPIO_Uv2.Bak

     文件       9138  2010-08-27 15:55  ADS1256-STM32参考程序\H340I.c

     文件        756  2010-08-27 14:46  ADS1256-STM32参考程序\H340I.h

     文件       8057  2010-04-29 13:33  ADS1256-STM32参考程序\hw_config.c

     文件       2311  2010-04-27 16:32  ADS1256-STM32参考程序\hw_config.h

     文件      17273  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c

     文件      85714  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h

     文件      15403  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\Release_Notes_for_STM32F10x_CMSIS.html

     文件      15761  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s

     文件      15498  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s

     文件      12371  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s

     文件      13651  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s

     文件      12764  2010-08-28 13:35  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s

     文件      14068  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s

     文件      12943  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s

     文件      13042  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s

     文件       9698  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s

     文件      10445  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s

     文件      10154  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s

     文件      10847  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md_vl.s

     文件      16629  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_cl.s

     文件      16231  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd.s

     文件      12653  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld.s

     文件      12952  2010-02-28 15:40  ADS1256-STM32参考程序\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld_vl.s

............此处省略384个文件信息

评论

共有 条评论