Hi Pallav,
What device?
9s08gb60 etc
BR Peg
I guess its a QB8 as that is the included header file.
Have you tried erasing it then measure the pin? If its not 5V now (with the external pullup) then toss the chip and no need to look at the code!
Have you measured the pin with an oscilliscope? 2.9 volts on a multimeter could be a 60% duty cycle square wave.
PR Peg
Message Edited by peg on 04-22-200606:36 PM
i am getting clean DC ont his pin (ptb7 and ptb6), i have noticed one fact while seeing via CRO that all the inputs are showing some wavy noise 300mv and when i pull up with 10k i get the 2.10v(same as getting with ptb6-7)
plz help is there any thing to stop other modules so as to fuction pin as Input/output pin only.
best regards
pallav
Yes that is what I mean.
Are you using DIP in a socket?
And I suppose you have tested with no device in the socket and you get 5V???
Very strange!!!
And you have tried several chips???
I don't have a QB only a QY4 and in my current application I use PTB0 to 6 as mode select inputs for testing and they all work OK although I have never measured the actual voltage.
What does the CPU read the 2.1 volts as, 0 or 1?
BR Peg
Hi Pallav,
You did not confirm that you have measured the empty socket pin to see if its 5V without the device fitted!
I tested some input voltages on port pins of a QY4 with just the internal pullups.
Vcc = 4.97 ptb5 = 4.93 and pta5 = 4.95.
Which is about what I would expect.
What I would try next is to use a 4k7 resistor to temporarily pullup then down this pin and measure the voltage on the pin at all 3 conditions (off, up, down).
If you do not get much variation use a 1k.
(BTW you can use this test to determine the exact value of the internal pullup)
This will tell you how _hard_ this pin is set to 2.1V. Is it just biased there or what?
Not sure where to go from there but we won't know till you try.
BR Peg