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

Selection between Schmitt Trigger and TTL Input

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



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

Selection between Schmitt Trigger and TTL Input
PostPosted: Thu Apr 12, 2007 10:39 am     Reply with quote

18F6627 @5V
3.249

Hello All,

I've got an issue where I put a 3V input on a 5V ST pin. As I was debugging I noticed the PIC wasn't picking up when the pin went high. After some reading I see that the ST needs at least 4V for Logic high.

Is there a way I can force a pin (that has either a ST or TTL option) to be TTL? I see that it is most likely to be a ST for standard IO, but special conditions cause it to be a TTL.

Thanks,

John
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Thu Apr 12, 2007 11:19 am     Reply with quote

You can't change an input from being a Schmitt Trigger to TTL. It's a fixed piece of hardware. Say, on an 18F2525 (one that I'm currently designing around), RB1 can be a digital I/O, external interrupt and an analog input channel. If it's configured to be a digital I/O it will be a TTL input. If it's configured to be the external interrupt then it will be a Schmitt Trigger input. And, of course, if it's an analog input channel then it's input will be analog.

You'll need to look at the spec. sheet for each pin and determine which type it will be. I've been fighting this same problem and had to order a level conversion IC to handle this. I'm trying the MAX3371 and hope that it will allow the devices that operate at the different VCC levels to communicate properly.

Ronald
jbmiller



Joined: 07 Oct 2006
Posts: 73
Location: Greensville,Ontario

View user's profile Send private message

3v to 5 v
PostPosted: Thu Apr 12, 2007 3:18 pm     Reply with quote

If you can't add a 'level translator', you can 'cheat' like I've done defore.
Feed the signal into an analog pin.
Operation is simple, select pin,do the ADC, test if over the 3V 'high' value.

Jay
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