Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - Zum C-Control-I-Forum - Zum C-Control-II-Forum

Re: Interrupt handling Kategorie: Programmierung Assembler (von PeterS - 13.04.2014 10:44)
Als Antwort auf Re: Interrupt handling von Torsten - 3.04.2014 20:39

> > >
> > > > > > Would it be possible to replace that routine with another one, e.g.
> > > > > > by changing the interrupt vector?
> > > > >
> > > > > I would warn urgently against that unless you knows the system
> > > > > very exactly. For polling the interrupt flag you need only few
> > > > > system clocks.
> > > >
> > > > You are right, changing the interrupt vectors can have ugly side effects.
> > > > But except the timer interrupt that is used for multitasking, servo and clock,
> > > > experimenting with the other interrupts should not be fatal.
> > > >
> > > > Regards,
> > > >
> > > > Peter
> > >
> > > Hallo Peter,
> > >
> > > that would mean, Pepe's proposal is possible?
> >
> > Yes. You must know what you are going to do and write the right assembler
> > code. These modified interrupts are of course then no longer supported
> > from the interpreter.
> >
> > Also it is a clumsy solution, because with every recompile you have to check
> > where the assembler routines are, and then patch the vectors at the beginning
> > of the interpreter to the addresses.
> >
> > Regards, Peter
> >
>
> Hallo Peter und Pepe,
>
> when I understand it right, we only have to change
> the file "interp128.bin" before we upload it to the
> module? So we have to change the sixth word in the
> file for the fourth external interrupt?

Please see "Table 23. Reset and Interrupt Vectors" in the
Atmel Mega128 Manual.

Regards, Peter

>
> GruÃ? Torsten


    Antwort schreiben


Antworten: