it is 74hc595 pin compatible with SN74LS151N

Hi

I want to make this project 3-Wire Serial LCD using a Shift Register - Electronics-Lab.com
but i have SN74LS151N (texas instruments).
My question is pin compatible with original 74hc595 or not (and need some modifications on code)?

74hc595 -- SN74LS151N (texas instrument)

PIN 01 - PIN 03
PIN 02 - PIN 02
PIN 03 - PIN 01
PIN 04 - PIN 15
PIN 05 - ...
PIN 06 - ...
PIN 07 - PIN 13
PIN 08 - PIN 08
PIN 09 - ...
PIN 10 - ...
PIN 11 - ...
PIN 12 - PIN 07
PIN 13 - PIN 06
PIN 14 - PIN 05
PIN 15 - PIN 04
PIN 16 - PIN 16

I dont know from 74hc595 pins 5,6,9,10,11 what is equivalent pins on SN74LS151N.
Any help?

Those a totally different chips. No amount of code will make a 595 work like a 151 nor a 151 like a 595.

595 are made for output
151 are made for input

Pelle

This is a bit like a door that opens out when you want a door opens inwards.

They both look the same, even do a similar job but in this instance it's wrong

tnks for answer, i understand now.
in the future 'll use sn74 to program a keyboard (as input) on other project, and for this project i buy original 74hc595 cip.