> I am currently using an 18F1320 and am having trouble getting PORTA,5 to > work. If MCLR is off it should be an input. In Mplab SIM it works but in > real life it does not. Any ideas? If the configuration bit is set properly, then RA5 is an input instead of MCLR. Note that it can not ever be an output. There is no TRIS bit for RA5. What oscillator configuration and speed are you using? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu