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: Use of bit fields
Akutabi

Replies: 1
Views: 4173

PostForum: General CCS C Discussion   Posted: Wed Oct 11, 2006 7:55 am   Subject: Use of bit fields
Hi,

Is it possible to use bit fields with CCS ?

In C ANSI, bit fields are used like this :

struct {
short x:5, y:4, z:7;
}data;

struct data my_data;

my_data.x = ....
my_data.y = .... ...
  Topic: DA instruction in ASM with CCS ?
Akutabi

Replies: 6
Views: 7590

PostForum: General CCS C Discussion   Posted: Wed Aug 30, 2006 2:56 am   Subject: DA instruction in ASM with CCS ?
I used PCM 3.49d, MPLAB 7.41 and 16F688.
  Topic: DA instruction in ASM with CCS ?
Akutabi

Replies: 6
Views: 7590

PostForum: General CCS C Discussion   Posted: Fri Aug 25, 2006 3:13 am   Subject: DA instruction in ASM with CCS ?
Finally I decided to define the start of the array myself but the reading doesn't work...

#define ARRAY 0x06D9

#ROM ARRAY = {0,1,2,3,4,5}

void main(void)
{
int16 data;

data = r ...
  Topic: DA instruction in ASM with CCS ?
Akutabi

Replies: 6
Views: 7590

PostForum: General CCS C Discussion   Posted: Fri Aug 25, 2006 2:39 am   Subject: DA instruction in ASM with CCS ?
Thank you,

However I think I'll need to use a C type array because I can't do it the way I wanted it to work.

In fact I wanted to do it like that :

File : main.c

#include "datas.h&quo ...
  Topic: DA instruction in ASM with CCS ?
Akutabi

Replies: 6
Views: 7590

PostForum: General CCS C Discussion   Posted: Thu Aug 24, 2006 8:55 am   Subject: DA instruction in ASM with CCS ?
Hi,

When you're programming in assembler language, you can use the instruction "DA B'0110001101' " for example to initialize an array in flash memory and reading it after that at run time ...
  Topic: Access to program memory
Akutabi

Replies: 2
Views: 5629

PostForum: General CCS C Discussion   Posted: Fri Aug 18, 2006 5:08 am   Subject: Access to program memory
Hi,

I'm trying CCS compiler and wished to access a char array stored in program memory. To do it, I first tought I could use a pointer but CCS doesn't allow pointers to constant datas.

So I trie ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group