Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 25th May 2009, 02:07 AM   #1
Default 18F4431 - RC6 not reading the input

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.
atferrari is offline  
Old 25th May 2009, 03:06 AM   #2
Default

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.
Pommie is offline  
Old 25th May 2009, 10:10 AM   #3
Default

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.
atferrari is offline  
Old 25th May 2009, 10:17 AM   #4
Default

Can you chop your code down to a bare minimum that still shows the same behavior and post it here?

Mike.
Pommie is offline  
Old 25th May 2009, 12:41 PM   #5
Default Problem solved

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.
atferrari is offline  
Reply

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



All times are GMT. The time now is 11:17 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker