2camjohn
Member
When using WPUs on the PIC16f628a I have noticed a strange problem that hasnt occured when using WPUS on any other chip I have tried..
I wire port B pin 6 with a normally open single pole switch to ground.
Once the WPU for that particular pin is enabled the pin reads high as expected.
When the button is pressed, the pin is pulled down and reads as 0.
Here is the strange part, after releasing the button, the pin still reads as 0.
I have to set the individual WPU to high again in the software for it to pull the pin high again.
It is as if pressing the pull down button disables the WPU.
Out of all the PIC devices I have tried, this problem only occurs on the 628a, I have tried several 628a chips and they all behave the same.
The exact same code runs as expected on a pic16f819
I would appreciate any advice the great minds of electro tech can give on this matter.
I wire port B pin 6 with a normally open single pole switch to ground.
Once the WPU for that particular pin is enabled the pin reads high as expected.
When the button is pressed, the pin is pulled down and reads as 0.
Here is the strange part, after releasing the button, the pin still reads as 0.
I have to set the individual WPU to high again in the software for it to pull the pin high again.
It is as if pressing the pull down button disables the WPU.
Out of all the PIC devices I have tried, this problem only occurs on the 628a, I have tried several 628a chips and they all behave the same.
The exact same code runs as expected on a pic16f819
I would appreciate any advice the great minds of electro tech can give on this matter.