You can make a behavioral model and put it in a subcircuit. Would that work for you?Hello:
Could someone tell me where I can find 74HCT640 model for LTspice?
Thanks!
Thank you for your response, Papabravo! I am familiar with the concept of subcircuits in LTspice, and I would appreciate if you could elaborate more on creating behavioral models.You can make a behavioral model and put it in a subcircuit. Would that work for you?
Well, from the datasheet of Texas Instruments we have the following diagram on page 1:Thank you for your response, Papabravo! I am familiar with the concept of subcircuits in LTspice, and I would appreciate if you could elaborate more on creating behavioral models.

I do have the74LVC1G125 and 74LVC1G126 which are tristate buffers. I think you might need to take the entire 74LVC1G.lib since the parts are put together from quite a few pieces.Hi papa'
With the intention of helping the TS with a hierarchical model of the hct640, I downloaded the Spice model for the CD74HC240, a supposed Tristate inverter.
Created a working model, but on testing it works as expected with the exception it does not go to a HiZ out state when not enabled. ??? ie: the output sinks current.
Do you have a fully working model of the 74HC240 that you could post?
E
Props Eric. You got the hang of that library pretty quickly.
I was modelling a general-purpose non-inverting type rather than the HCT640 specifically, but yes, just use the inverting outputs of A2 and A3 if modelling the '640.you need to modify the Ax outputs to inverting.