摘要: 1 (一)GPIO用作中断的操作流程 2 3 1.系统时钟配置 SysCtlClockSet 4 2.GPIO设备时钟打开 SysCtlPeripheralEnable 5 3.Pin脚功能设置 GPIOPinTypeInput 6 4.Pin脚中断触发模式设置 GPIOIntTypeSet 7 5.Pin脚中断允许 GPIOPinIntEnable 8 6.内设中断允许 IntEnable 9 7.MCU总中断允许 IntMasterEnable10 11 中断服务程序12 1.读取中... 阅读全文
posted @ 2012-03-13 22:57 fishplj2000 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 1 Verilog的技术点 2 3 1. 0-n循环计数器 4 //////////////////////////0-n循环计数器 5 reg [19:0]cnt; 6 always@(posedge clk or negedge rst_n) 7 if(!rst_n) 8 cnt<=20'd0; 9 else if(cnt<20'dn) 10 cnt<=cnt+1'b1; 11 else 12 cnt<=20'd0; 13 或者 14 reg [19:0]cnt; 15 always@(posed... 阅读全文
posted @ 2012-03-13 22:53 fishplj2000 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1 按键硬件延时消除抖动 2 3 //1. 每320ms,采样更新一下按键值, 4 always @ (posedge clk or negedge rst_n) 5 if(!rst_n) 6 key_value <= 3'b111; 7 else if(delay == 预期间隔) 8 key_value <= {key3,key2,key1}; 9 10 //2. 判断key_value的上升沿和下降沿11 12 //3. 这样:小于320ms的按键抖动,系统不响应 阅读全文
posted @ 2012-03-13 22:37 fishplj2000 阅读(801) 评论(0) 推荐(0) 编辑
摘要: BANK1IO2 IO3 IO4 IO5 IO6 IO7 IO8 IO/GCLK012 IO/GCLK114 IO15 IO16 IO17 IO18 IO19 IO20 IO21 IO26 IO27 IO28 IO29 IO30 IO33 IO34 IO35 IO36 IO37 IO38 IO39 IO40 IO41 IO42 IO/DEV_OE43 IO/DEV_CLRn44 IO47 IO48 IO49 IO50 IO51 BANK2IO52 IO53 IO54 IO55 IO56 IO57 IO58 IO61 IO/GCLK262 IO/GCLK464 IO66 IO67 IO68 .. 阅读全文
posted @ 2012-03-13 15:14 fishplj2000 阅读(371) 评论(0) 推荐(0) 编辑
摘要: [转帖]非直接RAM地址映射转换思路 1 http://bbs.ednchina.com/BLOG_ARTICLE_2137592.HTM 2 非直接RAM地址映射转换思路 [嵌入式] 发布时间:2011-09-19 12:59:56 3 呢称:ilove314 4 非直接RAM地址映射转换思路 5 6 通常情况下,如果是320*240(X*Y)分辨率的图像,使用128K(17bitRAM做地址映射,分别取X寻址对应128K的低9bit(可使用地址为0-511)、Y寻址对应128K的高8bit(可使用地址为0-255)。 7 8 但如果是480*... 阅读全文
posted @ 2012-03-13 13:13 fishplj2000 阅读(336) 评论(0) 推荐(0) 编辑