View previous topic :: View next topic |
Author |
Message |
ibg
Joined: 19 Nov 2003 Posts: 22
|
#DEVICE directive |
Posted: Fri Jan 09, 2004 10:28 am |
|
|
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 |
Posted: Fri Jan 09, 2004 11:02 am |
|
|
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 |
|
|
|
|
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
|