Hallo,
ich habe mal geguckt und habe das gefunden:
Diese Timer würde ich gern verstellen:
timer 3 (controls pin 5, 3, 2);
timer 4 (controls pin 8, 7, 6);
Aber ich finde immer nur Beispiele für Timer 0, 1 und 2.
Pins 5 and 6: controlled by Timer 0
Setting Divisor Frequency
0x01 1 62500
0x02 8 7812.5
0x03 64 976.5625
0x04 256 244.140625
0x05 1024 61.03515625TCCR0B = TCCR0B & 0b11111000 | ;
Pins 9 and 10: controlled by timer 1
Setting Divisor Frequency
0x01 1 31250
0x02 8 3906.25
0x03 64 488.28125
0x04 256 122.0703125
0x05 1024 30.517578125TCCR1B = TCCR1B & 0b11111000 | ;
Pins 11 and 3: controlled by timer 2
Setting Divisor Frequency
0x01 1 31250
0x02 8 3906.25
0x03 32 976.5625
0x04 64 488.28125
0x05 128 244.140625
0x06 256 122.0703125
0x07 1024 30.517578125TCCR2B = TCCR2B & 0b11111000 | ;
Aber wie mach ich das mit Timer3 und 4.
Lars