CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

kbhit()

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Suus



Joined: 11 May 2004
Posts: 8

View user's profile Send private message

kbhit()
PostPosted: Thu May 13, 2004 6:28 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 13, 2004 6:35 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 13, 2004 7:03 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu May 13, 2004 7:18 am     Reply with quote

Ok I found what I was doing wrong.
I used a wrong library.

Thanks for answering

Susan
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group