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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: Send INT16 via RS-232?
gabrix18

Replies: 7
Views: 11460

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2012 9:23 am   Subject: Send INT16 via RS-232?
Ok I'm understanding...I use this matlab script...

try
int=input('delta [s]:'); %set time of commuincation
%1 create serial port object
s = serial('COM3','Bau ...
  Topic: Send INT16 via RS-232?
gabrix18

Replies: 7
Views: 11460

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2012 8:36 am   Subject: Send INT16 via RS-232?
ok, so if the value I need to send is for example A=40000...which is the right code to compile for reading in my pc the same value?

putc(A) does not work of course because A is declared INT16...
  Topic: Send INT16 via RS-232?
gabrix18

Replies: 7
Views: 11460

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2012 7:59 am   Subject: Send INT16 via RS-232?
thank you very much for your reply! I' m using PCWHD (PIC compiler) and a matlab file to communicate with uart....

I understood everything you explained to me but I am not able to use the options.. ...
  Topic: Send INT16 via RS-232?
gabrix18

Replies: 7
Views: 11460

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2012 6:31 am   Subject: Send INT16 via RS-232?
hi everybody,

i have a variable int16(2 bytes) but I can't send it very well its value via UART to my PC because i read a different value..what's wrong in my code?Can i send int16 with rs-232?? Ple ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group