I see no code saying "port b shall be used for output" .... do you ?
Ramon.
I see no code saying "port b shall be used for output" .... do you ?
Ramon.
a) instead of trying to imagine the possible combinations,
I would go and program it !
b) if you "select" Port A mode, why don't you specify the Port B mode of operation ?
It is NOT so large and difficult ...
c) if you say "HIGH PORTB.7" it means you write some data into the port,
not that you somehow are telling the compiler to configure it for you.
Let's do it and let's talk again. Ramon.
I added "TRISB = 0" and still read approximately 2.5V at portb.7
Thanks,
T
Then either :
a) your Vdd is 2,5 volts
b) your PIC is gone nuts
c) any other I dont know right now - time to sleep here
Cheers.
How long is "pausetime"
You are toggling the pin between high and low and your meter will probably not see the voltage stable for long enough to get a true reading.
Currently the pin is operating on a 50% duty cycle and 2.5 volts just happens to be 50% or 5V !!!!
Comment out the "low port b.7" statement which means once the LED comes on it will stay on but you will then have a stable condition on the pin to be able to measure.
My guess is that it will then read 5V![]()
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks