How to transfer pic codes to other pics ?

Everything technical about radio can be discussed here, whether it's transmitting or receiving. Guides, charts, diagrams, etc. are all welcome.
XXL
proppa neck!
proppa neck!
Posts: 537
Joined: Mon Sep 02, 2019 11:06 am

How to transfer pic codes to other pics ?

Post by XXL » Tue Jan 09, 2024 7:36 pm

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 ??

Albert H
proppa neck!
proppa neck!
Posts: 2778
Joined: Tue Apr 05, 2016 1:23 am

Re: How to transfer pic codes to other pics ?

Post by Albert H » Thu Jan 11, 2024 12:27 am

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
"Why is my rig humming?"
"Because it doesn't know the words!"
;)

XXL
proppa neck!
proppa neck!
Posts: 537
Joined: Mon Sep 02, 2019 11:06 am

Re: How to transfer pic codes to other pics ?

Post by XXL » Thu Jan 11, 2024 3:01 am

Yeh even 628a iv got a few of here but thought 16f88 would be the most compatible.

Krakatoa
big in da game.. trust
big in da game.. trust
Posts: 87
Joined: Tue Mar 07, 2017 8:57 pm

Re: How to transfer pic codes to other pics ?

Post by Krakatoa » Thu Jan 11, 2024 7:37 am

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.

XXL
proppa neck!
proppa neck!
Posts: 537
Joined: Mon Sep 02, 2019 11:06 am

Re: How to transfer pic codes to other pics ?

Post by XXL » Thu Jan 11, 2024 1:53 pm

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.

jvok
no manz can test innit
no manz can test innit
Posts: 220
Joined: Sun Aug 16, 2020 2:44 pm

Re: How to transfer pic codes to other pics ?

Post by jvok » 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

LeeCavanagh
tower block dreamin
tower block dreamin
Posts: 361
Joined: Sat Feb 18, 2017 5:56 pm

Re: How to transfer pic codes to other pics ?

Post by LeeCavanagh » Fri Jan 12, 2024 11:19 pm

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
Sony ST 920 QS

pukje62
ne guy
ne guy
Posts: 3
Joined: Tue Dec 28, 2021 3:47 pm

Re: How to transfer pic codes to other pics ?

Post by pukje62 » Sun Jan 14, 2024 4:50 pm

Can you try this hex file, i compiled the source code for the pic 16f88
You do not have the required permissions to view the files attached to this post.

Bazz1053
ne guy
ne guy
Posts: 1
Joined: Sat Feb 12, 2022 3:44 pm

Re: How to transfer pic codes to other pics ?

Post by Bazz1053 » Tue Jan 16, 2024 1:23 am

Anyone got the hex for the smile board. For the PIC16F628A

RF-Head
tower block dreamin
tower block dreamin
Posts: 271
Joined: Wed Oct 15, 2014 9:25 pm

Re: How to transfer pic codes to other pics ?

Post by RF-Head » Tue Jan 16, 2024 8:49 am

No it's custom made and not public
I made the design years ago and sold it to someone here on the board

tvtv
who u callin ne guy bruv
who u callin ne guy bruv
Posts: 37
Joined: Tue Jun 30, 2020 9:10 pm

Re: How to transfer pic codes to other pics ?

Post by tvtv » Tue Jan 16, 2024 2:03 pm

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

whitenoise
ne guy
ne guy
Posts: 6
Joined: Tue Oct 24, 2023 7:11 pm

Re: How to transfer pic codes to other pics ?

Post by whitenoise » Tue Jan 16, 2024 2:56 pm

I second that , although I will only goes as far as a man hug

pukje62
ne guy
ne guy
Posts: 3
Joined: Tue Dec 28, 2021 3:47 pm

Re: How to transfer pic codes to other pics ?

Post by pukje62 » 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,
You do not have the required permissions to view the files attached to this post.

Bazz
ne guy
ne guy
Posts: 8
Joined: Sat Sep 19, 2020 2:53 pm
Contact:

Re: How to transfer pic codes to other pics ?

Post by Bazz » Wed Jan 17, 2024 8:50 am

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,
You do not have the required permissions to view the files attached to this post.

User avatar
OldskoolPirate
no manz can test innit
no manz can test innit
Posts: 208
Joined: Thu Feb 18, 2016 9:32 pm

Re: How to transfer pic codes to other pics ?

Post by OldskoolPirate » Wed Jan 17, 2024 1:56 pm

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.
:tup

LeeCavanagh
tower block dreamin
tower block dreamin
Posts: 361
Joined: Sat Feb 18, 2017 5:56 pm

Re: How to transfer pic codes to other pics ?

Post by LeeCavanagh » Wed Jan 17, 2024 4:53 pm

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.
Sony ST 920 QS

radium98
proppa neck!
proppa neck!
Posts: 919
Joined: Fri Aug 26, 2016 7:01 pm

Re: How to transfer pic codes to other pics ?

Post by radium98 » Wed Jan 17, 2024 5:13 pm

Oh @pukje62 is here , how are you freind

Online
User avatar
yellowbeard
tower block dreamin
tower block dreamin
Posts: 309
Joined: Wed Jul 08, 2015 5:40 am

Re: How to transfer pic codes to other pics ?

Post by yellowbeard » Wed Jan 17, 2024 5:22 pm

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

LeeCavanagh
tower block dreamin
tower block dreamin
Posts: 361
Joined: Sat Feb 18, 2017 5:56 pm

Re: How to transfer pic codes to other pics ?

Post by LeeCavanagh » Wed Jan 17, 2024 6:31 pm

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
Sony ST 920 QS

thatpirateguy
ne guy
ne guy
Posts: 2
Joined: Fri Oct 21, 2022 4:24 pm

Re: How to transfer pic codes to other pics ?

Post by thatpirateguy » Wed Jan 17, 2024 7:08 pm

hex the planet get the the file out
:tup

Post Reply