-
大小: 1.47MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-11-04
- 语言: 其他
- 标签: dsp28035 CLA Sensorless
资源简介
在28035平台上采用CLA实现无刷电机控制(可以运行的CODE),有不明白的可以帮忙解答。
代码片段和文件信息
//----------------------------------------------------------------------------------
// FILE: ADC_SOC_CNF.c.c
//
// Description: ADC configuration to support up to 16 conversions on
// Start of Conversion(SOC) based ADCs (type 3) found on F2802x and
// F3803x devices. Independent selection of Channel Trigger and
// acquisition window using ChSel[]TrigSel[] and ACQPS[].
//
// Dependencies: Assumes the {DeviceName}-usDelay.asm is inlcuded in the project
// Version: 3.0
//
// Target: TMS320F2802x(PiccoloA)
// TMS320F2803x(PiccoloB)
//
// The function call is:
//
// void ADC_SOC_CNF(int ChSel[] int Trigsel[] int ACQPS[] int IntChSel int mode)
//
// Function arguments defined as:
//-------------------------------
// ChSel[] = Channel selection made via a channel # array passed as an argument
// TrigSel[]= Source for triggering conversion of a channel
// selection made via a trigger # array passed as argument
// ACQPS[] = AcqWidth is the S/H aperture in #ADCCLKS# array passed as argument
// IntChSel = Channel number that would trigger an ADC Interrupt 1 on completion(EOC)
// if no channel triggers ADC interrupt pass value > 15
// Mode = Operating mode: 0 = Start / Stop mode needs trigger event
// 1 = Continuous mode no trigger needed
// 2 = CLA Mode start stop mode with auto clr INT Flag
//================================================================================
#include “PeripheralHeaderIncludes.h“
void ADC_SOC_CNF(int ChSel[] int Trigsel[] int ACQPS[] int IntChSel int mode)
{
extern void DSP28x_usDelay(Uint32 Count);
EALLOW;
AdcRegs.ADCCTL1.bit.ADCREFSEL = 0;
AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; // Power up band gap
AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; // Power up reference
AdcRegs.ADCCTL1.bit.ADCPWDN = 1; // Power up rest of ADC
AdcRegs.ADCCTL1.bit.ADCENABLE = 1; // Enable ADC
DSP28x_usDelay(1000); // Delay before converting ADC channels
AdcRegs.ADCCTL1.bit.INTPULSEPOS = 1;
AdcRegs.ADCSOC0CTL.bit.ACQPS = ACQPS[0];
AdcRegs.ADCSOC1CTL.bit.ACQPS = ACQPS[1];
AdcRegs.ADCSOC2CTL.bit.ACQPS = ACQPS[2];
AdcRegs.ADCSOC3CTL.bit.ACQPS = ACQPS[3];
AdcRegs.ADCSOC4CTL.bit.ACQPS = ACQPS[4];
AdcRegs.ADCSOC5CTL.bit.ACQPS = ACQPS[5];
AdcRegs.ADCSOC6CTL.bit.ACQPS = ACQPS[6];
AdcRegs.ADCSOC7CTL.bit.ACQPS = ACQPS[7];
AdcRegs.ADCSOC8CTL.bit.ACQPS = ACQPS[8];
AdcRegs.ADCSOC9CTL.bit.ACQPS = ACQPS[9];
AdcRegs.ADCSOC10CTL.bit.ACQPS = ACQPS[10];
AdcRegs.ADCSOC11CTL.bit.ACQPS = ACQPS[11];
AdcRegs.ADCSOC12CTL.bit.ACQPS = ACQPS[12];
AdcRegs.ADCSOC13CTL.bit.ACQPS = ACQPS[13];
AdcRegs.ADCSOC14CTL.bit.ACQPS = ACQPS[14];
AdcRegs.ADCSOC15CTL.bit.ACQPS = ACQPS[15];
AdcRegs.INTSEL1N2.bit.INT1SEL = IntChSel; // IntChSel causes ADCInterrupt 1
if (mode == 0) // Start-Stop conv mode
{
AdcRegs.ADCINTFL
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 498 2013-01-06 21:59 PM_Sensorless_CLA_F2803x_cai\.ccsproject
文件 12547 2012-06-26 14:48 PM_Sensorless_CLA_F2803x_cai\.cdtbuild
文件 12547 2013-01-06 21:57 PM_Sensorless_CLA_F2803x_cai\.cdtbuild_initial
文件 677 2012-06-26 14:48 PM_Sensorless_CLA_F2803x_cai\.cdtproject
文件 23015 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\.cproject
文件 3529 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\.project
文件 2058 2013-01-06 21:57 PM_Sensorless_CLA_F2803x_cai\.project_initial
文件 62 2013-01-06 21:57 PM_Sensorless_CLA_F2803x_cai\.settings\org.eclipse.cdt.codan.core.prefs
文件 123 2013-01-06 21:57 PM_Sensorless_CLA_F2803x_cai\.settings\org.eclipse.cdt.debug.core.prefs
文件 293 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\.settings\org.eclipse.core.resources.prefs
文件 8503 2012-06-26 14:48 PM_Sensorless_CLA_F2803x_cai\28035_FLASH_HVPM_Sensorless_CLA_lnk.cmd
文件 5594 2012-06-26 14:46 PM_Sensorless_CLA_F2803x_cai\ADC_SOC_Cnf.c
文件 119002 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\ADC_SOC_Cnf.asm
文件 14213 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\ADC_SOC_Cnf.obj
文件 3761 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\ADC_SOC_Cnf.pp
文件 366 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\ccsObjs.opt
文件 207 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\ccsSrcs.opt
文件 1563 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\DSP2803x_CodeStartBranch.obj
文件 1117286 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\DSP2803x_GlobalVariableDefs.asm
文件 125703 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\DSP2803x_GlobalVariableDefs.obj
文件 4328 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\DSP2803x_GlobalVariableDefs.pp
文件 1292 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\DSP2803x_usDelay.obj
文件 309604 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-DevInit_F2803x.asm
文件 38683 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-DevInit_F2803x.obj
文件 7051 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-DevInit_F2803x.pp
文件 288763 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-Main.asm
文件 37261 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-Main.obj
文件 7629 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-Main.pp
文件 218998 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-Tasks_C.asm
文件 30438 2013-01-06 22:05 PM_Sensorless_CLA_F2803x_cai\Debug\HVPM_Sensorless_CLA-Tasks_C.obj
............此处省略99个文件信息
- 上一篇:dataManager.zip
- 下一篇:MISRA C 2012中英文对照版本
相关资源
- LLVM Cookbook中文版
- LLVMCookBook中文版_王欢明_高清带书签导
- classificationandregressiontrees(1).pdf
- J750 Basic Programming Class Student Manual
- Classical Electrodynamics
- LoRaWAN规范CLASS-A中文版
- 模式分类第二版答案(全) Solution
- freeICTCLAS中科院中文分词(拼音中文输
- Image Analysis Classification and Change Detec
- Analog circuit world class design
- Ginkgo_USB-I2C_Classic_Setup_v2.9.2.zip
- ClassMate.zip
- 解决classification_dll.dll无法找的问题
- SpaceClaim中文版-官方(教程).pdf
- dsp28035,can通信和电机控制程序,源码
- Combining Pattern Classifie Methods and Algori
- Image Analysis Classification and Change Detec
- C2000TMS320F28035数据手册大全(包含所有
- image recognition and classification_algorithm
- RF Front-End World Class Designs 2009
- Speed sensorless control of 3-phase induction
- 东北大学计算机网络---平时测试及历
- classweb.rar
- Model Checking 模型检查 Edmund M. Clarke 经
- Classical and Modern Direction-of-Arrival Esti
- Fraclab 2.05
- model checking.pdf英文版Edmund M. Clarke著作
- SPM CART_Classification_Modeling
- E-Class电子教室软件套装
- UVCUSB Video Class规范
评论
共有 条评论