frequency converter

77 views
Skip to first unread message

Hans van Veldhuizen

unread,
Jan 22, 2024, 4:28:41 AM1/22/24
to jallib
Hello all,
I would like to use the frequencies of a variable audio signal to make things respond to it. I found this : https://www.instructables.com/Frequency-Detector-using-PIC-12F683-Processor/
Is there something like this in the Jal area?
regards
Hans

Pinhead

unread,
Jan 22, 2024, 10:36:45 AM1/22/24
to jal...@googlegroups.com
Hi Hans,

What are your requirements?
Is this example from Instructable not a good starting point ?

I do not know what you plan to do, but there is also the possibility to decode DTMF tones.   Some specialized ICs are still available




Hans van Veldhuizen

unread,
Jan 22, 2024, 11:01:53 AM1/22/24
to jallib
Hi Pinhead,
The example looks what i need,  i have download the hex file but this  this is a tmp file.
 Changed the extension in hex . Pickit3plus gave an eror when  tried to load.
regards
Hans


Op maandag 22 januari 2024 om 16:36:45 UTC+1 schreef Pinhead:

Pinhead

unread,
Jan 22, 2024, 11:05:28 AM1/22/24
to jal...@googlegroups.com
Try with the asm file, load it in mplab, and from there you should be able to compile it to a hex file and program your pic

Verify that you use the same pic as declared in the asm file



Message has been deleted

Hans van Veldhuizen

unread,
Jan 23, 2024, 7:26:47 AM1/23/24
to jallib
Hello Pinheadand others
Unfortunately, that goes far beyond my knowledge and capabilities. I'll have to find someone to do this for me.


Op maandag 22 januari 2024 om 17:05:28 UTC+1 schreef Pinhead:

Pinhead

unread,
Jan 23, 2024, 7:44:20 AM1/23/24
to jal...@googlegroups.com
It's really easy.  Let's do it together...

Do you have MPLABX installed?   If not, go to this page: https://www.microchip.com/en-us/tools-resources/develop/mplab-x-ide

and download the version for you, windows, Linux or Mac.   This will take a while.

Once downloaded, Double click on the file  to install it.   You may keep all the options to default, but to make it lighter, you may unchecked the mplab c16 and c32 compilers: you will need them

Wait until the installation is done. This will also take a while.....


Now, download the source file "new" from instructable.
Rename it with an "asm" extension

Now, open it in mplab.
If you want to modify some parameters, Now is the good time to do so.

Once done, compile your asm file.


It's that simple.   You will now have a correct hex file to program your own pic.

Pinhead

unread,
Jan 23, 2024, 7:49:24 AM1/23/24
to jal...@googlegroups.com
If you don't need to change the program, just download the hex file from instructable, rename it with "hex" and program your chip with your favorite tool as you do usually

Ensure you are using the same pic model as used in the description, otherwise you will not be able to program it without changing the "include" declaration in the asm file, and maybe one or two other things

Easiest is of course to keep the chosen pic


Hans van Veldhuizen

unread,
Feb 3, 2024, 2:46:52 PM2/3/24
to jallib
A classic example of an internet cadaver. Three experienced IT people were unable to convert the asm file into a working hex file and the maker does not respond to emails.
Fortunately, JAL is still alive and kicking.

Op dinsdag 23 januari 2024 om 13:49:24 UTC+1 schreef Pinhead:

Pinhead

unread,
Feb 4, 2024, 2:06:05 PM2/4/24
to jal...@googlegroups.com
Hi,

I thinking i don't understand your message....

I try to help you by describing the steps to follow to achieve your goal.  I was not intended to do it for you since I do not know your requirements .....

And in fact, I was expecting an answer with your findings and more questions so that I can continue to help you....

Did I miss something?


Hans van Veldhuizen

unread,
Feb 4, 2024, 3:23:21 PM2/4/24
to jallib
Hello Pinhead
Initially I asked if there would be a jal lib for the link I provided.
I followed your instructions but received error messages from MPlab.
Because I think this falls outside the Jal event, I approached three other people who turned out to get the same negative result.
I then emailed the creator who indicated in his article that he always wanted to be helpful.
 There is a receipt-, but no read- confirmation and no answer.
Hence my conclusion.
I get the impression that you experience this as unpleasant.
  And that disappoints me.
regards
Hans

Op zondag 4 februari 2024 om 20:06:05 UTC+1 schreef Pinhead:

evan....@googlemail.com

unread,
Feb 4, 2024, 3:48:17 PM2/4/24
to jallib
Hans,

Download the code from site again.  It compiles using MPASMx 5.87   and generates a HEX.

Please be grateful to any responses to your request.  The original author did not respond and the guys above have tried to help.

Pinhead

unread,
Feb 4, 2024, 4:15:55 PM2/4/24
to jallib
Ok, now I get it!

I didn't understand you asked to three OTHER people, therefore my confusion....

I am genuinely willing to help, since I think the solution to your problem is close at hand.

What are the error messages you received ?  This will be a good starting point to investigate and further help you

Kind regards,

David

Hans van Veldhuizen

unread,
Feb 5, 2024, 3:45:07 AM2/5/24
to jallib
Sorry folks, but, as I said before, I have never done anything compiling before. 
To learn all this is perhaps an impossible task for me.
 I have made an attempt, but I think it would only be possible if I took a course for this.
 And that is not something for the jallib environment in my opinion.
If Evan wants to send me the hex file I can try to see if something like that fits into my plans.
By the way, I never hide my gratitude for your efforts and I have been able to do a lot of fun things because of your work.
regards
Hans

Op zondag 4 februari 2024 om 22:15:55 UTC+1 schreef Pinhead:

evan....@googlemail.com

unread,
Feb 5, 2024, 3:49:51 AM2/5/24
to jallib
If you want to try, I recommend you do, try the following:

Download and install the compiler.  https://sourceforge.net/projects/gcbasic/files/Support%20Files/MicrochipCompilers/  Select the MPASMX file. Install.
Download the 'new' source from the original website.
Open the newly installation appplication.  MPASMx.
In MPASMx select the 'new' source  file ( it has the tmp extension ).  
Select ASSEMBLE

Enjoy the HEX produced.

Hans van Veldhuizen

unread,
Feb 5, 2024, 4:29:54 AM2/5/24
to jallib
Hello Evan,
Great,
Followed your instruction. Created hex fil loaded in the pic with Pickit 3 plus. No errors !!!! So now i can check how this works tonight.
Thanks 
regards
Hans

Op maandag 5 februari 2024 om 09:49:51 UTC+1 schreef evan....@googlemail.com:
Reply all
Reply to author
Forward
0 new messages