Upload
athnasyous-salah
View
45
Download
7
Embed Size (px)
Citation preview
.
. . . . . . . . . . .
. / . / / . .
" "
" "
.
.
.
:
.
.
.
.
.
.
.
, . , . , . , . , . , .
. : .
.
.
, .
, . , . , .
. : .LPT , . , . , .
, . , .
. : . , . , . , . , . , .
, . , , .
. : .
, . , . , .
, : . , : . , : . , . , . , . . : .
, . , . , .
, .
, .
. : . , . , .
. . . . . .
. .
. .
. .
, :
) ( ) ( . ".
"
, :
.
" " "
:
. ) (
: . : .
.
. .
, :.
Dot Matrix LED Displays
.
- .
: ++.- .
- .
- .
, : :
-
.
- - - - - . . .
.
, :
.
.
:
System Programming
, :
Using Computer
How To Control To The Outside World :
- - Interface . - . .
- .
, :
- .
: .product . . .- .
, : .
)(
.
:
.
. . .
. . .
:
. . .
.
:
:
: .
.
: .
.
: .
.
.
: .
:
.
. . . . .
:
: .
.
: .
* : . , , )( )( )( 7*5 74LS138 Decoder 74LS164 Shift Register . . . . . . . . . .
74LS373 Latch
,
74LS04 Not Gate
74LS76 JK Flip Flop 100 Resistor
. . . . UTP . .
,
:.
. . .
.
.
. . .
, :
.
,
" : . ".
. . Portable .- .
LPT
, :
Robots .. ...
.
Microcontroller EEPROM ) Centronics Centronics (.
)52 (DB . ISA/PCI
4991 IEEE 12345Compatibility Mode Nibble Mode Byte Mode ) EPP ( Enhanced Parallel Port ) ECP ( Extended Capabilities Port
, :
4821 :
) . Standard Parallel Port (SPP ECP
EPP .
50KByte/S 150KByte/S Nibble Byte Nibble 4 : Byte 8 EPP Intel Xircom ) (
Compatibility Centronics
.
Zenith Data System EPP 7.1 EPP 4821 IEEE 7.1 EPP 9.1 EPP Handshaking ... Strobing EPP 500KB/S 2MB/S
EPP ECP EPP
ECP
Handshaking Common Glue Logic .
,
) ( Data Lines port IBM Control Lines 2/ PS Output ) Read-Back-Register (
Status Line Standard Parallel
.TTL
) ( Centronics 52DB
, :
52 DB :
52 DB : - ) ( - ) ( -
. .1 2 3 4 5 6 7 8 01 11 21 31 41 51 61 52-81 71 9
nStrobe 0Data 1Data 2Data 3Data 4Data 5Data 6Data nAck Busy 7Data Paper-Out Linefeed nSelect-Printer Ground nInitialize nError Select
:In/Out Out Out Out Out Out Out Out Out In In In In/Out In/Out In/Out In In
- 0-Control 0-Data 1-Data 2-Data 3-Data 4-Data 5-Data 6-Data 6-Status 7-Data
Yes No No No No No No No No Yes No No No No Yes Yes No
7-Status 5-Status 1-Control 2-Control 3-Control 3-Status 4-Status
, :
: - . - . - . .....
) (
) ( : 0- Data 5 .
, :
3BCh ) .( BIOS
378h 1 LPT 2 LPT 278h 278h 378h h
.
3BCh 3BFh 378h 37Fh 278h 27Fh
ECP 2 LPT 1LPT
1 LPT2 LPT3 . LPT BIOS 3BCh 278h 3BCh 2 LPT
Bios
1 LPT 378h 2 LPT 378h . 278h 3. LPT
1 LPT
Jumpers 1 LPT2LPT 1 LPT Line PrinTer 1 LPT 378h 2 LPT 278h 3BCh 1 LPT 378h 1 LPT 278h 1 LPT 2 LPT 3 LPT 2 LPT .
1 LPT 1 LPT
BIOS 0000:040A 0000:040C 0000:040E 8040:0000
Lookup Table .
1 LPT 3 LPT 4 LPT 2LPT
BIOS 2 .
Base Address
:
: 1 LPT h
1 2 .
378h 379h BIOS Data Area . 37ah .
>#include #include #include #include #include #include #include #include