| Electronics > Beginners |
| Assembly code Help! PIC16F57 |
| << < (3/32) > >> |
| Electrofinn:
Ok thanks will try that. Yeah the 16C57 is not supported by the pickit3, which I own, and owner used the PICstart originally. it was through his advice that we arrived at its direct replacement 16F57 of which I have 5 spare. As previously mentioned they work great with the source code, its just those little things I need to get changed in the code that he provided as he couldn't find the final version of the code that he supplied on the pre-programmed chips back in the day. before I had chance to flesh these things out about the code I had lost contact with him. it's just frustrating because I just don't possess the programming knowledge to achieve this and attempts to learn this is proving very hard for me. I know enough to build the projects and program the PIC's and maybe mess with a few variables in code but it's like gobbledy goop to me. I have had new PCB's made by JLPCB using original schematic (with changes made because of unavailability of the original push buttons and new pinout arrangement for the segment displays) and I have built it up and works superbly with both the original chip and the new 16F57. I am so close grr! just need help! You see this I like a restoration project for me and I am trying to have the code act like the original, I grew up with this machine after having and watching it being built by my dad, now I am building it for my son and my dad would also like to do this again, so I was going to give him the bits he needs as a kit. |
| jpanhalt:
First, I made an error in my previous post. By accident I was looking at the 16F59, not the 16F57. The latter's GP Ram does begin at 0x08, not 0x0A, which is the 16F59. Since your compiler seems to accept PC for PCL, that is probably OK. But, you might want to try PCL |
| Electrofinn:
looked a the disassembly list and I'm at a loss as to what I am looking at or how I am to conclude why this won't run the 17th - 32nd entry of the "pattern" table. please except my apology but I'm just like |O :-// here!, yeah just tried renaming the PC to PCL at the top of code and on all the tables but has made no difference, but will leave it that way since every example I have read seems to have it named that way. |
| Electrofinn:
The other thing is I don't know whether I should be using MPLAB IDE v8.83 or MPLAB X IDE, seem to be able to use both without too much pain since I know where most things are in MPLAB X now! |
| jpanhalt:
I use MPLab 8.92. If 8.83 works, that is what I would use. Either is easier when using Assembly, if the chip is supported. That is not to say MPLab X won't work, and with newer chips, that is the only option. The problem is very unlikely to be the Assembler. Can you snippet the Disassembly and your code for the jump table side by side and post? |
| Navigation |
| Message Index |
| Next page |
| Previous page |