Continue to Site

Welcome to EDAboard.com

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.

Recent content by sfchew7

  1. S

    Help-c language code problem

    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)...
  2. S

    Computer driver problem or voltage problem ?

    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
  3. S

    Computer driver problem or voltage problem ?

    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...
  4. S

    PIC16F877A interface with PC.

    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
  5. S

    PIC16F877A interface with PC.

    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
  6. S

    PIC16F877A interface with PC.

    Can anyone help me? I need it urgently. Thanks
  7. S

    PIC16F877A interface with PC.

    #include "16f877A.h" #fuses HS,NoPROTECT,NoWDT,put,brownout #use delay(clock=4000000) #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7,ERRORS) char chr; void main() { printf("\n\rThis is a demo"); while(1) { if(kbhit()) // check if...
  8. S

    PIC16F877A interface with PC.

    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...
  9. S

    help coding of PIC16F877A

    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) &&...
  10. S

    [help] PIC16F877A using for while problems

    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.
  11. S

    [help] PIC16F877A using for while problems

    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
  12. S

    [help] how to solve the while loop problem ? ccs compiler . PIC16f877A.

    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
  13. S

    [help] how to solve the while loop problem ? ccs compiler . PIC16f877A.

    here is the picture. I am using /f is because the characters will overlap if without "/f". is it true? thanks
  14. S

    [help] how to solve the while loop problem ? ccs compiler . PIC16f877A.

    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...
  15. S

    [help] how to solve the while loop problem ? ccs compiler . PIC16f877A.

    OKAY. THANKS FOR THE HELP. I go to try now.:-P

Part and Inventory Search

Back
Top