How to use DS18B20 temperature sensor (1 Wire Communication )? [closed]

a 夏天 提交于 2021-01-20 13:52:25

问题


We are using a DS18B20 temperature sensor (1 Wire Communication ) .The Sensor has 3 interfaces VCC,GND , and output in Digital formant How can we display the Output on the 7 segment Display . Should we use STD_LOGIC_VECTOR ?.Note : We will be using an FPGA not Arduino . Also , VHDL not Verilog Also, a snippet of the code would be helpful!!

entity tempsensor is
Port ( clk      : in  STD_LOGIC;     
   dq       : inout  STD_LOGIC;
   temperature   : out STD_LOGIC_VECTOR (11 downto 0));

end ds18b20;

来源:https://stackoverflow.com/questions/65658215/how-to-use-ds18b20-temperature-sensor-1-wire-communication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!