Tim, While the part is running ground the Mcr pin 4 If responded as reset then it means you disabled RA5 input. This is part of configuration fuse that You can enable or disable while programming it. This is very smart thinking not every time needs external Reset that is why I like Microchip they always think About improvements and I can see it. Check datasheet page 175 Andre Abelian -----Original Message----- Hi Olin In my main test code I have a routine that tests two inputs start: delayms 10 ' to prevent the R-M-W effect if porta.5 = 1 or porta.2 = 1 then high porta.0 goto start endif low porta.0 goto start and it picks up the high level input on porta,2 but not porta,5 there is defiantly something amiss here. I have a colleague that has tried his own code but gets the same result. Has anybody ever used porta,5 on a 18F1320 and had it work? Regards Tim -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Olin Lathrop Sent: Tuesday, April 01, 2003 6:21 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]:Porta,5 not working on 18F1320 > I have the OSC set as HS and it runs at 4 mhz That should be no problem. There have been some recent issues with the PLL enabled. > 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 This looks fine. What is the symptom? It would be useful to set another port pin high or low before the infinite loops so that you can see which path it took when running on a real chip. ***************************************************************** 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