I am having a devil of a time with the ADC on the K70 Tower Module. I am attempting to implement an algorithm to monitor three sensors and react according to their percentages from a baseline value. I am using CW 10.0 and Processor Expert. Here is what I am trying to accomplish:
Initialize ADC0 with 3 Single-Ended Channels
Read 3 channels from sensors --> Each 0~100 mV and store as baseline values for each channel
Read the same channels at the start of the algorithm loop and compare the percentage change versus baseline
Convert each percentage to separate Integers or Floats
Once the percentages are converted, the reaction section of the algorithm then uses them accordingly (this part works flawlessly).
I have written the code for the percentage calculation, but the ADC conversion is not operating as desired (actually, not at all). I have a 3 channel mV generator that is emulating the sensors that will be in the final product, I am using the inputs on the tower elevator that correspond to the proper inputs on the ADC, but the variables I am monitoring during the debug phase are not changing or showing anything at all when I change the channel values on the generator.
Any help would be greatly appreciated. If any further clarification is needed, please ask,
Also, for the PE Support People: Is there any sort of users' guide or training manual available for download? I believe that my department would benefit greatly from some sort of PE training, but we are a VERY small company with a proportionally small budget, so we cannot afford a full-blown training seminar or anything like that.
Thanks so much in advance.