This MicroSim shows how TRISx, AD1PCFG, and LATx interact to control digital output.
TRISx
AD1PCFG
LATx
Pin state will appear here.