I am trying to create a 38KHz freq on PB3.
I have used similar code before on other avr's using timer0 and it is working.
I want to use PB3 on an attiny261.
The output is there (15.6 KHz) but it does not change regardless of the OCR1B setting.
Can someone tell me what I am doing wrong here?
.nolist .include "tn261def.inc" .list .org 0 rjmp Start Start: ldi temp,LOW(RAMEND) out SPL,temp ; sbi DDRB,3 ;PB3 = output ldi temp, (1 << COM1B0) ; PWM ON OC1B (PB3) out TCCR1A, temp ldi temp,(1 << CS10) out TCCR1B,temp ; no prescaling ldi temp, 0x2F out OCR1B, temp stop: rjmp stop