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

sending data from visual basic to 18f452

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



Joined: 14 Jul 2007
Posts: 38

View user's profile Send private message

sending data from visual basic to 18f452
PostPosted: Mon Dec 28, 2009 3:13 pm     Reply with quote

hi everone

I am currently working on a communication project. I tested the written code by proteus and hyper terminal. It works properly.

However when I try to send more than one character to 18f452, it is frozen. So it can not accept more than one character.

Code like this:
Code:

char[8]  x;
.......
gets(x);
lcd_init();
printf(lcd_putc,"%s",x);

Thanks
Guest








PostPosted: Mon Dec 28, 2009 11:22 pm     Reply with quote

Is this the actual code or did you re-type it for posting, because the variable definition syntax is totally wrong......

Dick
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Dec 29, 2009 8:57 am     Reply with quote

The posted code fragment is too small to indicate the error source. Possible problems are:
- Missing 'ERRORS' keyword in the #rs232 line.
- You are sending a string of more than 7 characters.

Post a complete, but small, test program. Also post your compiler version number.
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