| Author |
Message |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 7:44 Multiple input (184 input) signal to parallel port |
|
|
|
Hai......
Have anybody can help me??
How to interface with PC using paraller port, i have 184 logical input signal but parraller port only have 5 input....
Thy..
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6347 Helped: 1505 Location: West Coast
|
15 Feb 2005 8:04 Re: Multiple input (184 input) signal to parallel port |
|
|
|
Probably serial port would be easier to implement ..
Anyhow, in both cases (serial or parallel port) you will need a microcontroller, address decoder and a lots of 8-bit (or more) Tri-state buffers .. connected to the microcontroller data bus .. Here each bit (input) will be scanned by the micro and a 23-byte sentence (184-bits) will be sent trough parallel or serial port to the PC ..
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 8:13 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| IanP wrote: |
Probably serial port would be easier to implement ..
Anyhow, in both cases (serial or parallel port) you will need a microcontroller, address decoder and a lots of 8-bit (or more) Tri-state buffers .. connected to the microcontroller data bus .. Here each bit (input) will be scanned by the micro and a 23-byte sentence (184-bits) will be sent trough parallel or serial port to the PC .. |
What microcontroller you mean?? izit PIC.. I still cannot understand how to connected the input to microcontroller??
Thy..
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6347 Helped: 1505 Location: West Coast
|
15 Feb 2005 8:25 Re: Multiple input (184 input) signal to parallel port |
|
|
|
Can be PIC or any other microcontroller ..
A microcontroller has several 8-bits PORTS. To one of these ports you will connect as many as possible of 8-bit TRi-state buffers (example 74HC244). The micro will address each of thes buffers one-by-one and read its inputs (8 at a time), store this temporary in is memory and read next buffer, till the last, 23-rd buffer will be read. Now you have all 184 inputs stored in the micro memory so now the micro is ready to send this 23-byte sentence to PC ..
Conceptiual diagram attached ..
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 8:41 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| IanP wrote: |
Can be PIC or any other microcontroller ..
A microcontroller has several 8-bits PORTS. To one of these ports you will connect as many as possible of 8-bit TRi-state buffers (example 74HC244). The micro will address each of thes buffers one-by-one and read its inputs (8 at a time), store this temporary in is memory and read next buffer, till the last, 23-rd buffer will be read. Now you have all 184 inputs stored in the micro memory so now the micro is ready to send this 23-byte sentence to PC .. |
The "Address Decode" is control by one IC izit, what IC izit SAA-1099, can u recommend ??
How micro store the memory after read all the 23 buffer, if i using C language how to write??
Thy..
Last edited by Help on 15 Feb 2005 8:59; edited 1 time in total |
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6347 Helped: 1505 Location: West Coast
|
15 Feb 2005 8:55 Re: Multiple input (184 input) signal to parallel port |
|
|
|
Using another microcontroller port you can address up to 255 devices ..
Here you need to adress "only" 23, so you can use 2 of CD4514 16-non-inverting decoders ..
Microcontrollers have internal registers and several memory locations. You can easily store there 23 bytes .. (usually much more than that) ..
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 9:07 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| IanP wrote: |
Using another microcontroller port you can address up to 255 devices ..
Here you need to adress "only" 23, so you can use 2 of CD4514 16-non-inverting decoders ..
Microcontrollers have internal registers and several memory locations. You can easily store there 23 bytes .. (usually much more than that) .. |
If i using 16f84 or 16f87xA microcontroller using C language can do it or not.... do you know how to write the program??
Thy...
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6347 Helped: 1505 Location: West Coast
|
15 Feb 2005 9:16 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| This is a task that can be performed by almost any microcontroller: PIC16f87A can do it, 8051 can do it, .... plenty to choose from and C is here as good as Assembly .. Your preference.
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 9:25 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| IanP wrote: |
| This is a task that can be performed by almost any microcontroller: PIC16f87A can do it, 8051 can do it, .... plenty to choose from and C is here as good as Assembly .. Your preference. |
Do you know how to write the program using C language??
Do you have any direct contect you method like MSN, ICQ, or mail.....?
|
|
| Back to top |
|
 |
Ace-X
Joined: 25 Jan 2002 Posts: 594 Helped: 26
|
15 Feb 2005 9:32 Multiple input (184 input) signal to parallel port |
|
|
|
I think much easier would be to connect one CPLD to parallel port with required number of pins. It will be fast <10$ solution of your problem.
Also, read this thread on 8052.com forum:
h**p://www.8052.com/forum/read.phtml?id=85155
They discuss near the same question.
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
15 Feb 2005 9:56 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| Ace-X wrote: |
I think much easier would be to connect one CPLD to parallel port with required number of pins. It will be fast <10$ solution of your problem.
Also, read this thread on 8052.com forum:
h**p://www.8052.com/forum/read.phtml?id=85155
They discuss near the same question. |
Do you know how to write the program using PIC in C language??
Do you have any direct contect you method like MSN, ICQ, or mail.....?
You suggest me to use 8052 uchip...... this uchip i did't use before...
Thy..
Added after 17 minutes:
| IanP wrote: |
| This is a task that can be performed by almost any microcontroller: PIC16f87A can do it, 8051 can do it, .... plenty to choose from and C is here as good as Assembly .. Your preference. |
Do you know how to write the program using PIC in C language??
Do you have any direct contect you method like MSN, ICQ, or mail.....?
Thy..
|
|
| Back to top |
|
 |
Ace-X
Joined: 25 Jan 2002 Posts: 594 Helped: 26
|
15 Feb 2005 12:31 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| Help wrote: |
Do you know how to write the program using PIC in C language??
|
I suggested to use CPLD - it has nothing connected to PIC or C programming.
| Help wrote: |
You suggest me to use 8052 uchip...... this uchip i did't use before...
|
Again, wrong. I suggested to check similar topic on www.8052.com. They discuss there many solutions (including CPLD) for problem exactly like yours. Read this discussion - it will give your wide look on possible solutions, and their pros/cons.
|
|
| Back to top |
|
 |
Help
Joined: 15 Feb 2005 Posts: 544 Helped: 4
|
16 Feb 2005 2:31 Re: Multiple input (184 input) signal to parallel port |
|
|
|
| Ace-X wrote: |
| Help wrote: |
Do you know how to write the program using PIC in C language??
|
I suggested to use CPLD - it has nothing connected to PIC or C programming.
| Help wrote: |
You suggest me to use 8052 uchip...... this uchip i did't use before...
|
Again, wrong. I suggested to check similar topic on www.8052.com. They discuss there many solutions (including CPLD) for problem exactly like yours. Read this discussion - it will give your wide look on possible solutions, and their pros/cons. |
The CPLD need any programming to control it?? Izit easy to write the program, what software to program it??
|
|
| Back to top |
|
 |
Nick C.
Joined: 20 Dec 2002 Posts: 184 Helped: 4
|
18 Feb 2005 1:05 Re: Multiple input (184 input) signal to parallel port |
|
|
|
You could use a series of cascaded PISO shift
registers, such as the 74HC165. Do a google
search and you'll come up with many sample
circuits to give you some ideas.
Nick
|
|
| Back to top |
|
 |