Analog to digital converter

2 ビュー (過去 30 日間)
Roy Cooper
Roy Cooper 2020 年 6 月 29 日
回答済み: Sabin 2024 年 1 月 23 日
I am trying to join an XOR gate to a resistor like you would in constructing a DAC but I want the bits weighted equally then summed by an op amp. What do I need to do to convert a Logic High(5V) to be able to conect that to a 1k resistor?
Also, probably a simular problem, I cannot connect ground to and opamp to create an inverting opamp. Why? How do I fix it?
Yes I am new to the Simulink enviroment.

回答 (1 件)

Sabin
Sabin 2024 年 1 月 23 日
This circuit is fundamentally wrong because it is not possible to directly connect Simulink blocks to Simscape blocks. The way Simulink is interacting tom Simsape is via Simulink-PS Converter and PS-Simulink Converter and certain blocks that have a PS port (e.g., controlled Voltage Source, sensors, etc.). Secondly, the ground is also not from Simscape and therefore not possible to connect it to the opamp. An Electrical Reference should be used instead.

カテゴリ

Help Center および File ExchangeElectrical Sensors についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by