实例介绍
温湿度传感器DHT11读写Verilog驱动源码Quartus工程文件,FPGA读取DHT11温度湿度数据并通过数码管显示输出,FPGA型号Cyclone4E系列中的EP4CE10F17C8,Quartus版本18.0。 module top_dht11( input sys_clk , //系统时钟 input sys_rst_n, //系统复位 inout dht11 , //DHT11总线 input key , //按键 output [5:0] sel , //数码管位选信号 output [7:0] seg_led //数码管段选信号 ); //wire define wire [31:0] data_valid; wire [19:0] data ; wire [5:0] point ; //***************************************************** //** main code //***************************************************** //dht11驱动模块 dht11_drive u_dht11_drive ( .sys_clk (sys_clk), .rst_n (sys_rst_n), .dht11 (dht11), .data_valid (data_valid) ); //按键消抖模块 key_debounce u_key_debounce( .sys_clk (sys_clk), .sys_rst_n (sys_rst_n), .key (key), .key_flag (key_flag), .key_value (key_value) ); //按键控制温/湿度显示 dht11_key u_dht11_key( .sys_clk (sys_clk), .sys_rst_n (sys_rst_n), .key_flag (key_flag), .key_value (key_value), .data_valid (data_valid), .data (data), .sign (sign), .en (en), .point (point) ); //动态数码管显示模块 seg_led u_seg_led ( .clk (sys_clk), .rst_n (sys_rst_n), .seg_sel (sel), .seg_led (seg_led), .data (data), .point (point), .en (en), .sign (sign) ); endmodule
【实例截图】
【核心代码】
16359647525830709937.zip
└── top_dht11
├── doc
├── par
│ ├── db
│ │ ├── add_sub_7pc.tdf
│ │ ├── add_sub_8pc.tdf
│ │ ├── add_sub_kgh.tdf
│ │ ├── altsyncram_0124.tdf
│ │ ├── altsyncram_2124.tdf
│ │ ├── altsyncram_2u14.tdf
│ │ ├── altsyncram_4124.tdf
│ │ ├── altsyncram_5124.tdf
│ │ ├── altsyncram_6124.tdf
│ │ ├── altsyncram_8124.tdf
│ │ ├── altsyncram_9124.tdf
│ │ ├── altsyncram_a124.tdf
│ │ ├── altsyncram_au14.tdf
│ │ ├── altsyncram_b124.tdf
│ │ ├── altsyncram_bu14.tdf
│ │ ├── altsyncram_c124.tdf
│ │ ├── altsyncram_cu14.tdf
│ │ ├── altsyncram_d124.tdf
│ │ ├── altsyncram_e124.tdf
│ │ ├── altsyncram_f124.tdf
│ │ ├── altsyncram_g124.tdf
│ │ ├── altsyncram_h124.tdf
│ │ ├── altsyncram_i124.tdf
│ │ ├── altsyncram_i504.tdf
│ │ ├── altsyncram_j124.tdf
│ │ ├── altsyncram_k124.tdf
│ │ ├── altsyncram_l124.tdf
│ │ ├── altsyncram_m124.tdf
│ │ ├── altsyncram_n124.tdf
│ │ ├── altsyncram_o124.tdf
│ │ ├── altsyncram_p124.tdf
│ │ ├── altsyncram_u024.tdf
│ │ ├── alt_u_div_0af.tdf
│ │ ├── alt_u_div_47f.tdf
│ │ ├── alt_u_div_o9f.tdf
│ │ ├── alt_u_div_u6f.tdf
│ │ ├── cmpr_ngc.tdf
│ │ ├── cmpr_pgc.tdf
│ │ ├── cmpr_qgc.tdf
│ │ ├── cmpr_rgc.tdf
│ │ ├── cmpr_sgc.tdf
│ │ ├── cmpr_tgc.tdf
│ │ ├── cntr_0hi.tdf
│ │ ├── cntr_1hi.tdf
│ │ ├── cntr_23j.tdf
│ │ ├── cntr_2hi.tdf
│ │ ├── cntr_3hi.tdf
│ │ ├── cntr_4hi.tdf
│ │ ├── cntr_5hi.tdf
│ │ ├── cntr_6hi.tdf
│ │ ├── cntr_7hi.tdf
│ │ ├── cntr_9gi.tdf
│ │ ├── cntr_bbj.tdf
│ │ ├── cntr_dgi.tdf
│ │ ├── cntr_egi.tdf
│ │ ├── cntr_fgi.tdf
│ │ ├── cntr_g9j.tdf
│ │ ├── cntr_ggi.tdf
│ │ ├── cntr_hgi.tdf
│ │ ├── cntr_i6j.tdf
│ │ ├── cntr_igi.tdf
│ │ ├── cntr_jgi.tdf
│ │ ├── cntr_kgi.tdf
│ │ ├── cntr_lgi.tdf
│ │ ├── cntr_m9j.tdf
│ │ ├── cntr_mgi.tdf
│ │ ├── cntr_ngi.tdf
│ │ ├── cntr_o9j.tdf
│ │ ├── cntr_ogi.tdf
│ │ ├── cntr_pgi.tdf
│ │ ├── cntr_qgi.tdf
│ │ ├── cntr_rgi.tdf
│ │ ├── cntr_sgi.tdf
│ │ ├── cntr_tgi.tdf
│ │ ├── cntr_uei.tdf
│ │ ├── cntr_ugi.tdf
│ │ ├── cntr_vei.tdf
│ │ ├── cntr_vgi.tdf
│ │ ├── decode_dvf.tdf
│ │ ├── decode_jsa.tdf
│ │ ├── decode_rsa.tdf
│ │ ├── dht11_seg.(0).cnf.cdb
│ │ ├── dht11_seg.(0).cnf.hdb
│ │ ├── dht11_seg.(10).cnf.cdb
│ │ ├── dht11_seg.(10).cnf.hdb
│ │ ├── dht11_seg.(11).cnf.cdb
│ │ ├── dht11_seg.(11).cnf.hdb
│ │ ├── dht11_seg.(12).cnf.cdb
│ │ ├── dht11_seg.(12).cnf.hdb
│ │ ├── dht11_seg.(13).cnf.cdb
│ │ ├── dht11_seg.(13).cnf.hdb
│ │ ├── dht11_seg.(14).cnf.cdb
│ │ ├── dht11_seg.(14).cnf.hdb
│ │ ├── dht11_seg.(15).cnf.cdb
│ │ ├── dht11_seg.(15).cnf.hdb
│ │ ├── dht11_seg.(16).cnf.cdb
│ │ ├── dht11_seg.(16).cnf.hdb
│ │ ├── dht11_seg.(17).cnf.cdb
│ │ ├── dht11_seg.(17).cnf.hdb
│ │ ├── dht11_seg.(18).cnf.cdb
│ │ ├── dht11_seg.(18).cnf.hdb
│ │ ├── dht11_seg.(19).cnf.cdb
│ │ ├── dht11_seg.(19).cnf.hdb
│ │ ├── dht11_seg.(1).cnf.cdb
│ │ ├── dht11_seg.(1).cnf.hdb
│ │ ├── dht11_seg.(20).cnf.cdb
│ │ ├── dht11_seg.(20).cnf.hdb
│ │ ├── dht11_seg.(21).cnf.cdb
│ │ ├── dht11_seg.(21).cnf.hdb
│ │ ├── dht11_seg.(22).cnf.cdb
│ │ ├── dht11_seg.(22).cnf.hdb
│ │ ├── dht11_seg.(23).cnf.cdb
│ │ ├── dht11_seg.(23).cnf.hdb
│ │ ├── dht11_seg.(24).cnf.cdb
│ │ ├── dht11_seg.(24).cnf.hdb
│ │ ├── dht11_seg.(25).cnf.cdb
│ │ ├── dht11_seg.(25).cnf.hdb
│ │ ├── dht11_seg.(26).cnf.cdb
│ │ ├── dht11_seg.(26).cnf.hdb
│ │ ├── dht11_seg.(27).cnf.cdb
│ │ ├── dht11_seg.(27).cnf.hdb
│ │ ├── dht11_seg.(28).cnf.cdb
│ │ ├── dht11_seg.(28).cnf.hdb
│ │ ├── dht11_seg.(29).cnf.cdb
│ │ ├── dht11_seg.(29).cnf.hdb
│ │ ├── dht11_seg.(2).cnf.cdb
│ │ ├── dht11_seg.(2).cnf.hdb
│ │ ├── dht11_seg.(30).cnf.cdb
│ │ ├── dht11_seg.(30).cnf.hdb
│ │ ├── dht11_seg.(31).cnf.cdb
│ │ ├── dht11_seg.(31).cnf.hdb
│ │ ├── dht11_seg.(3).cnf.cdb
│ │ ├── dht11_seg.(3).cnf.hdb
│ │ ├── dht11_seg.(4).cnf.cdb
│ │ ├── dht11_seg.(4).cnf.hdb
│ │ ├── dht11_seg.(5).cnf.cdb
│ │ ├── dht11_seg.(5).cnf.hdb
│ │ ├── dht11_seg.(6).cnf.cdb
│ │ ├── dht11_seg.(6).cnf.hdb
│ │ ├── dht11_seg.(7).cnf.cdb
│ │ ├── dht11_seg.(7).cnf.hdb
│ │ ├── dht11_seg.(8).cnf.cdb
│ │ ├── dht11_seg.(8).cnf.hdb
│ │ ├── dht11_seg.(9).cnf.cdb
│ │ ├── dht11_seg.(9).cnf.hdb
│ │ ├── dht11_seg.asm_labs.ddb
│ │ ├── dht11_seg.asm.qmsg
│ │ ├── dht11_seg.asm.rdb
│ │ ├── dht11_seg.cmp.bpm
│ │ ├── dht11_seg.cmp.cdb
│ │ ├── dht11_seg.cmp.hdb
│ │ ├── dht11_seg.cmp.idb
│ │ ├── dht11_seg.cmp.logdb
│ │ ├── dht11_seg.cmp_merge.kpt
│ │ ├── dht11_seg.cmp.rdb
│ │ ├── dht11_seg.cycloneive_io_sim_cache.45um_ff_1200mv_0c_fast.hsd
│ │ ├── dht11_seg.cycloneive_io_sim_cache.45um_ss_1200mv_0c_slow.hsd
│ │ ├── dht11_seg.cycloneive_io_sim_cache.45um_ss_1200mv_85c_slow.hsd
│ │ ├── dht11_seg.db_info
│ │ ├── dht11_seg.eda.qmsg
│ │ ├── dht11_seg.fit.qmsg
│ │ ├── dht11_seg.hier_info
│ │ ├── dht11_seg.hif
│ │ ├── dht11_seg.lpc.html
│ │ ├── dht11_seg.lpc.rdb
│ │ ├── dht11_seg.lpc.txt
│ │ ├── dht11_seg.map.ammdb
│ │ ├── dht11_seg.map_bb.cdb
│ │ ├── dht11_seg.map_bb.hdb
│ │ ├── dht11_seg.map_bb.logdb
│ │ ├── dht11_seg.map.bpm
│ │ ├── dht11_seg.map.cdb
│ │ ├── dht11_seg.map.hdb
│ │ ├── dht11_seg.map.kpt
│ │ ├── dht11_seg.map.logdb
│ │ ├── dht11_seg.map.qmsg
│ │ ├── dht11_seg.map.rdb
│ │ ├── dht11_seg_partition_pins.json
│ │ ├── dht11_seg.pre_map.hdb
│ │ ├── dht11_seg.root_partition.map.reg_db.cdb
│ │ ├── dht11_seg.routing.rdb
│ │ ├── dht11_seg.rtlv.hdb
│ │ ├── dht11_seg.rtlv_sg.cdb
│ │ ├── dht11_seg.rtlv_sg_swap.cdb
│ │ ├── dht11_seg.sld_design_entry_dsc.sci
│ │ ├── dht11_seg.sld_design_entry.sci
│ │ ├── dht11_seg.smart_action.txt
│ │ ├── dht11_seg.smp_dump.txt
│ │ ├── dht11_seg.sta_cmp.8_slow_1200mv_85c.tdb
│ │ ├── dht11_seg.sta.qmsg
│ │ ├── dht11_seg.sta.rdb
│ │ ├── dht11_seg.tiscmp.fast_1200mv_0c.ddb
│ │ ├── dht11_seg.tiscmp.fastest_slow_1200mv_0c.ddb
│ │ ├── dht11_seg.tiscmp.fastest_slow_1200mv_85c.ddb
│ │ ├── dht11_seg.tiscmp.slow_1200mv_0c.ddb
│ │ ├── dht11_seg.tiscmp.slow_1200mv_85c.ddb
│ │ ├── dht11_seg.tis_db_list.ddb
│ │ ├── dht11_seg.tmw_info
│ │ ├── dht11_seg.vpr.ammdb
│ │ ├── logic_util_heursitic.dat
│ │ ├── lpm_divide_0bm.tdf
│ │ ├── lpm_divide_0jm.tdf
│ │ ├── lpm_divide_akm.tdf
│ │ ├── lpm_divide_ekm.tdf
│ │ ├── lpm_divide_tim.tdf
│ │ ├── mux_1tc.tdf
│ │ ├── mux_2nb.tdf
│ │ ├── mux_3nb.tdf
│ │ ├── mux_fob.tdf
│ │ ├── mux_rsc.tdf
│ │ ├── mux_ssc.tdf
│ │ ├── mux_tsc.tdf
│ │ ├── mux_vob.tdf
│ │ ├── mux_vsc.tdf
│ │ ├── prev_cmp_dht11_seg.qmsg
│ │ ├── sign_div_unsign_2nh.tdf
│ │ ├── sign_div_unsign_6nh.tdf
│ │ ├── sign_div_unsign_llh.tdf
│ │ ├── sign_div_unsign_olh.tdf
│ │ └── stp1_auto_stripped.stp
│ ├── dht11_seg_assignment_defaults.qdf
│ ├── dht11_seg.qpf
│ ├── dht11_seg.qsf
│ ├── dht11_seg.qws
│ ├── incremental_db
│ │ ├── compiled_partitions
│ │ │ ├── dht11_seg.autoh_e40e1.map.dpi
│ │ │ ├── dht11_seg.autoh_e40e1.map.kpt
│ │ │ ├── dht11_seg.autoh_e40e1.map.logdb
│ │ │ ├── dht11_seg.autos_3e921.map.dpi
│ │ │ ├── dht11_seg.autos_3e921.map.kpt
│ │ │ ├── dht11_seg.autos_3e921.map.logdb
│ │ │ ├── dht11_seg.db_info
│ │ │ ├── dht11_seg.root_partition.cmp.ammdb
│ │ │ ├── dht11_seg.root_partition.cmp.cdb
│ │ │ ├── dht11_seg.root_partition.cmp.dfp
│ │ │ ├── dht11_seg.root_partition.cmp.hdb
│ │ │ ├── dht11_seg.root_partition.cmp.logdb
│ │ │ ├── dht11_seg.root_partition.cmp.rcfdb
│ │ │ ├── dht11_seg.root_partition.map.cdb
│ │ │ ├── dht11_seg.root_partition.map.dpi
│ │ │ ├── dht11_seg.root_partition.map.hbdb.cdb
│ │ │ ├── dht11_seg.root_partition.map.hbdb.hb_info
│ │ │ ├── dht11_seg.root_partition.map.hbdb.hdb
│ │ │ ├── dht11_seg.root_partition.map.hbdb.sig
│ │ │ ├── dht11_seg.root_partition.map.hdb
│ │ │ ├── dht11_seg.root_partition.map.kpt
│ │ │ └── dht11_seg.rrp.hdb
│ │ └── README
│ ├── output_files
│ │ ├── dht11_seg.asm.rpt
│ │ ├── dht11_seg.cdf
│ │ ├── dht11_seg.done
│ │ ├── dht11_seg.eda.rpt
│ │ ├── dht11_seg.fit.rpt
│ │ ├── dht11_seg.fit.smsg
│ │ ├── dht11_seg.fit.summary
│ │ ├── dht11_seg.flow.rpt
│ │ ├── dht11_seg.jdi
│ │ ├── dht11_seg.map.rpt
│ │ ├── dht11_seg.map.summary
│ │ ├── dht11_seg.pin
│ │ ├── dht11_seg.sld
│ │ ├── dht11_seg.sof
│ │ ├── dht11_seg.sta.rpt
│ │ ├── dht11_seg.sta.summary
│ │ ├── output_file.jic
│ │ └── output_file.map
│ ├── simulation
│ │ └── modelsim
│ │ ├── dht11_seg_8_1200mv_0c_slow.vo
│ │ ├── dht11_seg_8_1200mv_0c_v_slow.sdo
│ │ ├── dht11_seg_8_1200mv_85c_slow.vo
│ │ ├── dht11_seg_8_1200mv_85c_v_slow.sdo
│ │ ├── dht11_seg_min_1200mv_0c_fast.vo
│ │ ├── dht11_seg_min_1200mv_0c_v_fast.sdo
│ │ ├── dht11_seg_modelsim.xrf
│ │ ├── dht11_seg.sft
│ │ ├── dht11_seg.vo
│ │ └── dht11_seg_v.sdo
│ └── stp1.stp
├── rtl
│ ├── dht11_drive.v
│ ├── dht11_drive.v.bak
│ ├── dht11_key.v
│ ├── dht11_key.v.bak
│ ├── key_debounce.v
│ ├── key_debounce.v.bak
│ ├── seg_led.v
│ ├── seg_led.v.bak
│ ├── top_dht11.v
│ └── top_dht11.v.bak
└── sim
11 directories, 286 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论