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 3 matches
CCS Forum Index
Author Message
  Topic: Can PCM compiler generate 16-bit wide bitfields?
jdboyer

Replies: 5
Views: 7648

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2005 3:03 pm   Subject: Can PCM compiler generate 16-bit wide bitfields?
Look at Mark's first suggestion. He left the fields in the same order you were using them. His concern is that they don't map well to the RAM and so aren't efficient in RAM use.

I believe that he ...
  Topic: Can PCM compiler generate 16-bit wide bitfields?
jdboyer

Replies: 5
Views: 7648

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2005 12:08 pm   Subject: Can PCM compiler generate 16-bit wide bitfields?

struct dacStruct
{
int8 param1 : 2;
int8 param2;
int8 param3 : 3;
int8 param4 : 2;
int8 param5 : 1;
}test;

This is more optimized:

struc ...
  Topic: Can PCM compiler generate 16-bit wide bitfields?
jdboyer

Replies: 5
Views: 7648

PostForum: General CCS C Discussion   Posted: Mon Jan 31, 2005 9:03 am   Subject: Can PCM compiler generate 16-bit wide bitfields?
I am porting a project from another compiler. The code was originally written for a PIC18F6520, and now has to function on a PIC16C67.

There is a portion of the code that uses 16-bit wide bitfie ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group