1 |
/* Copyright (c) 2002,2004, Joerg Wunsch |
/* Copyright (c) 2002,2004,2005 Joerg Wunsch |
2 |
All rights reserved. |
All rights reserved. |
3 |
|
|
4 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
113 |
1: |
1: |
114 |
rjmp 1b ; Note [6] |
rjmp 1b ; Note [6] |
115 |
|
|
116 |
.global SIG_OVERFLOW0 ; Note [7] |
.global TIMER0_OVF_vect ; Note [7] |
117 |
SIG_OVERFLOW0: |
TIMER0_OVF_vect: |
118 |
ldi inttmp, 256 - tmconst + fuzz |
ldi inttmp, 256 - tmconst + fuzz |
119 |
out _SFR_IO_ADDR(TCNT0), inttmp ; Note [8] |
out _SFR_IO_ADDR(TCNT0), inttmp ; Note [8] |
120 |
|
|
254 |
|
|
255 |
\par Note [10] |
\par Note [10] |
256 |
|
|
257 |
As explained in \ref avr_interrupts "Interrupts and Signals", a global "catch-all" interrupt |
As explained in \ref avr_interrupts "Interrupts", a global "catch-all" interrupt |
258 |
handler that gets all unassigned interrupt vectors can be installed |
handler that gets all unassigned interrupt vectors can be installed |
259 |
using the name \c __vector_default. This must be \c .global, and |
using the name \c __vector_default. This must be \c .global, and |
260 |
obviously, should end in a \c reti instruction. (By default, a jump |
obviously, should end in a \c reti instruction. (By default, a jump |