Professional Documents
Culture Documents
Objectives :
At the end of this lesson , students should be able to :
i. Explain how to interface 68000 microprocessor with peripheral device.
ii. Explain the function of buffer and latch and operation.
Chapter 10
Design Input/Output System
10.1 Introduction
• There are two ways to interface 68000 microprocessor with peripheral
devices.
a) Dedicated I/O
- A specific address is assign to I/O device
- Required a larger package
- Some of the 68000 feature would have be abandoned
10.2.1 Latch
• Use to interface output device with 68000 microprocessor.
• Example : 74LS574
: (Octal D-Type Positive Triggered Flip-flop)
74LS574 Pin Function
11 1 Output
Chapter 10
Design Input/Output System
10.2.1 Latch
• Interfacing latch (output LED) with the decoder
D0 – D7 : Odd address
10.2.1 Latch
• Example of program can be use to test connection of LED and latch
; Running Light
LED EQU $E00001 ; depend on the real address system
ORG $1000 ; depend on the real address system
START MOVE.B #%11111110 , D0
AGAIN MOVE.B D0 , LED
BSR DELAY ; delay 1s
ROL.B #1,D0
BRA AGAIN
END
10.2.1 Latch
• Interfacing latch (output 7-Segmen) with the decoder
Latch
Latch
10.2.1 Latch
• Interfacing latch (output 7-Segmen common cathode) with the decoder
Chapter 10
Design Input/Output System
10.2.1 Latch
• Example of program can be use to test connection of 7 segment and latch
CODE7 DC.B $40 , $79 , $24 , $30 , $19 , $12 , $12 , $02 , $78
DC.B $00 , $18 , $08 , $03 , $46 , $41, $21 , $06 , $0E
Chapter 10
Design Input/Output System
10.2.1 Latch
• Example of program can be use to test connection of 7 segment and latch
; Display 4 lower bit value at switch to 2 unit 7 segment
CODE7 $40 , $79 , $24 , $30 , $19 , $12 , $12 , $02 , $78
$00 , $18 , $08 , $03 , $46 , $41, $21 , $06 , $0E
Chapter 10
Design Input/Output System
10.2.1 Latch
• Interfacing latch (output 7-Segmen) with the decoder
• 7447 is a BCD to 7-segment decoder/driver
7447
7447
Latch
Latch
7447
7447
Common Anode Common Cathode
Chapter 10
Design Input/Output System
10.2.1 Latch
• Example of program can be use to test connection of latch and 7-Segment via
decoder 7447
; Display 8 bit value at switch to 2 unit 7 segment via decoder 7447 (BCD tot7 Segment)
BCC DISPLAY
10.2.2 Buffer
• Use to interface input device with 68000 microprocessor.
• Example : 74LS244
: (Octal Buffer with 3-State Output)
74LS244
D0 Q0
2 18
D1 16 Q1
4
D2 Q2 Pin Function
6 14
D3 Q3 D0 – D7 connect to input devices such as switch
8 12
D4 Q4
11 9 Q0 - Q7 connect to data bus of 68000.
D5 Q5
13 7 OE1* when active (LOW), contents of inputs D0-D7 are place to
D6 Q6
15 5 OE2* outputs Q.
D7 3 Q7
17
OE1 OE2
1 19
Chapter 10
Design Input/Output System
10.2.2 Buffer
• Interfacing buffer with switches (input)
D0 – D7 : Odd address
10.2.2 Buffer
• Interfacing buffer with switches (input)
Chapter 10
Design Input/Output System
10.2.2 Buffer
• Example of program can be use to test input switches
ORG $400400
START MOVE.B SWITCH , LED
BRA START
END
Chapter 10
Design Input/Output System
UDS*
LDS*
Chapter 10
Design Input/Output System
Steps :
a) For every chip, determine address range for each component
Chapter 10
Design Input/Output System
1 0 0 * * * * * * * * * * * * * * * X X X X X #
Chapter 10
Design Input/Output System
(even) (odd)
(even) (odd)
1 1 PI/T
UDS* LDS*
Chapter 10
Design Input/Output System
References
i. Antonakos, J. L., The 68000 Microprocessor: Hardware and Software
Principles and Applications 5th edition , Prentice Hall, 2004.
iii. Tocci, R. J., Digital Systems: Principles and Applications 9th edition, Prentice
Hall,2004.
iv. Floyd, T. L., Digital Fundamentals 8th edition, Prentice Hall, 2003.
v. Spasov, P., Microcontroller Technology: The 68HC11 and 68HC12 5th edition,