浮名此生分享 http://blog.sciencenet.cn/u/hailangww 工学博士

博文

按标题搜索
VC++运行遇到的问题,
2022-10-9 10:53
#includecstdio int main() { int a,b,c; scanf_s(%d%d%d,a,b,c); printf(%d,%d,%d\n,a,b,c); return 0; } 按debug调试运行,弹出cmd.exe,输入3 4 5后,结果报错如下 'test3.exe': Loaded 'C:\Users\Wukun\Documents\Visual Studio 2010\Projects\vc ...
1019 次阅读|没有评论
看门狗中断程序
2022-9-30 11:55
// watchdog.cpp : Defines the entry point for the console application. //---------------------------------------------------------------------- // #################看门狗中断程序############## //----------------------------------------------------- ...
1427 次阅读|没有评论
[转载]中断服务程序
2022-9-29 12:23
// TI File $Revision: /main/3 $ // Checkin $Date: September 28, 2022 17:28:45 $ //####################################################################### // // FILE: DSP281x_IRS.c 中断程序实例 // // TITLE: DSP281x Global Variables and Data Section Pragmas. ...
1541 次阅读|没有评论
[转载]解除代码安全模式
2022-9-28 13:58
//--------------------------------------------------------------------------- // Example: CsmUnlock: //--------------------------------------------------------------------------- // This function unlocks the CSM. User must replace 0xFFFF's with current // password for the DSP. Returns 1 if ...
1258 次阅读|没有评论
[转载]官方锁相环初始化例程
2022-9-27 13:14
/* * 函数名称:InitPll * 函数输入:倍频参数val,分频参数divsel * val取值为0到10,表示倍频数;divsel取值0到4,0和1表示4分频,2表示2分频,3表示不分频 * 函数输出:无 * 函数调用:InitPll(10,2); * 先将外部时钟倍频10倍,在 ...
1524 次阅读|没有评论
[转载]初始化外设时钟
2022-9-27 09:58
//-------------------------------------------------------------------------- // Example: InitPeripheralClocks: //--------------------------------------------------------------------------- // This function initializes the clocks to the peripheral modules. // First the high and low clock prescal ...
939 次阅读|没有评论
[转载]锁相环初始化
2022-9-27 09:41
void InitPll(Uint16 val) { volatile Uint16 iVol; if (SysCtrlRegs.PLLCR.bit.DIV != val) { EALLOW; SysCtrlRegs.PLLCR.bit.DIV = val; //CLKIN=30*10/2=150MHZ EDIS; & ...
913 次阅读|没有评论
[转载]初始化系统控制寄存器II
2022-9-26 14:10
上一篇里转载了一个版本的系统控制寄存器初始化函数,这里转载另一个版本的,发现两个版本的差异。 void InitSysCtrl(void) { // On F2812/F2810 TMX samples prior to rev C this initialization was // required. For Rev C and after this is no longer required /* //宏定义EALLOW来设置状态寄存器1的C ...
1285 次阅读|没有评论
[转载]初始化系统控制寄存器
2022-9-26 13:48
void InitSysCtrl(void) // Disable watchdog module SysCtrlRegs.WDCR=0x0068; // Initialize PLL SysCtrlRegs.PLLCR= 0xA; //CLKIN=(OSCCLK*10.0)/2 此指令将PLL使能延时,等待PLL使能(即为锁相环上锁) for (i=0;i5000;i++){} //Wait for PLL to lock //HISPCP/LOSPCP prescale ...
个人分类: 未分类|1626 次阅读|没有评论
DSP学习第一天
2022-9-26 11:45
个人分类: 未分类|1172 次阅读|没有评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-19 13:15

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部