Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] still no working interrupt )-:

2007-01-08 by Richard Reeves

...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/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.