資源簡(jiǎn)介
3kw數(shù)字LLC原理圖和源代碼,內(nèi)容完整。基于DSP2802x平臺(tái)開(kāi)發(fā),

代碼片段和文件信息
//----------------------------------------------------------------------------------
//
//?FILE: {ProjectName}-DevInit_F2803x.c
//
//?DEscriptION: Device?initialization?for?F2803x?series
//?
//----------------------------------------------------------------------------------
//??Copyright?Texas?Instruments??2010
//----------------------------------------------------------------------------------
//??Revision?History:
//----------------------------------------------------------------------------------
//??Date ??|?Description?/?Status
//----------------------------------------------------------------------------------
//?29?Jun?2010?|?MB?
//----------------------------------------------------------------------------------
#include?“PeripheralHeaderIncludes.h“
//?Functions?that?will?be?run?from?RAM?need?to?be?assigned?to
//?a?different?section.??This?section?will?then?be?mapped?to?a?load?and
//?run?address?using?the?linker?cmd?file.
#pragma?CODE_SECTION(InitFlash?“ramfuncs“);
#define?Device_cal?(void???(*)(void))0x3D7C80
void?DeviceInit(void);
void?PieCntlInit(void);
void?PieVectTableInit(void);
void?WDogDisable(void);
void?PLLset(Uint16);
void?ISR_ILLEGAL(void);
//--------------------------------------------------------------------
//??Configure?Device?for?target?Application?Here
//--------------------------------------------------------------------
void?DeviceInit(void)
{
WDogDisable();? //?Disable?the?watchdog?initially
DINT; //?Global?Disable?all?Interrupts
IER?=?0x0000; //?Disable?CPU?interrupts
IFR?=?0x0000; //?Clear?all?CPU?interrupt?flags
//?The?Device_cal?function?which?copies?the?ADC?&?oscillator?calibration?values
//?from?TI?reserved?OTP?into?the?appropriate?trim?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?and?oscillators?to?function?according
//?to?specification.
EALLOW;
SysCtrlRegs.PCLKCR0.bit.ADCENCLK?=?1;?//?Enable?ADC?peripheral?clock
(*Device_cal)(); ??//?Auto-calibrate?from?TI?OTP
SysCtrlRegs.PCLKCR0.bit.ADCENCLK?=?0;?//?Return?ADC?clock?to?original?state
EDIS;
//?Switch?to?Internal?Oscillator?1?and?turn?off?all?other?clock
//?sources?to?minimize?power?consumption
EALLOW;
SysCtrlRegs.CLKCTL.bit.INTOSC1OFF?=?0;
????SysCtrlRegs.CLKCTL.bit.OSCCLKSRCSEL=0;??//?Clk?Src?=?INTOSC1
SysCtrlRegs.CLKCTL.bit.XCLKINOFF=1;?????//?Turn?off?XCLKIN
SysCtrlRegs.CLKCTL.bit.XTALOSCOFF=1;????//?Turn?off?XTALOSC
SysCtrlRegs.CLKCTL.bit.INTOSC2OFF=1;????//?Turn?off?INTOSC2
????EDIS;
//?SYSTEM?CLOCK?speed?based?on?internal?oscillator?=?10?MHz
//?0xC?=??60 MHz (12)
//?0xB?=??55 MHz (11)
//?0xA?=??50 MHz (10)
//?0x9?=??45 MHz (9)
//?0x8?=??40 MHz (8)
//?0x7?=??35 MHz (7)
//?0x6?=??30 MHz (6)
//?0x5?=??25 MHz (5)
//?0x4?=??20 MHz (4)
//?0x3?=??15 MHz (3)
//?0x2?=??10 MHz (2)
PLLset(0xC); //?choose?from?options?above
//
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????90389??2017-04-26?09:38??3KW數(shù)字LLC源代碼\HVLLC-PCB[R3].pdf
?????文件??????79408??2017-04-26?09:38??3KW數(shù)字LLC源代碼\HVLLC-SCH[R3].pdf
?????文件????????324??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.ccsproject
?????文件???????6331??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.cdtbuild
?????文件????????677??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.cdtproject
?????文件???????3640??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.launches\HVLLC.launch
?????文件???????2501??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.project
?????文件????????982??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.settings\org.eclipse.cdt.managedbuilder.core.prefs
?????文件????????137??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\.settings\org.eclipse.ltk.core.refactoring.prefs
?????文件???????8830??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\F28027_FLASH_HVLLC.CMD
?????文件??????20426??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\HVLLC-DevInit_F2802x.c
?????文件???????6693??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\HVLLC-DPL-ISR.asm
?????文件??????32923??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\HVLLC-Main.c
?????文件???????2701??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\HVLLC-Settings.h
?????文件????????299??2017-04-26?09:38??3KW數(shù)字LLC源代碼\LLC\macros.ini
?????文件?????435350??2017-04-26?09:38??3KW數(shù)字LLC源代碼\zhca520.pdf
?????文件????1034697??2017-04-26?09:38??3KW數(shù)字LLC源代碼\zhca540.pdf
?????目錄??????????0??2017-12-08?13:38??3KW數(shù)字LLC源代碼\LLC\.launches
?????目錄??????????0??2017-12-08?13:38??3KW數(shù)字LLC源代碼\LLC\.settings
?????目錄??????????0??2017-12-08?13:38??3KW數(shù)字LLC源代碼\LLC
?????目錄??????????0??2017-12-08?13:38??3KW數(shù)字LLC源代碼
-----------?---------??----------?-----??----
??????????????1726308????????????????????21
評(píng)論
共有 條評(píng)論