[an error occurred while processing this directive]
|
ldi temp0,RAMEND ;Locate stack
out SP,temp0
ldi temp0, 0b11111111 ;Port B3, B4 = Ausgang
out DDRB, temp0
;sbi PINB,0 ; pull-up pinb,0
;sbi PINB,1 ; pull-up pinb,1
;sbi PINB,2 ; pull-up pinb,2
ldi temp0,0b1100 ; enable WDR, 0,24 sek
out WDTCR,temp0
ldi temp0,0b01100110 ; enable Output Compare reg 1A, 1B
out TIMSK,temp0
ldi temp0,0b01100100 ; enable output compare flag 1A, 1B
out TIFR,temp0
ldi temp0,0b11110011 ; enable PWM1A, PWM1B, Set OC1A, OC1B output lines.
out TCCR1A,temp0
;ldi temp0,0b0000000 ; Timer1 STOP!
ldi temp0,0b00000001 ; CK
;ldi temp0,0b00001001 ; CK/256
;ldi temp0,0b00001011 ; CK/1024
;ldi temp0,0b00001111 ; CK/16384
out TCCR1B,temp0
ldi temp0,0xff ; 128 test PWM1A
out OCR1A,temp0
ldi temp0,0xf0 ; 127 test PWM1B
out OCR1B,temp0
нужно что б выводил только на выхода ОС1А и ОС1В...
в резултате ведёт себя довольно странно...
при переполнении счётчика вообще перестаёт считать ...
E-mail: info@telesys.ru