140 likes | 411 Views
ECE 521 Microprocessor Systems. UiTM MOTOROLA 68000 DIO TRAINER BOARD. INPUT/OUTPUT CONNECTOR. BOTTOM LAYER. TOP LAYER. ROM AT28C64B (ATMEL). Voltage regulator. 40 ways I/O Connector. Halt / Error LED. EVEN ROM. EVEN RAM. +12V Dc Power Socket. Power LED. Crystal Oscillator 10MHz.
E N D
INPUT/OUTPUT CONNECTOR BOTTOM LAYER TOP LAYER
ROM AT28C64B (ATMEL) Voltage regulator 40 ways I/O Connector Halt / Error LED EVEN ROM EVEN RAM +12V Dc Power Socket Power LED Crystal Oscillator 10MHz RESET BUTTON MOTOROLA 68000 MICROPROCESSOR ODD ROM ODD RAM
40-PIN IDE CABLE INPUT/OUTPUT INTERFACE CIRCUIT 68000 DIO TRAINER BOARD
EXAMPLE – CONNECTION TO LATCH TURN ON LED1 ORG $0 DC.L $204000 DC.L START ORG $400 START MOVE.B #$FD,$600000 END START TURN ON LED2 LED1 LED2 ORG $400 MOVE.B #%11111011,$600000 END START • Note : • MAIN PROGRAM START FROM ADDRESS $400 • RAM ADDRESS START FROM $200000 All Vcc and Gnd should be connected to here
EXAMPLE – CONNECTION TO BUFFER ORG $0 DC.L $204000 DC.L START ORG $400 START MOVE.W $A00000,D0 AND.B #$01,D0 CMP.B #0,D0 BEQ SWITCH BRA START SWITCH DO SOMETHING ….. ….. ….. BRA START END START All Vcc and Gnd should be connected to here
EXAMPLE – CONNECTION TO MORE THAN 1 I/O INTERFACE • ORG $0 • DC.L $204000 • DC.L START • ORG $400 • BUFFER EQU $400000 • LATCH EQU $800000 • START MOVE.W BUFFER,D0 • MOVE.B D0, LATCH • BRA START • END START
EXAMPLE – CONNECTION TO PIT 68230 D0-D7 D0-D7 PA0-PA7 DTACK* DTACK* PB0-PB7 R/W* R/W* CLK CLK PC0-PC7 RESET* RESET* A6-A23 MAD CS* (Register select pins) RS1-RS5 A1-A5 M68k M68230
EXAMPLE – CONNECTION TO PIT 68230 (PROGRAMMING) ORG $0 DC.L $204000 DC.L START ORG $400 BUFFER EQU $X00000 ; Yx OF YOUR CHOICES LATCH EQU $X00000 ; Yx OF YOUR CHOICES LED EQU $X00000 ; Yx OF YOUR CHOICES PGCR EQU $C00001 ; REFER TO 68230 DATASHEET PACR EQU $C0000x ; REFER TO 68230 DATASHEET PBCR EQU $C0000x ; REFER TO 68230 DATASHEET …. …. INIT MOVE.B #$00,PGCR ; PORT INITIALIZATION ROUTINE MOVE.B #$80,PACR ; FOR 68230 PI/T MOVE.B #$80,PBCR …. …. START MOVE.B #$55,LATCH ; MAIN PROGRAM STARTS HERE… …. …. END START