Your speedo was operated off of a 4k pulse per mile 5 volt square wave signal from your 97 black box PCM. Some trans controllers can provide a suitable output to run the speedo, but most go and get a vssb off of a 93-95 truck and install that to provide the signal for your speedo as well as the 128,000 pulse per mile abs signal.