![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
18F4431 - DIP chip I have made: TRISC = '11111111' (all pins IN) and applied 10K pullup resistors to RC<7:0>. The sole modules involving RC6 (AFAIK), SSPCON and RCSTA, = '00000000'. My problem: Reading PORTC is correct for all pins but RC6 which always reads '0'. I measured the voltage at the pin, getting 0.28 V. Also checked Silicon revision 3 to no avail. Tested with two different chips. What I am overlooking here?
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. | |
| |
| | #2 |
|
Sounds like you have a short on your board. With a 10k pullup and the pin set to input you should have 5V. Can you remove the chip and measure the voltage to see if it is a short? Mike. | |
| |
| | #3 |
|
Checked already, Mike. No short. All peripherals except Power PWM control are disabled so I do not know what else to do. Wherever that pin is alluded to in the datasheet, it is shown involved with the EUSART only. Any further idea will be welcome. Gracias.
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. Last edited by atferrari; 25th May 2009 at 10:10 AM. | |
| |
| | #4 |
|
Can you chop your code down to a bare minimum that still shows the same behavior and post it here? Mike. | |
| |
| | #5 |
|
Hola Mike again, It was not a short but an open circuit!. The pin was floating, not seeing the 5V. I started to suspect that when found that for the first two seconds it was reading a 1 and then a 0. Measured the voltage directly on the pin, with the micro in RESET and found that. I just regret the so many hours checking software. Gracias for replying.
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. | |
| |
|
| Tags |
| input, rc6, reading |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Pic 18f4431 Oscillator Problem | 2exposantThom | Micro Controllers | 1 | 30th October 2008 05:17 PM |
| help programming 18f4431 | thiru_electrifiers | Micro Controllers | 13 | 12th April 2008 07:11 AM |
| PIC16F84A Reading input | mouse9911 | Micro Controllers | 2 | 23rd May 2007 03:15 AM |
| 18F4431 Encoder input problem | Andy_123 | Micro Controllers | 2 | 20th February 2007 01:48 AM |
| PIC 18F4431 Power PWM , i am lost! | max_imum2000 | Micro Controllers | 1 | 18th May 2006 01:58 PM |