![]() | |
| 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 |
|
#13
| |||
| |||
| When I tried to verify the programming it came up with a code error. I haven't programmed one in a while so I don't remember the error # but the pic would not verify. I will try to program one this afternoon and write down the error. Thanks Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#14
| |||
| |||
| So you haven't tried running one of the chips yet? I don't know what programming software you are using but try and see if there is an option of writing calibration value and disable that, then see if it will verify ok. That said.... I have being disassembly of the hex and I do believe that there are bugs in the program. Output seems to be for the four full steps in this sequence STEP--PHASE--=--GPIO---HEX-----BINARY step 1 - 2b ------- gpio = 0x01----00000001 step 2 - 2a ------- gpio = 0x02----00000010 step 3 - 1b & 2a ---gpio = 0x22----00100010 step 4 - 1b & 2b ---gpio = 0x21----00100001 step 1 - 2b --------gpio = 0x01----00000001 This will cause erratic movement as the sequence is wrong for full step mode. Correct GPIO value in binary:- Phase 1a = 00010000 Phase 1b = 00100000 Phase 2a = 00000010 Phase 2b = 00000001 Can anyone who has used this hex confirm that it steps correctly? |
|
#16
| |||
| |||
| I would hold off trying to program anymore 12c508 till someone confirms that the hex code "as is" works. If you are getting some kind of output from the pic I would say that the chips are programmed ok, its just that the hex is buggy. As I haven't actually built the drivers & current limiter, I can't really tell you what the faulty step sequence will do but very little movement with atleast one phase powered on at any time will hold stepper in position. Using a multimeter probe the outputs of the pic, only one phase should be high at any given step. If more than one phase is high at the same time the hex is definetly buggy. |
|
#18
| |||
| |||
Hello sorry for the delay. Work you know. I get the error when I program the pic. it will not run on the board. I do get holding torque but no movement. I will try to program another pic with the chip speed set in the code and see if that works. Thanks Bruce
__________________ www.wtxrcdog.com http://wtxrcdog.blogspot.com/ |
|
#19
| |||
| |||
| The pic works, I've just tested one channel, the issue I see is the output pattern seems to be just the opposite as I expected : "1110" "0111" "1011" "1101" ..... Instead of the expected "0001" "1000" "0100" "0010" So instead a MOS FET I'm using a 754410 to drive a small stepper I've done the test with the TURBOCNC soft. Regards, |
|
#20
| |||
| |||
| i already build this controller. but it never worked.the reason is to reprogram the chip u need spl.type of programmer.some UV based. i came to know it after wasting lot of time.so guys do some search on this 12c chip.u'll know. |
| Sponsored Links |
![]() |
| 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 07:19 AM |
| Selected Axis, Step Size LED indicators | mikkojay | Mach Mill | 2 | 01-11-2008 01:10 PM |
| EMC Pluto-Step Z / Y axis interference (bug)?? | Paragon36 | LinuxCNC (formerly EMC2) | 0 | 10-15-2007 07:25 AM |
| How to code a step motor axis move? | Niggo | OpenSource Software | 3 | 08-13-2007 10:40 PM |
| Z-axis (ballscrew) step down ratio | dowling177 | Servo Motors and Drives | 1 | 03-03-2005 10:58 AM |