Inputs
For testing purposes, you may want to use a protoboard equipped with a
voltage source and LED's for output. Refer to "Pin Layout" below
before connecting any pins.
Step 1
Connect all NC (no connection) pins, pin
#15,
and pin #35 to ground (GND).
Connect pin #5, and pin #25
to +5 volts (Vdd).
Step 2
Connect pin #28 (SHIFT), and
pin #8 (SH_AMT1) to +5V.
Connect pin #10 (SH_AMT4), pin #9
(SH_AMT2), pin #12 (SH_ARITH), and pin #11
(ROTATE) to ground to test for logical shifting.
Step 3
Connect pin #16 (IN7), pin #19
(IN4), and pin #23 to +5V.
Connect pin #17 (IN6), pin #18
(IN5), pin #19 (IN4), pin #20
(IN3), pin #21(IN2), and pin #22
(IN1) to ground.
Step 4
Connect pin #4 (OUT7), pin #3
(OUT6), pin #2 (OUT5), pin #1
(OUT4)
pin #40 (OUT3), pin #39
(OUT2), pin #38 (OUT1), and pin #37
(OUT0) to LED's respectively.
Step 5
Re-check pin connections and turn on protoboard.
Observe the output with the LED's and compare the results with the tables
below for each of the functions, namely, Logical Shifting , Arithmetic
Shifting, and Rotating.
Step 6
Repeat above steps with different values for the inputs
and again compare with the tables provided below.
Pin Layout

Tables for Logical Shifting
Input Time (ms)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Output Time (ms)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tables for Arithmetic Shifting
Input Time (ms)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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