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

is this signal level ok? Please help

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



Joined: 15 Sep 2003
Posts: 36

View user's profile Send private message

is this signal level ok? Please help
PostPosted: Fri Aug 26, 2005 9:32 am     Reply with quote

Hello All,

I want to detect the DCD signal from a modem module. The DCD Output from the module has the following voltage specs:

Output Low Voltage: 0 to 0.6 V
Output High Voltage: 2.2 to 2.75 V

I'm using a PIC18F252 at 3.3V and will wire that signal to pin RA4, this pin has the following Input voltages:

Input Low Voltage: Vss to 0.2 V
Unput High Voltage: 0.8 to Vdd

Are these signal levels ok for the PIC to detect a low and high states?

I thinl the OLV from the module (0 to 0.6) is too high, am I right? What do I need to reduce this voltage to a value between 0 and 0.2?

Thank you in advance
Peter
Guest








PostPosted: Fri Aug 26, 2005 10:47 am     Reply with quote

If the modem gives you an 'low' that's 0.5V, then your PIC can get confused.

Have you read the Schmitt trigger input pins' characteristics?

Does anyone else here know what to do in these situations? My guess would be to get a Schmitt trigger buffer.
runtime



Joined: 15 Sep 2003
Posts: 36

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 10:58 am     Reply with quote

Yes, the Schmitt trigger input pins' characteristics are:

Input Low Voltage: Vss to 0.2 V
Unput High Voltage: 0.8 to Vdd

any ideas?
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 2:08 pm     Reply with quote

You might also try a pull-down resistor. That would help bring the logic "0" levels down a bit.
_________________
The search for better is endless. Instead simply find very good and get the job done.
cmdrdan



Joined: 08 Apr 2005
Posts: 25
Location: Washington

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 2:45 pm     Reply with quote

Peter --

The 0.5 volt seems quite high for a VOL level. What is the output low current specified for the modem part at the 0.5 volt level. For a light load such as a 10k pullup resistor, I would expect that the VOL level would be lower than the 0.5 volts specified....

Dan
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 2:45 pm     Reply with quote

Quote:
I'm using a PIC18F252 at 3.3V and will wire that signal to pin RA4, this pin has the following Input voltages:

Input Low Voltage: Vss to 0.2 V
input High Voltage: 0.8 to Vdd

You have misunderstood the data sheet.

When the data sheet says ".2 Vdd", it means ".2 x Vdd"
so if your Vdd is 3.3v, then the Vil = .2 x 3.3 = .66v

In the same way, when the data sheet says ".8 Vdd", it means
".8 x Vdd", so in your case it means Vih = .8 x 3.3 = 2.64v

The Voh value for your modem is a problem. It can be as low as 2.2v.
That's too low. Assuming this spec is really true, then you need to
add a CMOS buffer chip to the output of the modem, to get the proper
signal levels. You could use a 74LVT125 chip. It accepts TTL input
voltages, so it would work with your modem and it puts out CMOS
levels, which are almost rail-to-rail with a light load (which is what your
PIC pin is), so it would work with the Vil and Vih for pin RA4.
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