![]() | |
| 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
| |||
| |||
I am using PIC16F628. Why do I get around 1V on RB04 and 5.5V on all other RBs? I am using RAs for step and dir inputs, RB0-3 for X axis and RB4-7 for Y axis and my Y axis is playing up because of the missing step on RB4. And I tracked it down to a 1V output on RB4. I cannot find anything in the documentation as far as RB4 is concerned (like for example RA0-4 being analogue as well as digital inputs, software settable or something similar) I know what a burnt 16F628 looks like (i.e. - totally dead!) so I doubt I could've fried just a single output pin (RB4). Any ideas anyone before I go out and buy another PIC? |
|
#2
| |||
| |||
| Oh, and BTW this is my controller/driver combo. I am a computer person by trade and in my line of work you learn to split things into manageable chunks or modules. Since I am new to electronics maybe what I have done is silly when it could've all been done on a single PCB but I thought splitting it all up makes it more manageable and easier to troubleshoot. Please feel free to slag my "design" off as much as you like. I am still learning. ![]() P.S. Transistors used are TIP122/BD901 and not TIP120 as per picture. |
|
#3
| |||
| |||
| Would you kind electronic gurus please look at these and perhaps suggest what needs to be added to this setup (capacitors, diodes, transistors, tetrion field emitters, multiphasic discombobulators, etc...) so it looks like something a sane person might have "designed". Thanks! |
|
#4
| |||
| |||
| Well I've burned out plenty of single pin i/o on PIC microcontrollers over the years. The rest of the chip would work just fine. I mark them as bad and use the chips for projects that don't require the dead i/o pin. Do you have a schematic of the circuit? To hard to see how the PIC is hooked up from your two posted images. If you can still program and do a flash memory verify, that means the chip is partially working. Jim |
|
#5
| ||||
| ||||
| RB4 is the low voltage programming pin. To ensure proper use as I/O pin, your configuration bits (LVP bit) must be programmed correctly (i.e., LVP Disabled). I would also add current limiting resistors between the PIC pins and the transistor base as well as decoupling capacitor near each PIC (0.1uF). Also add a diode between the transistor common/emitter pins. PIC are spec for 5V, wondering why you're getting 5.5V on the pins. Something similar with what you're doing is here http://www.dakeng.com/u2.html
__________________ Stupid questions make me smarter... See how smart I've become at www.9w2bsr.com ;-P |
| Sponsored Links |
|
#6
| ||||
| ||||
| If they were AVR's I could help some, but not PIC's. Why the bipolar transistors, and not MOSFET's? Phil
__________________ Phil, Still too many interests, too many projects, and not enough time!!!!!!!! Vist my websites - http://pminmo.com & http://millpcbs.com |
|
#7
| |||||
| |||||
I had zener diodes 4148 between C and E in my previous "design". I just left them out for no reason. Should I put them back in?
|
|
#8
| |||
| |||
|
|
#11
| ||||
| ||||
| Ensure LVP is disabled and TRISB set for output. Write a simple code to set RB4 to HIGH. Measure the voltage on RB4, if still not 5V, probably the bit is fried. Get a new PIC
__________________ Stupid questions make me smarter... See how smart I've become at www.9w2bsr.com ;-P |
|
#12
| |||
| |||
| Ok will do. One more thing. I'm currently using the internal 4MHz oscillator. To add an external 20MHz crystal (the metal can thingamabob) it's just a matter of connecting one leg to OSC1 and the other to OSC2 pins and setting the HS flag in icprog and that's that? I have a feeling the PIC is struggling to get all the step/dir signals at 4MHz when running two axis at the same time rather than just one. I had to set minimum pulse width to 20us and direction prechange to 50us and kernel speed to 25000Hz for it to work. Anything faster and it starts to become jerky and loses steps. Also has anyone built linistepper? Should I just throw all my stuff out the window and go with that? |
![]() |
| 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 |
| PIC Open source Servo Driver Schematics development? | Rossz | Open Source Controller Boards | 90 | 10-26-2011 04:37 PM |
| CNC Controller PIC 16F877 - From Brasil | elizeu | PIC Programing / Design | 12 | 05-04-2009 08:49 AM |
| Need PIC programmed | randyf1965 | CNC Wood Router Project Log | 0 | 03-26-2005 06:56 PM |
| pic chip SERIAL to step/dir and controll | berin | Open Source Controller Boards | 13 | 02-18-2005 06:23 PM |
| Posting pic from the galley | CNCadmin | CNCzone Club House | 1 | 07-10-2003 06:30 PM |