Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 

StupidDum

New Member
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.

Latest threads

Top