




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!





Prog_Prob_SolnEx.a Page 2 of 2 Printed: Wednesday, March 9, 2005 7:24:49 PM
58 ; If it is an upper case letter, changes it to lower case 59 ; Lower case letter or number is returned in d 60 61 addch: and.b #$7F,d0 ; mask off parity bit of character 62 cmp.b #$30,d0 ; see if it is less than $ 63 blt skip ; if so, skip 64 cmp.b #$39,d0 ; see if it is greater than $ 65 bgt skip ; if so, skip 66 move.w d0,d3 ; is a number - put in d3 (don't change d0) 67 and.w #$000F,d3 ; get the number by masking off upper bits 68 add.w d3,d2 ; add to sum in d 69 rts ; return from subroutine 70 skip: cmp.b #$41,d0 ; see if it is less than $41 (A) 71 blt skip1 ; if so, skip 72 cmp.b #$5A,d0 ; see if it is greater than $5A (Z) 73 bgt skip1 ; if so, skip 74 add.w #$20,d0 ; upper case letter - convert to lower 75 skip1: rts 76 77 data 78 msg1: dc.b 'Enter the number of characters to read (100 max): ' 79 msg2: dc.b 'Your entry was too big. Enter 100 characters: ' 80 msg3: dc.b 'Now enter the characters: ' 81 msg4: dc.b 'Here is the string (all lower case): ' 82 msg5: dc.b 'The sum of numbers entered is: ' 83 msg: ds.b 100 ; set aside 100 bytes of storage 84 nchar: dc.w 20 ; number of characters to read 85 even 86 end
SCLS177E − MARCH 1984 − REVISED AUGUST 2003
OE does not affect the internal operations of the flip-flops. Old data can be retained or new data can be entered while the outputs are in the high-impedance state.
FUNCTION TABLE (each flip-flop) INPUTS (^) OUTPUT OE CLK D
OUTPUT Q L ↑ H H L ↑ L L L H or L X Q H X X Z
OE
CLK
1D
1Q
1
11
2
19
To Seven Other Channels
1D
C
Supply voltage range, V (^) CC.......................................................... −0.5 V to 7 V Input clamp current, IIK (VI < 0 or VI > VCC ) (see Note 1).................................... ±20 mA Output clamp current, I (^) OK (VO < 0 or VO > VCC ) (see Note 1)................................ ±20 mA Continuous output current, IO (VO = 0 to VCC ).............................................. ±35 mA Continuous current through V (^) CC or GND.................................................. .±70 mA Package thermal impedance, θJA (see Note 2): DB package................................. 70 °C/W DW package................................. 58 °C/W N package................................... 69 °C/W NS package................................. 60 °C/W PW package................................. 83 °C/W Storage temperature range, Tstg.................................................. .−65°C to 150°C
† Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. NOTES: 1. The input and output voltage ratings may be exceeded if the input and output current ratings are observed.