Sonsivri

Electronics => Pic Basic Languages => Topic started by: xtal on May 19, 2014, 02:39:32 14:39



Title: 1-wire slave - emulated DS18B20 - and sniffer
Post by: xtal on May 19, 2014, 02:39:32 14:39
Attached is code for a 1-wire sniffer [12F1822] ,  and an emulated DS18B20 temperature sensor 12F6783 @ 8mhz and 12F1822 @8*4mhz.

The temperature only shows an emulated temperature, the CONVERT code would have to be altered along with adding a sensor.

The sniffer supports bauds of 115200, 230400, 460800, 921600 [ must use virtual comm port for high bauds except 115200]
The sniffer also enabled/disable the display of search data, how ever using this you might miss something [i.e] for example
IButtonviewer never showed a convert command, until I enabled the search data , and there it was , right after the search data
which does not agree with the DS18B20 flow chart, therefore my slave code was changed to act like a real DS18B20..

The DS18B20 code is really just a building block, for other stuff if wanted...

The big draw back is the supporting code for my Desktop.....

Posted on: May 19, 2014, 03:37:55 15:37 - Automerged

files


Title: Re: 1-wire slave - emulated DS18B20 - and sniffer
Post by: Nicolina1988 on August 24, 2014, 03:20:47 15:20
Thank for the interesting idea about the sniffer. I have 2 questions:
Is there limitations to use lower baudrates  down to 2400?
To translate ths basic code a CCS C style are there any time critical parts of it that may break the functionality?