Click here to Skip to main content
15,917,062 members
Home / Discussions / C#
   

C#

 
GeneralRe: compare date error Pin
Anubhava Dimri13-Mar-08 23:13
Anubhava Dimri13-Mar-08 23:13 
GeneralRe: compare date error Pin
angels77714-Mar-08 1:52
angels77714-Mar-08 1:52 
GeneralRe: compare date error Pin
Anubhava Dimri14-Mar-08 2:11
Anubhava Dimri14-Mar-08 2:11 
Questionhow to draw grid points? Pin
Aravinthan13-Mar-08 20:02
Aravinthan13-Mar-08 20:02 
QuestionHow to send and receive file through parallel port????????? Pin
Anez.A13-Mar-08 19:37
Anez.A13-Mar-08 19:37 
AnswerRe: How to send and receive file through parallel port????????? Pin
Matthew Butler14-Mar-08 3:20
Matthew Butler14-Mar-08 3:20 
GeneralRe: How to send and receive file through parallel port????????? Pin
Anez.A16-Mar-08 18:49
Anez.A16-Mar-08 18:49 
GeneralRe: How to send and receive file through parallel port????????? Pin
Matthew Butler28-Mar-08 4:32
Matthew Butler28-Mar-08 4:32 
If your are using a DB-25 port then...

According to Wikipedia... (Quote)
<br />
Monodirectional parallel ports<br />
In early parallel ports the data lines were monodirectional (data out only) so it was not easily possible to feed data in to the computer. However, a workaround was possible by using 4 of the 5 status lines. A circuit could be constructed to split each 8-bit byte into two 4-bit nibbles which were fed in sequentially through the status lines. Each pair of nibbles was then re-combined into an 8-bit byte.<br />

The general idea with parallel ports is that you only send 'Data' in one direction (away from the computer) and only send back status bits.

When you receive data it shouldn't go 'into' a parallel port, it should be read (all 8 bits) onto the controller (microcontroller etc) port.
When sending data back, 4 bits of the controller's port should be connected to four of the status bits (see wiki page) and then the fifth status bit could be used to say which nibble (half-byte) is being sent.

To summarise...
The computer (the master) has 8 bits output, and 4 (or 5) bits input.
The device (the slave) will have as many pins as needed (8 bits receive, 4 (or 5) bits send).
You need to send data from the slave to the master in two (half-byte) sections.

[Also: Is there any particular reason why you are using parallel ports? (Serial is really simple to use)]

Hope this helps.

Matthew Butler

GeneralRe: How to send and receive file through parallel port????????? Pin
Anez.A30-Mar-08 18:45
Anez.A30-Mar-08 18:45 
QuestionHow to add images to toolstrip menu? Pin
Aravinthan13-Mar-08 19:35
Aravinthan13-Mar-08 19:35 
Generalinsert the records from dataset into database Pin
Miss Maheshwari13-Mar-08 18:47
Miss Maheshwari13-Mar-08 18:47 
AnswerRe: insert the records from dataset into database Pin
Pankaj Garg13-Mar-08 19:57
Pankaj Garg13-Mar-08 19:57 
GeneralFinding Memory Leaks Pin
MAW3013-Mar-08 15:42
MAW3013-Mar-08 15:42 
GeneralRe: Finding Memory Leaks Pin
OR0N13-Mar-08 15:44
OR0N13-Mar-08 15:44 
GeneralConditionally loading global variables Pin
Glen Harvy13-Mar-08 15:25
Glen Harvy13-Mar-08 15:25 
GeneralRe: Conditionally loading global variables Pin
Christian Graus13-Mar-08 16:12
protectorChristian Graus13-Mar-08 16:12 
GeneralImpossible to programaticaly assign values to a binded datagridview Pin
baranils13-Mar-08 11:55
baranils13-Mar-08 11:55 
GeneralRe: Impossible to programaticaly assign values to a binded datagridview Pin
Christian Graus13-Mar-08 12:14
protectorChristian Graus13-Mar-08 12:14 
GeneralRe: Impossible to programaticaly assign values to a binded datagridview Pin
baranils13-Mar-08 12:22
baranils13-Mar-08 12:22 
GeneralRe: Impossible to programaticaly assign values to a binded datagridview Pin
Christian Graus13-Mar-08 12:39
protectorChristian Graus13-Mar-08 12:39 
GeneralRe: Impossible to programaticaly assign values to a binded datagridview Pin
baranils13-Mar-08 20:38
baranils13-Mar-08 20:38 
GeneralSerialPort Closes for no Reason Pin
jdajos13-Mar-08 11:18
jdajos13-Mar-08 11:18 
QuestionRe: SerialPort Closes for no Reason Pin
Paw Jershauge13-Mar-08 12:47
Paw Jershauge13-Mar-08 12:47 
GeneralRe: SerialPort Closes for no Reason Pin
jdajos17-Mar-08 2:55
jdajos17-Mar-08 2:55 
GeneralRe: SerialPort Closes for no Reason Pin
Paw Jershauge18-Mar-08 11:50
Paw Jershauge18-Mar-08 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.