electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How do you know that it's protected ??


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How do you know that it's protected ??
Author Message
Vonn



Joined: 06 Oct 2002
Posts: 254
Helped: 2


Post20 Oct 2003 8:47   

galep y 16f877


Hi All ,
How do you know that the controller is protected ?
I have red a Pic controller and the programmer doesn't give me any
message and the output file was not FF's or 0's NO it have a data !!!
When i tried to program similar controller with this file it doesn't work .
that means the data i have red was not correct .. I retried to read
another one ; i had the same checksum ..
I thought that when i try to read a locked controller either the
programmer will fail or i will got an FF or 0's file . Am I right ? Does any
body face this before ?
Back to top
M!k



Joined: 22 Apr 2002
Posts: 871
Helped: 79


Post20 Oct 2003 9:15   

Re: How do you know that it's protected ??


you can always read the configuration word containing the protection bits


Mik
Back to top
sadat007



Joined: 01 Jan 1970
Posts: 428
Helped: 6
Location: Pakistan


Post20 Oct 2003 9:56   

Re: How do you know that it's protected ??


Hi,
Dont have any idea on PICs but 89C52 etc gives FF when full protected.
Back to top
Vonn



Joined: 06 Oct 2002
Posts: 254
Helped: 2


Post20 Oct 2003 12:15   

Re: How do you know that it's protected ??


Do you mean that i could know if it's protected or not by reading the configuration word
Is that available for all pic families ?
Back to top
Google
AdSense
Google Adsense




Post20 Oct 2003 12:15   

Ads




Back to top
C-Man



Joined: 19 Jul 2001
Posts: 1235
Helped: 73


Post20 Oct 2003 13:27   

Re: How do you know that it's protected ??


Maybe this can help you:
I checked with two code protected PIC's (16F628, 16F877).

When you read them back you only get 0x00 instead of the programmed data, you can read back the ID locations (at 0x2000 to 0x2003) and the configuration word (at 0x2007).

If I remember correct a 16F84 could read back each second byte of data but the other byte was alwas 0x00 (but each instruction is composed of two bytes of data) ...

best regards
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 429
Helped: 11
Location: Dark side of the Moon


Post20 Oct 2003 13:55   

Re: How do you know that it's protected ??


Some uC have a few bites for protection of code. In that case protection is for some parts of code not for all, so you can choose which part of code you want to protect.

In PIC's case if protection is on you read 00 on all PIC's I work with.


Regards.

Mr.Cube
Back to top
Vonn



Joined: 06 Oct 2002
Posts: 254
Helped: 2


Post20 Oct 2003 14:25   

Re: How do you know that it's protected ??


My PIC is 16C55a and the file I red is attached ; if any body can tell me if this is a valid code or not and why that will be appreciated


Sorry, but you need login in to view this attachment

Back to top
M!k



Joined: 22 Apr 2002
Posts: 871
Helped: 79


Post20 Oct 2003 14:56   

Re: How do you know that it's protected ??


I'd assume that it's not code protected because the first 0x80 bytes (= 0x40 words of totally 0x200 usable words) are too different; also the 16C55 can't be protected partly. But you didn't read the configuration word @ 0x2007 which include the protection bits....


Mik
Back to top
C-Man



Joined: 19 Jul 2001
Posts: 1235
Helped: 73


Post20 Oct 2003 15:03   

Re: How do you know that it's protected ??


My Programmer (Galep 4) reports that code protection is on Sad

I assume the file you posted is a binary file because the .hex extension does not make sense as the file must be ASCII then ...

And to M!K the configword for the 16C55A is at 0xFFF

best regards
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How do you know that it's protected ??
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Do you know circuit with 7805 that increase the current?? (3)
What is RTOS and how do I know that I need one? (9)
how does windows know that usb mouse is plugged-in? (5)
How to know that ALL MOS are in saturaion region in Cadence? (17)
how can i know that the GSM modem support MMS (2)
How you know what is CDC (3)
how to know who blocks you??!!! (2)
Do you know how to measure angle? (10)
how coulud i know that the dual port ram have been built ? (1)
Do you know how telephone systems work? (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS