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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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!