Week 4 Homework Assignment

Page 324, problems 46, 48
Page 467, review questions 1–4
Page 469, problems 55–60

Pg 324
46) For the PAC1 counter, which pin is used for the input pulse?
48) Program PACA to be an event counter. Use 16-bit mode, and display the binary count on PORTB and PORTA continuously. Set the initial count to 20,000.

Pg 467
1) In a DAC, input is _ (digital, analog) and output is (digital, analog).
2) In an ADC, input is _ (digital, analog) and output is (digital, analog).
3) DAC0808 is a(n) -bit D-to-A converter. 4) A The output of DAC0808 is in __ (current, voltage).
B True or false. The output of DAC0808 is ideal to drive a motor.

Pg 469
55) True or false. DAC0808 is the same as DAC1408.

56) Find the number of discrete voltages provided by the n-bit DAC for the following:
A n = 8
B n = 10
C n = 12

57) For DAC1408, if Iref = 2 mA, show how to get an Iout of 1.99 when all inputs are HIGH.

58) Find the Iout for the following inputs. Assume Iref = 2 mA for DAC0808.
A 10011001
B 11001100
C 11101110
D 00100010
E 00001001
F 10001000

59) To get a smaller step, we need a DAC with __ (more, fewer) digital inputs.

60) To get full-scale output, what should be the inputs for DAC?