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 support@ccsinfo.com

16F88 serial communication PIC to PC

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



Joined: 26 Dec 2008
Posts: 6

View user's profile Send private message

16F88 serial communication PIC to PC
PostPosted: Sun Jan 11, 2009 3:58 pm     Reply with quote

I have a PIC 16F88 and i have written this code:

Code:
#include <16F88.H>
#define RS232_XMIT   PIN_B5
#define RS232_RCV   PIN_B2
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=RS232_XMIT, rcv=RS232_RCV)

void main(void) {

  int i; 
  while(1) {
  putc('A'); 
  delay_ms(1000);
  }
}

I open a HyperTerminal Window 9600 8-N-1-N

but my pic don't transfer the Character 'A' to my PC

where is the error in the previous code ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 11, 2009 4:38 pm     Reply with quote

Where is your #fuses statement ? See this thread for an example of
using RS-232 with a 16F88 (and also an example of a #fuses statement):
http://www.ccsinfo.com/forum/viewtopic.php?t=27299
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