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

  • 大小: 659KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2021-05-12
  • 語言: 其他
  • 標簽: 28335??

資源簡介

基于TMS320F28335的全數字鎖相環的設計

資源截圖

代碼片段和文件信息

//?TI?File?$Revision:?/main/5?$
//?Checkin?$Date:?October?23?2007???13:34:09?$
//###########################################################################
//
//?FILE: DSP2833x_Adc.c
//
//?title: DSP2833x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?DSP2833x?Header?Files?V1.10?$
//?$Release?Date:?February?15?2008?$
//###########################################################################

#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.ADCTRL3.bit.ADCCLKPS?=?0x0a;
????????AdcRegs.ADCTRL1.bit.SUSMOD=3;
????????AdcRegs.ADCTRL1.bit.ACQ_PS=3;//采樣窗的4
????????AdcRegs.ADCTRL1.bit.CONT_RUN=0;//啟動停止模式
????????AdcRegs.ADCTRL1.bit.SEQ_CASC=1;//作為16個級聯模式
????????AdcRegs.ADCTRL3.bit.SMODE_SEL=0;//順序采樣方式
????????AdcRegs.ADCCHSELSEQ1.bit.CONV00=0x00;
????????AdcRegs.ADCCHSELSEQ1.bit.CONV01=0x01;
????????AdcRegs.ADCCHSELSEQ1.bit.CONV02=0x02;
????AdcRegs.ADCMAXCONV.all=0x02;//最大啟動為2個通道
AdcRegs.ADCTRL2.bit.EPWM_SOCA_SEQ1=1;//用EPWM1啟動ADC轉換;
}

//===========================================================================
//?End?of?file.
//===========================================================================

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????21??2011-11-01?17:04??新建?文本文檔.txt

?????文件???????6954??2008-01-23?10:38??PLL28335\28335_RAM_lnk.cmd

?????文件???????3004??2011-10-13?20:55??PLL28335\DSP2833x_Adc.c

?????文件??????10470??2008-07-28?09:29??PLL28335\DSP2833x_Adc.h

?????文件???????1434??2007-09-26?10:23??PLL28335\DSP2833x_ADC_cal.asm

?????文件???????3263??2007-09-26?10:23??PLL28335\DSP2833x_CodeStartBranch.asm

?????文件???????4311??2007-09-26?10:23??PLL28335\DSP2833x_CpuTimers.c

?????文件???????5875??2008-07-28?09:29??PLL28335\DSP2833x_CpuTimers.h

?????文件??????30691??2011-10-20?20:56??PLL28335\DSP2833x_DefaultIsr.c

?????文件???????6314??2008-01-23?10:38??PLL28335\DSP2833x_DefaultIsr.h

?????文件???????3072??2008-07-28?09:29??PLL28335\DSP2833x_DevEmu.h

?????文件???????6154??2012-10-19?09:27??PLL28335\DSP2833x_Device.h

?????文件??????13981??2008-07-28?09:29??PLL28335\DSP2833x_DMA.h

?????文件???????1992??2008-01-23?10:38??PLL28335\DSP2833x_Dma_defines.h

?????文件??????45530??2008-07-28?09:29??PLL28335\DSP2833x_ECan.h

?????文件???????6111??2008-07-28?09:29??PLL28335\DSP2833x_ECap.h

?????文件??????11917??2011-10-19?14:35??PLL28335\DSP2833x_EPwm.c

?????文件??????16550??2008-07-28?09:29??PLL28335\DSP2833x_EPwm.h

?????文件???????3987??2008-01-23?10:38??PLL28335\DSP2833x_EPwm_defines.h

?????文件??????10055??2008-07-28?09:29??PLL28335\DSP2833x_EQep.h

?????文件???????5438??2012-02-25?15:27??PLL28335\DSP2833x_Examples.h

?????文件???????8391??2008-01-23?10:38??PLL28335\DSP2833x_GlobalPrototypes.h

?????文件??????11354??2007-09-26?10:23??PLL28335\DSP2833x_GlobalVariableDefs.c

?????文件??????15807??2008-07-28?09:29??PLL28335\DSP2833x_Gpio.h

?????文件???????8794??2008-08-08?11:11??PLL28335\DSP2833x_Headers_nonBIOS.cmd

?????文件???????7070??2008-07-28?09:29??PLL28335\DSP2833x_I2c.h

?????文件???????4068??2008-01-23?10:38??PLL28335\DSP2833x_I2c_defines.h

?????文件??????31495??2008-07-28?09:29??PLL28335\DSP2833x_Mcbsp.h

?????文件???????2564??2011-10-13?20:29??PLL28335\DSP2833x_PieCtrl.c

?????文件???????5897??2008-07-28?09:29??PLL28335\DSP2833x_PieCtrl.h

............此處省略55個文件信息

評論

共有 條評論