This technical note shows by way of example the benefits of using the ADuC834 C library and describes how to use the C-library provided for the ADuC834.
This document is a technical note titled 'Using the ADuC834 C-library' published by Analog Devices. It serves as a guide for developers using the Keil uVision2 environment to program the ADuC834 MicroConverter microcontroller.
The text explains how to utilize the provided library functions (834keil.lib) and header files (lib834.h) to simplify C programming tasks such as ADC configuration, data acquisition, DAC output, timer management, and UART communication. It details the specific steps required to include these files in a Keil project and provides examples of code usage.
| Target Environment | Keil uVision2 |
|---|
Three files are required: the library itself (834keil.lib), the header file (lib834.h), and a modified C51s.lib library file.
Use the AdcCfg function, passing parameters for ADC0CON, ADCICON, and SF registers to set reference, channel selection, coding mode, range, and update rate.