Tim, in datasheet page 175 if master clear pin is enabled Then RA5 input is disabled when you program the part In configuration window change that. Also in mplab verify TRISA and ADCON1 in SFR window. I checked the datasheet and I liked this part nono watt Technology enhanced eusart, CCP and more I think I am going to move to nono watt technology soon. Andre Abelian -----Original Message----- Thanks Olin I have the OSC set as HS and it runs at 4 mhz The basic code in the sim looks like this:- Movlw 127 Movwf ADCON1 btfsc PORTA,5 goto handle_high goto handle_low handle_high goto $ handle_low goto $ END In the main code it does a bit more but is essentially the same BTW I am aware of the LVP issue with some 18F devices and I don't have LVP set on. Tim -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Olin Lathrop Sent: Tuesday, April 01, 2003 2:17 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]:Porta,5 not working on 18F1320 > 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 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu