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 just wanna try simple project which is to control the speed of dc motor using PIC16F877A..
my problem is at the coding because i'm not good in coding (MikroC)
here is my coding
void main()
{
short duty = 0; //initial value for duty
TRISD = 0xFF; //PORTD as input
TRISC = 0x00...
hi....i wanna ask a question here about shift register in ladder diagram...what is the output of combination of input,preset and reset???
is it true if the input is 1,preset is 1 and reset is 1 the output will get is 0??
thi is my code.the problem is after i compile,it show ';' expected but LED0 found
//}
#define PORTBIT(adr, bit) ((unsigned)(&adr)*8+(bit))
static bit LED0 @ PORTBIT(PORTC, 0) ;
static bit LED1 @ PORTBIT(PORTC, 1) ;
static bit LED2 @ PORTBIT(PORTC, 2) ;
static bit LED3 @ PORTBIT(PORTC, 3) ...
i have a problem with my coding to change state of leds in pic16f877a when push button is active...i want to change the led pattern in port b, and d when press the push button..
i have 3 condition for this system and of course it can't use 'if' and 'else' right???
anyone please help me???
im using mikroc..sorry,im newbie..this code i've adjusted that has been taken from internet to suit with my circuit...i want to make led in port b,c and d blinking using the code..and when pushbutton is active,only leds in port b and d are change pattern
This is my coding to change the led patterns when pushbutton is active but it doesn't work..the message show ';' expected but LED0 found...someone please help me..here is my coding
#define PORTBIT(adr, bit) ((unsigned)(&adr)*8+(bit))
static bit LED0 @ PORTBIT(PORTC, 0) ;
static bit LED1 @...
this is my 1st pattern and the other pattern i haven't decide yet..u can put any pattern there..
void main()
{
TRISB = 0x00; // Sets all pins in PORTB as output
PORTB = 1; // Set RB0 to high 00000001
TRISC = 0x00;
PORTC = 0xff;
TRISD = 0x00;
do // To set infinite loop...
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.