Baud rate is defined as the number of symbols per second transmitted. When using RS-232, this is equivalent to the number of bps. How long with it take to transmit the ASCII string
Real Time Computing!
with 1 parity bit and using RS-232 at 9600 baud?
The string to transmit consists of 20 characters. With ASCII encoding, there are 7 bits per character plus the 1 parity bit. Therefore, \((7+1)20=160\) symbols must be transmitted. At 9600 baud this will take \(160/9600=0.017\ \text{s}\).
Consider a microprocessor DI with an internal pullup resistor \(R_U\) to \(V_\text{dd}\), as shown in fig. ¿fig:gpio-i-u-dis?. We would like to reverse the direction of the floating value of the DI from high (\(V_\text{dd}\)) to low.
- Adding an external pulldown resistor \(R_D\) to ground, find the floating input pin voltage \(V_I\) in terms of \(V_\text{dd}\), \(R_U\), and \(R_D\).
- Show that for the pin to float in the correct direction, \(R_D < R_U\).
- Determine the power \(\mathcal{P}\) required of the digital source to maintain \(V_I\) when the input is floating.
- With \(R_U = 40\) k\(\Omega\) and \(V_\text{dd} = 3.3\) V, find the external pulldown resistance \(R_D\) in terms of \(V_I\) and \(\mathcal{P}\).
- If our logic family is \(3.3\)-V CMOS, what are the minimum and maximum values of \(R_D\)?
- Using your results from the previous parts, plot the required power \(\mathcal{P}\) over the range of \(R_D\) that satisfies our logic family.
- Make a recommendation for the value of \(R_D\) for a grid-powered application and another recommendation for a battery-powered application.
Drawing the circuit described results in the following diagram:
- This circuit is a standard voltage divider. Therefore, \(V_I=V_\text{dd}\frac{R_D}{R_D+R_U}\).
- For the pin to float in the correct direction, the voltage should be \(V_I<\frac{1}{2}V_\text{dd}\). Using the equation from the previous part, \(V_text{dd}\frac{R_D}{R_D+R_U}<\frac{1}{2}V_\text{dd}\). Simplifying results in the expression \(\frac{R_D}{R_D+R_U}<\frac{1}{2}\). Solving for \(R_D\) shows \(R_D<R_U\).
- Assuming that the DI has a high impedance, The power required is the power flowing through the two resistors. These resistors have a combined resistance of \(R=R_U+R_D\). Therefore, the power is \(\mathcal{P}=\frac{V_\text{dd}^2}{R}=\frac{V_\text{dd}^2}{R_U+R_D}\).
- In terms of \(V_I\), \(R_D\) can be solved using the answer to part a. First, solving the equation for \(R_D\) results in the equation \(R_D=R_U\frac{V_I}{V_\text{dd}-V_I}\). Substituting in the given values, \(R_D=40\ \text{k}\Omega\frac{V_I}{3.3\ \text{V}-V_I}\). Similarly, the power is, \(\mathcal{P}=\frac{10.89\ \text{V}^2}{R_D+40\ \text{k}\Omega}\), so \(R_D=\frac{10.89\ \text{V}^2}{\mathcal{P}}-40\ \text{k}\Omega\) TODO.
- There is no way to pull \(V_I\) too low; therefore, the minimum value for \(R_D\) is zero. The upper limit for \(R_D\) can be calculated using the \(3.3\) V CMOS low output voltage level of \(0.5\) V. Putting this value into the equation from the preview problem, \(R_D=40\ \text{k}\Omega\frac{0.5\ \text{V}}{3.3\ \text{V}-0.5\ \text{V}}=7.14\ \text{k}\Omega\).
- For a battery powered application, we should try to limit the power consumed. To do so, we should use the maximum resistance of \(R_D=7.14\ \text{k}\Omega\). However, resistors are not available in every value, but are instead commonly manufactured in what is called the E-series. The closest common value below \(7.14\) k\(\Omega\) is \(6.8\) k\(\Omega\). For a grid powered application, the power is less important. Therefore, a lower resistance can be used. However, a resistance of \(0\ \Omega\) would not would well, as it would make it nearly impossible to pull the input back up. Therefore, a non-zero resistance should be used. Therefore, a resistor lower in the normal range such as \(1\) k\(\Omega\) could be a good choice.
Consider a microprocessor DI with an internal pullup resistor \(R_U\) to \(V_\text{dd}\), as shown in fig. ¿fig:gpio-i-u-dis?. Due to the requirements of an attached digital circuit, we would like to reduce the pullup resistance to \(\gamma R_U\), where \(\gamma \in [0,1]\). We can achieve this by adding an external pullup resistor \(R_{UE}\).
- Derive an expression for \(R_{UE}\) in terms of \(\gamma\) and \(R_U\).
- If we need \(\gamma = 1/20\), and \(R_U = 40\) k\(\Omega\), which should we choose for \(R_{UE}\)?
- If the attached circuit is also floating (high-\(Z\) with no pull resistors), what is the total power \(\mathcal{P}_f\) flowing through the pullup resistors in terms of \(R_U\), \(R_{UE}\), and \(V_\text{dd}\)?
- If the attached circuit is a short to digital ground, what is the total power \(\mathcal{P}_s\) flowing through the pullup resistors in terms of \(R_U\), \(R_{UE}\), and \(V_\text{dd}\)?
The circuit described in this problem is:
- The total resistance of the pullup resistor circuit is \(R=\frac{1}{\frac{1}{R_U}+\frac{1}{R_{UE}}}\). Since the desired resistance is \(R=\gamma R_U\), the equations, \(\gamma R_u=\frac{1}{\frac{1}{R_U}+\frac{1}{R_{UE}}}\), can be solved for \(R_{UE}\). This results in the expression \(R_{UE}=\frac{1}{\frac{1}{\gamma R_U}-\frac{1}{R_U}}\).
- \(R_{UE}=\frac{1}{\frac{1}{40\ \text{k}\Omega / 20}-\frac{1}{40\ \text{k}\Omega}}=2.1\ \text{k}\Omega\).
- If the attached circuit is high impedance, the resistance to ground of the total circuit is \(R+\infty\). Therefore, no current or power flows (\(\mathcal{P}_f=0\)).
- In this case the total circuit only consists of the two parallel resistors. Therefore, \(\mathcal{P}_s=\frac{V_\text{dd}^2}{R}=V_\text{dd}^2\left(\frac{1}{R_U}+\frac{1}{R_{UE}}\right)\).
Online Resources for Section 3.13
No online resources.