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 6 matches
CCS Forum Index
Author Message
  Topic: how to printf/putc "0x00"
bandofcs

Replies: 2
Views: 6415

PostForum: General CCS C Discussion   Posted: Sun Jul 27, 2014 6:13 pm   Subject: how to printf/putc "0x00"
Dear all,

I am writing a program for wireless transmission where there may be instances where transmission of 0x00 is necessary via TX port.

Does anyone have any idea how that can be achieved?
...
  Topic: How to printf a VERY long string
bandofcs

Replies: 14
Views: 18143

PostForum: General CCS C Discussion   Posted: Thu Jul 24, 2014 9:54 pm   Subject: How to printf a VERY long string


Will there be a difference between sending via putc() vs printf()? Will there be additional pauses/delay/bits between each character sent by use these 2 different functions?

for example

CHAR ...
  Topic: How to printf a VERY long string
bandofcs

Replies: 14
Views: 18143

PostForum: General CCS C Discussion   Posted: Thu Jul 24, 2014 9:20 am   Subject: How to printf a VERY long string
Why cant you just do something like:


int i=0;
Array[136]={1,2,3,...n};

while(i<n)
{
putc(Array[i]);
i++;
}


include:
#device *= ...
  Topic: How to printf a VERY long string
bandofcs

Replies: 14
Views: 18143

PostForum: General CCS C Discussion   Posted: Thu Jul 24, 2014 6:23 am   Subject: How to printf a VERY long string


YES but NOT using printf....
RS-232 frames,by definition, each character with a start and stop bit.
and the UART hardware capability of the pic is oriented to this standard.

what you ask for ...
  Topic: How to printf a VERY long string
bandofcs

Replies: 14
Views: 18143

PostForum: General CCS C Discussion   Posted: Thu Jul 24, 2014 6:05 am   Subject: Re: How to printf a VERY long string

You are using a legacy PIC with significant architectural limitations, forcing the PIC to consume a large amount of RAM within it's very limited (early 1980s style) RAM banking architecture.

If ...
  Topic: How to printf a VERY long string
bandofcs

Replies: 14
Views: 18143

PostForum: General CCS C Discussion   Posted: Thu Jul 24, 2014 2:01 am   Subject: How to printf a VERY long string
dear all,

I am using PIC16F876A. When I try to define a char array variable more than size 90, they told me that data item is too big. My aim is to send a 136 bytes string to TX port in a single pr ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group