This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] ADS1299EEGFE-PDK:ADS1299EEGFE-PDK

Guru**** 2589275 points
Other Parts Discussed in Thread: ADS1299

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/649570/ads1299eegfe-pdk-ads1299eegfe-pdk

部件号:ADS1299EEGFE-PDK
在“线程:ADS1299”中讨论的其他部件

您好,
我正在尝试将ADS1299套件连接到具有SPI的Arduino Pro Mini 3.3V。 起初,我只想读取设备ID,但无法读取。 我的连接如下所示:

ADS1299_____ Arduino微型

CLKSEL ______ VCC

CLK______ 引脚13

dout ______ 引脚11

DIN______ 引脚12

DRDY______ 引脚8

cs ____ 引脚10

开始_____ VCC

RESESES___ VCC

我的跳线如下所示:

我还使用以下代码:

#include "ADS1298.h"
#include "adsCMD.h"
#include <SPI.h>
int gMaxChan = 8;
int gIDval = 0;

const int kPIN_LED = 13;

#define WiredSerial


void setup(){
使用命名空间ADS1298;
//准备引脚作为输出
或输入pinMode(IPPIN_CS, output);
pinMode;
输入);
pinMode (PIN_CLKSEL,输出);//*可选
pinMode (IPIn_reset,输出);//*可选
//pinMode (IPIn_PWDN,输出);//*可选
//start Serial Peripheral Interface
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setClockDivider(SPI_CLOCK_DIV16);//forum.pjrc.com/.../1156-Teensy-3-SPI-Basic-Clock-Questions
SPI.setDataMode(SPI_MODE1);
//Start ADS1298
Delay (1000); //等待ads129n准备就绪-充电CAP
ADC_SEND_COMMAND (SDATAC)可能需要一段时间;//发送SDATAC命令(停止连续读取数据模式)
延时(10);
ADC_SEND_COMMAND (START);
延时(10);

//确定可用通道的型号和数量
gIDval = adc_rreg (ID);//寄存器0的下5位显示芯片类型

//启动串行端口
WiredSerial.begin(11.52万);//在到期
时使用本机端口(WiredSerial.Read()>=0){}//forum.inuard.cc/index.php
Serial.println(ADS1298::RREG | ID);
Delay(200);//捕获到期重置问题
pinMode(kPIN_LED);


italvoid loop()
{ Wiredprint::Reg.IDchannel; WigWrite(WigPort.Port)
串行通道(Wigprint);Wigval (WiredPort.ID)
高);//
如果(gMaxChan > 0),则打开LED (高为电压电平)
Delay (500);//如果OK,则暂停较长时间
,否则
Delay (50);//如果出现错误
,快速闪烁digitalWrite (kPIN_LED,低);//通过使电压降低
延时(500);
}关闭LED 

但正如我所说的,结果我得到了0x00。 请你帮我解决这个问题吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你好,Rasta

    您是否可以发送一个示波器图,显示您与ADS1299的SPI通信? 当我们尝试了解您的代码正在执行什么操作时,最好仔细观察一下。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你好,Rasta

    您在这里发现了问题吗?