Markus_L811
Well-known member
ATM I try to get an Slave working full interrupt based (Arduino style) but with less results...
Last edited:
Need a scope. Did the other example also didn't work?
Lookd like DS18B20_Slave_Interrupt_universal_analogread works atm don't know why the other not
I used your DS18B20_Slave_Interrupt_T3 example using a Teensy3.0 as a base. I'm using pin 9 as the dsslavepin.
With the 1.0.6/1.22 IDE, the code compiles and communicates just fine.
View attachment 4071
With the 1.6.3/1.22 IDE the code compiles, but seems to get stuck sending a stream of presence pulses.
View attachment 4072
With the 1.6.3/1.22 IDE and the Teensy 3.1 it does
So jimmayhugh lets take the facts together:
1.0.6/1.22 IDE
...........................T3.0.................T3.1.................T-LC
working..................yes..................???...................???
1.6.3/1.22 IDE
...........................T3.0.................T3.1.................T-LC
working..................no....................yes...................no
I'm out of town this week, jimmayhugh can you confirm the rest? And did older versions work on it, may I have make something wrong.
So may we can find out whats going on!?
Thanks for the detailed answer.
In post #24 you say 1.0.6/1.22 IDE works with the Teensy 3.0, now you mention no for it.
May I'm a little bit cheeky but I think Paul changed something somewhere but I can not piont a direction where.
Using your BareMinimum and Dallas_only .ino files (with mods to use the pins I use for the 1-Wire lan), using 1.63/1.22, all three devices respond between 1 and 6 times to the MasterResetPulse before failing to respond further.
The MasterResetPulse() debug value shows up at 480us +- 2us when they do respond.
Compiler optimization flags have changed. Maybe that's causing timing differences?
When you run these tests, what device is acting as the 1-wire master?
I've got the Teensy-LC responding, it's definitely a timing issue.
I'm gonna need a few more Teensy-LCs to test my other boards...
Does the Teensy-LC support the watchdog timer ala the Teensy3.x?
Can you show me what you did, I think my Teensy LC has arrived get a message about a packet
Here's a zip file of the .cpp and .h OneWireSlave library files as I've modified them.
View attachment 4152
I've also got it at my github.
I've done a relatively minor amount of testing, but they seem to work alongside real MAXIM devices, such as the DS 18B20 and DS2406+.
Good to see, will look at your changes what Value did you use as Pullup-Resistor?