Acidmods

AcidMods Resources ----- ( These are helpful tools for modding ) => Open Source Code & AcidMods Free Code => Topic started by: Ben. on May 02, 2009, 06:20:41 AM

Title: 2 Questions.. (:
Post by: Ben. on May 02, 2009, 06:20:41 AM
Right the first question is;
Do you guys use any program to right the codes, or just write it straight to hex format or whatever..?

And

How would you protect your code on a chip, so it couldn't be read, and copyed by someone who has the chip with the code on..?

Thanks  :tup:
Title: Re: 2 Questions.. (:
Post by: Ben. on May 02, 2009, 11:49:21 PM
Anyone... ?
Title: Re: 2 Questions.. (:
Post by: Jumbo on May 03, 2009, 02:47:55 PM
Like i said in the other post, Learn a language. No you dont write straight to .hex format... You start with a much more complex code in a .asm file and you Build/compile them into a HEX code so you can send it to the PIC.

For protecting the code, you would write-

Code: [Select]
__CONFIG   _FCMEN_OFF & _IESO_OFF & _CP_OFF & _CPD_OFF & _BOD_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTOSCIONear the start of the Code your writing.

That bit  _CP_OFF means- Code protection off
Put _CP_ON and it will be one and you cant have your programmer "read" whats written on the PIC.

Also Hazer has written some nice stuff here: http://web.tampabay.rr.com/hazer/ (http://web.tampabay.rr.com/hazer/)
Title: Re: 2 Questions.. (:
Post by: Ben. on May 04, 2009, 12:09:22 AM
Yer thats cool..

Thanks Jumbo.. :)
SimplePortal 2.3.5 © 2008-2012, SimplePortal