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 support@ccsinfo.com

#DEVICE directive

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ibg



Joined: 19 Nov 2003
Posts: 22

View user's profile Send private message

#DEVICE directive
PostPosted: Fri Jan 09, 2004 10:28 am     Reply with quote

Hi all,

I would like to know what does the following line mean:

#device *=16 ADC=10

Thanks for all,

ibg
Ttelmah
Guest







Re: #DEVICE directive
PostPosted: Fri Jan 09, 2004 11:02 am     Reply with quote

ibg wrote:
Hi all,

I would like to know what does the following line mean:

#device *=16 ADC=10

Thanks for all,

ibg

Use 16bit RAM pointers (means the chip can access RAM outside the first bank, but increases the size of code), and make the AD return 10bit data (otherwise you can select to 'clip' the data to 8 bits, or left justify the data to 16 bits with the bottom 6 having no significance).
They are documented in the manual, under the #device listing. If you are trying to understand CCS code, and have not got the compiler, then I suggest you download the manual.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group