Maker Pro
Maker Pro

Tip of the day

T

Tiffany

Jan 1, 1970
0
Hi all, im not new to uC's but new to the group,
My tip is, pic12c50x and the such OTP chips, one time programmable devices
can be reprogrammed, depending how big your code is just raise the ORG xxxx
to the first clean address after the previous programmed code, keep raising
ORG every time until the device runs out of address space

Regards
Funky Gibbon
 
D

david

Jan 1, 1970
0
Tiffany said:
Hi all, im not new to uC's but new to the group,
My tip is, pic12c50x and the such OTP chips, one time programmable devices
can be reprogrammed, depending how big your code is just raise the ORG
xxxx
to the first clean address after the previous programmed code, keep
raising
ORG every time until the device runs out of address space

Regards
Funky Gibbon
or get the F version :)
 
M

Michael Lange

Jan 1, 1970
0
Tiffany said:
Hi all, im not new to uC's but new to the group,
My tip is, pic12c50x and the such OTP chips, one time programmable devices
can be reprogrammed, depending how big your code is just raise the ORG xxxx
to the first clean address after the previous programmed code, keep raising
ORG every time until the device runs out of address space

If you do like a teacher here, you should describe the whole thing. I
don't use PIC OTPs since there are flash chips available, but read
something about your "great" tip.

For that who _need_ to use the old OTPs, here is an important information:
You have to prepare a Jump to the new code at the beginning of program
memory. Therefore you need some unused words at 0x0000 up. Place the
Jump to new code in the highest unused.
That is allways described in some forums and I think by Microchip too.

Michael
 
D

david

Jan 1, 1970
0
If you do like a teacher here, you should describe the whole thing. I
don't use PIC OTPs since there are flash chips available, but read
something about your "great" tip.

For that who _need_ to use the old OTPs, here is an important information:
You have to prepare a Jump to the new code at the beginning of program
memory. Therefore you need some unused words at 0x0000 up. Place the Jump
to new code in the highest unused.
That is allways described in some forums and I think by Microchip too.
if there is no free space I think a work around is to blow all fuses to FF
or 00
(0000 0000 nop ) so making a nop but these will take so time to
execute
David
 
M

Michael Lange

Jan 1, 1970
0
david said:
if there is no free space I think a work around is to blow all fuses to FF
or 00
(0000 0000 nop ) so making a nop but these will take so time to
execute

Yes, this will also work in case of not using interrupt. I would only
give information, that it isn't all, what Tiffy sayed.

Michael
 
Top