View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Thu Dec 15, 2022 7:40 am |
|
|
hmm, I know 14-17 computer languages but how to translate the link site into english ? |
|
|
sifirzero1
Joined: 14 Dec 2022 Posts: 43
|
|
|
sifirzero1
Joined: 14 Dec 2022 Posts: 43
|
|
Posted: Thu Dec 15, 2022 7:44 am |
|
|
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
|
|
Posted: Thu Dec 15, 2022 8:23 am |
|
|
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
|
|
Posted: Thu Dec 15, 2022 1:11 pm |
|
|
Does anyone have the skills to write the code for this circuit? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Thu Dec 15, 2022 1:21 pm |
|
|
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
|
|
Posted: Thu Dec 15, 2022 1:30 pm |
|
|
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
|
|
Posted: Thu Dec 15, 2022 9:45 pm |
|
|
Post the firmware code in this file: MetFM.zip
Then we can see the firmware. |
|
|
sifirzero1
Joined: 14 Dec 2022 Posts: 43
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 15, 2022 10:54 pm |
|
|
I meant post it here, in the forum. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Fri Dec 16, 2022 8:19 am |
|
|
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
|
|
Posted: Wed Dec 28, 2022 2:44 pm |
|
|
Generating a square wave with the comparator |
|
|
|