Page 1 of 2

How to transfer pic codes to other pics ?

Posted: Tue Jan 09, 2024 7:36 pm
by XXL
I'm trying to setup the saa1057 PLL on my pcb design, iv got the hex code for the pic from zozo's board which is only for pic16f84, but I have a shitload of pic16f88's that id rather use up than buy new pics. How would I go about it ??

Re: How to transfer pic codes to other pics ?

Posted: Thu Jan 11, 2024 12:27 am
by Albert H
Unfortunately, it's not trivial. The memory map for the '88 is very different from the '84 (and the opcodes differ too, as I remember). There are a few conversion programmes, but usually for '84 to '628. I'll have a look and see if I've got something for the '88

Re: How to transfer pic codes to other pics ?

Posted: Thu Jan 11, 2024 3:01 am
by XXL
Yeh even 628a iv got a few of here but thought 16f88 would be the most compatible.

Re: How to transfer pic codes to other pics ?

Posted: Thu Jan 11, 2024 7:37 am
by Krakatoa
Zozo used the freely available code for Saa1057 that's published on pira.cz web. There is also the source code.
I'd take that source code, paste it in a new project in MPlab (Microchip's PIC development IDE) and compile it for your target microcontroller.
You will need to configure additional "fuses" in your newer device.

Re: How to transfer pic codes to other pics ?

Posted: Thu Jan 11, 2024 1:53 pm
by XXL
Yeh I’m trying to learn how to code it but starting from a complete novice with C, I’m totally lost. I understand things like R & N registers for the saa1057, but I don’t get how to tell the microcontroller that.

Re: How to transfer pic codes to other pics ?

Posted: Thu Jan 11, 2024 2:21 pm
by jvok
If you rebuild the pira.cz code you'll need to get hold of a copy of the old mplab. The new mplabx has totally different assembler syntax so the old code won't build

Re: How to transfer pic codes to other pics ?

Posted: Fri Jan 12, 2024 11:19 pm
by LeeCavanagh
jvok wrote: Thu Jan 11, 2024 2:21 pm If you rebuild the pira.cz code you'll need to get hold of a copy of the old mplab. The new mplabx has totally different assembler syntax so the old code won't build
Helpful, thsnkyiu

Re: How to transfer pic codes to other pics ?

Posted: Sun Jan 14, 2024 4:50 pm
by pukje62
Can you try this hex file, i compiled the source code for the pic 16f88

Re: How to transfer pic codes to other pics ?

Posted: Tue Jan 16, 2024 1:23 am
by Bazz1053
Anyone got the hex for the smile board. For the PIC16F628A

Re: How to transfer pic codes to other pics ?

Posted: Tue Jan 16, 2024 8:49 am
by RF-Head
No it's custom made and not public
I made the design years ago and sold it to someone here on the board

Re: How to transfer pic codes to other pics ?

Posted: Tue Jan 16, 2024 2:03 pm
by tvtv
pukje62 wrote: Sun Jan 14, 2024 4:50 pm Can you try this hex file, i compiled the source code for the pic 16f88
Could you do one for the 628? Albert mentions there is a conversion for 64 to 628, but rf-head says the hex for 628 was custom and sold on this board, if u could u will be loved

Re: How to transfer pic codes to other pics ?

Posted: Tue Jan 16, 2024 2:56 pm
by whitenoise
I second that , although I will only goes as far as a man hug

Re: How to transfer pic codes to other pics ?

Posted: Tue Jan 16, 2024 8:25 pm
by pukje62
Bazz1053 wrote: Tue Jan 16, 2024 1:23 am Anyone got the hex for the smile board. For the PIC16F628A
Can you place a picture of the smile board ?, if it's the same as the ZoZo then you can try this code, i compiled the source code for the 16f628a,

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 8:50 am
by Bazz
IMG_4121.jpeg
pukje62 wrote: Tue Jan 16, 2024 8:25 pm
Bazz1053 wrote: Tue Jan 16, 2024 1:23 am Anyone got the hex for the smile board. For the PIC16F628A
Can you place a picture of the smile board ?, if it's the same as the ZoZo then you can try this code, i compiled the source code for the 16f628a,

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 1:56 pm
by OldskoolPirate
Why do you need the hex for that ? You get it with the kit when you buy on eBay. Only reason you would need that is if you have tried to copy the design. There’s literally no need to reprogram it because you can change the frequency with the buttons on that board.

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 4:53 pm
by LeeCavanagh
Probably fried the chip , it’s easier than you may think.
I would quite like to try my own design using this pic, and would also have just up and down button ,maybe another for save but that’s optional
I’m willing to try learn the assembly lang, but even if someone can’t provide an example of one (AI not have kinda started me off , miraculous those things) then if someone can just provide a working hex for 628 , that chip and two buttons are not owned but anyone and this forum is all about sharing learning.

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 5:13 pm
by radium98
Oh @pukje62 is here , how are you freind

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 5:22 pm
by yellowbeard
Freddo the Dutch fella had a design for that PIC and PLL back in the day, bad news is it has FOUR buttons, but there is a hex file...
http://home.deds.nl/~radio102/freddos/default.htm
It's on the PIC16F628 page. :obv

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 6:31 pm
by LeeCavanagh
Thanks will look into that
Do you know if there was ever an asm file ? Then I could edit it and recompile for pins functions

Re: How to transfer pic codes to other pics ?

Posted: Wed Jan 17, 2024 7:08 pm
by thatpirateguy
hex the planet get the the file out