--- Quote Start ---
originally posted by l.robinson@Feb 27 2007, 12:51 PM
nios is the micro-controller. the dallassemi device is a one-wire part. you access the sensor using either software with a pio or you can build a state-machine implemented in the fpga using vhdl or verilog.
to use software, add a one (1) bit bidirectional pio device to the nios using sopc. connect its single output pin to the pin of the sensor. software controls the output level, if it is driving or tri-state mode, and can read the pin for getting the data from the sensor. the program can be written in c, assembly, forth, etc. i've done several different protocols in the last few years. you will need to follow the sensor's protocol closely to get the temperature value from the sensor as well as the other bit fields in the part.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21897)
--- quote end ---
--- Quote End ---
thanks for the reply, thanks... i still haven't get the whole idea...
I have learned state machines.. but i was never taught of how to implement state machines from devices like this ... is there any exampls that i can refer to
secondly .... should i use c language or VHDL?
best of regards.