-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to retrieve the exact times of all 0x00 operations from Data:0X22 to Data:0xc2 using the logic analyzer. Below is my code. #255
Comments
This is not a library problem. If you only want the middle section, just put you start and end timing around the getTempC() part. If you need to dig deeper, you have to measure the underlying oneWire calls. Definitely outside this library. Just curious, what do you want to achieve with these measurements? |
Following the new question in the post below After delving deeper and studying, I found that it is not that easy to achieve. cpetrich/counterfeit_DS18B20#38 The main goal is to achieve batch detection of the relevant data in the table below. |
The milliseconds conversion time is no problem for microprocessors. My assumption is that a ESP32 at 240 MHz will be capable of measuring these values with reasonable repeatability and accuracy. An Arduino UNO or MEGA at 16 MHz has a micros resolution of 4 us so it can not measure below 50 us (unless an error of ~10% is acceptable). So your setup should involve at least 2 processors.
Not trivial but certainly doable. |
Thank you for the insights. I hadn't considered the processor performance issues before. It looks like I'll have to keep working with the ESP32. |
This issue is still a timing logic problem.
My code is as follows:
The current measurement results include the start and stop commands, but I only want the times for the Data:0x00 operations in the middle section of the loop.
The text was updated successfully, but these errors were encountered: