Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C Quellcode formatieren: <code>Quellcode</code> BASIC Quellcode formatieren: <basic>Quellcode</basic> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! -> I > > > > > > > > > > > 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