Hi Dave,
many thanks for the useful advice.
I changed the registers now to:
TCCR2A= &B10000011 ' Fast PWM, 1 0 Clear OC2A on Compare Match, set OC2A at BOTTOM
'
TCCR2B= &B00000001 ' No prescaling
OCR2a=128
Now the multimeter shows a voltage of nearly 5 V at the OC2A pin.
I expect 2.5 V with the OCR2A = 128 setting.
Are there some other registers that have to be modified ?
best regards
Christian
↧