Chapter 13
AVR Microcontroller And Embedded Systems · 19 exercises
Problem 1
True or false. The output of most sensors is analog.
3 step solution
Problem 2
True or false. A 10-bit ADC has 10-bit digital output.
3 step solution
Problem 11
Which of the following ADC sizes provides the best resolution? \(\begin{array}{lllll}\text { (a) 8-bit } & \text { (b) 10-bit } & \text { (c) 12-bit } & \text { (d) 16-bit } & \text { (e) They are all the same. }\end{array}\)
3 step solution
Problem 13
Calculate the step size for the following \(\mathrm{ADCs}\), if \(\mathrm{V}_{\text {ref }}\) is \(5 \mathrm{~V}\) : (a) 8-bit (b) 10-bit (c) 12-bit (d) 16-bit
5 step solution
Problem 16
With \(\mathrm{V}_{\mathrm{ref}}=2.56 \mathrm{~V}\), find the \(\mathrm{V}_{\text {in }}\) for the following outputs: (a) \(\mathrm{D} 7-\mathrm{D} 0=11111111\) (b) D7-D0 \(=10011001\) (c) D7-D0 \(=01101100\)
4 step solution
Problem 17
True or false. The ATmega32 has an on-chip A/D converter.
3 step solution
Problem 19
True or false. ATmega32 has 8 channels of analog input.
2 step solution
Problem 20
True or false. The unused analog pins of the ATmega32 can be used for \(\mathrm{I} / \mathrm{O}\) pins.
3 step solution
Problem 21
True or false. The A/D conversion speed in the ATmega32 depends on the crystal frequency.
3 step solution
Problem 24
True or false. The A/D module of the ATmega32 can convert only one channel at a time.
3 step solution
Problem 26
True or false. The A/D module of the ATmega32 can use the \(V_{c c}\) for \(V_{\text {ref }}\).
4 step solution
Problem 29
For the A/D of ATmega32, find the step size for each of the following \(V_{\text {ref }}\) : (a) \(\mathrm{V}_{\text {ref }}=1.024 \mathrm{~V}\) (b) \(\mathrm{V}_{\text {ref }}=2.048 \mathrm{~V}\) (c) \(\mathrm{V}_{\text {ref }}=2.56 \mathrm{~V}\)
5 step solution
Problem 33
With \(\mathrm{V}_{\text {ref }}=1.024 \mathrm{~V}\), find the \(\mathrm{V}_{\text {in }}\) for the following outputs: (a) D9-D0 \(=0011111111\) (b) D9-D0 \(=0010011000\) (c) D9-D0 \(=0011010000\)
6 step solution
Problem 35
With \(\mathrm{V}_{\text {ref }}=2.56 \mathrm{~V}\), find the \(\mathrm{V}_{\text {in }}\) for the following outputs: (a) D9-D0 = 1111111111 (b) D9-D0 \(=1000000001\) (c) D9-D0 \(=1100110000\)
5 step solution
Problem 42
Give the names of the interrupt flags for the A/D of the ATmega32. State to which register they belong.
2 step solution
Problem 44
What does it mean when a given sensor is said to have a linear output?
3 step solution
Problem 46
What is signal conditioning?
3 step solution
Problem 48
Find the number of discrete voltages provided by the \(n\)-bit DAC for the following: (a) \(n=8\) (b) \(n=10\) (c) \(n=12\)
5 step solution
Problem 50
Find the \(\mathrm{I}_{\mathrm{out}}\) for the following inputs. Assume \(\mathrm{I}_{\mathrm{ref}}=2 \mathrm{~mA}\) for DAC0808. (a) 10011001 (b) 11001100 (c) 11101110 (d) 00100010 (e) 00001001 (f) 10001000
4 step solution