Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2016, 03:39:47 15:39


Login with username, password and session length


Pages: [1]
Print
Author Topic: 1-wire slave - emulated DS18B20 - and sniffer  (Read 2674 times)
0 Members and 1 Guest are viewing this topic.
xtal
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 9


« on: May 19, 2014, 03:39:32 15: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
Logged
Nicolina1988
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 17
-Receive: 68


« Reply #1 on: August 24, 2014, 04:20:47 16: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?
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC