TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F28388D: EPWM触发ADC中断

Part Number:TMS320F28388DOther Parts Discussed in Thread:C2000WARE

EPWM触发ADC采样中断,是不是同时触发ADCA\B\C\D四个核采样,INT_ADCA1只是一个中断

Interrupt_register(INT_ADCA1, &PWM_Sample_Int_Hook);
EPWM_disableADCTrigger(EPWM1_BASE, EPWM_SOC_A);
EPWM_setADCTriggerSource(EPWM1_BASE, EPWM_SOC_A, EPWM_SOC_TBCTR_U_CMPA);
EPWM_enableADCTrigger(EPWM1_BASE, EPWM_SOC_A);

EPWM_setADCTriggerEventPrescale(EPWM1_BASE, EPWM_SOC_A,p->Sample_ratio);
Interrupt_enable(INT_ADCA1);

Susan Yang:

DSP应用 说:是不是同时触发ADCA\B\C\D四个核采样,INT_ADCA1只是一个中断

关于此,建议您看一下C2000ware内的例程

adc_ex11_multiple_soc_epwm 

C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\adc 

//! This example sets up ePWM1 to periodically trigger a set of conversions on//! ADCA and ADCC. This example demonstrates multiple ADCs working together//! to process of a batch of conversions using the available parallelism//! accross multiple ADCs.

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28388D: EPWM触发ADC中断
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1