In a message dated 9/21/99 3:21:44 PM Eastern Daylight Time, davidw2@MORGAN.UCS.MUN.CA writes: > Hello all! > > I'm using a PIC16F877 and the RA4 pin is driving me nuts. Here's the > test code I'm trying to run: > > TRISA4 = LOW; //Set the A4 pin to output > > while(1){ > RA4 = HIGH; > DELAY(); //This is a 1 usec delay here > RA4 = LOW; > } > > Pretty simple eh? Now I've set PORT A and E to digital (by setting those > PCFG bits (but I've noticed in the data sheets that RA4 cannot be set to > digitial I/O using PCFG). I think my RA4 is still analog output but I > want digital and I don't know how to do it (this is just my guess). > > Cheers, > Dave > Isn't it open collector? If so, you need a pull-up resistor. Max