Author Topic: 2 Questions.. (:  (Read 2125 times)

Offline Ben.

  • Club AM VIP
  • Acid Modder
  • *
  • Posts: 657
  • Post quality +2/-0
  • Gender: Male
2 Questions.. (:
« 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:

Offline Ben.

  • Club AM VIP
  • Acid Modder
  • *
  • Posts: 657
  • Post quality +2/-0
  • Gender: Male
Re: 2 Questions.. (:
« Reply #1 on: May 02, 2009, 11:49:21 PM »
Anyone... ?

Offline Jumbo

  • Dr. Mod
  • BST BAN
  • Around the block
  • *
  • Posts: 2399
  • Post quality +0/-3
Re: 2 Questions.. (:
« Reply #2 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/

Offline Ben.

  • Club AM VIP
  • Acid Modder
  • *
  • Posts: 657
  • Post quality +2/-0
  • Gender: Male
Re: 2 Questions.. (:
« Reply #3 on: May 04, 2009, 12:09:22 AM »
Yer thats cool..

Thanks Jumbo.. :)

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal