Hi, The PortA should be an 6 bit input controlled by a printer port. If A4 would be an exception I could only use A0,A1,A2,A3 as a block to define 16 adresses. The Microchip table of ADCON1 register if we select PCFG2:PCFG0 = 11x we have : RA0, RA1,RA2,RA5,RA3,VREF. I misunderstood that RA4 has nothing to do with AD. I try to use E0,E1,E2 as individual input switches for control . I think after 1 week of atempts I have nearly solved the question: I discovered that after writing ADCON1 = 7 a watch window shows 0, and I need to use Modify and before saving, program the chip. When I save, will ADCON1 = 0 again... Thanks for your help Fernando Teixeira -----Original Message----- From: root To: PICLIST@MITVMA.MIT.EDU Date: Terga-feira, 20 de Julho de 1999 8:41 Subject: Re: PIC74 / Basic Compiler / promate II >Hi, > >I do not understand exactly your problem. You wrote > >On Mon, 19 Jul 1999, fernteix wrote: > >> The outputs are remote controled by 6 bits of portA or by local buttons 3 >> bits of PORTE. > >and latter >> >> PortA can be used as a 6 bit input port? Any problem with A4 ? > >Is not a contradiction here? > >Imre >