Hey I had in the past some experience in assembler of the Pic54. Now I try to do a simple program to control a relay scanner with the PIC16C74B JW for the test (and the 64 to use in circuit). The outputs are remote controled by 6 bits of portA or by local buttons 3 bits of PORTE. I use the Promate II MPLAB 4.0 and Basic pro compiler 2.2 . I note that the outputs work, but inputs not. I use ADCON1 = 7 to start with digital inputs. In a watch window I see that the definitions of inputs are not respected. I correct but when I transfer to the chip the code is perhaps not corrected ? PortA can be used as a 6 bit input port? Any problem with A4 ? I think this is a very basic mistake but cannot find it! I would need any help. Fernando Teixeira