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.


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.