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
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.
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.
Try building a Mike, K8LH charlieplexed PWM LED array? I just tested it and it works acceptably at 4MHz (that's the speed of the internal clock on 12F509). I just added a slightly altered schematic from Mike's at the end of the thread.