Check: Output commands and complete calculations

Knowledge check · self-test
Check: Output commands and complete calculations
Checkpoint: DAC and Dimming. A DAC maps a code to a voltage according to its transfer function. An LED drive curve adds a separate step that maps the desired appearance to an output code. You now know: In the assumed endpoint model, codes 64, 128, 192, and 255 produce about 1.25 V, 2.51 V, 3.76 V, and 5 V on a 5 V reference. Check the actual DAC transfer function. On an ESP32, the same 50% code maps to about 1.65V because the built-in DAC uses a 3.3V output range. Gamma correction changes a 50% perceived LED setting from linear code 128 to about code 55 with gamma 2.2. A gamma curve maps a requested brightness to an output code. Compare that map with a straight-line code before choosing an answer.
Checkpoint: DAC and Dimming. A DAC maps a code to a voltage according to its transfer function. An LED drive curve adds a separate step that maps the desired appearance to an output code. You now know: In the assumed endpoint model, codes 64, 128, 192, and 255 produce about 1.25 V, 2.51 V, 3.76 V, and 5 V on a 5 V reference. Check the actual DAC transfer function. On an ESP32, the same 50% code maps to about 1.65V because the built-in DAC uses a 3.3V output range. Gamma correction changes a 50% perceived LED setting from linear code 128 to about code 55 with gamma 2.2. A gamma curve maps a requested brightness to an output code. Compare that map with a straight-line code before choosing an answer.
Use the stated converter model and reference in each question. Work the input or output fraction first, then check the code range.
For the stated endpoint model, the output is the code fraction times the reference. Check the device data sheet for its real transfer function.
Back to ADC and DAC: Conversion Calculations: Output commands and complete calculations