PA3040
Advanced Member level 3
Dear All
MCU 16f877a
my requirement is to study interrupt, therefore I connected switch to the portb pin 4
so i configured portb change interrupt
BSF INTCON, GIE
BSF INTCON, RBIE
and also sets
BCF OPTION_REG,RBPU
so i simulated with Proteus.
when I enable the pullup, it automatically interrupt without press the button
Please advice
MCU 16f877a
my requirement is to study interrupt, therefore I connected switch to the portb pin 4
so i configured portb change interrupt
BSF INTCON, GIE
BSF INTCON, RBIE
and also sets
BCF OPTION_REG,RBPU
so i simulated with Proteus.
when I enable the pullup, it automatically interrupt without press the button
Please advice