WHat is happening.HELP


Results 1 to 2 of 2

Threaded View

  1. #1
    B_dancer's Avatar
    B_dancer Guest

    Default WHat is happening.HELP

    Hello i am student and i have a little problem.I use PIC18f4680 and with a DB9 cable i connct it to PC.In general i use hyperterninal to see what sends and receives.Everything was ok until
    i wrote this program which i think is very simple.
    ____________________________________________
    #include <18F4680.h>
    #fuses HS
    #use delay(clock=20000000)
    #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

    void main()
    { char c ;

    puts("GIVE LETTER");
    c = getc();

    if (c=='A')
    {
    puts( "GEORGE" );

    }
    else if(c=='B')
    {
    puts( "JIM" );
    }
    else
    {
    putc(c);
    }
    }
    ----------------------------------------------------------------------

    i dont get any build options but i dont see the names in the hyperterminal screen when i press the letters A or B.I only see the "give Letter" phrase. WHATS wrong.Plz Help me.

    Thank you
    Last edited by B_dancer; - 14th May 2010 at 00:40. Reason: complete sth

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts