Dear All,
I cannot explain why my circuit does not work.
I want to use Timer 2 to generate a refernce voltage to control the dutycycle of a stepper motor.
The µC is PDIP casing. OC2A is on pin 17.
Pin is connected to a 150 kOhm + 15 kOhm + 10 µF RC combination. So the current is small.
By setting OCR2A =100 I expect appr. 2.2 V at pin 17. I measure 0V ( digital multimeter).
Even on the RC combination voltage is 0 V.
The buzzer's beeping shows that the program is running.
Do you have an idea why it does not work ?
Please see the attached program. I included also the description of the TCCR registers.
best regards
[b:02da6636e7][color=red:02da6636e7](BASCOM-AVR version : 2.0.7.7 )[/b:02da6636e7][/color:02da6636e7]
↧