A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hi! I'm using 12f625 to capture the encoder waveform but unfortunately the GPIO pin 2 has been acting so strange. It can not be configure as input since it always shows high although it is input. Does anyone encounter this problem? Please enlighten me if you have any idea. Cheer bryan |
|
|
|
did you turn the analog feature off?
--- nanoboticslover <> wrote: > Hi! > I'm using 12f625 to capture the encoder waveform but > unfortunately the GPIO pin 2 has been acting so strange. It can not > be configure as input since it always shows high although it is > input. Does anyone encounter this problem? Please enlighten me if > you have any idea. > Cheer > bryan __________________________________ |
|
I don't find any 12F625. --- nanoboticslover <> wrote: > Hi! > I'm using 12f625 to capture the encoder waveform but > unfortunately the GPIO pin 2 has been acting so strange. It can not > be configure as input since it always shows high although it is > input. Does anyone encounter this problem? Please enlighten me if > you have any idea. > Cheer > bryan ===== My software has no bugs. Only undocumented features. __________________________________ |
|
|
|
At 07:03 PM 2/13/2004, Chad Russel wrote: >I don't find any 12F625. > > > I'm using 12f625 to capture the encoder waveform but > > unfortunately the GPIO pin 2 has been acting so strange. It can not > > be configure as input since it always shows high although it is > > input. I had assumed it was a typo error: that the original poster was speaking of either 12f675 or a 12f629 - both are similar to each other and the problem would affect both. I would look for problems with the following bits & registers: TOCS, ANSEL, CMCON. T0CS: timer 0 clk select - probably not the problem but check it anyways. ANSEL: pertains to 12f675 - probably not the problem because the pin would read 0 instead of 1 CMCON: most likely problem: GPIO2 can be configured to be the output of the comparitor. Try writing 0x07 to CMCON and see what happens. dwayne -- Dwayne Reid <> Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 20 years of Engineering Innovation (1984 - 2004) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. |