CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > PIC Programing / Design


PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-14-2008, 11:33 PM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road
3 AXIS PIC STEP

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/
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 06-15-2008, 12:31 AM
 
Join Date: Aug 2005
Location: Sweden
Age: 60
Posts: 48
jans123 is on a distinguished road

Alexander's 3 axis pic step controller??? Never heard about it. Got a link?
/jan
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 06-15-2008, 07:16 AM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road

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/
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 06-30-2008, 02:37 AM
 
Join Date: Aug 2004
Location: Australia
Posts: 26
Ozheat is on a distinguished road

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.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 06-30-2008, 09:05 AM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road

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/
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-30-2008, 10:19 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 62
Posts: 2,189
neilw20 is on a distinguished road
Talking Try a Flash part.

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.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 06-30-2008, 11:58 AM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road

I will try them thanks for the tip
Bruce
__________________
www.wtxrcdog.com
http://wtxrcdog.blogspot.com/
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 07-01-2008, 09:06 AM
 
Join Date: Aug 2004
Location: Australia
Posts: 26
Ozheat is on a distinguished road

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.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 07-01-2008, 09:20 AM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road
3 axis pic step

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/
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 07-01-2008, 09:31 AM
 
Join Date: Aug 2004
Location: Australia
Posts: 26
Ozheat is on a distinguished road

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?
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-01-2008, 11:47 AM
 
Join Date: Dec 2004
Location: USA
Age: 51
Posts: 39
wtxrcdog is on a distinguished road
3 axis pic step

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/
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 07-01-2008, 01:23 PM
 
Join Date: Aug 2004
Location: Australia
Posts: 26
Ozheat is on a distinguished road

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.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 04:40 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353