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 having this problem with PIC16F877. Whenever I place a 5v to the input port (PORT A) of PIC16F877, the output ports (PORT B & PORT D) do not have the same 5v as input port... The result is either 1.3mv or 0.6mv when I uses multimeter to measure...
Below is the code:
#ifndef...
enable pin in l293d
thanks Kaleborg! I have tried to reduce the delay loop but somehow my output was unable to have a full 5v to trigger the L293D. It always stuck at about 0.5mv or 1.3mv
Time control issue...
Thanks! I had tried with it. But nothing has changed. I did not use mplab sim to try as my lab do not have this software.
I have noticed that my output (portD) does not have any voltage flow between the PIC controller and the IC chip. I have been trying to solve this...
Time control issue...
oh... so i should edit it to 65535 for the maximum?
void DelayUs(int count)
{
int i;
int j;
for(i = 0; i < count; i++)
{
for(j = 0; j < 65535; j++);
//This for loop has 5 NOPs & wastes 1 uS for our PIC clock frequency of 20MHz.
}
}
Time control issue...
Hi, I am currently using PIC16F877 to control L293D for the motor. The issue is I was unable to set the time control to stop the motor when the time is up... No matter how big the value in my C programming. It will still stop less than 1sec time. Please advice. Thanks...
in my project, it doesn't require to turn with specific direction. either clockwise or anti clockwise is fine.
Added after 2 minutes:
3
My apologises, Advares. Are you referring to me or glenndr_15?
l293d enable
actually i only need output pin as I need the PIC16F7877 to be able to have internal time control then when time is up, the output port will be off... So I believe the TRISB input can be ignored.
I having a problem using the PIC16F877 to enable/disable L293D IC chip for enabling and disabling the DC motor.
I am using PORTD of PIC16F877 to control the enable pin 1 of L293D but it's seem not controlling at all.
here is the code:
//Define compiler error message.
#ifndef __CPU_16F877__...
l293d
Hi all,
I having a problem using the PIC16F877 to enable/disable L293D IC chip for enabling and disabling the DC motor.
I am using PORTD of PIC16F877 to control the enable pin 1 of L293D but it's seem not controlling at all.
here is the code:
//Define compiler error message.
#ifndef...
Hi all,
is it possible to use PIC16F877 to control various speed of the motor? If possible, can you show me how to use c programming to configure in such a way.
Many thanks!
Newbie here.
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.