; Servoansteuerung über Potentiometer und CTC .include "tn13def.inc" .def temp =r16 .def pwm =r17 ;----------------------------------------------------------- ;timer setup: ldi temp,0xFF out DDRB,temp ; PortB auf Ausgang ldi temp,(1<0,0015x9375=14 rjmp loop ; -->255-14=241 Links: ldi temp,246 ; für 1,0ms . -->255-9=246 out OCR0B,temp rjmp loop Rechts: ldi temp,237 ;für 2,0ms -->255-18=237 out OCR0B,temp rjmp loop