![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hello I have built Alexander's 3 axis pic step controller and current limiter. i am having a heck of a time trying to program the 12c508a pics. they always have some sort of an error. I do not know what to set the different fuses to before programming. I loaded the program into ME Labs and ran it on the simulator and I had to turn off the wdt to make it run. I am a newby to electronics and pic programming. Thanks Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#3
| |||
| |||
| Hello It is at www.pminmo.com It is a cool little driver board but I can't get the pics programmed properly
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#4
| |||
| |||
| The config bits are already set in hex code. Anyway here they are. Oscillator - IntOsc Watchdog Timer - Off Code Protect - Off Master Clear Enable - Internal Calibration Memory value is left at whatever factory set. Do not change. |
|
#5
| |||
| |||
| Hello No matter what I try I have not been able to program these pics with out an error. I am just about to give up on this project. I spent a lot of time building the hardware part of it to be held up on the programming. Since these pics are one time programming I think I will wait until I learn more about programming them and try to write my own program for them. [some day] Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
| Sponsored Links |
|
#6
| ||||
| ||||
| Microchip recommend PIC12F508 to replace PIC12C508a. You will get bored with erasing this device before you can't use it any more. OTP's are meant to be in the museum now.
__________________ Super X3. 3600rpm. Two possible way to fix things: The right way or the other way. |
|
#8
| |||
| |||
| Just a wild guess.....as I just tried the code and it worked ok. The error you are probally experiencing is that you are overwriting the factory calibration memory value. The best thing to do is read the blank 12x508 and note the calibration value and then make sure that value is set when writing to the chip. If the value is incorrect the internal oscillator will either be out of spec or not work at all. I used MPLAB and ICD 2 programmer, I also programmed a 12c508 with pic16pro and a kit42 programmer. Both work OK. |
|
#9
| |||
| |||
Hello I have just been using the hex file provided. I have not changed the code in any way. Actually I don't know how to change the code. I have used a JDM serial programmer and a QL- 200 programmer with several different software setups. Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#10
| |||
| |||
| The calibration value is not set in the hex file, it is preprogrammed in the 12c508's memory. As I said read the blank chip and note the calibration value, make sure the value is the same before writing. You can overwrite the value with 0x00 rendering otps useless, The last chip that I programmed had a value of 0xC24 for calibration. If you read the programmed chip and compare the hex are they the same? What is the value of the calibration bits? When do you get the error? |
| Sponsored Links |
|
#11
| |||
| |||
Ok When I read the pic there is a oc74 at the end of the list. Is this the code that needs to be inserted into the hex? If so where do I insert it at? Thanks Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#12
| |||
| |||
| ok. 0x0C74 is the calibration value for THAT chip and was obiviously what was factory set. So it rules out the cal val not being set, you failed to answer the last part of the question above. When do you get the error or does the chip fail to run? You can also put leds on the 4 output pins so you know when each output is High or Low state, easier to see what is happening to the PIC. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Axis and Step and Direction Spindle Setup | mklb | Mach Software (ArtSoft software) | 6 | 11-27-2009 08:19 AM |
| Selected Axis, Step Size LED indicators | mikkojay | Mach Mill | 2 | 01-11-2008 02:10 PM |
| EMC Pluto-Step Z / Y axis interference (bug)?? | Paragon36 | LinuxCNC (formerly EMC2) | 0 | 10-15-2007 08:25 AM |
| How to code a step motor axis move? | Niggo | OpenSource Software | 3 | 08-13-2007 11:40 PM |
| Z-axis (ballscrew) step down ratio | dowling177 | Servo Motors and Drives | 1 | 03-03-2005 11:58 AM |