文件名称:DS18B20
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:331.04kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
8位单片机与DS18B20并行双向通信。
Quartus II 8.1项目工程文件.
主源程序文件为DS18B20.v,里面有详细注解。
例子:
DS18B20 数据地址 0xf000(ROM=0) DS18B20 ROM指令地址 0xf001(ROM=1)
外部电源供电且只有一DS18B20的读取法:
发送CC到0xf001,
等待busy=0说明器件已准备好,
读0xf001的Bit1=1说明存在器件,Bit0=1为控制忙(可以省略此步)
发送44到0xf000,
等待busy=0,
发送CC到0xf001,
等待busy=0,
发送BE到0xf000,
等待busy=0,
空读一次,
等待busy=0,
然后读到的就是DS18B20内部数据了.读一次必须等待busy=0,否则控制器将拒绝所有操作。
搜索ROM:
发送F0或EC到0xf001,
等待busy=0说明器件已准备好,
读0xf001的Bit1=1说明存在器件,Bit0=1为控制忙(可以省略此步)
空读0xf000,(第1次)
等待busy=0,
读0xf000,Bit0是DS18B20发送位的信息,Bit1为DS18B20发送位的补码信息
等待busy=0,
写0xf000,内容为路径。
等待busy=0,
。。。。。。
空读0xf000,(第64次)
等待busy=0,
读0xf000,Bit0是DS18B20发送位的信息,Bit1为DS18B20发送位的补码信息
等待busy=0,
写0xf000,内容为路径。
等待busy=0,
结束
-8-bit microcontroller with DS18B20 parallel two-way communication.
Quartus II 8.1 Project documents.
Primary source documents DS18B20.v, which detailed notes.
Example:
DS18B20 Data Address 0xf000 (ROM = 0) DS18B20 ROM instruction address 0xf001 (ROM = 1)
An external power supply and only a DS18B20 read method:
Send CC to 0xf001,
Wait for busy = 0 shows the device is ready,
Read 0xf001 the existence of Bit1 = 1 shows the device, Bit0 = 1 for the control of busy (you can omit this step)
Send 44 to 0xf000,
Wait for busy = 0,
Send CC to 0xf001,
Wait for busy = 0,
Send BE to 0xf000,
Wait for busy = 0,
Blank reading time,
Wait for busy = 0,
Then read is DS18B20 internal data. Read one must wait for the busy = 0, otherwise the controller will reject all operations.
Search ROM:
Send F0 or EC to 0xf001,
Wait for busy = 0 shows the device is ready,
Read 0xf001 the existence of Bit1 = 1 shows the device, Bit0 = 1 for the control of busy (you can omi
Quartus II 8.1项目工程文件.
主源程序文件为DS18B20.v,里面有详细注解。
例子:
DS18B20 数据地址 0xf000(ROM=0) DS18B20 ROM指令地址 0xf001(ROM=1)
外部电源供电且只有一DS18B20的读取法:
发送CC到0xf001,
等待busy=0说明器件已准备好,
读0xf001的Bit1=1说明存在器件,Bit0=1为控制忙(可以省略此步)
发送44到0xf000,
等待busy=0,
发送CC到0xf001,
等待busy=0,
发送BE到0xf000,
等待busy=0,
空读一次,
等待busy=0,
然后读到的就是DS18B20内部数据了.读一次必须等待busy=0,否则控制器将拒绝所有操作。
搜索ROM:
发送F0或EC到0xf001,
等待busy=0说明器件已准备好,
读0xf001的Bit1=1说明存在器件,Bit0=1为控制忙(可以省略此步)
空读0xf000,(第1次)
等待busy=0,
读0xf000,Bit0是DS18B20发送位的信息,Bit1为DS18B20发送位的补码信息
等待busy=0,
写0xf000,内容为路径。
等待busy=0,
。。。。。。
空读0xf000,(第64次)
等待busy=0,
读0xf000,Bit0是DS18B20发送位的信息,Bit1为DS18B20发送位的补码信息
等待busy=0,
写0xf000,内容为路径。
等待busy=0,
结束
-8-bit microcontroller with DS18B20 parallel two-way communication.
Quartus II 8.1 Project documents.
Primary source documents DS18B20.v, which detailed notes.
Example:
DS18B20 Data Address 0xf000 (ROM = 0) DS18B20 ROM instruction address 0xf001 (ROM = 1)
An external power supply and only a DS18B20 read method:
Send CC to 0xf001,
Wait for busy = 0 shows the device is ready,
Read 0xf001 the existence of Bit1 = 1 shows the device, Bit0 = 1 for the control of busy (you can omit this step)
Send 44 to 0xf000,
Wait for busy = 0,
Send CC to 0xf001,
Wait for busy = 0,
Send BE to 0xf000,
Wait for busy = 0,
Blank reading time,
Wait for busy = 0,
Then read is DS18B20 internal data. Read one must wait for the busy = 0, otherwise the controller will reject all operations.
Search ROM:
Send F0 or EC to 0xf001,
Wait for busy = 0 shows the device is ready,
Read 0xf001 the existence of Bit1 = 1 shows the device, Bit0 = 1 for the control of busy (you can omi
相关搜索: ds18b20 vhdl
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DS18B20/db/DS18B20.(0).cnf.cdb
DS18B20/db/DS18B20.(0).cnf.hdb
DS18B20/db/DS18B20.(1).cnf.cdb
DS18B20/db/DS18B20.(1).cnf.hdb
DS18B20/db/DS18B20.(2).cnf.cdb
DS18B20/db/DS18B20.(2).cnf.hdb
DS18B20/db/DS18B20.(3).cnf.cdb
DS18B20/db/DS18B20.(3).cnf.hdb
DS18B20/db/DS18B20.(4).cnf.cdb
DS18B20/db/DS18B20.(4).cnf.hdb
DS18B20/db/DS18B20.(5).cnf.cdb
DS18B20/db/DS18B20.(5).cnf.hdb
DS18B20/db/DS18B20.asm.qmsg
DS18B20/db/DS18B20.cbx.xml
DS18B20/db/DS18B20.cmp.cdb
DS18B20/db/DS18B20.cmp.hdb
DS18B20/db/DS18B20.cmp.logdb
DS18B20/db/DS18B20.cmp.rdb
DS18B20/db/DS18B20.cmp.tdb
DS18B20/db/DS18B20.cmp0.ddb
DS18B20/db/DS18B20.db_info
DS18B20/db/DS18B20.eco.cdb
DS18B20/db/DS18B20.eds_overflow
DS18B20/db/DS18B20.fit.qmsg
DS18B20/db/DS18B20.hier_info
DS18B20/db/DS18B20.hif
DS18B20/db/DS18B20.map.cdb
DS18B20/db/DS18B20.map.hdb
DS18B20/db/DS18B20.map.logdb
DS18B20/db/DS18B20.map.qmsg
DS18B20/db/DS18B20.pre_map.cdb
DS18B20/db/DS18B20.pre_map.hdb
DS18B20/db/DS18B20.rtlv.hdb
DS18B20/db/DS18B20.rtlv_sg.cdb
DS18B20/db/DS18B20.rtlv_sg_swap.cdb
DS18B20/db/DS18B20.sgdiff.cdb
DS18B20/db/DS18B20.sgdiff.hdb
DS18B20/db/DS18B20.sim.cvwf
DS18B20/db/DS18B20.sim.hdb
DS18B20/db/DS18B20.sim.qmsg
DS18B20/db/DS18B20.sim.rdb
DS18B20/db/DS18B20.sld_design_entry.sci
DS18B20/db/DS18B20.sld_design_entry_dsc.sci
DS18B20/db/DS18B20.smp_dump.txt
DS18B20/db/DS18B20.syn_hier_info
DS18B20/db/DS18B20.tan.qmsg
DS18B20/db/DS18B20.tis_db_list.ddb
DS18B20/db/DS18B20.tmw_info
DS18B20/db/prev_cmp_DS18B20.asm.qmsg
DS18B20/db/prev_cmp_DS18B20.fit.qmsg
DS18B20/db/prev_cmp_DS18B20.map.qmsg
DS18B20/db/prev_cmp_DS18B20.qmsg
DS18B20/db/prev_cmp_DS18B20.sim.qmsg
DS18B20/db/prev_cmp_DS18B20.tan.qmsg
DS18B20/db/wed.wsf
DS18B20/DS18B20.asm.rpt
DS18B20/DS18B20.bsf
DS18B20/DS18B20.done
DS18B20/DS18B20.fit.rpt
DS18B20/DS18B20.fit.summary
DS18B20/DS18B20.flow.rpt
DS18B20/DS18B20.map.rpt
DS18B20/DS18B20.map.smsg
DS18B20/DS18B20.map.summary
DS18B20/DS18B20.pin
DS18B20/DS18B20.pof
DS18B20/DS18B20.qpf
DS18B20/DS18B20.qsf
DS18B20/DS18B20.qws
DS18B20/DS18B20.sim.rpt
DS18B20/DS18B20.tan.rpt
DS18B20/DS18B20.tan.summary
DS18B20/DS18B20.v
DS18B20/DS18B20.v.bak
DS18B20/DS18B20.vwf
DS18B20/incremental_db/compiled_partitions/DS18B20.root_partition.map.kpt
DS18B20/incremental_db/README
DS18B20/undo_redo.txt
DS18B20/incremental_db/compiled_partitions
DS18B20/db
DS18B20/incremental_db
DS18B20
DS18B20/db/DS18B20.(0).cnf.hdb
DS18B20/db/DS18B20.(1).cnf.cdb
DS18B20/db/DS18B20.(1).cnf.hdb
DS18B20/db/DS18B20.(2).cnf.cdb
DS18B20/db/DS18B20.(2).cnf.hdb
DS18B20/db/DS18B20.(3).cnf.cdb
DS18B20/db/DS18B20.(3).cnf.hdb
DS18B20/db/DS18B20.(4).cnf.cdb
DS18B20/db/DS18B20.(4).cnf.hdb
DS18B20/db/DS18B20.(5).cnf.cdb
DS18B20/db/DS18B20.(5).cnf.hdb
DS18B20/db/DS18B20.asm.qmsg
DS18B20/db/DS18B20.cbx.xml
DS18B20/db/DS18B20.cmp.cdb
DS18B20/db/DS18B20.cmp.hdb
DS18B20/db/DS18B20.cmp.logdb
DS18B20/db/DS18B20.cmp.rdb
DS18B20/db/DS18B20.cmp.tdb
DS18B20/db/DS18B20.cmp0.ddb
DS18B20/db/DS18B20.db_info
DS18B20/db/DS18B20.eco.cdb
DS18B20/db/DS18B20.eds_overflow
DS18B20/db/DS18B20.fit.qmsg
DS18B20/db/DS18B20.hier_info
DS18B20/db/DS18B20.hif
DS18B20/db/DS18B20.map.cdb
DS18B20/db/DS18B20.map.hdb
DS18B20/db/DS18B20.map.logdb
DS18B20/db/DS18B20.map.qmsg
DS18B20/db/DS18B20.pre_map.cdb
DS18B20/db/DS18B20.pre_map.hdb
DS18B20/db/DS18B20.rtlv.hdb
DS18B20/db/DS18B20.rtlv_sg.cdb
DS18B20/db/DS18B20.rtlv_sg_swap.cdb
DS18B20/db/DS18B20.sgdiff.cdb
DS18B20/db/DS18B20.sgdiff.hdb
DS18B20/db/DS18B20.sim.cvwf
DS18B20/db/DS18B20.sim.hdb
DS18B20/db/DS18B20.sim.qmsg
DS18B20/db/DS18B20.sim.rdb
DS18B20/db/DS18B20.sld_design_entry.sci
DS18B20/db/DS18B20.sld_design_entry_dsc.sci
DS18B20/db/DS18B20.smp_dump.txt
DS18B20/db/DS18B20.syn_hier_info
DS18B20/db/DS18B20.tan.qmsg
DS18B20/db/DS18B20.tis_db_list.ddb
DS18B20/db/DS18B20.tmw_info
DS18B20/db/prev_cmp_DS18B20.asm.qmsg
DS18B20/db/prev_cmp_DS18B20.fit.qmsg
DS18B20/db/prev_cmp_DS18B20.map.qmsg
DS18B20/db/prev_cmp_DS18B20.qmsg
DS18B20/db/prev_cmp_DS18B20.sim.qmsg
DS18B20/db/prev_cmp_DS18B20.tan.qmsg
DS18B20/db/wed.wsf
DS18B20/DS18B20.asm.rpt
DS18B20/DS18B20.bsf
DS18B20/DS18B20.done
DS18B20/DS18B20.fit.rpt
DS18B20/DS18B20.fit.summary
DS18B20/DS18B20.flow.rpt
DS18B20/DS18B20.map.rpt
DS18B20/DS18B20.map.smsg
DS18B20/DS18B20.map.summary
DS18B20/DS18B20.pin
DS18B20/DS18B20.pof
DS18B20/DS18B20.qpf
DS18B20/DS18B20.qsf
DS18B20/DS18B20.qws
DS18B20/DS18B20.sim.rpt
DS18B20/DS18B20.tan.rpt
DS18B20/DS18B20.tan.summary
DS18B20/DS18B20.v
DS18B20/DS18B20.v.bak
DS18B20/DS18B20.vwf
DS18B20/incremental_db/compiled_partitions/DS18B20.root_partition.map.kpt
DS18B20/incremental_db/README
DS18B20/undo_redo.txt
DS18B20/incremental_db/compiled_partitions
DS18B20/db
DS18B20/incremental_db
DS18B20
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.