Hey John,
"If i want to use say channel AD1 to AD convert an analog signal, should I enable or disable the AD1 pin I/O control?"
[Han] You are correct. It is suggested in the datasheet to have this done.
Your answer was found in datasheet under the ADC chapter.
10.6.1.3 Analog Input Pins
The external analog inputs are typically shared with digital I/O pins on MCU devices. The pin I/O control is disabled by setting the appropriate control bit in one of the pin control registers. Conversions can be performed on inputs without the associated pin control register bit set. It is recommended that the pin control register bit always be set when using a pin as an analog input. This avoids problems with contention because the output buffer will be in its high impedance state and the pullup is disabled. Also, the input
buffer draws DC current when its input is not at either VDD or VSS. Setting the pin control register bits for all pins used as analog inputs should be done to achieve lowest operating current.
Since you are newbie, here are my hints reading Freescale datasheet.
1) Many Freescale peripherals are shared among S08 Core. It is very convenient when you migrate to other MCUs because your coding is really minimal due to that fact. However, sometime the same peripheral can be different among MCU. Hints: Always read the introduction of each peripheral. It will tell you how the peripheral in a specific MCU differs.
2) Don't get overwhelmed by the register settings. For some reason the functional description of each MCU peripheral is always at the end of its chapter. Try reading the functional description of the peripheral before digging to the registers settings.
Good luck let me know if u need more help.
Prospective Freescale buddy,
Han