User ManualTable of ContentsFEATURES1GENERAL DESCRIPTION1SPECIFICATIONS3ABSOLUTE MAXIMUM RATINGS6ORDERING GUIDE6PIN FUNCTION DESCRIPTIONS7TERMINOLOGY8ADC SPECIFICATIONS8Integral Nonlinearity8Differential Nonlinearity8Offset Error8Full-Scale Error8Signal to (Noise + Distortion) Ratio8Total Harmonic Distortion8DAC SPECIFICATIONS8Relative Accuracy8Voltage Output Settling Time8Digital-To-Analog Glitch Impulse8ARCHITECTURE, MAIN FEATURES9MEMORY ORGANIZATION9OVERVIEW OF MCU-RELATED SFRs10Accumulator SFR10B SFR10Stack Pointer SFR10Data Pointer10Program Status Word SFR10Power Control SFR10SPECIAL FUNCTION REGISTERS11ADC CIRCUIT INFORMATION12General Overview12ADC Transfer Function12Typical Operation12ADCCON1 — (ADC Control SFR #1)13ADCCON2 — (ADC Control SFR #2)14ADCCON3 — (ADC Control SFR #3)14Driving the A/D Converter15Voltage Reference Connections16Configuring the ADC16ADC DMA Mode16Micro Operation During the ADC DMA Mode17The Offset and Gain Calibration Coefficients17Calibration18NONVOLATILE FLASH MEMORY18Flash Memory Overview18Flash/EE Memory and the ADuC81218ADuC812 Flash/EE Memory Reliability18Using the Flash/EE Program Memory19Serial Downloading (In-Circuit Programming)19Parallel Programming19Using the Flash/EE Data Memory19ECON–Flash/EE Memory Control SFR20Flash/EE Memory Timing20Using the Flash/EE Memory Interface20Erase-All20Program a Byte20USER INTERFACE TO OTHER ON-CHIP ADuC812 PERIPHERALS21Using the D/A Converter22WATCHDOG TIMER24POWER SUPPLY MONITOR25SERIAL PERIPHERAL INTERFACE26MISO (Master In, Slave Out Data I/O Pin), Pin #1926MOSI (Master Out, Slave In Pin), Pin #2726SCLOCK (Serial Clock I/O Pin), Pin #2626SS (Slave Select Input Pin), Pin #1226Using the SPI Interface27SPI Interface — Master Mode27SPI Interface — Slave Mode27I2C COMPATIBLE INTERFACE288051-COMPATIBLE ON-CHIP PERIPHERALS29Parallel I/O Ports 0–329Timers/Counters29Timer/Counter 0 and 1 Data Registers31TH0 and TL031TH1 and TL131TIMER/COUNTER 0 AND 1 OPERATING MODES32Mode 0 (13-Bit Timer/Counter)32Mode 1 (16-Bit Timer/Counter)32Mode 2 (8-Bit Timer/Counter with Auto Reload)32Mode 3 (Two 8-Bit Timer/Counters)32Timer/Counter 2 Data Registers33TH2 and TL233RCAP2H and RCAP2L33Timer/Counter Operation Modes3416-Bit Autoreload Mode3416-Bit Capture Mode34UART SERIAL INTERFACE35Mode 0: 8-Bit Shift Register Mode36Mode 1: 8-Bit UART, Variable Baud Rate36Mode 2: 9-Bit UART with Fixed Baud Rate36Mode 3: 9-Bit UART with Variable Baud Rate36UART Serial Port Baud Rate Generation36Timer 1 Generated Baud Rates37Timer 2 Generated Baud Rates37INTERRUPT SYSTEM38Interrupt Priority39Interrupt Vectors39ADuC812 HARDWARE DESIGN CONSIDERATIONS40Clock Oscillator40External Memory Interface40Power-On Reset Operation41Power Supplies41Power Consumption42Power-Saving Modes42Grounding and Board Layout Recommendations43OTHER HARDWARE CONSIDERATIONS44In-Circuit Serial Download Access44Embedded Serial Port Debugger44Single-Pin Emulation Mode45Enhanced-Hooks Emulation Mode45Typical System Configuration45QUICKSTART DEVELOPMENT SYSTEM45Download – In-Circuit Serial Downloader45DeBug – In-Circuit Debugger45ADSIM – Windows Simulator45TIMING SPECIFICATIONS46OUTLINE DIMENSIONS56Revision History56Size: 855 KBPages: 56Language: EnglishOpen manual