This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TINA/Spice/LMH6401: TINA model for LMH6401: How to adjust the gain from the Macro file?

Part Number: LMH6401
Other Parts Discussed in Thread: TINA-TI,

Tool/software: TINA-TI or Spice Models

Hi,

I'm having difficulty understanding the Macro files for TINA models. 

For the LMH6401 how to I adjust the gain/attenuation by 1 dB steps in the Macro file similar to how it would actually operate? I don't know where these values are adjusted in the file. 

Thanks.

www.ti.com/.../description

  • Hi Alex,

    the gain is programmed by the help of inputs B0...B5. Set the inputs B0...B5 to VEE or VCC to programm the gain.

    Kai
  • Hi Kai,

    Thanks a lot for the reply. 

    Okay I'm kind of beginning to understand how the Macro files work, but do you think you could show me a quick example of how I would assign values to B0...B5 in the file I attached?

    I think this is done at the subcircuit at line 354. 

    If I know how to do that properly then at least I can begin experimenting. 

    Alex

    LMH6401.LIB

  • Hello Alex,

    It seems like you attached the part macro rather than your schematic. In the reference design schematic, all the binary inputs are initially set to the negative supply, allowing for a gain of 26dB as shown below:

    Table 10 on page 25 of the LMH6401 datasheet displays the binary setting needed to provide the desired gain. As another example I've shown another example of setting the gain to 13dB which would correspond to hex 06. This is shown below:

    I have attached a copy of the reference design file below.

    Best,

    Hasan Babiker

    sbom939a.tsc

  • Ohh okay I see now, this makes a lot more sense. Thank you very much.