D
developer
http://www.web7days.com/farm/tn/controller.jpg.html
#include<dos.h>
#include<process.h>
#include<io.h>
#include<stdio.h>
#define STROBE 0x01
#define NOT_STB 0x00
int void main()
{
char i,j;
unsigned int CTRL_PORT,STAR_PORT;
unsigned int far DATA_PORT;
DATA_PORT=MK_FP(0x0000,0x0408);
STAR_PORT=DATA_PORT+1;
CTRL_PORT=STAR_PORT+1;
outport(CTRL_PORT,0x00);
while(1)
{
outport(DATA_PORT,0x00);
delay(2000);
outport(DATA_PORT,0xff);
delay(2000);
outport(DATA_PORT,0x00);
delay(2000);
j=0x80;
for(i=0;i<8;i++)
{
outport(DATA_PORT,j);
j=j>>1;
delay(2000);
}
}
}
the original source
include<dos.h>
#include<process.h>
#include<io.h>
#include<stdio.h>
#define STROBE 0x01
#define NOT_STB 0x00
void main()
{
char i,j;
unsigned int CTRL_PORT,STAR_PORT;
unsigned int far *DATA_PORT;
DATA_PORT=MK_FP(0x0000,0x0408);
STAR_PORT=*DATA_PORT+1;
CTRL_PORT=STAR_PORT+1;
outport(CTRL_PORT,0x00);
while(1)
{
outport(*DATA_PORT,0x00);
delay(2000);
outport(*DATA_PORT,0xff);
delay(2000);
outport(*DATA_PORT,0x00);
delay(2000);
j=0x80;
for(i=0;i<8;i++)
{
outport(*DATA_PORT,j);
j=j>>1;
delay(2000);
}
}
from the pict the top three is working with my ibm note book 90mhz thinkpad
520, I used lap-link to copy the test.exe into the ibm notebook. the c8, c7
and c6 are working, I have tried 6 other SN74L373N chips. I am trying to run
a small toy motor which stimulated as a pump for irrigation purpose.
I need good man to help me to recompile and under turbo C and teach me to
modify the above program and compile this under this source under bloodshed
C. I will transfer the executeable to ibm note book to see the stimulation
is working or not working.
C0 5 mins
C1 10 mins
C3 30 mins
C4 45 mins
C5 50 mins
C6 60 mins
C7 2 min
this is main changing the "delay" which is recognise in the bloodshed and
the relavant variables.
enlighten me please.
TIA.
#include<dos.h>
#include<process.h>
#include<io.h>
#include<stdio.h>
#define STROBE 0x01
#define NOT_STB 0x00
int void main()
{
char i,j;
unsigned int CTRL_PORT,STAR_PORT;
unsigned int far DATA_PORT;
DATA_PORT=MK_FP(0x0000,0x0408);
STAR_PORT=DATA_PORT+1;
CTRL_PORT=STAR_PORT+1;
outport(CTRL_PORT,0x00);
while(1)
{
outport(DATA_PORT,0x00);
delay(2000);
outport(DATA_PORT,0xff);
delay(2000);
outport(DATA_PORT,0x00);
delay(2000);
j=0x80;
for(i=0;i<8;i++)
{
outport(DATA_PORT,j);
j=j>>1;
delay(2000);
}
}
}
the original source
include<dos.h>
#include<process.h>
#include<io.h>
#include<stdio.h>
#define STROBE 0x01
#define NOT_STB 0x00
void main()
{
char i,j;
unsigned int CTRL_PORT,STAR_PORT;
unsigned int far *DATA_PORT;
DATA_PORT=MK_FP(0x0000,0x0408);
STAR_PORT=*DATA_PORT+1;
CTRL_PORT=STAR_PORT+1;
outport(CTRL_PORT,0x00);
while(1)
{
outport(*DATA_PORT,0x00);
delay(2000);
outport(*DATA_PORT,0xff);
delay(2000);
outport(*DATA_PORT,0x00);
delay(2000);
j=0x80;
for(i=0;i<8;i++)
{
outport(*DATA_PORT,j);
j=j>>1;
delay(2000);
}
}
from the pict the top three is working with my ibm note book 90mhz thinkpad
520, I used lap-link to copy the test.exe into the ibm notebook. the c8, c7
and c6 are working, I have tried 6 other SN74L373N chips. I am trying to run
a small toy motor which stimulated as a pump for irrigation purpose.
I need good man to help me to recompile and under turbo C and teach me to
modify the above program and compile this under this source under bloodshed
C. I will transfer the executeable to ibm note book to see the stimulation
is working or not working.
C0 5 mins
C1 10 mins
C3 30 mins
C4 45 mins
C5 50 mins
C6 60 mins
C7 2 min
this is main changing the "delay" which is recognise in the bloodshed and
the relavant variables.
enlighten me please.
TIA.