Hallo,

ich benötige 4 PWM Kanäle und habe den Mega 88 (aber wenn ich schon frage möchte ich natürlich alle 6 Kanäle wissen )

Datenblatt:
PIN PWM

5 OC2B
11 OC0B
12 OC0A
15 OC1A
16 OC1B
17 OC2A

so, nun das Programm: bei Timer2 sagt Bascom "Invalid Parameter..."

Wer kann mir sagen was ich da eintragen muss?

Vielen Dank, Tobias

PS. hab schon einige Kombinationen durch:

Compare A
Compare PWM
Compare OCR2A
Compare OC2A

Code:
...
'Timer1 = 16 Bit = Spiegelmotore
Config Timer1 = Pwm , Pwm = 10 , Compare A Pwm = Clear Up , Compare B Pwm = Clear Up , Prescale = 256


'Timer2 = 8 Bit = Laser2
Config Timer0 = Pwm , Pwm = 8 , Compare Ocr2a Pwm = Clear Up , Compare Ocr2b Pwm = Clear Up , Prescale = 256
Enable Interrupts

...

Do
Compare1a = Motor1
Compare1b = Motor2
Ocr2a = Motor3
Ocr2b = Motor4

LOOP