Ctrl_Alt_Del
New Member
hi, this is my schematic :
**broken link removed**
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <dos.h>
void main()
{
do
{
outportb(0x378, 0x80); <--- (0x80 ) set all PPI ports to output mode (10000000)
delay(900);
outportb(0x37a, 0x00); <--- makes the PPI read address A0 and A1 read with 0x80 data,
delay(900); <--- C0 and C1 at parallel port 0x37a are inverted, means 0 are 1, and 1 are 0
outportb(0x37a, 0x03);
delay(900);
outportb(0x378,0x00); <--- output to portA with data 00
delay(900);
outportb(0x378,0x01); <--- output to portA with data 01
delay(900);
outportb(0x378,0x02);
delay(900);
outportb(0x378,0x04);
delay(900);
}
while (!kbhit());
}
why it isnt working..?
but what i have look with 'port analysis' , output from parallel port does working... its running..
but it wont "get in" to 8255 chip..
and also i use "giveio" program to open ports with winXp
**broken link removed**
and how high does voltage from data bus D0-D7 output from parallel port ? is it 5v ?
because my computer only gives less than 2 volt..
is that enoungh to work with 8255 ?
**broken link removed**
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <dos.h>
void main()
{
do
{
outportb(0x378, 0x80); <--- (0x80 ) set all PPI ports to output mode (10000000)
delay(900);
outportb(0x37a, 0x00); <--- makes the PPI read address A0 and A1 read with 0x80 data,
delay(900); <--- C0 and C1 at parallel port 0x37a are inverted, means 0 are 1, and 1 are 0
outportb(0x37a, 0x03);
delay(900);
outportb(0x378,0x00); <--- output to portA with data 00
delay(900);
outportb(0x378,0x01); <--- output to portA with data 01
delay(900);
outportb(0x378,0x02);
delay(900);
outportb(0x378,0x04);
delay(900);
}
while (!kbhit());
}
why it isnt working..?
but what i have look with 'port analysis' , output from parallel port does working... its running..
but it wont "get in" to 8255 chip..
and also i use "giveio" program to open ports with winXp
**broken link removed**
and how high does voltage from data bus D0-D7 output from parallel port ? is it 5v ?
because my computer only gives less than 2 volt..
is that enoungh to work with 8255 ?