Sid, this is what i did BankSel PORTA clrf PORTA movlw D'07' movwf CMCON It the CMCON register that by default is set for comparator input. I recently made the big move to 16F628 and this was one of the snags I had problems with. The other I still am trying to come to terms with is to take advantage of the extra ram (which is still not enough) I have to be very wary of bank switching. It seems to create a large software overhead and a great cause of possible bugs. I use the same KIT81 (I think it is KIT81) for programming so for me it appears identicle to program as the 16f84. Justin -----Original Message----- From: Sid Weaver [mailto:NEWZED@AOL.COM] Sent: Tuesday, 5 November 2002 23:37 To: PICLIST@MITVMA.MIT.EDU Subject: 16F628 I've been thinking about switching to the 16F628 in place of the old dependable 16F84A. I've read the data sheet, but naturally, most of it is over my head. Question: How do I set Port A for all digital I/O ? Thanks Sid Weaver W4EKQ Port Richey, FL -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.