Analog Devices ADuC812 manual Location Name Description, CS3 CS2 CS1 CS0 CH#

Page 14

ADuC812

ADCCON2 – (ADC Control SFR #2)

The ADCCON2 register controls ADC channel selection and conversion modes as detailed below.

SFR Address:

D8H

SFR Power On Default Value:

00H

ADCI

DMA

CCONV

SCONV

CS3

CS2

CS1

CS0

 

 

 

 

Table IV. ADCCON2 SFR Bit Designations

 

 

 

 

 

Location

Name

Description

 

 

 

 

 

ADCCON2.7

ADCI

The ADC interrupt bit (ADCI) is set by hardware at the end of a single ADC conversion cycle or at the

 

 

end of a DMA block conversion. ADCI is cleared by hardware when the PC vectors to the ADC Interrupt

 

 

Service Routine.

 

 

ADCCON2.6

DMA

The DMA mode enable bit (DMA) is set by the user to enable a preconfigured ADC DMA mode opera-

 

 

tion. A more detailed description of this mode is given in the ADC DMA Mode section.

ADCCON2.5

CCONV

The continuous conversion bit (CCONV) is set by the user to initiate the ADC into a continuous mode of

 

 

conversion.

 

 

 

 

 

In this mode the ADC starts converting based on the timing and channel configuration already set up in

 

 

the ADCCON SFRs, the ADC automatically starts another conversion once a previous conversion

 

 

has completed.

 

 

ADCCON2.4

SCONV

The single conversion bit (SCONV) is set to initiate a single conversion cycle. The SCONV bit is

 

 

automatically reset to “0” on completion of the single conversion cycle.

ADCCON2.3

CS3

The channel selection bits (CS3-0) allow the user to program the ADC channel selection under

ADCCON2.2

CS2

software control. When a conversion is initiated the channel converted will be that pointed to by

ADCCON2.1

CS1

these channel selection bits. In DMA mode the channel selection is derived from the channel ID

ADCCON2.0

CS0

written to the external memory.

 

 

CS3

CS2

CS1

CS0

CH#

 

 

0

0

0

0

0

 

 

0

0

0

1

1

 

 

0

0

1

0

2

 

 

0

0

1

1

3

 

 

0

1

0

0

4

 

 

0

1

0

1

5

 

 

0

1

1

0

6

 

 

0

1

1

1

7

 

 

1

0

0

0

Temp Sensor

 

 

1

1

1

1

DMA STOP

 

 

All other combinations reserved

ADCCON3 – (ADC Control SFR #3)

The ADCCON3 register gives user software an indication of ADC busy status.

SFR Address:

F5H

SFR Power On Default Value:

00H

BUSY

RSVD

RSVD

RSVD

RSVD

RSVD

RSVD

RSVD

 

 

Table V. ADCCON3 SFR Bit Designations

 

 

 

Bit

Bit

 

Location

Status

Description

 

 

 

ADCCON3.7

BUSY

The ADC busy status bit (BUSY) is a read-only status bit that is set during a valid ADC conversion or

 

 

calibration cycle. Busy is automatically cleared by the core at the end of conversion or calibration.

ADCCON3.6

RSVD

ADCCON3.0–3.6 are reserved (RSVD) for internal use. These bits will read as zero and should only

ADCCON3.5

RSVD

be written as zero by user software.

ADCCON3.4

RSVD

 

ADCCON3.3

RSVD

 

ADCCON3.2

RSVD

 

ADCCON3.1

RSVD

 

ADCCON3.0

RSVD

 

–14–

REV. B

Image 14
Contents Functional Block Diagram General DescriptionTable of Contents ADuC812Temperature SENSOR10 ADC Channel Specifications DC ACCURACY3Calibrated Endpoint ERRORS5 DAC Channel Specifications DC ACCURACY11Watchdog Timer Characteristics DAC AC CharacteristicsFLASH/EE Memory Performance CHARACTERISTICS12 Power Supply Monitor CharacteristicsIsource = 80 ∝A Power REQUIREMENTS14, 15Digital Outputs Isource = 20 ∝AOrdering Guide Temperature Package Model Range Description OptionPIN Configuration Mnemonic Type Function Terminology ADC SpecificationsDAC Specifications Thus for a 12-bit converter, this is 74 dBARCHITECTURE, Main Features Memory OrganizationBit Name Description Default Value SFR Address SFR Notes Special Function RegistersADC Transfer Function ADC Circuit InformationGeneral Overview Typical OperationAQ0 #ADC Clks EFHAQ1 ADCCON1.1 T2CBit Location Status Description Location Name DescriptionCS3 CS2 CS1 CS0 CH# Table VI. Some Single-Supply Op Amps Op Amp Model CharacteristicsDriving the A/D Converter Voltage Reference Connections Configuring the ADCADC DMA Mode DMAP. Dmal must be written to first, followed by Where the ADC Results are to be written. This is done byExternal memory must be preconfigured. This consists Dmah and then by DmapNonvolatile Flash Memory SFR areaByte Program Sequence Eadrl EconB9H C6HCommand Byte Command Mode RNG1 FDHMode RNG0Using the D/A Converter Resistor String DAC Functional EquivalentSource and Sink Current Capability with Vref = VDD = 3 PRE1 PRE0 PRE2 C0HPRE2 WDR1CMP DFHDCH PsmiIspi F8HOOH WcolSPR1 SPR0 SPR1SPR0 F7HI2CCON 2C Control RegisterPin Alternate Function Compatible ON-CHIP PeripheralsTMOD, Tcon T2CONTF0 TF1TR1 TR0Mode 1 16-Bit Timer/Counter TIMER/COUNTER 0 and 1 Operating ModesMode 3 Two 8-Bit Timer/Counters EXF2 C8HTF2 RclkOFF CAP2 TR2 ModeRclk or Tclk SM0 SM1 SM0SM1 SM2Baud rate in Mode 0 is fixed RCAP2H RCAP2L SmodCLK ET2 A8HEadc ET1Source Priority Description Source Vector AddressExternal Memory Interface ADuC812 Hardware Design ConsiderationsClock Oscillator Level. The external POR circuit must be operational Down to 1.2 V or less. The timing diagram of illusADuC812-based system as well as during its normal power-on High it tracks the voltage on DVDD. These recommendationsVDD = 5 VDD = 3 Normal ModeIdle Mode Core NAs ⋅ Mclk +Grounding and Board Layout Recommendations System Grounding SchemesEmbedded Serial Port Debugger In-Circuit Serial Download AccessOther Hardware Considerations Quickstart Development System ADSIM-Windows SimulatorXTAL1 Width High XTAL1 Period 83.33 62.5 1000XTAL1 Width Low XTAL1 Rise Time12 MHz Variable Clock Parameter Min Max Unit External Program MemoryExternal Data Memory Read Cycle External Data Memory Write Cycle Serial Port Clock Cycle Time 12t CK Output Data Setup to Clock 700 10t CKInput Data Setup to Clock 300 2t CK + Input Data Hold after ClockParameter Min Max Unit I2C-COMPATIBLE Interface TimingSPI Master Mode Timing Cpha = Parameter Min Typ Max UnitData Output Setup before Sclock Edge 150 SS High after Sclock Edge SPI Slave Mode Timing Cpha =SS to Sclock Edge Data Output Valid after SS Edge Location Data Sheet changed from REV. a to REV. B Entire Data Sheet has been revisedOutline Dimensions Lead Plastic Quad Flatpack