I have a project in which I am using a serial device connected to serial port D.
After I use this device, any reads from the analog inputs are screwed up. I am
at the point where I now realize that the analog inputs are interfaced to the
Rabbit processor using the same serial port.
How can I reset the connection to the ADC so that I can use the port for both
functions? At this point, once I use serial D, subsequent analog reads are all
bad...
For example:
....
brdInit();
volts = anaInVolts(inputnum, GAIN); // works!
serDopen(56700);
// ... do stuff with serial port D, works!
serDclose();
anaInConfig(0, 0, ADC_SCLKBAUD); // try to reset port D for ADC
volts = anaInVolts(inputnum, GAIN); // give 0 volts, :(
...
Thanks!
Dan