LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Data Fields
LPC_ADC_T Struct Reference

Detailed Description

ADC register block structure.

Definition at line 57 of file adc_112x.h.

#include "adc_112x.h"

Data Fields

__IO uint32_t CTRL
 
__I uint32_t RESERVED0
 
__IO uint32_t SEQ_CTRL [ADC_SEQB_IDX+1]
 
__IO uint32_t SEQ_GDAT [ADC_SEQB_IDX+1]
 
__I uint32_t RESERVED1 [2]
 
__I uint32_t DR [9]
 
__I uint32_t RESERVED2 [3]
 
__IO uint32_t THR_LOW [2]
 
__IO uint32_t THR_HIGH [2]
 
__IO uint32_t CHAN_THRSEL
 
__IO uint32_t INTEN
 
__IO uint32_t FLAGS
 
__IO uint32_t TRM
 

Field Documentation

__IO uint32_t CHAN_THRSEL

A/D Channel Threshold Select Register. Specifies which set of threshold compare registers to use.

Definition at line 67 of file adc_112x.h.

__IO uint32_t CTRL

< ADCn Structure A/D Control Register. The AD0CR register must be written to select the operating mode before A/D conversion can occur.

Definition at line 58 of file adc_112x.h.

__I uint32_t DR[9]

A/D Channel Data Register. This register contains the result of the most recent conversion completed on channel n.

Definition at line 63 of file adc_112x.h.

__IO uint32_t FLAGS

A/D Flags Register. This register contains interrupt flags. - To be checked

Definition at line 69 of file adc_112x.h.

__IO uint32_t INTEN

A/D Interrupt Enable Register. This register contains enable bits that enable sequence-A, sequence-B, threshold compare and overrun interrupts.

Definition at line 68 of file adc_112x.h.

__I uint32_t RESERVED0

Definition at line 59 of file adc_112x.h.

__I uint32_t RESERVED1[2]

Definition at line 62 of file adc_112x.h.

__I uint32_t RESERVED2[3]

Definition at line 64 of file adc_112x.h.

__IO uint32_t SEQ_CTRL[ADC_SEQB_IDX+1]

A/D Sequence A & B Control Register. Controls triggering and channel selection for sonversion sequence.

Definition at line 60 of file adc_112x.h.

__IO uint32_t SEQ_GDAT[ADC_SEQB_IDX+1]

A/D Sequence A & B Global Data Register. Contains the result of the most recent A/D conversion for sequence.

Definition at line 61 of file adc_112x.h.

__IO uint32_t THR_HIGH[2]

A/D High Compare Threshold Register 0 & 1. Contains the higher threshold level for automatic threshold comparison.

Definition at line 66 of file adc_112x.h.

__IO uint32_t THR_LOW[2]

A/D Low Compare Threshold Register 0 & 1. Contains the lower threshold level for automatic threshold comparison.

Definition at line 65 of file adc_112x.h.

__IO uint32_t TRM

A/D Trim Register.

Definition at line 70 of file adc_112x.h.


The documentation for this struct was generated from the following file: