

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Prepara tus exámenes
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Prepara tus exámenes con los documentos que comparten otros estudiantes como tú en Docsity
Encuentra los documentos específicos para los exámenes de tu universidad
Estudia con lecciones y exámenes resueltos basados en los programas académicos de las mejores universidades
Responde a preguntas de exámenes reales y pon a prueba tu preparación
Consigue puntos base para descargar
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Comunidad
Pide ayuda a la comunidad y resuelve tus dudas de estudio
Ebooks gratuitos
Descarga nuestras guías gratuitas sobre técnicas de estudio, métodos para controlar la ansiedad y consejos para la tesis preparadas por los tutores de Docsity
Activa los cinco sentidos. Tómate el tiempo necesario para hacer pausas y mirar detenidamente un objeto, o escuchar música distinta, o visitar un restaurante y probar sabores de un país lejano. Ponerse una venda en los ojos, o tocar diferentes objetos y olfatearlos, ayuda a que los sentidos se activen.
Tipo: Esquemas y mapas conceptuales
1 / 3
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


The Int macro within Micro-Cap is one of the most useful macros for system modeling. It pro- duces an output signal which is the integral of the input signal to the macro. With the current Int macro, the output is the integral of the waveform over the entire period of the simulation. There is no means of resetting the macro. This article will describe a revised macro circuit that adds a resetting capability to the integrator macro.
The standard integrator macro that is distributed with Micro-Cap is shown in Figure 1. Two parameters are passed to this macro: SCALE and VINIT. The SCALE parameter multiplies the integral by its defined value, and the VINIT parameter defines an initial value for the integration.
Fig. 1 - Standard Integrator macro circuit
The operation of the macro is fairly simple and takes advantage of the integrated nature of a capacitive voltage. The input voltage to the macro is converted by the G1 source into an equiva- lent current multiplied by the SCALE parameter. This current is then used to charge a capacitor. Since the value of the capacitor is 1 Farad, the voltage across it will be the integral of the current though the capacitor. The VINIT parameter is used to set the initial condition of the capacitor in order to provide an initial value that the integrated voltage is then built upon. The parallel resistor keeps the voltage finite when there is a DC voltage input. The E1 source then provides a buffered output which reproduces the integrated voltage across the capacitor at the output pin.
The standard integrator macro will be used as the basis for the resettable integrator macro. The resettable integrator macro circuit is shown in Figure 2. It passes the same two parameters, SCALE and VINIT, as the standard integrator macro. The basic operation of each of the macros is the same.
Fig. 2 - Resettable Integrator macro circuit
The main modification is that the parallel resistor has been replaced by an S (V-Switch) compo- nent. The input of the switch samples the voltage at the Reset pin, and the output of the switch models the parallel resistance of the integrator. The model statement for the switch is defined as:
.MODEL RPAR VSWITCH (RON=1u ROFF=1Meg VON=.75 VOFF=.25)
When the voltage at the Reset pin is below .25 volts, the switch will be off and the resistance of the switch will be 1Meg. The macro will then operate in the same manner as the standard integra- tor macro. When the voltage at the Reset pin is greater than .75 volts, the switch will be on and the resistance of the switch will be 1u. Note that the default value of RMIN, which sets the minimum absolute value of a resistance, in the Global Settings is 1u so this is the smallest the resistance can be without modifying that setting. The small parallel resistance will cause the capacitor to quickly discharge bringing the output voltage of the integrator down to zero volts which essentially resets the macro. The VINIT parameter will only set the value of the integrator at the beginning of the simulation. Any reset operation will use zero volts as the baseline. The Von and Voff parameters of the switch were assigned these specific values so that a boolean voltage waveform could be used on the Reset pin.
A 1e9 resistor on the Reset pin provides a DC path to ground for the node. With the addition of this resistor in the macro, the Reset pin can be left floating in a circuit that calls the macro. When floating, the Reset pin will be disabled, and the integrator will operate like the standard model.
The value of the capacitor in the macro has been set to 10mF in order to reduce the RC time constant when discharging the capacitor during the reset operation. Since the value of the capaci- tor does scale the voltage across the capacitor by the factor 1/C, the VofV dependent source (E1) at the output of the macro must also be scaled accordingly to compensate for this factor. Setting the value of E1 to 10m cancels the effect that the capacitor value has on the integrated waveform.