Forum Discussion
Altera_Forum
Honored Contributor
16 years agoALTERA DE2 and 1-wire sensor
Hi!!!
I'm making air-condition model. I need to use 3 temperature sensors. I'm found sensors from DALLAS type DS18B20. Is anybody have got a VHDL code to steering this type of sensors??? P.S. I have Quartus 7.2 and altera with Cyclone II Bugzee6 Replies
- Altera_Forum
Honored Contributor
Xilinx Xapp198 implements an one-wire interface and can give you some hints.
- Altera_Forum
Honored Contributor
It is much more easier.
Get in contact with Maxim, the companie that bought Dallas. Ask for the 1-Wire Master source code available in verilog HDL http://www.maxim-ic.com/appnotes.cfm/an_pk/119 (http://www.maxim-ic.com/appnotes.cfm/an_pk/119) all you need is to write an avalon wrapper around that modul to interface it to nios II and of course some software that controls this ip ... - Altera_Forum
Honored Contributor
I'm already asking maxim (dallas) support for this sensor. They haven't any example in verilog or VHDL.
- Altera_Forum
Honored Contributor
This is interesting as i have received a zip from them ...
did you ask for this package ? ds1wm synthesizable 1-wire bus master (http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2834) this package has a couple of files, but you only need the onewiremaster.v and your avalon wrapper around it. - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
you should ask for the DS1WM as the DS18B20 is a component.
DS1WM is a 1-wire master available as source code. unfortunately i don't think that i am allowed to distribute the file Maxim sent to me. There is a reason why they want to be contacted before they give out the sources for free.