Defines should be in uppercase.
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
Defines should be in uppercase.
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
Thanks modifyit, I'll try this when I get back to work on Monday and let you know how I get on.
Ingvar, I didn't think these were case sensitive, it worked OK lower case for 8 bit ADC but I will also try this on Monday.
Thanks both.
Your defines didn't do anything atall since they were the default values.
So if they are default values Then shouldn't the prog work?
The rest of the code works when set up for 8 Bits, can't see what else is wrong, confused!.
BG
It worked before you changed it to 10 bits. 8 bits is default. That's why it worked even though you wrote the defines in lowercase.
OK ingvar, see what your saying, will try as soon as I get the time,
(work gets in the way of projects)
Thanks
BG
ingvar, just changed defaults to upper case, program now works fine.
Just knew it had to be somthing stupid I had done.
Thanks for your help and patience.
BG
Bookmarks