Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 8th February 2004, 11:46 AM   (permalink)
Default how to declare 24-bit variable using CCS?

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?
janetsmith2000@yahoo.com is offline  
Old 8th February 2004, 06:05 PM   (permalink)
Default

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.
StupidDum is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:42 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker