上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: /*****************************************************************************Copyright: 2013File name: led.vDescription: 使用HC595驱动数码管Author: Version: v1.0Date: 2013.05.09History: 无Connect:P3.4->pin114 P3.5->pin116 P3.6->pin118 *************************************************************** 阅读全文
posted @ 2014-03-30 10:51 luxiaolai 阅读(466) 评论(0) 推荐(0) 编辑
摘要: /***************************************************Copyright: 2014-02-11.version1.0File name: timer.cDescription: 定时中断控制的流水灯Author: lxlVersion: version1.0Date: 2014.02.11History:无****************************************************/#include char a=0xff;int num=0;/*********************************** 阅读全文
posted @ 2014-02-11 20:38 luxiaolai 阅读(3419) 评论(1) 推荐(0) 编辑
摘要: /*******************************************Copyright: 2014.02.09.version1.0File name: led.cDescription: 自己做的流水灯89C51Author: lxlVersion: version1.0Date: 2014.02.09History: 无*********************************************/#include /*************************************************Function: delay()Descr 阅读全文
posted @ 2014-02-09 21:04 luxiaolai 阅读(673) 评论(0) 推荐(0) 编辑
摘要: /*自己做的PWM程序*2014-01-09*/module pwm(clk,rst,led);input clk,rst;output [7:0] led;parameter T=31'd2000000;parameter C=31'd200_0;reg [31:0] cnt;reg [31:0] pul;reg on;always @ (posedge clk or negedge rst)if(!rst)begincnt<=0;pul<=0;endelse if(T==cnt)begincnt<=0;pul<=pul+100;if(pul==C)p 阅读全文
posted @ 2014-01-15 22:37 luxiaolai 阅读(351) 评论(0) 推荐(0) 编辑
摘要: android NDK开发环境搭建 2012-05-14 00:13:58分类: 嵌入式基于 Android NDK 的学习之旅-----环境搭建工欲善其事必先利其器 , 下面介绍下 Eclipse SDK NDK Cygwin CDT 集成开发环境的搭建。1、Android 开发环境搭建Android开发环境搭建不是重点,相信看此文章的很多人都已经搭建成功,这里随便概述性的说说。1) 下载 JDK2) 下载 Eclipse3) 下载 Android SDK4) 启动Eclipse , 安装 ADT2、下载安装Android NDK我使用的NDK版本为r5Google 出的最新NDK 为 r6 阅读全文
posted @ 2013-12-02 07:16 luxiaolai 阅读(232) 评论(0) 推荐(0) 编辑
摘要: module led(CLOCK,RESET,LED,KEY_UP);input CLOCK,RESET,KEY_UP;output reg [3:0] LED;parameter s1=2'b00,s2=2'b01,s3=2'b10,s4=2'b11;reg [1:0] current_state,next_state;parameter T1s=31'd2_000_0000;reg [31:0] cnt;reg t;always @(posedge CLOCK or negedge RESET)if(!RESET)begint<=0;cnt&l 阅读全文
posted @ 2013-11-14 21:59 luxiaolai 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 在原理图中找到元件,快捷键TS即可在PCB中找到元件,且为选中状态。 阅读全文
posted @ 2013-11-14 20:59 luxiaolai 阅读(739) 评论(0) 推荐(0) 编辑
摘要: /*****************************************************************************Copyright: 2014,TkaiFile name: main.cDescription:28335定时器0中断测试Author: Ve... 阅读全文
posted @ 2013-11-06 21:16 luxiaolai 阅读(314) 评论(0) 推荐(0) 编辑
摘要: #include "DSP2833x_Device.h"#include "DSP2833x_Examples.h"void Ad_init(void){InitSysCtrl();InitAdc();AdcRegs.ADCTRL1.bit.ACQ_PS=0;//ADC的采样窗口时间,较低的采样频率... 阅读全文
posted @ 2013-09-06 21:48 luxiaolai 阅读(3747) 评论(0) 推荐(0) 编辑
摘要: #include "DSP2833x_Device.h"#include "DSP2833x_Examples.h"char buf[]={0x30,0x32,0x34,0x35,0x67,0x23,0x45,0x56,0x30,0x32,0x34,0x35,0x67,0x23,0x45,0x56};void delay(void){longint i,j;for(j=0;j<2550;j++)for(i=0;i<2550;i++);}interrupt void send(void){int i;for(i=0;i<12;i++){S 阅读全文
posted @ 2013-09-02 20:44 luxiaolai 阅读(2785) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页