Menu

1-wire SDCC compiler code samples for working with DS18B20 series?

2015-08-09
2016-01-03
  • Durali Kİraz

    Durali Kİraz - 2015-08-09

    SDCC compiler with a working example code 1-wire series? I'm working on sensor DS18B20 but somehow I could not read. I was having code trial Internet. Thank you in advance for assistance.

    Note: There is a blog about my work in my own SDCC. duralikiraz.blogspot.com my blog.

     

    Last edit: Durali Kİraz 2015-08-09
  • David Cary

    David Cary - 2015-11-22

    I've recently used a few DS18B20 digital thermometers on a 1-wire bus.
    Alas, for that particular project I didn't use a SDCC compiler.
    However, I collected some other links and information about 1-wire devices and software at
    http://www.opencircuits.com/1-wire .
    That page links to several source code libraries for reading 1-wire devices -- have you tried porting any of those libraries to SDCC?

    p.s.: Nice blog.

     
  • Vasi

    Vasi - 2017-07-13

    Yes, gladly (well, after almost two years). Example for using a unique sensor on the one wire bus, and example using multiple sensors on bus. But for PIC16 microcontrollers (exactly, for PIC18F46K22). But the same library and examples work for STM32 (a Nucleo board), compiled with gcc for ARM.

    The projects are Eclipse projects and you need to follow the tutorial from this page https://betterc18.blogspot.ro/p/eclipse-sdcc.html

    The projects for DS18B20 were added after the tutorial was written... but you will find them in the same (sourceforge) repository refered in the tutorial. Have fun!

     

Log in to post a comment.