...And your interrupt vector for Compare match A is wrong. It's the one before it that you want (I just single-stepped it and it hit the reti on the line before, as indicated below with asterisks. Have a look at page 46 of the data-sheet. With that changed, it hits the interrupt every 3.6ms with a 4MHz clock. Richard RESET: rjmp BEGIN reti ;Addr $01 reti ;Addr $02 reti ;Addr $03 reti ;Addr $04 rjmp TIMER0 ;timer/counter 0 overfLOWBYTE interrupt reti ; Addr $06 reti ; Addr $07 reti ; Addr $08 reti ; Addr $09 ***reti ; Addr $0A*** rjmp TIMER0 ; timer/counter 0 compare match A interrupt reti ; Addr $0C reti ; Addr $0D reti ; Addr $0E reti ; Addr $0F reti ; Addr $10> --- "Sve je bilo tako tiho a nemirno..." http://www.musicvangogh.com/
Message
Re: [AVR-Chat] still no working interrupt )-:
2007-01-08 by Richard Reeves
Attachments
- No local attachments were found for this message.