viccram
Junior Member level 1
pic16f877a pin 39
i am using pin no. 39 (RB6) as an input pin using and enabled interrupt on change feature. while using other three pins(RB4-RB7 exvept RB6) as input the system has no problem...but when i use this pin as input the system doesnt always work properly.....
the input is a pulled up pin with a switch connected to ground.. when i press the switch pin goes low else normally high (as it is pulled up to Vcc)...
the problem is that when i press the switch the pin goes low(around .023V) but as i leave the switch the pin still remains low (around .16V to .189V)
i hav tested the switch and the circuit noise level as well....
switch is fine and the circuit noise level is around 600mV...
how much noise prone is PIC?
and Registers should i think of while initializing pin RB6 as input
RB6 is used as PGD in programming...so is this problem related to this typical feature of the pin???
i am using pin no. 39 (RB6) as an input pin using and enabled interrupt on change feature. while using other three pins(RB4-RB7 exvept RB6) as input the system has no problem...but when i use this pin as input the system doesnt always work properly.....
the input is a pulled up pin with a switch connected to ground.. when i press the switch pin goes low else normally high (as it is pulled up to Vcc)...
the problem is that when i press the switch the pin goes low(around .023V) but as i leave the switch the pin still remains low (around .16V to .189V)
i hav tested the switch and the circuit noise level as well....
switch is fine and the circuit noise level is around 600mV...
how much noise prone is PIC?
and Registers should i think of while initializing pin RB6 as input
RB6 is used as PGD in programming...so is this problem related to this typical feature of the pin???