Adc Driver (Mc56F83Xx,Mc56F801X,Mc56F802X/3X) - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.9
ADC Driver
(MC56F83xx,MC56F801x,MC56F802x/3x)
This section describes the API for the MC56F83xx and MC56F80xx ADC on-chip module. The
functionality of the ADC module itself is described in the MC56F83xx Peripheral User
Manual, 56F8000 Peripheral Reference Manual and 56F802x/3x Peripheral Reference
Manual.
5.9.1
Introduction
The MC56F83xx devices can have up to two ADC modules (ADC A and ADC B). The
MC56F80xx devices contains only one ADC_A module. The ADC module has 2x4 analog
inputs, configurable as single-ended or differential. It can be configured for simultaneous
sampling of the two inputs, for sequential scanning and storing of up to 8 measurements and for
various other options. The ADC module can be synchronized with a PWM and a QTimer module.
The ADC module can be powered down manually or automatically.
This section describes the Analog-to-Digital Converter driver software, which provides the lowest
level software layer, interfacing hardware with software.
5.9.2
Quick Reference
This section is intended to be a source of quick access information, while the details are discussed
in Section 5.9.3.
Module base address
of / for
ADC (ADC_BASE)
ADC A (ADCA_BASE)
ADC B (ADCB_BASE)
5.9.2.1
API Definition
The following header files are needed in order to use the ADC device driver:
Required Header File(s):
#include "qs.h"
#include "adc.h"
The following information may be found in the header file adc.h.
Public Data Structure(s):
/* array of 8 result samples */
typedef UWord16 adc_tBuff[8];
FREESCALE SEMICONDUCTOR
Table 5-270. ADC Module Base Address
MC56F801x
MC56F802x/3x
0xF080
0xF080
N/A
0xF200
N/A
Targeting 56F8xxx Platform
MC56F832x
N/A
0xF200
N/A
N/A
MC56F83xx
N/A
0xF200
0xF240
5-349

Advertisement

Table of Contents
loading

Table of Contents