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.
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.
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
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