0
\$\begingroup\$

Why does the adc_bridge not work when we have an input DC value?
The plot for v(1) appears but v(cmp) is blank.

.model adc_buff adc_bridge(in_low=0.5 in_high=0.5)
v7 1 0 5
Aad1 [1][cmp] adc_buff
.control
tran 0.02u 7u
plot v(1)
plot v(cmp)
.endc
.end
\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

You should have posted the error message as well:

Unknown model type adc_bridge - ignored

That's the reason you don't see any output for node cmd.


 

Check the manual, chapter 12 of the manual

You will find that adc_bridge is a XSPICE extension.

And at the beginning at chapter 12, it reads:

To make use of the XSPICE extensions, you need to compile them in.

I've no experience with that, but hope you can continue from here.

\$\endgroup\$
1
  • \$\begingroup\$ I didn't encounter any error while compiling. Moreover the code works completely fine when I replace v7 with a pulse voltage. The problem arises only for a dc input. Thanks for replying! \$\endgroup\$
    – dish
    Commented Mar 13, 2020 at 5:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.