At 11:36 AM 08/02/2001 +0000, you wrote: >I am experimenting with the 16F84 ,and connected eight dip switches on= PORTB >and used the weak pull up resistors inside the pic. >Is it normal that I only measure 0,6-0,8Volts on the pins when the=20 >switches are open? > >setup > > bsf STATUS,RP0 ;skipt yfir =E1 bank1 > movlw b'11111111' > movwf TRISB ;pinnar =E1 porti ger=F0ir a=F0= inng=F6ngum. > movlw b'11111001' ; > movwf TRISA ;port A gert a=F0 inng=F6ngum og= =FAtg=F6ngum > bcf OPTION_REG ,7 ;gerir pull upp vi=F0n=E1m virk =E1= inng=F6ngum =E1=20 > PORTB. > bcf STATUS,RP0 ;skipt =E1 bank0 Looks ok at a glance. Does the rest of your program run correctly? If no, maybe the PIC is in reset and never executed the above code. Do you have the configuration bits set correctly for the oscillator? Regards... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu