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

input levels RS232

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



Joined: 16 Oct 2008
Posts: 59

View user's profile Send private message

input levels RS232
PostPosted: Thu Apr 02, 2009 2:14 am     Reply with quote

Hi,

Just a quick question, I am looking at the 18F4550 datasheet, i'm looking for the input high voltage for C6 and C7.
I have a signal on the receive pin @ 3V, will it be enough for the high input of the receive pin ? I am a bit lost with TTL buffers, Schmitt Trigger buffers and so.

Thank you.
Ttelmah
Guest







PostPosted: Thu Apr 02, 2009 2:25 am     Reply with quote

Not if you are running the PIC at 5v.

Start by looking at the part called 'I/O ports'. Go to table 10.5 'PORTC summary'. Look to pn C7. Read the line for it being used as the serial RX. Says:
Code:

RX       1   IN    ST


The '1', is the required TRIS setting. The 'ST' says what type of input buffer it has (Schmitt).

Now look at the 'electrical characteristics'. Go to line D041. Tells you what the 'high' level required is for a Schmitt input.

Best Wishes
magestik



Joined: 16 Oct 2008
Posts: 59

View user's profile Send private message

PostPosted: Thu Apr 02, 2009 2:30 am     Reply with quote

I see, there must be a pin which would tolerate 3V as high logic voltage no ?
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

PostPosted: Thu Apr 02, 2009 5:58 am     Reply with quote

magestik wrote:
I see, there must be a pin which would tolerate 3V as high logic voltage no ?

3v will probably be recognized as logic high in a 5-volt system, but it is not guaranteed. The minimum voltage to be recognized as a guaranteed logic high is 0.7 Vdd or 0.8 Vdd, depending on the type of input. Even 0.7 Vdd is 3.5 volts. If you assume that 3 volts will work, you might be lucky and have it appear to work at first. But then you may see sporadic failures as the input sometimes sees 3 volts as low. It may even turn out that 3 volts will always be seen as low. It will be very difficult to debug.

If you need to reliably see 3 volts as logic high, then you should add some additional buffer circuitry that is appropriate for your application.
_________________
Robert Scott
Real-Time Specialties
Embedded Systems Consulting
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