A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
Interrupt hex code - Mr No - Jun 23 12:03:44 2006
Hi!
Recently, my HD was crashed and I am reading back my program from
the PIC chip. It seems like the interrupt routine in my program was
not in the hex code read from the chip. How can i recover the
interrupt routine (in other way how can i find interrupt code)? Thanks.
Rgds,
bryan
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )
Re: Interrupt hex code - Dennis Clark - Jun 23 13:02:31 2006
??? No magic here. If the ISR code you want isn't in the chip then
you'll have to work from notes or get a service to vacuum out your hard
drive.
OR
Are you asking for a hex->asm translator to get the source back from the
hex code in the chip? I know that there are programs out there that can
do that, Google for "PIC hex to asm" to find them.
DLC
Mr No wrote:
> Hi!
> Recently, my HD was crashed and I am reading back my program from
> the PIC chip. It seems like the interrupt routine in my program was
> not in the hex code read from the chip. How can i recover the
> interrupt routine (in other way how can i find interrupt code)? Thanks.
> Rgds,
>
> bryan
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
>

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )
Re: Interrupt hex code - Phil Seakins - Jun 24 5:53:50 2006
If you are reading code out of the chip with a programmer and you are
not finding the functions you are looking for.
1. The function is not in there, or
2. You reading the chip incorrectly., IE looking in the wrong place
for your code or reading it as the wrong chip type.
At 02:02 AM 24/06/2006, Mr No wrote:
>Hi!
> Recently, my HD was crashed and I am reading back my program from
>the PIC chip. It seems like the interrupt routine in my program was
>not in the hex code read from the chip. How can i recover the
>interrupt routine (in other way how can i find interrupt code)? Thanks.
>
>
>Rgds,
>
>bryan
>
>
>
>
>
>
>
>to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
>

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )
Re: Interrupt hex code - Mr No - Jun 26 6:16:54 2006
Thanks for your replies. To convert from hex to asm, i used the
MPLAB as it can recognize the op codes. The problem is that i can
get the main routine which is at "org h'00'". How can i get back ISR
which are located at "org h'04'"?
Thanks
bryan
--- In p...@yahoogroups.com, Dennis Clark
wrote:
>
> ??? No magic here. If the ISR code you want isn't in the chip
then
> you'll have to work from notes or get a service to vacuum out your
hard
> drive.
>
> OR
>
> Are you asking for a hex->asm translator to get the source back
from the
> hex code in the chip? I know that there are programs out there
that can
> do that, Google for "PIC hex to asm" to find them.
>
> DLC
>
> Mr No wrote:
> > Hi!
> > Recently, my HD was crashed and I am reading back my program
from
> > the PIC chip. It seems like the interrupt routine in my program
was
> > not in the hex code read from the chip. How can i recover the
> > interrupt routine (in other way how can i find interrupt code)?
Thanks.
> >
> >
> > Rgds,
> >
> > bryan
> >
> >
> >
> >
> >
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the
instructions
> >

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Re: Interrupt hex code - Dennis Clark - Jun 26 12:04:03 2006
How do you mean? If you have the code, it is there. Just look at that
address. If you have a chip that won't let you see a block of code then
it is read protected and you are SOL on that score.
DLC
Mr No wrote:
> Thanks for your replies. To convert from hex to asm, i used the
> MPLAB as it can recognize the op codes. The problem is that i can
> get the main routine which is at "org h'00'". How can i get back ISR
> which are located at "org h'04'"?
> Thanks
>
> bryan
>
> --- In p...@yahoogroups.com, Dennis Clark
wrote:
>
>>??? No magic here. If the ISR code you want isn't in the chip
>
> then
>
>>you'll have to work from notes or get a service to vacuum out your
>
> hard
>
>>drive.
>>
>>OR
>>
>>Are you asking for a hex->asm translator to get the source back
>
> from the
>
>>hex code in the chip? I know that there are programs out there
>
> that can
>
>>do that, Google for "PIC hex to asm" to find them.
>>
>>DLC
>>
>>Mr No wrote:
>>
>>>Hi!
>>> Recently, my HD was crashed and I am reading back my program
>
> from
>
>>>the PIC chip. It seems like the interrupt routine in my program
>
> was
>
>>>not in the hex code read from the chip. How can i recover the
>>>interrupt routine (in other way how can i find interrupt code)?
>
> Thanks.
>
>>>
>>>Rgds,
>>>
>>>bryan
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>to unsubscribe, go to http://www.yahoogroups.com and follow the
>
> instructions
>
>>>

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Interrupt hex code - Mr No - Jun 28 21:39:09 2006
Ok....lets put it this way. Where is interrupt verctor located? Is
it at h'04' location in program memory?
Regards,
bryan
--- In p...@yahoogroups.com, Dennis Clark
wrote:
>
> How do you mean? If you have the code, it is there. Just look at
that
> address. If you have a chip that won't let you see a block of
code then
> it is read protected and you are SOL on that score.
>
> DLC
>
> Mr No wrote:
> > Thanks for your replies. To convert from hex to asm, i used the
> > MPLAB as it can recognize the op codes. The problem is that i
can
> > get the main routine which is at "org h'00'". How can i get back
ISR
> > which are located at "org h'04'"?
> >
> >
> > Thanks
> >
> > bryan
> >
> > --- In p...@yahoogroups.com, Dennis Clark wrote:
> >
> >>??? No magic here. If the ISR code you want isn't in the chip
> >
> > then
> >
> >>you'll have to work from notes or get a service to vacuum out
your
> >
> > hard
> >
> >>drive.
> >>
> >>OR
> >>
> >>Are you asking for a hex->asm translator to get the source back
> >
> > from the
> >
> >>hex code in the chip? I know that there are programs out there
> >
> > that can
> >
> >>do that, Google for "PIC hex to asm" to find them.
> >>
> >>DLC
> >>
> >>Mr No wrote:
> >>
> >>>Hi!
> >>> Recently, my HD was crashed and I am reading back my program
> >
> > from
> >
> >>>the PIC chip. It seems like the interrupt routine in my program
> >
> > was
> >
> >>>not in the hex code read from the chip. How can i recover the
> >>>interrupt routine (in other way how can i find interrupt code)?
> >
> > Thanks.
> >
> >>>
> >>>Rgds,
> >>>
> >>>bryan
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>to unsubscribe, go to http://www.yahoogroups.com and follow the
> >
> > instructions
> >
> >>>

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Re: Interrupt hex code - dlc - Jun 28 22:12:38 2006
The low end PICs (all but the dsPIC) don't use interrupt vectors, they
simply jump to an address in memory. In this case, 0x04. You then put
a goto there to where you have your ISR actually written.
DLC
Mr No wrote:
> Ok....lets put it this way. Where is interrupt verctor located? Is
> it at h'04' location in program memory?
>
> Regards,
>
> bryan
> --- In p...@yahoogroups.com, Dennis Clark
wrote:
>
>>How do you mean? If you have the code, it is there. Just look at
>
> that
>
>>address. If you have a chip that won't let you see a block of
>
> code then
>
>>it is read protected and you are SOL on that score.
>>
>>DLC
>>
>>Mr No wrote:
>>
>>>Thanks for your replies. To convert from hex to asm, i used the
>>>MPLAB as it can recognize the op codes. The problem is that i
>
> can
>
>>>get the main routine which is at "org h'00'". How can i get back
>
> ISR
>
>>>which are located at "org h'04'"?
>>>
>>>
>>>Thanks
>>>
>>>bryan
>>>
>>>--- In p...@yahoogroups.com, Dennis Clark wrote:
>>>
>>>
>>>>??? No magic here. If the ISR code you want isn't in the chip
>>>
>>>then
>>>
>>>
>>>>you'll have to work from notes or get a service to vacuum out
>
> your
>
>>>hard
>>>
>>>
>>>>drive.
>>>>
>>>>OR
>>>>
>>>>Are you asking for a hex->asm translator to get the source back
>>>
>>>from the
>>>
>>>
>>>>hex code in the chip? I know that there are programs out there
>>>
>>>that can
>>>
>>>
>>>>do that, Google for "PIC hex to asm" to find them.
>>>>
>>>>DLC
>>>>
>>>>Mr No wrote:
>>>>
>>>>
>>>>>Hi!
>>>>> Recently, my HD was crashed and I am reading back my program
>>>
>>>from
>>>
>>>
>>>>>the PIC chip. It seems like the interrupt routine in my program
>>>
>>>was
>>>
>>>
>>>>>not in the hex code read from the chip. How can i recover the
>>>>>interrupt routine (in other way how can i find interrupt code)?
>>>
>>>Thanks.
>>>
>>>
>>>>>Rgds,
>>>>>
>>>>>bryan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>to unsubscribe, go to http://www.yahoogroups.com and follow the
>>>
>>>instructions
>>>
>>>
>>>>>

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Interrupt hex code - rtstofer - Jun 28 23:53:12 2006
--- In p...@yahoogroups.com, dlc
wrote:
>
> The low end PICs (all but the dsPIC) don't use interrupt vectors, they
> simply jump to an address in memory. In this case, 0x04. You then put
> a goto there to where you have your ISR actually written.
>
> DLC
Or, the interrupt code could actually start at 0x004 and keep going
without using a goto to branch somewhere. The main program is almost
always reached with a goto somewhere in the first 4 program
instructions (0x000-0x003). This would always be required if there
actually was an interrupt routine beginning at 0x004.
Richard
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Interrupt hex code - Mr No - Jul 1 0:19:46 2006
Thanks for all your reply. I've learnt more about interrupt from
this conversation.
Rgds,
bryan
--- In p...@yahoogroups.com, "rtstofer"
wrote:
>
> --- In p...@yahoogroups.com, dlc wrote:
> >
> > The low end PICs (all but the dsPIC) don't use interrupt
vectors, they
> > simply jump to an address in memory. In this case, 0x04. You
then put
> > a goto there to where you have your ISR actually written.
> >
> > DLC
>
> Or, the interrupt code could actually start at 0x004 and keep going
> without using a goto to branch somewhere. The main program is
almost
> always reached with a goto somewhere in the first 4 program
> instructions (0x000-0x003). This would always be required if there
> actually was an interrupt routine beginning at 0x004.
>
> Richard
>
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )