问题
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