Woo-hoo! This solved my problem. Much thanks everyone! ----- Original Message -----=20 From: "Martin Peach" To: Sent: Thursday, February 28, 2002 12:27 PM Subject: Re: F872 woes still... > You are still in bank 1 when you hit the main loop, so you end up = copying > tristate registers instead of ports. > /\/\/\/*=3DMartin >=20 > ----- Original Message ----- > From: "Pic Dude" > To: > Sent: Thursday, February 28, 2002 1:28 PM > Subject: F872 woes still... >=20 >=20 > So I read up on bank selection and added it, but still can't get port = A > to be inputs. Now, if I try port C as inputs, that also does not = work. >=20 > This is what I have for port C... >=20 > LIST P=3D16F872 > INCLUDE "p16f872.inc" > ERRORLEVEL -224 > __CONFIG _PWRTE_ON & _RC_OSC & _WDT_OFF & _LVP_OFF >=20 > ORG 0 >=20 > bcf STATUS,RP0 ; Bank0... > bcf STATUS,RP1 ; ...bank0 > clrf PORTC > bsf STATUS,RP0 ; Bank1 > movlw 0x06 > movwf ADCON1 ; Port A all digital > movlw 0x0F > movwf TRISC ; Port C -- only RC0:RC3 are inputs. >=20 > movlw B'00000000' > movwf ADCON0 ; Turn off A/D > movwf TRISA ; Port A is all outputs > movwf TRISB ; Port B is all outputs >=20 > loop: > movf PORTC,0 > movwf PORTB >=20 > goto loop >=20 > end >=20 >=20 > Inputs are connected to pins 11,12,13,14. LED's at all 8 RB's. >=20 > Possibilities -- I'm missing something fundamental here. > I fried the chip during one of the previous mis-configurations. = However, I > tried > downloading walk.asm again and it works (though only outputs). Is it > possible > to fry only part of a PIC? >=20 > Thanks, > -Neil. >=20 > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. >=20 > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. >=20 >=20 >=20 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.