![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | #47 (permalink) | |
| Experienced Member Join Date: Jan 2007 Location: U.K.
Posts: 3,783
| Quote:
Can you post ALL of the PIC program so that we can see the method that you are using.? If its in 'C language' someone else will help out, I write in assembler.
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ | |
| | |
| | #48 (permalink) |
| Experienced Member | this is my test program ,cos i want to make sure this motor can run 1st Symbol pulse1 = PORTC.0 'pulse for m1 Symbol dir1 = PORTC.1 'direction for m1 Symbol pulse2 = PORTC.2 Symbol dir2 = PORTC.3 'direction for m2 vexta TRISC = %11110000 loop: dir2 = 1 High PORTC.2 'pulse M2 WaitUs 250 Low PORTC.2 'pulse M2 WaitUs 500 Goto loop End |
| | |
| | #49 (permalink) | |
| Experienced Member Join Date: Jan 2007 Location: U.K.
Posts: 3,783
| Quote:
A quick look at the 'program' would suggest to me that it does not meet the requirements of the motor.! Do you have a copy of the manufacturers software/program.?
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ | |
| | |
| | #50 (permalink) |
| Experienced Member | i am using PIC uC PIC16F877 to control this motor ,software i am using PIC Simulator IDE (basic based)but according to the manual i need to power up the pulse pins and also the directional pin is it? i mean pin 1 and pin 3 i need to connect to 5VDC and pin 2 and 4 to pulse input pin (PORTC.2) and (PORTC.3) one output pulse signal and another one direction signal. |
| | |
| | #51 (permalink) | ||
| Experienced Member Join Date: Jan 2007 Location: U.K.
Posts: 3,783
| Quote:
Quote:
Do you have the controller and the motor.? The controller expects to be driven from a MCU.
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ | ||
| | |
| | #52 (permalink) |
| Experienced Member | ya i am driving the controller with PIC uC, it seem my motor are now working,as i though the controller is internally power up.after study the extract which you posted it need to connect to VDC because b 4 this i straight away connect the uC input to the corresponding pin without any power go in to the corresponding pin :-) Last edited by mesamune80; Yesterday at 07:49 AM. |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| LCD Display | karenhornby | Electronic Projects Design/Ideas/Reviews | 27 | 22nd February 2008 07:42 PM |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 09:49 PM |
| Output = Input - Problems | adamthole | Micro Controllers | 20 | 24th April 2007 04:09 AM |
| uuffff how doess this stupid ting work lol | cyprio7 | General Electronics Chat | 7 | 9th October 2005 06:56 PM |
| convert input resistance to different output, but how?! | pcoghlan | Electronic Projects Design/Ideas/Reviews | 7 | 9th July 2004 10:00 PM |