Author |
Message |
Topic: PIC 18F4550 RC4 RC5 Digital input Problem |
Alzmeier
Replies: 4
Views: 9000
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2014 9:08 am Subject: PIC 18F4550 RC4 RC5 Digital input Problem |
Sorry,
compiler version PCWH 3.245
the problem is that they work, I connect 5V, I get a 1, I disconnect 5V, I get a 0. But some times they get to 1 without an external 5V |
Topic: PIC 18F4550 RC4 RC5 Digital input Problem |
Alzmeier
Replies: 4
Views: 9000
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2014 8:54 am Subject: PIC 18F4550 RC4 RC5 Digital input Problem |
externally it is a signal 5V, 100Ohm in Serial, 10kOhm for pull down, the 5V are connected when a Relay is closed,
I use input_state, because at all my other inputs it is working fine |
Topic: PIC 18F4550 RC4 RC5 Digital input Problem |
Alzmeier
Replies: 4
Views: 9000
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2014 8:35 am Subject: PIC 18F4550 RC4 RC5 Digital input Problem |
Hello all,
I want to use the RC4 and RC5 Ports as digital inputs.
So I added:
// disable USB module
#byte UCON = 0xF6D
#bit USBEN = UCON.3
// disable on-chip USB transceiver
#byte UCFG ... |
|