CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-28-2008, 02:59 PM
 
Join Date: Jan 2007
Location: USA
Posts: 38
mike944 is on a distinguished road
Parallel port input pin high/low

Hey guys,

Quick question. do ALL pc parallel ports hold all of their input pins high in the "default" state, and wait for them to be pulled low by external circuitry? Or is this a behavior of only some parallel ports?

I've got 10k pulldowns on my input pins to prevent float, but when i disable the electronics of my interface completely (removing all active highs and lows), the input pins all jump high, even though they have high-resistance pulldowns. This tells me that the parallel port is intentionally pulling them high.

I get this behavior on my PC, but i am trying to figure out if this behavior is universal, or not. Perhaps it is software controlled? I'm currently trying to run mach

Thanks,
Mike
Reply With Quote

  #2   Ban this user!
Old 01-29-2008, 07:33 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road
Parallel port

There are different flavors of ports. And most nowdays can operate in different modes. Those modes are:

SPP Standard Printer Port
EPP Enhanced Parallel Port
ECP Extended Capabilities Port

and then there was the PS/2 type

BPP Bi-directional Parallel Port

You will not find an ECP port on a PCI interface card becuase the ECP type is driven by DMA transfers which is not supported by the PCI interface. Most of us are using the EPP mode.

You may be able to tell what internal pull up your card has by simply measuring it. Power off the computer and measure resistance from the input pin to the +5 volt supply in the computer. If it's 4.7K and you are pulling it down with a 10K, then you are not getting it below the "low level threshhold".

Another thing you may try is to connect a pot to the pin and ground and vary the resistance while monitoring the state of the input pin. When it drops to low, just disconnect the pot and measure the resistance. That will tell you what resistance you need on the pull-down to keep it low.

The input pin is generally held high by a pullup so that open collector outputs in connected devices can be used to control them.

Steve
Reply With Quote

  #3   Ban this user!
Old 01-30-2008, 07:35 AM
 
Join Date: Jan 2007
Location: USA
Posts: 38
mike944 is on a distinguished road

Originally Posted by vger View Post
...............The input pin is generally held high by a pullup so that open collector outputs in connected devices can be used to control them............
That's the bit of information i'm really looking for. I should have asked my question a little clearer.


I don't specifically need to pull them down if they are purposely being held high. I just need them in some known state, instead of floating. That's what my pulldowns were for. to make sure i had a known state, instead of floating. Now that i understand the parallel port input pin behavior better, i may remove the pulldowns on the input pins all together.


I guess now my only question remaining is in that statement above is it "generally held high"? or "ALWAYS held high"? Basically, is there any chance of running across a parallel port that relies on external devices to hold them high?
Reply With Quote

  #4   Ban this user!
Old 01-30-2008, 12:51 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Assuming the PC is on, the output pins of the parallel port when set in an output state will be driving so if they are set low they will be sinking current, if set high they will be sourcing current. As vger posted, there are multiple setups for parallel ports and some of the setups the data lines can be bidirectional. Pullups or pulldowns on a device connected to the parallel port would come into play when the pc is off or disconnected. When the pc is on, termination of the lines for better transmission characteristics is normal.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5   Ban this user!
Old 01-30-2008, 03:00 PM
 
Join Date: Jan 2007
Location: USA
Posts: 38
mike944 is on a distinguished road

INPUTS

I'm interested in the conventional inputs (10,11,12,13 & 15). I know how the outputs work. You can't "set a state" for the inputs from the PC end. It seems the state is set by internal hardware. Just trying to understand if this behavior is universal
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-30-2008, 05:19 PM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road
Port specifics

There is a standard IEEE 1284 that defines what a port must adhere to in order to be "standard" http://www.fapo.com/1284elec.htm

Since pins 10,11,12,13,14,&15 are only input, one could assume that as long as the physical port in question adheres to the IEEE 1284 standard, there will be a pullup at the input.

I came across this site http://www.beyondlogic.org/index.html
(pminmo, you may want to add that one to your links)

Hope that helps

Steve
Reply With Quote

  #7   Ban this user!
Old 01-30-2008, 05:23 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Ahh, rereading your post I suspect your problem is the 10K pulldown. Depending on the age of the PC will depend on the technology used in the interface chip. But I suspect what your seeing is the normal input current causing a voltage shift through your pull down. For example a 74lsxx chip may have 400ua input current. At 10K, that could develop 4V. Lower the pulldown value and see if that solves your problem.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #8   Ban this user!
Old 02-01-2008, 09:42 AM
 
Join Date: Jan 2007
Location: USA
Posts: 38
mike944 is on a distinguished road

thanks for that link to the 1284 standard.

I wish i had read that earlier. My implementation does not match the reccomended configuration. Instead of 1.2k pull-ups to +5, i've pulled everything down to 0 with 10k's

pminmo - i'm not really having a "problem" with the behavior, i just needed to understand it.

Basically, what i have is an isolated interface, that i'm trying to implement an E-stop circuit so the PC knows when the E-stop is pressed. I won't get into any stories about interface details, but basically, all i have to use for this is a +5v supply from the machine that goes to zero when the e-stop is pressed. That same +5v supply is also the PC-side supply (through an isolated DC-DC converter) so when the machine goes into e-stop, i no longer have power available to run any circuitry on the interface. I wanted a "clean" interface, so didn't want to use an extra cable to plug into USB that didn't really do anything, except borrow power. The isolated DC-DC converter to power the PC-side of the interface has been working very well, except that when the e-stop is pressed, i loose power to both sides of the isolation barrier.

It hasn't really been a problem, because when the e-stop is pressed, all my input lines jump high. This works pretty effectively to tell the PC that e-stop was pressed. I just need to make 100% sure this behavior will be consistent from PC to PC, before i can trust it to be repeatable for something fairly important like an e-stop.

By the way, i'm using Analog Devices' digital isolators, and when they loose power, they default to a floating state. They no longer pull the input pins down, and they all jump high.

On second thought, i can probably use a small SPDT reed-relay or something similar to take one of the input pins low when there is no power. Something that defaults to a closed state with no power.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
max. pulse input rate /second on LPT port visky LinuxCNC (formerly EMC2) 1 12-19-2007 07:25 AM
Parallel pin 01 - E-stop use as Input or output? mike944 LinuxCNC (formerly EMC2) 2 12-03-2007 08:39 AM
parallel port input problem stirling General Electronics Discussion 11 10-22-2007 01:10 PM
Where's the parallel port? cdlenterprises Mastercam 23 01-20-2007 05:23 PM
Parallel Port Shanghyd Computers and Networking 1 11-22-2004 11:56 AM




All times are GMT -5. The time now is 10:59 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361