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 03-17-2005, 06:44 AM
 
Join Date: Apr 2004
Location: Fremont, CA
Posts: 9
Kerri Ann is on a distinguished road
Parallel port circuit

i would like to be able to build a circuit that allows 2 or more devices to be controlled at the same time with the same parallel port... i.e.- a hd44780 character lcd and an led display, (or whatever).
i don't have any experience with programming, so i'd like the whole project to be primarily hardware based.

here are some of the thoughts i have had so far-

the pins on the parallel port consist of this:
8 data out pins
5 input/status pins
4 control lines
(then the rest are ground pins)

when interfacing the hd44780 to the parallel port, all 8 data pins are used, and 3 of the control lines. BUT, depending on the software used, one of those control lines is not needed by the lcd.
so, here's what i'm thinking- i can somehow use the 2 left over control lines as device selectors. i.e.- maybe there could be x number of devices at one time, each having it's own address. i'm not sure how i would go about addressing the devices yet, but i have a huge assortment of 74 series ICs to play with...
does anyone have any ideas about what i could use to make this circuit?

the reason i am wanting to do this is because i sell small character lcds that i modify for use with the pc, and i have just recently started to build some led circuits that are also controlled with the PP, soooo.... it kind of makes it difficult to sell the led meters to my customers when my lcds are already occupying their PP!
Reply With Quote

  #2   Ban this user!
Old 03-17-2005, 10:58 AM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

Well you're on the right track...using the the control lines as device selectors...you could use a 2 to 4 mux to increase the number of devices.....you could even piggy back them....boy then it would be shy of a night mare.

Good to see a woman on this site!
Reply With Quote

  #3   Ban this user!
Old 03-17-2005, 01:51 PM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 1,102
H500 is on a distinguished road

If you need more than 4 devices, you could also use a serial-in parallel-out shift register. On chip will give to 8 addresses. You can daisy-chain them to get more.
Reply With Quote

  #4   Ban this user!
Old 03-17-2005, 03:16 PM
 
Join Date: Apr 2004
Location: Fremont, CA
Posts: 9
Kerri Ann is on a distinguished road

thanks for the help guys. i am having trouble now with something....

i downloaded a nifty little app called parmon- it lets you see each parallel port pin's high/low status in real time. you can also toggle each pin (hi-lo)...
i got this app so i could see which of the various apps i use for controlling the lcds leaves 2 control lines open.
if i try to use the parmon app to toggle (what should be) an unused pin while the any of the lcd applications are running, after a second or two, the pin goes back to it's original state, like the lcd app is refreshing the state of unused pins or something??? is that what it is?
is the software possibly controlling the unused pins even though it doesn't actually need them?
i was hoping i could use existing software to control the lcds, and use my own software in addition to the lcd app for the selection of devices. i hope i don't have to write the code for all of it!

H500- ok, ive got here a CD74HCT164. SIPO Shift register...
so- would i need to use latches or something for each device? the 8 outputs on the 154 chip would be hooked up to the latch enables for each device...
like this...
Reply With Quote

  #5   Ban this user!
Old 03-17-2005, 03:21 PM
 
Join Date: Apr 2004
Location: Fremont, CA
Posts: 9
Kerri Ann is on a distinguished road

ummm... i can't view the full sized image??? am i the only one?

- nevermind
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-17-2005, 10:14 PM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

Well you have to remember that the control pins are only active during the time something is being output...some of the control pins are bi-directional...I forget what each pin is called and don't have a parallel port assignment sheet that's readily accessible..
Reply With Quote

  #7   Ban this user!
Old 03-17-2005, 10:18 PM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

http://www.beyondlogic.org/spp/parallel.htm#6

Check this out for some hints.
Reply With Quote

  #8   Ban this user!
Old 03-17-2005, 10:58 PM
WayneHill's Avatar  
Join Date: Mar 2004
Location: Michigan
Posts: 777
WayneHill is on a distinguished road

Here is great source for information on interfacing parallel ports, Serial ports, USB Etc...

www.lvr.com
Reply With Quote

  #9   Ban this user!
Old 03-18-2005, 12:47 AM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 1,102
H500 is on a distinguished road

If the lcds have a chip select pin, you would just need something like a hc244 to buffer the parallel port. Then the output can drive several lcd's in parallel. In other words, data will be sent to all devices at once. The shift reg is used to assert the chip select of the device you want to address. The unselected devices will just ignore the data.
Reply With Quote

  #10   Ban this user!
Old 03-18-2005, 01:16 AM
 
Join Date: Apr 2004
Location: Fremont, CA
Posts: 9
Kerri Ann is on a distinguished road

Originally Posted by H500
If the lcds have a chip select pin, you would just need something like a hc244 to buffer the parallel port. Then the output can drive several lcd's in parallel. In other words, data will be sent to all devices at once. The shift reg is used to assert the chip select of the device you want to address. The unselected devices will just ignore the data.
so you're saying that instead of the 573 chips in my schem... i should just use something like the 244.
but all of the devices i will have hooked up in parallel will not have a chip select pin (although the lcds do).

here's something else that i am confused about...
lets say that i have an LCD which is showing the time (hh:mm:ss), and a LED meter (just 8 leds hooked up thru a buffer chip to the data out pins) showing a vu meter type display thru a winamp plugin, both devices hooked up at the same time. when the software gives the port the data, then thru the control lines selects the device it should be received by, we'll say it's the led meter this time... what will the lcd be displaying? is the port fast enough to send data to both devices? what about 4 or 8 devices?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2005, 03:50 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Originally Posted by Kerri Ann
here's something else that i am confused about...
lets say that i have an LCD which is showing the time (hh:mm:ss), and a LED meter (just 8 leds hooked up thru a buffer chip to the data out pins) showing a vu meter type display thru a winamp plugin, both devices hooked up at the same time. when the software gives the port the data, then thru the control lines selects the device it should be received by, we'll say it's the led meter this time... what will the lcd be displaying? is the port fast enough to send data to both devices? what about 4 or 8 devices?
The LCD display is persistent, i.e., if you send data to it, it will display it until new data is sent. Assuming you're displaying time, the LCD data will only need to be updated every 1 second and it takes only take about 1/1000s to do it.

I'm both a programmer and circuit designer (by hobby not profession ), IMHO, if you're planning for two devices only, somehow monitor the LCD Chip Select lines as the demux signal, i.e., when CS is high... signal for LCD, when it's low... signal for the 2nd device. My 2 cents
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #12   Ban this user!
Old 03-18-2005, 06:02 AM
 
Join Date: Apr 2004
Location: Fremont, CA
Posts: 9
Kerri Ann is on a distinguished road

that would be simple... i would kick myself later though if i end up making another circuit for the PP!

well, my brain is starting to hurt right now, so i'm giving this one a rest until later in the weekend. on sunday i will hopefully have some time to make a quick circuit and test it out with that parmon utility...
here's hoping i don't catch anything on fire! (yeah, ive done it before)
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
DNC with parallel port (Bridgeport BOSS 5)? hobbymat General CAM Discussion 3 07-20-2009 11:16 AM
Parallel Port Options JasonCroyle General Electronics Discussion 4 01-12-2005 07:23 AM
Parallel Port / Relay Control Question Verboten Computers and Networking 7 12-21-2004 04:17 PM
Parallel Port Shanghyd Computers and Networking 1 11-22-2004 11:56 AM
Serial or Parallel port drive Max General Electronics Discussion 8 11-02-2004 12:20 AM




All times are GMT -5. The time now is 04:54 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