Hi,
Any chance the powersupply voltage used to simulate the inputs are higher than Vdd of the chip? That might (depending on how much higher it is) forward bias the clamping diode on the input, increasing the current going into the pin.
/Henrik.
Hi,
Any chance the powersupply voltage used to simulate the inputs are higher than Vdd of the chip? That might (depending on how much higher it is) forward bias the clamping diode on the input, increasing the current going into the pin.
/Henrik.
Code:TRISB = %11110000 ‘B.0 – B.3 inputs, rest outputs.
Your TrisB setting is wrong. To have B0 - B3 as inputs then the TrisB should be the other way around
TrisB = %00001111
Cheers
Al.
All progress began with an idea
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks everyone. I feel very foolish. My only excuse is that its quite a while since I have been near a uP.
GraemeJ.
NEVER feel foolish about asking a question, for every poster who has the guts to ask there are many who do not and have the same question, so on their behalf, thanks for asking!
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks