0

I would like to know if the Wire Library is using a Hardware Timer from the Arduino Mega 2560. And If so which Timer it is.

As I am using the Timer 1. After implementing the Wire Library I have some strange things happening that are probably due to the Timer.

Thanks a lot.

asked Jun 20, 2020 at 18:18

1 Answer 1

0

No, it's not.

It has its own timer called the "Bit Rate Generator Unit" which is controlled using the TWBR register. It takes its time source direct from the main CPU clock and divides it down.

answered Jun 20, 2020 at 20:34
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.