



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Grade Review Information: ( NOTE: deadline of request for grade review is the day the exam is returned .)
Part A. Fill in da Blanc.
Assuming that we will view this on a digital scope, also label the Y & X axis and show the bit width period value in micro- seconds.
(8 pt.)
5v
0v Start LSB 1 0 1 0 1 1 0 MSB 0 Parity Stop
Part D. Bus Driving & Fan Out
A student would like to add several output ports to their board such that several hundred LEDs can be turned on and off. Given the following table of specifications, answer the questions below:
68HC12 Data Bus 74F374 74HC374 Units IOL Maximum 40 30 22 mA IOL Minimum 37 25 17 mA
IOH Maximum -36 -29 -22 mA IOH Minimum -30 -27 -17 mA
IIL Maximum -160 -300 -180 uA IIL Minimum -140 -240 -160 uA
IIH Maximum 180 220 150 uA IIH Minimum 170 200 140 uA
Part D. I/O Ports and Memory Decoding.
Part D. I/O Ports and Memory Decoding Continued.
Assume that you still have the general purpose microprocessor that contains address lines A15:0 , data D15:0 , R/-W and a simple data strobe –DS.
$7800, 256 images = 2^8 so $78XX = 0111 1000 XXXX XXXX
A A1 4 A1 3 A1 2
~DS
A A1 4 A1 3 A1 2
CE
CE
A11:0 D7:
/CE /OE
R/~W
CE
A11:
GND
D15:
4K x 8
A11:0 D7:
/CE /OE
R/~W
CE
A11:
GND
D15:
4K x 8
A11:0 D7:
/CE /OE
R/~W
CE
A11:
GND
D7:
4K x 8
A11:0 D7:
/CE /OE
R/~W
CE
A11:
GND
D7:
4K x 8
R/~W
A A A A
Q7: D7:
/OE
D15: SW15:
374
Q7: D7:
/OE
D7:
~DS or System Clock
A A A A ~DS R/~W
374
~DS or System Clock
SW7:
+5V
+5V
Part F. 68HC12 Timing Mechanisms
13
RTI_ISR (8 pt.)
;--------------(optional-------------- bit7 equ % bit0 equ % RTIFLG equ $ PortT equ $00AE org $ counter ds.w 2289 (or 2288) ;--------------(optional)--------------
brclr RTIFLG, bit7, END_ISR ; optional, quit if there’s no flag
movb #bit7, RTIFLG ; clear flag ; ldaa #bit7, staa RTIFLG works too ; bset RTIFLG, bit7 is NOT the correct way ldx counter ; need a 16 bit register to hold 2289 dex ; beq five_mins ; counter reaches 0 ‡ 5 minutes reached
stx counter ; else, store counter value back to memory bra END_ISR ; and quit ISR
five_mins bclr PortT, bit0 ; toggle T0 only bset PortT, bit0 ; 8MHz ext clock ‡ 4MHz E-Clk ‡ 1 clk cycle = 250ns bclr PortT, bit0 ; so no other delay is needed movb #2288, counter ; restore counter value
END_ISR rti
5 minutes 2288 RTI interrupts fired
= 10ns