Hi, Kessral
The surprising thing is you have configured GPIO.3 as an output ( trisio.3 = 0 ), and you intend to read it's state ...
Moreover, What is ... very annoying is you directly tie an output to ground or VCC ...
Not so good, yeah ...
hope you didn't fry it ...
always use a series resistor ( 1k ) whan you tie a pin to supply rails ...
Alain
PS : at the next one like this one, your surname will turn into " Casserole" ... lol.
Last edited by Acetronics2; - 6th March 2009 at 15:06.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I upgraded to v8.15 and same problem still exists.
on the PIC10f series GP3 is input or MCLR only and can never be an output. Default setting for GP3 on TRISIO would be 1, which is MCLR so I would assume that setting it to 0 would make it the only other setting it supports (Input only) maybe I am wrong, but I only placed that in the code after trying other methods.
I do use a resistor (at least 1k but usually much more) to pull GP3 to ground to send in a low, but at that point the chip just draws current as if in normal operation but all output functions cease (as in the LED no longer blinks and no outputs from GP0 exist)
This is telling me that GP3 is never actually getting set to input only but is staying as MCLR.. I have tried in the past to no avail, I am basically starting fresh with it now and hoping for help lol
Not sure where you are setting the config? You have some program that is doing it for you?
You will need to modify the *.inc file in the PBP directory to set the configs correctly.
This thread may help explain it. It talks about setting the configs in code space and what to do to make it happen.
http://www.picbasic.co.uk/forum/showthread.php?t=543
And like Alan pointed out. TRIS for this application and pin should be 1.
Dave
Always wear safety glasses while programming.
Oh thank you! Don't know how I missed all this before but after some headache and commenting out 2 lines in the .INC file it works great!![]()
Bookmarks