|
|
Hi
I am working on a project where I have to send signals from a PC (RS232
or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
way to do that?
I am looking for the hardware and IC components necessary that will
convert the signals from the PC. Then, what software or programs will I
need to code?
|
|
|
|
Author: James BeckDate: 14:47 11-01-07
|
|
In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
lichxx@gmail.com says...
> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?
>
> I am looking for the hardware and IC components necessary that will
> convert the signals from the PC. Then, what software or programs will I
> need to code?
>
>
How about using the parallel port?
At least 8 easy to use data lines.
Real easy if you are using Win98 or less or DOS.
Win2K and XP are a little tougher.
Jim
|
|
|
|
|
|
James Beck wrote:
> In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> lichxx@gmail.com says...
> > Hi
> >
> > I am working on a project where I have to send signals from a PC (RS232
> > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> > way to do that?
> >
> > I am looking for the hardware and IC components necessary that will
> > convert the signals from the PC. Then, what software or programs will I
> > need to code?
> >
> >
> How about using the parallel port?
> At least 8 easy to use data lines.
> Real easy if you are using Win98 or less or DOS.
> Win2K and XP are a little tougher.
>
> Jim
I am using Win XP. How hard would that be?
|
|
|
|
Author: James BeckDate: 16:15 11-01-07
|
|
In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
lichxx@gmail.com says...
>
> James Beck wrote:
> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> > lichxx@gmail.com says...
> > > Hi
> > >
> > > I am working on a project where I have to send signals from a PC (RS232
> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> > > way to do that?
> > >
> > > I am looking for the hardware and IC components necessary that will
> > > convert the signals from the PC. Then, what software or programs will I
> > > need to code?
> > >
> > >
> > How about using the parallel port?
> > At least 8 easy to use data lines.
> > Real easy if you are using Win98 or less or DOS.
> > Win2K and XP are a little tougher.
> >
> > Jim
>
>
> I am using Win XP. How hard would that be?
>
>
You will need one of the VXD's that allow you to access the parallel
port hardware. XP blocks applications from doing that.
See:
http://www.beyondlogic.org/porttalk/porttalk.htm
Among others.
I'm sure others here know of more drivers.
Jim
|
|
|
|
Author: Randy DayDate: 16:39 11-01-07
|
|
lichxx@gmail.com wrote:
> James Beck wrote:
>
>>In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>>lichxx@gmail.com says...
>>
>>>Hi
>>>
>>>I am working on a project where I have to send signals from a PC (RS232
>>>or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
>>>from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>>>way to do that?
>>>
>>>I am looking for the hardware and IC components necessary that will
>>>convert the signals from the PC. Then, what software or programs will I
>>>need to code?
>>>
>>>
>>
>>How about using the parallel port?
>>At least 8 easy to use data lines.
>>Real easy if you are using Win98 or less or DOS.
>>Win2K and XP are a little tougher.
>>
>> Jim
>
>
>
> I am using Win XP. How hard would that be?
It adds an extra layer of complexity. After Win98,
the user is not allowed direct access to hardware,
including I/O ports.
Someone here previously mentioned two ring 0 device
drivers called GiveIO and UserPort; I bookmarked the
following site to d/l them, but have not used either,
since I use some old PC's and win9x for I/O stuff.
http://www.embeddedtronics.com/design&ideas.html
Maybe you should find an old PII/PIII machine and
someone's old win9x CD as a test machine; it could
save your main machine if you short something...
HTH
|
|
|
|
Author: EeyoreDate: 19:31 11-01-07
|
|
lichxx@gmail.com wrote:
> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?
*Easy* ? I wouldn't call it easy myself.
Graham
|
|
|
|
Author: Matthew HicksDate: 13:44 12-01-07
|
|
I used a parallel port to drive an lcd for an old school project. You need
to look-up what address the port is located at, how you can get the port to
automatically latch the data and a way to get access to the I/O pins
directly. For the last part I use a c compiler called djgpp that makes a
dos executable that can have direct access to the I/O pins. I think I used
simple in(address) and out(data, address) commands to communicat but you'll
have to look those up to be sure. Note that these functions are in a
special library.
---Matthew Hicks
"James Beck" <jim@reallykillersystems.com> wrote in message
news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> lichxx@gmail.com says...
>>
>> James Beck wrote:
>> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>> > lichxx@gmail.com says...
>> > > Hi
>> > >
>> > > I am working on a project where I have to send signals from a PC
>> > > (RS232
>> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
>> > > signals
>> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>> > > way to do that?
>> > >
>> > > I am looking for the hardware and IC components necessary that will
>> > > convert the signals from the PC. Then, what software or programs will
>> > > I
>> > > need to code?
>> > >
>> > >
>> > How about using the parallel port?
>> > At least 8 easy to use data lines.
>> > Real easy if you are using Win98 or less or DOS.
>> > Win2K and XP are a little tougher.
>> >
>> > Jim
>>
>>
>> I am using Win XP. How hard would that be?
>>
>>
> You will need one of the VXD's that allow you to access the parallel
> port hardware. XP blocks applications from doing that.
>
> See:
> http://www.beyondlogic.org/porttalk/porttalk.htm
>
> Among others.
> I'm sure others here know of more drivers.
>
> Jim
|
|
|
|
Author: James BeckDate: 14:37 12-01-07
|
|
In article <eo8ku6$v09$1@news.ks.uiuc.edu>, mdhicks2@uiuc.edu says...
> I used a parallel port to drive an lcd for an old school project. You need
> to look-up what address the port is located at, how you can get the port to
> automatically latch the data and a way to get access to the I/O pins
> directly. For the last part I use a c compiler called djgpp that makes a
> dos executable that can have direct access to the I/O pins. I think I used
> simple in(address) and out(data, address) commands to communicat but you'll
> have to look those up to be sure. Note that these functions are in a
> special library.
>
> ---Matthew Hicks
Still won't work under XP without using a VXD.
>
>
> "James Beck" <jim@reallykillersystems.com> wrote in message
> news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> > In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> > lichxx@gmail.com says...
> >>
> >> James Beck wrote:
> >> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> >> > lichxx@gmail.com says...
> >> > > Hi
> >> > >
> >> > > I am working on a project where I have to send signals from a PC
> >> > > (RS232
> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> >> > > signals
> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> >> > > way to do that?
> >> > >
> >> > > I am looking for the hardware and IC components necessary that will
> >> > > convert the signals from the PC. Then, what software or programs will
> >> > > I
> >> > > need to code?
> >> > >
> >> > >
> >> > How about using the parallel port?
> >> > At least 8 easy to use data lines.
> >> > Real easy if you are using Win98 or less or DOS.
> >> > Win2K and XP are a little tougher.
> >> >
> >> > Jim
> >>
> >>
> >> I am using Win XP. How hard would that be?
> >>
> >>
> > You will need one of the VXD's that allow you to access the parallel
> > port hardware. XP blocks applications from doing that.
> >
> > See:
> > http://www.beyondlogic.org/porttalk/porttalk.htm
> >
> > Among others.
> > I'm sure others here know of more drivers.
> >
> > Jim
>
>
>
|
|
|
|
Author: GPGDate: 05:48 13-01-07
|
|
James Beck wrote:
> In article <eo8ku6$v09$1@news.ks.uiuc.edu>, mdhicks2@uiuc.edu says...
> > I used a parallel port to drive an lcd for an old school project. You need
> > to look-up what address the port is located at, how you can get the port to
> > automatically latch the data and a way to get access to the I/O pins
> > directly. For the last part I use a c compiler called djgpp that makes a
> > dos executable that can have direct access to the I/O pins. I think I used
> > simple in(address) and out(data, address) commands to communicat but you'll
> > have to look those up to be sure. Note that these functions are in a
> > special library.
> >
> > ---Matthew Hicks
> Still won't work under XP without using a VXD.
>
> >
> >
> > "James Beck" <jim@reallykillersystems.com> wrote in message
> > news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> > > In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> > > lichxx@gmail.com says...
> > >>
> > >> James Beck wrote:
> > >> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> > >> > lichxx@gmail.com says...
> > >> > > Hi
> > >> > >
> > >> > > I am working on a project where I have to send signals from a PC
> > >> > > (RS232
> > >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> > >> > > signals
> > >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> > >> > > way to do that?
> > >> > >
> > >> > > I am looking for the hardware and IC components necessary that will
> > >> > > convert the signals from the PC. Then, what software or programs will
> > >> > > I
> > >> > > need to code?
> > >> > >
> > >> > >
> > >> > How about using the parallel port?
> > >> > At least 8 easy to use data lines.
> > >> > Real easy if you are using Win98 or less or DOS.
> > >> > Win2K and XP are a little tougher.
> > >> >
> > >> > Jim
> > >>
> > >>
> > >> I am using Win XP. How hard would that be?
> > >>
> > >>
> > > You will need one of the VXD's that allow you to access the parallel
> > > port hardware. XP blocks applications from doing that.
> > >
> > > See:
> > > http://www.beyondlogic.org/porttalk/porttalk.htm
> > >
> > > Among others.
> > > I'm sure others here know of more drivers.
Google inpout
|
|
|
|
Author: ChrisDate: 06:33 13-01-07
|
|
lic...@gmail.com wrote:
> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?
>
> I am looking for the hardware and IC components necessary that will
> convert the signals from the PC. Then, what software or programs will I
> need to code?
The easiest way to do this is to scrounge an old PC with DOS, and use
QBASIC to address the 8 data bits of the printer I/O port. Make sure
the printer port is configured in BIOS as SPP. No extra hardware
required if your decoder accepts TTL signals. Your most time consuming
activity will be making the connector for the DB25 plug.
Cheers
Chris
|
|
|
|
Author: Si BallengerDate: 12:16 13-01-07
|
|
On 11 Jan 2007 11:54:41 -0800, lichxx@gmail.com wrote:
>
>James Beck wrote:
>> In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>> lichxx@gmail.com says...
>> > Hi
>> >
>> > I am working on a project where I have to send signals from a PC (RS232
>> > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
>> > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>> > way to do that?
>> >
>> > I am looking for the hardware and IC components necessary that will
>> > convert the signals from the PC. Then, what software or programs will I
>> > need to code?
>> >
>> >
>> How about using the parallel port?
>> At least 8 easy to use data lines.
>> Real easy if you are using Win98 or less or DOS.
>> Win2K and XP are a little tougher.
>>
>> Jim
>
>
>I am using Win XP. How hard would that be?
If you run userport (google for userport.zip) you can get user
level hardware access on XP machines. Once you have user level
accrss, you probably can do the rest of your programming using
notepad. I've got a couple of pages below with some simple
parallel port I/O setups.
http://www.geocities.com/zoomkat/status.htm
http://www.geocities.com/zoomkat/output.htm
|
|
|
|
|
|
My project is concerned with driving a 16x16 LCD using the PC. Are
there any documentations available for driving a LCD?
On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
> I used a parallel port to drive an lcd for an old school project. You need
> to look-up what address the port is located at, how you can get the port to
> automatically latch the data and a way to get access to the I/O pins
> directly. For the last part I use a c compiler called djgpp that makes a
> dos executable that can have direct access to the I/O pins. I think I used
> simple in(address) and out(data, address) commands to communicat but you'll
> have to look those up to be sure. Note that these functions are in a
> special library.
>
> ---Matthew Hicks
>
> "James Beck" <j...@reallykillersystems.com> wrote in messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>
> > In article <1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
> > lic...@gmail.com says...
>
> >> James Beck wrote:
> >> > In article <1168543878.816053.50...@77g2000hsv.googlegroups.com>,
> >> > lic...@gmail.com says...
> >> > > Hi
>
> >> > > I am working on a project where I have to send signals from a PC
> >> > > (RS232
> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> >> > > signals
> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> >> > > way to do that?
>
> >> > > I am looking for the hardware and IC components necessary that will
> >> > > convert the signals from the PC. Then, what software or programs will
> >> > > I
> >> > > need to code?
>
> >> > How about using the parallel port?
> >> > At least 8 easy to use data lines.
> >> > Real easy if you are using Win98 or less or DOS.
> >> > Win2K and XP are a little tougher.
>
> >> > Jim
>
> >> I am using Win XP. How hard would that be?
>
> > You will need one of the VXD's that allow you to access the parallel
> > port hardware. XP blocks applications from doing that.
>
> > See:
> >http://www.beyondlogic.org/porttalk/porttalk.htm
>
> > Among others.
> > I'm sure others here know of more drivers.
>
> > Jim
|
|
|
|
Author: Randy DayDate: 17:04 15-01-07
|
|
|
|
|
|
Author: Rich GriseDate: 17:14 15-01-07
|
|
On Mon, 15 Jan 2007 12:23:47 -0800, lichxx wrote:
> My project is concerned with driving a 16x16 LCD using the PC. Are
> there any documentations available for driving a LCD?
>
Whoever supplied the LCD should have technical documentation.
And please learn to trim and bottom post.
Good Luck!
Rich
> On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
>> I used a parallel port to drive an lcd for an old school project. You need
>> to look-up what address the port is located at, how you can get the port to
>> automatically latch the data and a way to get access to the I/O pins
>> directly. For the last part I use a c compiler called djgpp that makes a
>> dos executable that can have direct access to the I/O pins. I think I used
>> simple in(address) and out(data, address) commands to communicat but you'll
>> have to look those up to be sure. Note that these functions are in a
>> special library.
>>
>> ---Matthew Hicks
>>
>> "James Beck" <j...@reallykillersystems.com> wrote in messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>>
>> > In article <1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
>> > lic...@gmail.com says...
>>
>> >> James Beck wrote:
>> >> > In article <1168543878.816053.50...@77g2000hsv.googlegroups.com>,
>> >> > lic...@gmail.com says...
>> >> > > Hi
>>
>> >> > > I am working on a project where I have to send signals from a PC
>> >> > > (RS232
>> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
>> >> > > signals
>> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>> >> > > way to do that?
>>
>> >> > > I am looking for the hardware and IC components necessary that will
>> >> > > convert the signals from the PC. Then, what software or programs will
>> >> > > I
>> >> > > need to code?
>>
>> >> > How about using the parallel port?
>> >> > At least 8 easy to use data lines.
>> >> > Real easy if you are using Win98 or less or DOS.
>> >> > Win2K and XP are a little tougher.
>>
>> >> > Jim
>>
>> >> I am using Win XP. How hard would that be?
>>
>> > You will need one of the VXD's that allow you to access the parallel
>> > port hardware. XP blocks applications from doing that.
>>
>> > See:
>> >http://www.beyondlogic.org/porttalk/porttalk.htm
>>
>> > Among others.
>> > I'm sure others here know of more drivers.
>>
>> > Jim
|
|
|
|
|
|
On Jan 15, 5:14 pm, Rich Grise <r...@example.net> wrote:
> On Mon, 15 Jan 2007 12:23:47 -0800, lichxx wrote:
> > My project is concerned with driving a 16x16 LCD using the PC. Are
> > there any documentations available for driving a LCD?Whoever supplied the LCD should have technical documentation.
>
> And please learn to trim and bottom post.
>
> Good Luck!
> Rich
>
The LCD is going to be fabricated by myself. It will have 16 rows and
16 columns driven by two 4-to-16 decoders. The parallel port will be
used to send two 4-bit signals to control the decoders.
Basically, I need a way to turn on/off the 8 output pins of the
parallel port in WinXP. A good webpage I found is
http://www.epanorama.net/circuits/parallel_output.html#circuithow
This shows a relay controlling circuit that can protect your parallel
port from voltage spikes. Anybody knows a way to do this without using
a relay coil.
> > On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
> >> I used a parallel port to drive an lcd for an old school project. You need
> >> to look-up what address the port is located at, how you can get the port to
> >> automatically latch the data and a way to get access to the I/O pins
> >> directly. For the last part I use a c compiler called djgpp that makes a
> >> dos executable that can have direct access to the I/O pins. I think I used
> >> simple in(address) and out(data, address) commands to communicat but you'll
> >> have to look those up to be sure. Note that these functions are in a
> >> special library.
>
> >> ---Matthew Hicks
>
> >> "James Beck" <j...@reallykillersystems.com> wrote in messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>
> >> > In article <1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
> >> > lic...@gmail.com says...
>
> >> >> James Beck wrote:
> >> >> > In article <1168543878.816053.50...@77g2000hsv.googlegroups.com>,
> >> >> > lic...@gmail.com says...
> >> >> > > Hi
>
> >> >> > > I am working on a project where I have to send signals from a PC
> >> >> > > (RS232
> >> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> >> >> > > signals
> >> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> >> >> > > way to do that?
>
> >> >> > > I am looking for the hardware and IC components necessary that will
> >> >> > > convert the signals from the PC. Then, what software or programs will
> >> >> > > I
> >> >> > > need to code?
>
> >> >> > How about using the parallel port?
> >> >> > At least 8 easy to use data lines.
> >> >> > Real easy if you are using Win98 or less or DOS.
> >> >> > Win2K and XP are a little tougher.
>
> >> >> > Jim
>
> >> >> I am using Win XP. How hard would that be?
>
> >> > You will need one of the VXD's that allow you to access the parallel
> >> > port hardware. XP blocks applications from doing that.
>
> >> > See:
> >> >http://www.beyondlogic.org/porttalk/porttalk.htm
>
> >> > Among others.
> >> > I'm sure others here know of more drivers.
>
> >> > Jim
|
|
|
|
Author: Randy DayDate: 20:47 17-01-07
|
|
lichxx@gmail.com wrote:
[snip]
> The LCD is going to be fabricated by myself. It will have 16 rows and
> 16 columns driven by two 4-to-16 decoders. The parallel port will be
> used to send two 4-bit signals to control the decoders.
>
> Basically, I need a way to turn on/off the 8 output pins of the
> parallel port in WinXP. A good webpage I found is
> http://www.epanorama.net/circuits/parallel_output.html#circuithow
>
> This shows a relay controlling circuit that can protect your parallel
> port from voltage spikes. Anybody knows a way to do this without using
> a relay coil.
>
If you're interfacing with another 5v circuit, just
use a protective resistor (say, 300 ohms) to the
parport pin.
Don't forget to connect the parport ground to the
circuit ground!
+5v
|
___ |\
o-|___|--| >O-
o R |/
| |
=== ===
GND GND
(created by AACircuit v1.28 beta 10/06/04 www.tech-chat.de)
For other DC circuits, the simplest safe way is
with a transistor switch. Resistor R is
connected to the parport pin, and GND is common
to both the parport ground and supply voltage
ground. When the parport pin goes high, the load
is switched on.
The advantage is that +V can be something other
than 5v, i.e. 12v.
+V
|
o
Load
o
|
___ |/
0---|___|--|
R |>
0 |
| |
=== ===
GND GND
(created by AACircuit v1.28 beta 10/06/04 www.tech-chat.de)
|
|
|
|
1 |