Pages: [1]   Go Down
Author Topic: Problems with Atmega644P I2C together with timer1 and timer2  (Read 736 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using an Atmega644P with arduino bootloader. I have an application with I2C and also timers 1 and 2.
Timer2 is used to generate PWM and timer 1 generates an interrupt loop.
Using a simple application without the timers i can talk to an I2C slave device using the normal Wire library.
When the timers are active the system locks. Obviously something is clashing. Interupts ? timers ?.
Does anyone have any experience with this and how can it be overcome.
Which timers and which interupts does I2C use and can they be changed or my program timers changed.

thanks for your help

Krulkip
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post your code please? Use the "#" button to put code tags around it.
Logged

Pages: [1]   Go Up
Jump to: