how to declare 24-bit variable using CCS?

Status
Not open for further replies.
hi,

I know if i want to declare 2 byte and 4 byte variables, i could use
int8 a; int32 b;

however, if i want to declare 3-byte variable, how to do it?
is

int8 a[3];

the only way?
 
yea. guess using array is the only way
computer process data in either 8,16, or 32 bits
however, if you have lots of RAM left in your PIC, you could just define it as int32.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…