Problem face with 16bit ADC scanning | Cypress Semiconductor
Problem face with 16bit ADC scanning
i am relatively new to Psoc development pardon my ignorance.
i am working on integrating accelerometer with the development kit.
after consulting several experts' advice from this forum, my setup was working quite fine. however i met with some issue about the conversion from 8bit to 16 bit of the ADC use.
strcat(OutputString,"@");//to indicate end of one set of conversion
as the ADC channel scan is working with a 8bit ADC, i tried to setup the project and it looks ok when it display on the LCD and hyperterm.
however there is a slight issue when it display on the hyperterm, the value of what i see from the LCD and the hyperterm tally, but when it send out through the serial port using UART, the value show on the hyperterminal something like:
there is always a 1f follow behind each value.
next,i wish to change the ADC resolution to 16bits.
changes i made to the default ADC scanning example project:
-change the ADC resolution to 16bits.
-change the voltage reference to 2times which now is 2.048V.
-change the ADC_DelSig_1_IRQ.c files, under the function
iAdcValue[iIndex]=ADC_DelSig_1_GetResult8(); to iAdcValue[iIndex]=ADC_DelSig_1_GetResult32(); ==> cause the data sheet indicated that if i use 16 it will return me signed 16bit result.
i cant print out properly on the LCD screen as i do not really catch the below method of displaying
thus i use a hyperterm to check the output,
it always show as:
now there is always a 20 follow behind each value.
i was wondering why it never return me a 4 hex value?
why there is either 1f tag behind each value of the 8bit ADC output, and 20 tag behind the 16bit output?
any help will be greatly appreciated.