Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20625

BASCOM-AVR : ATMega 168 Fast PWM with Timer 2 : REPLY

$
0
0
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

Viewing all articles
Browse latest Browse all 20625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>