<!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.5659" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Je to psane v C - vypis pameti. Prvni radek
zapisuje hodnotu(0x272 - 0x00) do WREG,</FONT></DIV>
<DIV><FONT face=Arial size=2>ICDII neni nikde popsan. Rada 16 ma specielni
registr pro adresu breakpointu. Ale jak je to delane na 18xxxx jsem nezjistil.
Podle mne tam ale pro breakpointy v RAMce musi byt nejaka HW
podpora.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Michal Gregor</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></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=hw_aj@zoznam.sk href="mailto:hw_aj@zoznam.sk">andrej jancura</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> Monday, December 01, 2008 12:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: ICD2 - breakpoints</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>No len jedna poznamka, WREG ma
na prvom riadku hodnotu >254 ? Skus si <BR>tam napisat MOVLW...<BR><BR>Na
dbg interrupt rutiny by som ICD nepouzil, nakolko sa jedna o sw <BR>emulovanie
a to hold v isr moc dobre nemusi nechodi.<BR><BR>A.<BR><BR><BR><BR>On Mon, 1
Dec 2008 12:35:20 +0100<BR> "Michal HW" <<A
href="mailto:michalgregor@centrum.cz">michalgregor@centrum.cz</A>>
wrote:<BR>> Zkousim najit chybu v programu:<BR>> <BR>> Line
Address Opcode
Label
Disassembly<BR>> <BR>> 8546 042C2
C272
MOVFF 0x272, WREG<BR>> 8547 042C4
FFE8
NOP<BR>> 8548 042C6
0F07
ADDLW 0x7<BR>> 8549 042C8
CFE8
MOVFF WREG, Pocet_B<BR>> 8550 042CA
FD3D
NOP<BR>> 8551 042CC
C0B7
MOVFF Ukazatel, Vstup_P<BR>> 8552 042CE
F0BB
NOP<BR>> 8553 042D0
C0B8
MOVFF Vstup_K, 0xbc<BR>> 8554 042D2
F0BC
NOP<BR>> 8555 042D4
C0B9
MOVFF Vstup, 0xbd<BR>> 8556 042D6
F0BD
NOP<BR>> 8557 042D8
EC08
CALL Sloz_Konec, 0<BR>> 8558 042DA
F029
NOP<BR>> 8559 042DC
6E00
MOVWF 0, ACCESS<BR>> 8560 042DE
CD3D
MOVFF Pocet_B, 0x1<BR>> <BR>> Promenna Pocet_B ma chybnou hodnotu 0x05.
Nastavil jsem si Advanced <BR>> breakpoint na zapis hodnoty 0x05 do
Pocet_B.<BR>> <BR>> ICDII se zastavi na radku 8553, ktery vubec s
Pocet_B nepracuje.<BR>> <BR>> 0x272 obsahuje 0. Pocet_B ma 0x05.
(Vysledek mel byt 7)<BR>> <BR>> Vypada to ze z preruseni se vrati spatny
obsah WREG. Kdyby se v <BR>>preruseni <BR>> zapisovala hodnota 0x05 do
Pocet_B, tak to ICDII zachyti, Nebo ne?<BR>> Procesor je 18F8723. ERRATA
jsou prazdne, takze chybu s Fast Stack <BR>>Registrem <BR>> by nemel
mit.<BR>> <BR>> Michal Gregor <BR>>
<BR>_______________________________________________<BR>HW-list mailing
list - 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>