<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Pekna chyba, mel jsem podobny problem s jinym 
prerusenim.</FONT></DIV>
<DIV><FONT face=Arial size=2>Doplnte :</FONT></DIV>
<DIV><FONT face=Arial size=2>if (INTOIF AND INT0IE)</FONT></DIV>
<DIV><FONT face=Arial size=2>Jestli se nepletu tak INT0F se nastavuje vždy při 
změně vstupů PORTB,0, nezavisle na INT0IE. Takze je nutne zkontrolovat v 
programu zda je nastaven INT0IE.</FONT></DIV>
<DIV><FONT face=Arial size=2>Michal</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=petr.wilhelm@gmail.com href="mailto:petr.wilhelm@gmail.com">Petr 
  Wilhelm</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@list.hw.cz 
  href="mailto:hw-list@list.hw.cz">HW-news</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 24, 2007 7:31 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Preruseni INT0 u PIC18</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
  face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
  size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
  size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
  size=2></FONT><BR></DIV>&gt; void interrupt isr()<BR>&gt; 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (TMR1IF)&nbsp;&nbsp;&nbsp;&nbsp; // napr. 
  ...<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  // ...<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (INT0IF)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  // ...<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&gt; 
  }<BR>&gt;<BR>&gt; V takovem pripade dojde ke zpracovani kodu v podmince 
  (INT0IF), i kdyz<BR>&gt; je preruseni zakazano (prerusovaci rutina se ovsem 
  vyvola z jineho<BR>&gt; zdroje - v tomto priklade TMR1).<BR>&gt;<BR>&gt; Neni 
  to Vas pripad?<BR><BR>Ano mate pravdu neni to sice tak moc videt jak na vasem 
  prikladu ale<BR>je to tam dekuji za radu na tuhle chybu opravdu prichazi dosti 
  spatne.<BR><BR>Petr 
  Wilhelm<BR>_______________________________________________<BR>HW-list mailing 
  list&nbsp; -&nbsp; sponsored by <A href="http://www.HW.cz">www.HW.cz</A><BR><A 
  href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</A><BR><A 
  href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</A><BR></BLOCKQUOTE></BODY></HTML>