Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #480404
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Creating serial or USB interface from standard PC |
| Date | 2017-10-05 08:45 +0000 |
| Organization | Datemas.de http://www.news.datemas.de |
| Message-ID | <or4rf3$non$1@news.datemas.de> (permalink) |
| References | <oqtlbi$4i4$1@l01news1.ot.hr> <oqtqsc$d3u$1@news.datemas.de> <or3dbk$im1$1@l01news1.ot.hr> |
On a sunny day (Wed, 4 Oct 2017 21:38:35 +0200) it happened gm
<notmy@mail.com> wrote in <or3dbk$im1$1@l01news1.ot.hr>:
>On 10/02/2017 06:52 PM, Jan Panteltje wrote:
>> I have a PCI card with PC parport connector, gives you many I/O pins,
>> use it to program PICs, test i2c chips etc..
>> If you have a free PCI slot that is the simplest way, those cards are cheap.
>> Dunno about java and snakes, just use C ;-)
>***********
>what kind of hw do you use for interface between paralell or serial port
>and let's say arduino ( atmel ) ?
1) I have no Duino...
2) The par port on modern PCs outputs about 3.3V.
Some pins have high current drive capability.
Some pins have reversed logic levels.
3) Here are some examples how I use it,
this controls an ebay frequency synthesizer module:
http://panteltje.com/panteltje/newsflex/download.html#ADF4350_test
this is a part port PIC programmer (design is not mine, just modified it):
http://panteltje.com/panteltje/pic/jppp18/index.html
Normally the par port I/O address is 0x378
In this simple C file you can see how I interface using i2c:
http://panteltje.com/pub/ADF4350_test.c
I use diodes to do sda pulldown, sdcl is hard up/down.
>So, idea is to read some value from arduino and send some data from PC
>to arduino ( impuls )....
>
>Do you have some schematics ?
In ADF4350_test.c there is a wiring diagram.
I have build many of those test circuits, many are on my site too.
So, take care of the currents that can flow, the logic levels (no idea what a Duino does), and
do a web search for PC par port connections and their addresses (control port, and data port).
Write a test routine to toggle and read those pins, use a multimeter or something to check.
Advantage of the PC parport is that you can have very high speed, no unstable USB shit or device renumbering either.
No overhead, just read / write to 0x378 0x379, fast C compiler on same PC, unlimited test resources.
IMNSHO a computer without hardware I/O is quite useless really.
To write to the parport you need to be root, see iopl(3) in the C source.
To be safe not to smoke your par-port (card?) you could use 330 Ohm resistors in series for a start.
If you are using Bloatsoft Widows, then I have no examples.
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-02 17:18 +0200
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 08:24 -0700
Re: Creating serial or USB interface from standard PC Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-02 08:27 -0700
Re: Creating serial or USB interface from standard PC Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-10-02 16:42 +0100
Re: Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-02 18:02 +0200
Re: Creating serial or USB interface from standard PC Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-02 09:13 -0700
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 10:13 -0700
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 10:26 -0700
Re: Creating serial or USB interface from standard PC piglet <erichpwagner@hotmail.com> - 2017-10-04 22:16 +0100
Re: Creating serial or USB interface from standard PC "Michael A. Terrell" <mike.terrell@earthlink.net> - 2017-10-11 15:02 -0400
Re: Creating serial or USB interface from standard PC Jasen Betts <jasen@xnet.co.nz> - 2017-10-12 04:37 +0000
Re: Creating serial or USB interface from standard PC Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-02 16:52 +0000
Re: Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-04 21:38 +0200
Re: Creating serial or USB interface from standard PC mike <ham789@netzero.net> - 2017-10-04 13:06 -0700
Re: Creating serial or USB interface from standard PC Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-05 08:45 +0000
Re: Creating serial or USB interface from standard PC WangoTango <Asgard24@mindspring.com> - 2017-10-02 17:21 -0400
Re: Creating serial or USB interface from standard PC David Brown <david.brown@hesbynett.no> - 2017-10-03 09:43 +0200
Re: Creating serial or USB interface from standard PC Martin Riddle <martin_ridd@verizon.net> - 2017-10-03 18:25 -0400
Re: Creating serial or USB interface from standard PC Jasen Betts <jasen@xnet.co.nz> - 2017-10-06 20:30 +0000
Re: Creating serial or USB interface from standard PC Martin Riddle <martin_ridd@verizon.net> - 2017-10-06 19:11 -0400
csiph-web