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.
C LANGUAGE CODE PROBLEM
hi, I want to make the code below will in each condition will only execute printf 1 time. so how should I change it ?
thanks
while(1)
{
if((input(pin_a0)==1) && (input(pin_a1)==1) && (input(pin_a2)==1))
{
delay_ms(1000);
lcd_putc("\fPL available:0");
delay_ms(1000)...
mean I connect my db9 pin and usb to serial port converter to my laptop only? and using hyper terminal or real term to do the loop back test?
is it I don't need to connect my db9 pins to PIC ,if I short pin2 n pin3? thanks
Computer driver problem or voltage problem ?
I have programmed the right code to my pic16f877a, I can use putc/printf function but I failed to use getch function.
I couldn't receive any data from pc to my PIC16f877a when using my own computer but when I used my friend's computer, it can...
I have another problem is when I am using my friend computer , the data can be transmitted from pc to Pic but when I am using my own computer, it failed to do so. So probably what will be the problem? thanks
if this code is true
that mean in vb2008
if i write in this way, and make a button.
serialport1.wrte("1")
by clicking the button then the vb will send the "1" to the pic.
Unfortunately, it does not work. thanks
How can I transmit the data from visual basic 2008/ 2010 to my PIC16F877a?
I am using ccs compiler.
I can send the text from PIC16F877a to computer but I do not know how to send text from VB2008/2010 to PIC16F877a.
I need this urgently because whenever PIC receives the certain text from...
CAN ANYONE teach ME HOW TO SIMPLIFY THIS CODE? it is very messy. How if I have 100 parking lots.
I have no idea at all.
1 = available
0 = unavailable
I know how to declare the array
but I dont know how to insert it.
int8 x;
int8 y;
int8 plav[4];
if((input(pin_a0)==0) &&...
thank you for your help but my lectuere required me to use FOR WHILE, increment and decrements. if in VB I know how to do but this is c language , I have no ideas.
The design is I have 2 PARKING LOTS
if both of the inputs x and y = high
then z will show the number of parking lots now is : 0
Can someone teach me how to do this ?
I only know how to use the begineer method but don't know how to use
"For (z=0 ; z<3,z++ )" to complete the code
thanks
actually I have replaced the LDR(light dependent resistors) with the switches because the LDRs didn't work in PROTEUS 7.5.I don't know what caused the LDR failed to work.thanks
I have edited the code to this way and I used PROTEUS 7.5 TO RUN THE SIMULATION.
THE SIMULATION LCD RESULT CANNOT SHOW WHAT THE RESULT THAT I WANT. THERE ARE SOME UNWANTED CHARACTERS APPEAR.
IT IS MY CODE HAS PROBLEM ??
HERE IS MY CODE
#include "16f877a.h"
#fuses...
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.