91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 729KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-06
  • 語(yǔ)言: 其他
  • 標(biāo)簽: dsp28335??

資源簡(jiǎn)介

本程序?yàn)榛赿sp28335設(shè)計(jì)的三電平的svpwm,CCS6及以上都可導(dǎo)入工程直接運(yùn)行,可以參考

資源截圖

代碼片段和文件信息

//###########################################################################
//
//?FILE: DSP2833x_Adc.c
//
//?title: DSP2833x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?2833x/2823x?Header?Files?and?Peripheral?Examples?V133?$
//?$Release?Date:?June?8?2012?$
//###########################################################################

#include?“DSP2833x_Device.h“?????//?DSP2833x?Headerfile?Include?File
#include?“DSP2833x_Examples.h“???//?DSP2833x?Examples?Include?File

#define?ADC_usDELAY??5000L

//---------------------------------------------------------------------------
//?InitAdc:
//---------------------------------------------------------------------------
//?This?function?initializes?ADC?to?a?known?state.
//
void?InitAdc(void)
{
????extern?void?DSP28x_usDelay(Uint32?Count);
????//?*IMPORTANT*
//?The?ADC_cal?function?which??copies?the?ADC?calibration?values?from?TI?reserved
//?OTP?into?the?ADCREFSEL?and?ADCOFFTRIM?registers?occurs?automatically?in?the
//?Boot?ROM.?If?the?boot?ROM?code?is?bypassed?during?the?debug?process?the
//?following?function?MUST?be?called?for?the?ADC?to?function?according
//?to?specification.?The?clocks?to?the?ADC?MUST?be?enabled?before?calling?this
//?function.
//?See?the?device?data?manual?and/or?the?ADC?Reference
//?Manual?for?more?information.
EALLOW;
SysCtrlRegs.PCLKCR0.bit.ADCENCLK?=?1;
ADC_cal();
EDIS;
//?To?powerup?the?ADC?the?ADCENCLK?bit?should?be?set?first?to?enable
????//?clocks?followed?by?powering?up?the?bandgap?reference?circuitry?and?ADC?core.
????//?Before?the?first?conversion?is?performed?a?5ms?delay?must?be?observed
//?after?power?up?to?give?all?analog?circuits?time?to?power?up?and?settle
????//?Please?note?that?for?the?delay?function?below?to?operate?correctly?the
//?CPU_RATE?define?statement?in?the?DSP2833x_Examples.h?file?must
//?contain?the?correct?CPU?clock?period?in?nanoseconds.
????AdcRegs.ADCTRL3.all?=?0x00E0;??//?Power?up?bandgap/reference/ADC?circuits
????DELAY_US(ADC_usDELAY);?????????//?Delay?before?converting?ADC?channels

????/*自定義配置*/
AdcRegs.ADCTRL1.bit.ACQ_PS?=?0x3; //采集窗口的大小
AdcRegs.ADCTRL3.bit.ADCCLKPS?=?0x1; //內(nèi)核時(shí)鐘分頻器
AdcRegs.ADCTRL1.bit.SEQ_CASC?=?1; //級(jí)聯(lián)模式,SEQ1和SEQ2作為一個(gè)16狀態(tài)排序器工作
AdcRegs.ADCTRL3.bit.SMODE_SEL=0;? //設(shè)置順序采樣模式
AdcRegs.ADCMAXCONV.all ?=15;?????? //設(shè)置最大通道數(shù)(通道數(shù)-1)
AdcRegs.ADCREFSEL.bit.REF_SEL=0;?? //參考基準(zhǔn)電壓的選擇,當(dāng)前選擇外部參考電壓基準(zhǔn),為2.048V
AdcRegs.ADCCHSELSEQ1.all=0x0000;
AdcRegs.ADCCHSELSEQ2.all=0x0000;
AdcRegs.ADCCHSELSEQ3.all=0x0000;
AdcRegs.ADCCHSELSEQ4.all=0x0000;

AdcRegs.ADCCHSELSEQ1.bit.CONV00=0x0;?????//A0U1V1
AdcRegs.ADCCHSELSEQ1.bit.CONV01=0x1;?????//A1U2V2
AdcRegs.ADCCHSELSEQ1.bit.CONV02=0x2;?????//A2U3V3
AdcRegs.ADCCHSELSEQ1.bit.CONV03=0x3;?????//A3U4V4
AdcRegs.ADCCHSELSEQ2.bit.CONV04=0x4;?????//A4U5V5
AdcRegs.ADCCHSELSEQ2.bit.CONV05=0x5;?????//A5U6V6
AdcReg

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????513??2015-05-31?12:04??3L_SVPWM_PT714\V0.0\.ccsproject

?????文件??????23475??2016-07-15?09:39??3L_SVPWM_PT714\V0.0\.cproject

?????文件???????4403??2016-07-14?21:21??3L_SVPWM_PT714\V0.0\.launches\3L_SVPWM_20160324_Ma.launch

?????文件???????4569??2017-06-07?16:22??3L_SVPWM_PT714\V0.0\.launches\3L_VSVPWM_PT714.launch

?????文件????????845??2016-07-15?09:39??3L_SVPWM_PT714\V0.0\.project

?????文件?????????62??2016-03-30?11:41??3L_SVPWM_PT714\V0.0\.settings\org.eclipse.cdt.codan.core.prefs

?????文件????????123??2015-05-31?12:04??3L_SVPWM_PT714\V0.0\.settings\org.eclipse.cdt.debug.core.prefs

?????文件????????894??2015-06-01?22:36??3L_SVPWM_PT714\V0.0\.settings\org.eclipse.core.resources.prefs

?????文件???????7270??2015-05-31?12:04??3L_SVPWM_PT714\V0.0\28335_RAM_lnk.cmd

?????文件??????40435??2016-03-22?10:19??3L_SVPWM_PT714\V0.0\Debug\3L_NVSVPWM_UNP_UCMV_20160322_Ma.map

?????文件?????197228??2016-03-22?10:19??3L_SVPWM_PT714\V0.0\Debug\3L_NVSVPWM_UNP_UCMV_20160322_Ma_linkInfo.xml

?????文件??????39715??2016-07-14?21:21??3L_SVPWM_PT714\V0.0\Debug\3L_SVPWM_20160324_Ma.map

?????文件?????180430??2016-07-14?21:21??3L_SVPWM_PT714\V0.0\Debug\3L_SVPWM_20160324_Ma.out

?????文件?????193730??2016-07-14?21:21??3L_SVPWM_PT714\V0.0\Debug\3L_SVPWM_20160324_Ma_linkInfo.xml

?????文件??????40425??2016-03-24?11:27??3L_SVPWM_PT714\V0.0\Debug\3L_VSVPWM_20160324_Ma.map

?????文件?????197214??2016-03-24?11:27??3L_SVPWM_PT714\V0.0\Debug\3L_VSVPWM_20160324_Ma_linkInfo.xml

?????文件??????39710??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\3L_VSVPWM_PT714.map

?????文件?????180314??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\3L_VSVPWM_PT714.out

?????文件?????193721??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\3L_VSVPWM_PT714_linkInfo.xml

?????文件???????1770??2017-06-07?16:22??3L_SVPWM_PT714\V0.0\Debug\ccsObjs.opt

?????文件????????289??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\cmd\subdir_rules.mk

?????文件????????344??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\cmd\subdir_vars.mk

?????文件????????289??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\lib\subdir_rules.mk

?????文件????????670??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\lib\subdir_vars.mk

?????文件??????13570??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_Adc.obj

?????文件???????5429??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_Adc.pp

?????文件???????1345??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_ADC_cal.obj

?????文件???????1648??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_CodeStartBranch.obj

?????文件???????5898??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_CpuTimers.obj

?????文件???????5597??2017-06-07?15:45??3L_SVPWM_PT714\V0.0\Debug\DSP2833x_common\source\DSP2833x_CpuTimers.pp

............此處省略184個(gè)文件信息

評(píng)論

共有 條評(píng)論