CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Metal detector
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 7:40 am     Reply with quote

hmm, I know 14-17 computer languages but how to translate the link site into english ?
sifirzero1



Joined: 14 Dec 2022
Posts: 43

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 7:43 am     Reply with quote

temtronic wrote:
hmm, I know 14-17 computer languages but how to translate the link site into english ?


https://vrtp.ru/index.php?act=categories&CODE=article&article=2448
sifirzero1



Joined: 14 Dec 2022
Posts: 43

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 7:44 am     Reply with quote

temtronic wrote:
hmm, I know 14-17 computer languages but how to translate the link site into english ?




Can we access codes with reverse engineering?
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 8:23 am     Reply with quote

you already have the HEX file, which contains the program.
if you 'import' into the compiler using the 'disassemble' button (or whatever it's called), it will show you the machine code.

I don't know of any 'reverse engineering' programs to generate the 'C source', IF it actually was written in 'C'.
To reverse engineer the code, you do have to have the PIC datasheet to see the 'instruction set summary' and then decode what each line of code is doing. You also have to understand how the PIC 'boots up' to run the program, set registers, etc.

PICs are easy only 35+- instructions compared to the good old Z80 that had 100s......
sifirzero1



Joined: 14 Dec 2022
Posts: 43

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 1:11 pm     Reply with quote

Does anyone have the skills to write the code for this circuit?
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 1:21 pm     Reply with quote

yes, probably 95% of the posters here.

The problem, for me anyway, is that without your actual hardware, I have no way to test my code and then modify it to optimize the performance.
Somewhere on the web, you found a 'how to build a metal detector with a PIC', so I'm wondering why their code doesn't work on your hardware ?
PrinceNai



Joined: 31 Oct 2016
Posts: 480
Location: Montenegro

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 1:30 pm     Reply with quote

I'd guess a few dozens at least. On this forum. But no one will do it for you, in my opinion.
Who would bother to write a code for free for a toy that this is? Even if someone does it, how will he test it? Nobody has your coil. Just go with the provided hex. Maybe it even works.

On the other hand, if you'll code it alone, you'll find everyone on this forum will do their best to help you. If you ask a specific question. This doesn't work, why? is not a good question.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 9:45 pm     Reply with quote

Post the firmware code in this file: MetFM.zip
Then we can see the firmware.
sifirzero1



Joined: 14 Dec 2022
Posts: 43

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 9:51 pm     Reply with quote

PCM programmer wrote:
Post the firmware code in this file: MetFM.zip
Then we can see the firmware.


https://vrtp.ru/index.php?s=e06165d573ce35a64c806b47f3977e9e&act=Attach&type=post&id=264908
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 15, 2022 10:54 pm     Reply with quote

I meant post it here, in the forum.
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 16, 2022 8:19 am     Reply with quote

All that's there is the assembled code ready for downloading into the PIC... I looked,grabbed it, had compiler disassemble it, then lost interest due to the freezing rain here....
sifirzero1



Joined: 14 Dec 2022
Posts: 43

View user's profile Send private message

PostPosted: Wed Dec 28, 2022 2:44 pm     Reply with quote

Generating a square wave with the comparator
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group