Datasheet

Table Of Contents
ADuC832 Data Sheet
Rev. B | Page 2 of 92
TABLE OF CONTENTS
Features .............................................................................................. 1
Applications ....................................................................................... 1
Functional Block Diagram .............................................................. 1
General Description ......................................................................... 1
Revision History ............................................................................... 4
Specifications ..................................................................................... 6
Timing Specifications ................................................................ 10
Absolute Maximum Ratings .......................................................... 20
ESD Caution ................................................................................ 20
Pin Configurations and Function Descriptions ......................... 21
Typical Performance Characteristics ........................................... 26
Terminology .................................................................................... 29
ADC Specifications .................................................................... 29
DAC Specifications..................................................................... 29
Explanation of Typical Performance Plots .................................. 30
Memory Organization ................................................................... 31
Flash/EE Program Memory ...................................................... 31
Flash/EE Data Memory ............................................................. 31
General-Purpose RAM .............................................................. 31
External Data Memory (External XRAM) .............................. 32
Internal XRAM ........................................................................... 32
Special Function Registers (SFRs) ................................................ 33
Accumulator SFR (ACC) ........................................................... 33
B SFR (B) ..................................................................................... 33
Stack Pointer (SP and SPH)....................................................... 33
Data Pointer (DPTR) ................................................................. 33
Program Status Word (PSW) .................................................... 33
Power Control SFR (PCON) ..................................................... 33
Special Function Registers ............................................................. 34
ADC Circuit Information .............................................................. 35
General Overview ....................................................................... 35
ADC Transfer Function ............................................................. 35
Typical Operation ....................................................................... 35
Driving the Analog-to-Digital Converter ............................... 39
Voltage Reference Connections ................................................ 40
Configuring the ADC ................................................................ 41
ADC DMA Mode ....................................................................... 41
Micro-Operation During ADC DMA Mode .......................... 42
ADC Offset and Gain Calibration Coefficients ..................... 42
Calibrating the ADC ...................................................................... 43
Initiating Calibration in Code ...................................................... 44
Nonvolatile Flash/EE Memory ..................................................... 45
Flash/EE Memory Overview .................................................... 45
Flash/EE Memory and the ADuC832 ..................................... 45
ADuC832 Flash/EE Memory Reliability ................................. 45
Using the Flash/EE Program Memory .................................... 46
Flash/EE Program Memory Security ....................................... 47
Using the Flash/EE Data Memory ............................................... 48
ECONFlash/EE Memory Control SFR ................................ 48
Example: Programming the Flash/EE Data Memory ............ 49
Flash/EE Memory Timing ........................................................ 49
ADuC832 Configuration SFR (CFG832) ................................ 50
User Interface to Other On-Chip ADuC832 Peripherals ......... 51
DAC .............................................................................................. 51
Using the DAC ............................................................................ 52
On-Chip PLL................................................................................... 54
PLLCON (PLL Control Register) ............................................. 54
Pulse-Width Modulator (PWM) .................................................. 55
PWMCON (PWM Control SFR) ............................................. 55
PWM Modes of Operation............................................................ 56
Mode 0: PWM Disabled ............................................................ 56
Mode 1: Single Variable Resolution PWM ............................. 56
Mode 2: Twin 8-Bit PWM ......................................................... 56
Mode 3: Twin 16-Bit PWM ....................................................... 56
Mode 4: Dual NRZ 16-Bit Σ-Δ DAC ....................................... 57
Mode 5: Dual 8-Bit PWM ......................................................... 57
Mode 6: Dual RZ 16-Bit Σ-Δ DAC .......................................... 57
Serial Peripheral Interface ............................................................. 58
MISO (Master Input, Slave Output Data Pin) ............................ 58
MOSI (Master Output, Slave Input Pin) ................................. 58
SCLOCK (Serial Clock I/O Pin) .............................................. 58
SS
(Slave Select Input Pin)......................................................... 58
Using the SPI Interface .............................................................. 59
SPI InterfaceMaster Mode .................................................... 59
SPI InterfaceSlave Mode ........................................................ 59
I
2
C-Compatible Interface .............................................................. 60
I
2
C Interface SFRs ....................................................................... 60
Overview ..................................................................................... 61
Software Master Mode ............................................................... 61
Hardware Slave Mode ................................................................ 61