16F883 ADC reading problems
Posted: Mon Aug 23, 2010 9:59 pm
Please can someone help me.
I have written some C code using the boostC compiler, to read the ADCs as unsigned shorts.
Flowcode 4, is very restrictive with its limited number of signed variable types.
The boost C compiler manual actually recommends the use of unsigned variables for fast code where possible.
when is looked at the compiler and assembler output, i am not sure that the adcon1 commands have been generated correctly.
I have not been able the read the adc'c correctly.
It is hard to debug, as i have and ICD2 debugger and MPlab, but have not found out how to integrate to debug .
TIA
Barry.
Flowcode 4 project is attached.
I have written some C code using the boostC compiler, to read the ADCs as unsigned shorts.
Flowcode 4, is very restrictive with its limited number of signed variable types.
The boost C compiler manual actually recommends the use of unsigned variables for fast code where possible.
when is looked at the compiler and assembler output, i am not sure that the adcon1 commands have been generated correctly.
I have not been able the read the adc'c correctly.
It is hard to debug, as i have and ICD2 debugger and MPlab, but have not found out how to integrate to debug .
TIA
Barry.
Flowcode 4 project is attached.