PIC 16F84A communicates with Hyperterminal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cathee Ncqueen
    New Member
    • Oct 2008
    • 1

    PIC 16F84A communicates with Hyperterminal

    Can anyone tell me what are the codes in C Programming that represent [ENTER], [SPACE],[CTRL+Z] on computer keypad?

    I wrote a segment of program in PWC:

    if
    (input(PIN_A0))

    {
    output_high(PIN _B0);
    printf("Connect ed,%x,A1");
    printf("Serial Communication Is Effective,%x,0D ");
    }
    else
    {output_low(PIN _B0);
    }

    But as I compile there is error in the printf statements...

    I've tried this too

    (input(PIN_A0))

    {
    output_high(PIN _B0);
    printf("Connect ed\r");
    printf("Serial Communication Is Effective"^z);
    }
    else
    {output_low(PIN _B0);
    }
    But it failed too...

    Did i get the code wrong or it's the format ?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Perhaps you should read up about printf

    Comment

    Working...