View previous topic :: View next topic |
Author |
Message |
runtime
Joined: 15 Sep 2003 Posts: 36
|
is this signal level ok? Please help |
Posted: Fri Aug 26, 2005 9:32 am |
|
|
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
|
|
Posted: Fri Aug 26, 2005 10:47 am |
|
|
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
|
|
Posted: Fri Aug 26, 2005 10:58 am |
|
|
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
|
|
Posted: Fri Aug 26, 2005 2:08 pm |
|
|
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
|
|
Posted: Fri Aug 26, 2005 2:45 pm |
|
|
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
|
|
Posted: Fri Aug 26, 2005 2:45 pm |
|
|
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. |
|
|
|