![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I have just started using the PIC12F629. Everything I have done so far works fine except GP0 (pin 7) I have wired it up with a pull up resistor but it always reads 0 in software no matter what. It is not a wiring problem (voltage is normally at 5 and goes to 0 when button is pressed) and GP0 has been set as an input. Are there any other issues associated with this pin on the 12F629 ? I have looked through the datasheet but found nothing so far. Many thanks for your help. John
__________________ The first rule of mstechca club is do not talk about mstechca club. http://www.electro-tech-online.com/s...induser&u=1245 | |
| |
| | (permalink) |
| Are you correctly setting the ANSEL and CMCON registers?, see example 3-1 on page 21 of the datasheet. | |
| |
| | (permalink) |
| I am now thanks to you Nigel. Its working
__________________ The first rule of mstechca club is do not talk about mstechca club. http://www.electro-tech-online.com/s...induser&u=1245 | |
| |