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.

CC2650STK: 关于sensor controller和system CPU的数据交换的问题

Other Parts Discussed in Thread: CC2650STK, CC2650

大家好

我用cc2650stk上的sensor controller的ADC对信号进行采样,采样是用sensor controller studio做的。请问system CPU怎样能获取这些数据,或者sensor controller如何把数据传送给system CPU?

  • 參考SimpleLink Academy 在

  • E2E已经有工程师跟进你的问题,请这边查看详情: e2e.ti.com/.../710571
  • 两种办法,最早官方只给的scs方式打开adc,使用不方便,现在有cc13系列和cc2640R2例程,直接adc,可以不用scs,可以多路采样,本质就是寄存器操作。
  • 谢谢回复,但我还想问一下,

    不知道cc2640R2的例程能不能用在cc2650上?因为例程中的包含的文件不太一样。

    我看到有adcbufcontinuous这个例程,在CCS Compiler, adcBufContinuousSampling.c文件中第146行adcBufParams.samplingFrequency = 200;

    这个好像是采样频率的设置,我的采样频率需要设置为至少70kHz。不知道这个200是不是200Hz的意思?

  • cc2640R2的例程不能用在cc2650上
  • 你好,
    我看了您分享的链接,其中Read ADC Value Directly from Sensor Controller RAM是说cc2650的main CPU可以直接访问sensor controller的RAM。图片中的代码在我的项目中,
    /// ADC Sampler: Task output data structure
    typedef struct {
    uint16_t pSamples[128]; ///<
    } SCIF_ADC_SAMPLER_OUTPUT_T;


    /// Sensor Controller task data (configuration, input buffer(s), output buffer(s) and internal state)
    typedef struct {
    struct {
    SCIF_ADC_SAMPLER_OUTPUT_T output;
    } adcSampler;
    } SCIF_TASK_DATA_T;

    /// Sensor Controller task generic control (located in AUX RAM)
    #define scifTaskData (*((volatile SCIF_TASK_DATA_T*) 0x400E00EA))

    其中“#define scifTaskData (*((volatile SCIF_TASK_DATA_T*) 0x400E00EA))”是不是我ADC output的基地址?

    还想问下Expand Code Solution (snippet from main_tirtos.c):这个代码是需要新建一个CCS的工程吗?刚接触这些还有很多不懂。