I think lyle's just saying, that you'll need to use the SRIO for your project... but yeh, it's 'legal' to manipulate PIC pins directly, if you are careful - Take a look at the mios_pin_list to see how pins are assigned... Also search for J5_IO as an example. It's a MIOS module (software, not a MBHP module) that wraps all the ASM lyle already described, in convenient function calls to use the 8 pins of J5, usually used for the analog inputs - it also disables those analog ins, and if you wanted to do similar with other pins, you would need to disable any associated drivers. For example, looking at the pin list you can see that if you wanted to use RC0 (PORT C pin 0) then it would conflict with the AIN MUX. You can disable that driver by calling MIOS_AIN_UnMuxed, but of course there is the trade-off that now you may only use 8 pots connected directly to the core, and no AINx modules. Anyway, blah blah, that's just for educational purposes - in most cases, J5_IO would do the job.