My replies are below
How would I do it? According to the documentation, if I use AN10, I
would have to also initialize AN0 - AN9 as analog inputs as well,
therefore wasting those I/O for something else.
Not quite. There are several 'parts' to the setup on the pins. The
setup in the analog section, says that the input pins selected, _will_
be routed to the analog input multiplexer. However a pin that is setup
as an analog input, can still be driven as a logic output. If you look
at the pin settings table, to use a pin as an analog input, requires
it to both be selected in the analog setup, and also have the TRIS set
to '1'. If the TRIS is set to '0', the pin can still be driven. If you
look at the bottom of page 105, in the data sheet, it gives a 'caveat'
for this, but the same caveat, implies you can actually use the pins
despite the analog setting. This increases the noise present in the
analog section of the chip, and you can get unacceptable leakages if
the external Vref signals are used,and are significantly below the
main supply rails. This is made plain if you look at the pin table in
the data sheet (10.1), and look for example, at the entry for AN0. On
the line for RA0/AN0, you see the comment against the entry for TRIS,
and I/O set to '1' - does not affect digital output.
Do you mean using separate chip select signals on the slave select
pin?
The fault input, is designed for use wth the PWM modules. It disables
the PWM outputs, when triggered, as you would require if a fault
condition existed in the drivers...
Best Wishes