Skip to content

Correct delayMicroseconds() timing for 20 MHz boards. [imported] #306

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

Closed
cmaglie opened this issue Nov 15, 2012 · 0 comments
Closed

Correct delayMicroseconds() timing for 20 MHz boards. [imported] #306

cmaglie opened this issue Nov 15, 2012 · 0 comments

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 306 moved from a Google Code project.
Added by 2010-07-28T02:18:02.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, Component-Core, Milestone-1.0.1

Original description

What steps will reproduce the problem?

  1. Make/Take 20Mhz arduino.
  2. Get OneWire lib from your site.
  3. Open Example and see what happens.

What is the expected output? What do you see instead?
Working OneWire bus. I see not working one instead.

What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
Deumilanove and One that I made run on BreadBoard with Atmega8

Please provide any additional information below.
When using OneWire library on 20Mhz chip, protocol doesn't work due delayMicroseconds function since it assumes one uS as 16 clock but it's 20.

OneWire bus is really sensitive to timing mechanism. But code is definitelly fixes some other problems for 20Mhz too.

I sending a diff file, try to keep things better. Take a look.

Best Regards,
Erdem U. Altinyurt

@cmaglie cmaglie closed this as completed Nov 15, 2012
tbowmo added a commit to tbowmo/Arduino that referenced this issue Jul 14, 2016
snprintf_P missing in arduino core for samd, so have a local macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant