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 support@ccsinfo.com

RE5 pin on PIC18F6720

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest
Guest







RE5 pin on PIC18F6720
PostPosted: Thu Oct 13, 2005 9:51 am     Reply with quote

I was using pin RA1 as a digital I/O to monitor a button being pressed. Each time the button was pressed it was reconized by the processor. I switched the monitoring from RA1 to RE5 and configured Port E with RE5 as an input. Now when the buton is pressed, it does not always respond. The button may have to be pressed a number of times before it is reconized by the processor. I connected a scope to RE5 and the signal is there each time the key is pressed. I reconnected it back to RA1 and it works fine. It acts as if the RA5 is not active all the time.

Does Port E require some special setup configuration? I noticed in the data sheet that Port E is multiplexed with CCP. I turned off CCP in my code and it still responds the same way.

Any ideas would be appreicated.
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Thu Oct 13, 2005 10:44 am     Reply with quote

This may explain it?

http://www.ccsinfo.com/forum/viewtopic.php?t=23622&highlight=porte

Hope this helps.
Ttelmah
Guest







PostPosted: Thu Oct 13, 2005 10:48 am     Reply with quote

Question. How high/low is the signal going?.
PortE, has Schmidt trigger inputs, which means that the signal has to get above 0.8Vdd, to be seen as a 'high'. The portA pins, only need the signal to reach 0.25Vdd+0.8v to be seen as 'high'.

Best Wishes
Guest








PostPosted: Fri Oct 14, 2005 1:04 pm     Reply with quote

Thanks for the help. The problem was the signal voltage is right on the edge.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group