CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 3 matches
CCS Forum Index
Author Message
  Topic: PIC 18F4550 RC4 RC5 Digital input Problem
Alzmeier

Replies: 4
Views: 9000

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group