Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I am writing a code for move drill bit in x, y coordinates, when looping through x, y coordinates list two stepper motors are rotating only once, next coordinates are being ignored. Why this is happen? I am using MikroC for write the code. Also I am getting input from serial port. What...
I am supposed you are using unipolar stepper motor which has 6 pins, so 2 of them is common. If you want to rotate it for one direction find the not common pins, there are 4 you have to give pulse sequence like this
1000
0100
0010
0001
if you want to change direction, get previous sequence...
I think your code is working. But it can not identify because it doesn't do any change to the state of led. try this and you can find out it is working.
void main() {
TRISB = 0x00;
PORTB = 0x00;
PORTB.F0 = 1;
Delay_ms(3000);
PORTB.F0 = 0;
Delay_ms(3000);
asm {...
I have written a code for send an sms from pic 16f877a via gsm module(New Siemens T35i) . Code is working in the proteus but when programmed it, tx output is around 5v and not changing. Help me to find out the problem here is the code i have used.
void sms_send();
char sms[11];
void main() {...
Re: Get pulse width in mikroc
zia, your great idea works for me thanks, but now i can't get the time. I used 16bit timer, internal clock without prescale and 18f452 microcontroller in 4Mhz. When I try to get time from t = TMR0H; it didn't work for me. But t = TMR0L; gives some crazy values. RB0...
Hi everyone, i want to get the time period of a pulse in mikroc pro. I'm using SR04 ultrasonic sensor, when it triggered it will generate a pulse. To calculate the distance, we have to divide pulse time period by constant given by the manufactures. The thing is time period should be within...
hey dude thanks, but i did the same thing but it didn't work i think my software has some compiling error or something. Another thing we know that tangent of 45 degrees is 1 but this shows 1.619758 can you tell me why is that
zia, this is the code I used, but when it simulate in proteus it gives this error massage "Write 0x00 (0) to unimplemented memory address 0x0B5C does nothing" repeatedly.what i should do for solve this
// LCD module connections
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at...
Hi, I'm new to microcontroller programming and i want to display a tangent value of an angle in a lcd. I tried by using tan function in mikro c, code was compiled but didn't work in proteus. can any one help me to find out any method to do this. thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.