Help needing code to be remade for another PIC

Status
Not open for further replies.

Darkstar64

New Member
Hey everyone been looking at guides to program PIC's for about a month and am still kinda new to it and I need the code for some PIC12F509's have about 10 of them sitting around was going to use them for PWM for a CNC Machine but I only needed 4 of them so I have some spare Can anyone convert this code to work with the PIC12F509's even if it takes more then one PIC to do it that would be fine just let me know and thanks for all the help its going to be a good project for starters and for something to do
 

Attachments

  • LED.asm
    42.2 KB · Views: 111
Is it even possible to do im not to sure as it is a great deal of code
Of course it's possible. Pretty simple stuff. There's just quite a few lines to go through. Chances are that large parts of the code won't have to be changed at all, provided you wired things similarly to the new PIC as they were to the old.

Just have both the original code PIC's datasheet as well as your new PIC's datasheet on screen and start going through it, making changes as necessary to suit the new PIC.
 

Except the 509 only has a two address deep stack and that code is at least 4 calls deep. It also doesn't have the return instruction.

Mike.
 
Except the 509 only has a two address deep stack and that code is at least 4 calls deep. It also doesn't have the return instruction.

Mike.
At that point I think I'd chuck the $2.00 worth of chips in the parts bin and buy some slightly bigger ones.
 
Thanks everyone for the help anyone know any fun projects that use the 509 don't really just want to put them in the trash complete waste of PIC's
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…