12 2016 档案

摘要:module D_Flip_Flop( clk,rst_n,d,q); input clk; input rst_n; input d; output reg q; always @(posedge clk or negedge rst_n) if(!rst_n) q <= 1'b0; else q <= d; endmodule 阅读全文
posted @ 2016-12-20 13:38 peng_blog 阅读(214) 评论(0) 推荐(0)
摘要:1.宏定义的用大写: #define BIT_P1_0 0XFE 2.全局变量:大小写混用,不同部分用大写字母隔开。 unsigned char MoonRiver; 3.局部变量:全部用小写,不同部分之间用‘-’隔开。 unsigned char moon_river; 3.对于低电平有效的信号, 阅读全文
posted @ 2016-12-20 13:34 peng_blog 阅读(354) 评论(0) 推荐(0)
摘要:430IO口操作基本上就是先输出,然后赋值,程序其实和以前写的51单片机没有太大区别 阅读全文
posted @ 2016-12-17 16:03 peng_blog 阅读(206) 评论(0) 推荐(0)
摘要:感觉自己对16进制掌握的不太熟悉,调了好一会才出效果 阅读全文
posted @ 2016-12-17 15:36 peng_blog 阅读(245) 评论(0) 推荐(0)