View previous topic :: View next topic |
Author |
Message |
Suus
Joined: 11 May 2004 Posts: 8
|
kbhit() |
Posted: Thu May 13, 2004 6:28 am |
|
|
Hello,
I'm using the kbhit() function but it gives the next error:
Function used but not defined: _StdIOCharAvail
I'm using PIC16f877a and version 3.187
Can anybody help me?
Susan |
|
|
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Thu May 13, 2004 6:35 am |
|
|
Do you have #use RS232 in your code?This need to be there for the RS232 function to become accessible.
Post your code. |
|
|
Suus
Joined: 11 May 2004 Posts: 8
|
|
Posted: Thu May 13, 2004 7:03 am |
|
|
Yes I have #use RS232 in my code:
Code: |
#define XTAL_HZ 16000000
#use delay(clock = XTAL_HZ, restart_wdt)
#use rs232(baud = 500000, parity = N, xmit = PIN_C6, rcv = PIN_C7, RESTART_WDT)
output_low(PIN_B1);
if (kbhit())
output_high(PIN_B1);
|
|
|
|
Suus
Joined: 11 May 2004 Posts: 8
|
|
Posted: Thu May 13, 2004 7:18 am |
|
|
Ok I found what I was doing wrong.
I used a wrong library.
Thanks for answering
Susan |
|
|
|