??? 09/02/08 15:22 Read: times |
#157914 - code of microcrocontroller Responding to: ???'s previous message |
i have used p89v51rd2
#include<p89v51rx2.h> #include <intrins.h> //this pin for enable sbit enable=P1^2; //this pin for clock sbit clk=P1^0; //this pin for direction sbit direction=P1^2; // this function for delay void delay() { unsigned char i; for(i=0;i<19;i++) { _nop_(); } } void main() { unsigned int i=0; delay(); enable=0; clk=1; delay(); direction=0; enable=1; while(1) { clk=1; //here i generate clock haveing total period is 0.723 ms delay(); delay(); delay(); delay(); clk=0; delay(); delay(); delay(); delay(); } } |
Topic | Author | Date |
problem in stepper motor driver circuit | 01/01/70 00:00 | |
More data, please | 01/01/70 00:00 | |
code of microcrocontroller | 01/01/70 00:00 | |
maybe you do, maybe you don't | 01/01/70 00:00 | |
New drive circuit most likely | 01/01/70 00:00 | |
two not necessariliers | 01/01/70 00:00 | |
There are other things to consider as well... | 01/01/70 00:00 | |
have you seen this? | 01/01/70 00:00 | |
looks like same posting different wording | 01/01/70 00:00 | |
How can you be totally sure that it;'s possible???![]() | 01/01/70 00:00 |