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.

LAUNCHXL-F28379D: ADC读取不到数据

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE,

HI,TI的工程师

我简单修改组合了TI的例程

C:\ti\C2000Ware_4_00_00_00\device_support\f2837xd\examples\cpu1\adc_soc_continuous

C:\ti\C2000Ware_4_00_00_00\device_support\f2837xd\examples\cpu1\epwm_up_aq,

将PWM1A(launchpad标号40)连接到ADCINA0(launchpad标号30),测试LAUNCHXL-F28379D的ADC读取ePWM外设发出的信号,但watch窗口显示AdcaResult0值始终为0

示波器测试ePWM输出波形正常

以下是我的代码,编译运行均无报错

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Included Files
//
#include "F28x_Project.h"
//
// Defines
//
#define EPWM1_TIMER_TBPRD 2000 // Period register
#define EPWM1_MIN_CMPA 500
//
// Globals
//
typedef struct
{
volatile struct EPWM_REGS *EPwmRegHandle;
Uint16 EPwmMinCMPA;
}EPWM_INFO;
EPWM_INFO epwm1_info;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

请问AdcaResult0无数据是什么原因呢?

谢谢!