Keil Logo

Silicon Labs C8051F020/021/022/023 D/A Example Program

This example program shows how to configure and use the D/A Converter of the following microcontrollers:

  • Silicon Laboratories, Inc. C8051F020
  • Silicon Laboratories, Inc. C8051F021
  • Silicon Laboratories, Inc. C8051F022
  • Silicon Laboratories, Inc. C8051F023

This program generates a sine wave as an analog output of the DAC. The digital values that create the sine wave are submitted to the converter for every tick of the built-in timer.

To run this program...

  1. Select the device from the pull-down target list.
  2. Build the project (Project - Build Target).
  3. Start the uVision Debugger.
  4. Click Go or Run (F5).
  5. View the Analog Output values in the D/A Converter Peripheral Dialog.

µVision3 users may enable the built-in Logic Analyzer to view and measure the resulting analog signal graphically.

C8051F02X_DAC.ZIP (8.0K)
Friday, August 27, 2004
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.