摘要: 1.头文件和变量定义bool g_bFeedWatchdog = true;#include "driverlib/watchdog.h"2.初始化 // Watchdog Init SysCtlPeripheralEnable(SYSCTL_PERIPH_WDOG0); // E... 阅读全文
posted @ 2015-12-23 16:07 planet 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: 1.分组回归sort stateby state:reg xxx xxx但是这样不能直接用outreg导出,采用下面的方法forvalues t = 2001/2008{ qui reg y x if year == `t' est store r_`t'}然后不小心看到了一位大神的三种方法... 阅读全文
posted @ 2015-12-06 17:27 planet 阅读(74268) 评论(0) 推荐(1) 编辑
摘要: 1.配置UARTvoid uart_configure(uint32_t baud){ // Enable the GPIO Peripheral used by the UART ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); /... 阅读全文
posted @ 2015-10-30 14:51 planet 阅读(2385) 评论(0) 推荐(0) 编辑
摘要: 1.#define的使用#define SQUARE_DUTY 0.52.FPU的开启:浮点运算FPUEnable();FPULazyStackingEnable();3.定时器初始化 // // Timer init // SysCtlPeriphera... 阅读全文
posted @ 2015-10-26 23:37 planet 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: 1.清屏UC1701Clear();2.显示字符UC1701ChineseDispaly(0, 0, 6,key1);UC1701CharDispaly(3, 0, "22920132203583");0(3)——第几行0(0)——前面有几个空格6——共有几个字符3.液晶屏初始化UC1701Init... 阅读全文
posted @ 2015-10-26 21:47 planet 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 1.按键初始化按键K1——PD7按键K2——PF4按键K3——PA3按键K4——PA2 // // key1 init // SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);已经在LED init写过了,不然也是要写的 GPI... 阅读全文
posted @ 2015-10-26 21:36 planet 阅读(2977) 评论(0) 推荐(1) 编辑
摘要: 【实验内容】任选一个LED灯,4秒内从全灭到全亮,亮度变化至少20个台阶,循环往复。1.#ifdef DEBUG 的作用//*****************************************************************************//// The er... 阅读全文
posted @ 2015-10-26 21:20 planet 阅读(4903) 评论(0) 推荐(0) 编辑
摘要: 1.产生FM信号并绘制频域波形%% 产生FM信号并绘制时域波形fm = 500; % 调制信号频率Am = 0.5; % 调制信号幅度fc = 5e3; % 载波频率Ac = 1; % 载波幅度kf = 10000*pi; % 调频灵敏度fs = 75e3; % 采样率N = 3000; % 样点总... 阅读全文
posted @ 2015-10-26 20:54 planet 阅读(1554) 评论(0) 推荐(0) 编辑
摘要: 1.主程序clear all;clcclose allkenlRatio = .01;%窗口大小比例minAtomsLight = 240;%原始论文中的A最终是取原始像素中的某一个点的像素,我实际上是取的符合条件的所有点的平均值作为A的值。%如果是取一个点,则各通道的A值很有可能全部很接近255,... 阅读全文
posted @ 2015-10-26 19:54 planet 阅读(4731) 评论(0) 推荐(1) 编辑
摘要: 1.高斯滤波clear all;clc;close all%% 彩色to灰度img=imread('Fig0631(a)(strawberries_coffee_full_color).jpg');gray=rgb2gray(img); ... 阅读全文
posted @ 2015-10-26 19:50 planet 阅读(2429) 评论(0) 推荐(1) 编辑