Can somebody please help me out debugging this peace of source code ?
ModePortB(1,true);
TCCR1A := (%10 shl COM1A) or (%10 shl COM1B) or (1 shl WGM1);
TCCR1B := TCCR1B or %101;
OCR1B := 125; // INTERNAL LIGHT EFFECT
ModePortB(2,true);
TCCR1A := (%10 shl COM1A) or (%10 shl COM1B) or (1 shl WGM1);
TCCR1B := TCCR1B or %101;
OCR1A := 125; // LED BAR 4
ModePortD(6,true);
TCCR1A := (%10 shl COM0A) or (%10 shl COM0B) or (1 shl WGM1);
TCCR1B := TCCR1B or %101;
OCR0A := 125; // LED BAR 5
ModePortD(5,true);
TCCR1A := (%10 shl COM0A) or (%10 shl COM0B) or (1 shl WGM1);
TCCR1B := TCCR1B or %101;
OCR0B := 125; // LED BAR 6
The INTERNAL LIGHT EFFECT and the LEDBAR 4 blinks just fine.
What to change to get the LED BAR 5 and LED BAR 6 channel to work at the same time?
PS: It has to run 4 different values.
Greets, Wouter van Wegen