thank you..
why only for my eye???
here i upload the schematic..
i mean, when i am not connect the output from the parallel port to the input of the buffer 74244, the seven segment that selected by the 74138 is still light up and show "number 8", i don't know why, is it because the output of the 74244 is inverting, and while i didn't give the input to the buffer, it will indicated as low on input, therefore the output would be inverted and become high? but while i connect it and send data to the buffer, still the seven segment is light up and show "number 8".
can the code below work?
while(1){
/*i send data to 74138 to switch between four 7-seg, if i send 00 it will select one from four of the output, i will change between 00,04,08,and 0c, it would be clear if you see the truth table on datasheet*/
outportb(control,0x00^oxob);
/*and then i send data to the buffer, if it works, the number showed in the seven segment should not be "8", but must be changed, but the fact, it still show number "8"
outportb(data,0xf3);
}
the 74138 can work as decoder and demux, i used it as demux, it have 3 pins "enable" say E1, E2, and E3, E1 and E2 is active low, i connected it to ground, and E3 as inpur for demultiplexer, i connected it to Vcc, and it have three selector A,B, and C, so it have 8 outputs, i just use 4 of the outputs, therefore i connected the C to ground, so there is only two selector (A and B), and four output used. but while i change the input of the selector by 00, 01, 10, and 11, while it is 01, it works, the seven segment selected is change, and while 10, it also works, but only 00 and 11, two seven segment light up at once, why??
thank you very much..