ADUC836 Analog Devices, ADUC836 Datasheet

no-image

ADUC836

Manufacturer Part Number
ADUC836
Description
Precision Analog Microcontroller: 1MIPS 8052 MCU + 62kB Flash + Dual 16-Bit ADC + 12-Bit DAC
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC836

Mcu Core
8052
Mcu Speed (mips)
1
Sram (bytes)
2304Bytes
Gpio Pins
34
Adc # Channels
4
Other
PWM

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC836BCPZ
Manufacturer:
ST
Quantity:
30 000
Part Number:
ADUC836BS
Manufacturer:
ADI
Quantity:
250
Part Number:
ADUC836BS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC836BSZ
Manufacturer:
ADI
Quantity:
150
Part Number:
ADUC836BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC836BSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
REV. A
Information furnished by Analog Devices is believed to be accurate and
reliable. However, no responsibility is assumed by Analog Devices for its
use, nor for any infringements of patents or other rights of third parties
that may result from its use. No license is granted by implication or other-
wise under any patent or patent rights of Analog Devices.Trademarks and
registered trademarks are the property of their respective companies.
FEATURES
High Resolution - ADCs
Memory
8051 Based Core
On-Chip Peripherals
Power
Package and Temperature Range
APPLICATIONS
Intelligent Sensors
Weigh Scales
Portable Instrumentation, Battery-Powered Systems
4–20 mA Transmitters
Data Logging
Precision System Monitoring
Time Interval Counter (Wake-Up/RTC Timer)
2 Independent ADCs (16-Bit Resolution)
16-Bit No Missing Codes, Primary ADC
16-Bit rms (16-Bit p-p) Effective Resolution @ 20 Hz
Offset Drift 10 nV/C, Gain Drift 0.5 ppm/C
62 Kbytes On-Chip Flash/EE Program Memory
4 Kbytes On-Chip Flash/EE Data Memory
Flash/EE, 100 Year Retention, 100 Kcycles Endurance
3 Levels of Flash/EE Program Memory Security
In-Circuit Serial Download (No External Hardware)
High Speed User Download (5 Seconds)
2304 Bytes On-Chip Data RAM
8051 Compatible Instruction Set
32 kHz External Crystal
On-Chip Programmable PLL (12.58 MHz Max)
3  16-Bit Timer/Counter
26 Programmable I/O Lines
11 Interrupt Sources, 2 Priority Levels
Dual Data Pointer, Extended 11-Bit Stack Pointer
Internal Power on Reset Circuit
12-Bit Voltage Output DAC
Dual 16-Bit - DACs/PWMs
On-Chip Temperature Sensor
Dual Excitation Current Sources
UART, SPI
High Speed Baud Rate Generator (Including 115,200)
Watchdog Timer (WDT)
Power Supply Monitor (PSM)
Normal: 2.3 mA Max @ 3.6 V (Core CLK = 1.57 MHz)
Power-Down: 20 A Max with Wake-Up Timer Running
Specified for 3 V and 5 V Operation
52-Lead MQFP (14 mm  14 mm), –40C to +125C
56-Lead LFCSP (8 mm  8 mm), –40C to +85C
®
, and I
2
C
®
Serial I/O
ADCs with Embedded 62 kB Flash MCU
MicroConverter
REFIN–
REFIN+
RESET
GENERAL DESCRIPTION
The ADuC836 is a complete smart transducer front end, integrating
two high resolution - ADCs, an 8-bit MCU, and program/data
Flash/EE memory on a single chip.
The two independent ADCs (primary and auxiliary) include a
temperature sensor and a PGA (allowing direct measurement
of low level signals).The ADCs with on-chip digital filtering and
programmable output data rates are intended for the measure-
ment of wide dynamic range, low frequency signals, such as those
in weigh scale, strain gage, pressure transducer, or temperature
measurement applications.
The device operates from a 32 kHz crystal with an on-chip PLL
generating a high frequency clock of 12.58 MHz. This clock is
routed through a programmable clock divider from which the MCU
core clock operating frequency is generated. The microcontroller
core is an 8052 and therefore 8051 instruction set compatible
with 12 core clock periods per machine cycle.
62 Kbytes of nonvolatile Flash/EE program memory, 4 Kbytes of
nonvolatile Flash/EE data memory, and 2304 bytes of data RAM
are provided on-chip. The program memory can be configured as
data memory to give up to 60 Kbytes of NV data memory in data
logging applications.
On-chip factory firmware supports in-circuit serial download and
debug modes (via UART), as well as single-pin emulation mode
via the EA pin. The ADuC836 is supported by a QuickStart™
development system featuring low cost software and hardware
development tools.
One Technology Way, P .O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781/329-4700
Fax: 781/326-8703
DGND
DV
AIN1
AIN2
AIN3
AIN4
AIN5
DD
XTAL1
EXTERNAL
DETECT
V
POR
MUX
MUX
OSC
REF
AV
XTAL2
DD
FUNCTIONAL BLOCK DIAGRAM
SENSOR
AGND
TEMP
PLL AND PROG
CLOCK DIV
BUF
RTC TIMER
BAND GAP
INTERNAL
WAKE- UP/
V
REF
© 2003 Analog Devices, Inc. All rights reserved.
PGA
16-BIT - ADC
®
AUXILIARY
, Dual 16-Bit -
ADuC836
16-BIT - ADC
BAUD R ATE TIMER
62 KBYTES FLASH/EE PROGRAM MEMORY
3  16 BIT TIMERS
PRIMARY
4  PARALLEL
4 KBYTES FLASH/EE DATA MEMORY
8051-BASED MCU WITH ADDITIONAL
PORTS
2304 BYTES USER RAM
PERIPHERALS
ADuC836
- DAC
16-BIT
DUAL
16-BIT
AV
12-BIT
DUAL
PWM
DAC
POWER SUPPLY MON
DD
WATCHDOG TIMER
UART, SPI, AND I
SERIAL I/O
www.analog.com
CURRENT
SOURCE
MUX
BUF
2
C
IEXC1
IEXC2
DAC
PWM0
PWM1

Related parts for ADUC836

ADUC836 Summary of contents

Page 1

... On-chip factory firmware supports in-circuit serial download and debug modes (via UART), as well as single-pin emulation mode via the EA pin. The ADuC836 is supported by a QuickStart™ development system featuring low cost software and hardware development tools. One Technology Way, P .O. Box 9106, Norwood, MA 02062-9106, U.S.A. ...

Page 2

... Reference Detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 - Modulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Digital Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 ADC Chopping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 NONVOLATILE FLASH/EE MEMORY Flash/EE Memory Overview . . . . . . . . . . . . . . . . . . . . . . . .29 Flash/EE Memory and the ADuC836 . . . . . . . . . . . . . . . . .29 ADuC836 Flash/EE Memory Reliability . . . . . . . . . . . . . . .29 Flash/EE Program Memory . . . . . . . . . . . . . . . . . . . . . . . .30 Serial Downloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 Parallel Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 User Download Mode (ULOAD .31 Flash/EE Program Memory Security . . . . . . . . . . . . . . . . . .31 Lock, Secure, and Serial Safe Modes . . . . . . . . . . . . . . . . . .31 Using the Flash/EE Data Memory ...

Page 3

... Hz Update Rate 13.5 Range = ±20 mV Update Rate 16 Range = ±2. Update Rate See Tables X and XI in Output Noise Varies with Selected ADuC836 ADC Description Update Rate and Gain Range ±15 1 LSB ±3 ±10 ±10 Range = ± ±640 mV ±0.5 Range = ±1. ±2.56 V ± ...

Page 4

... ANALOG (DAC) OUTPUT Voltage Range Resistive Load Capacitive Load Output Impedance I SINK TEMPERATURE SENSOR Accuracy Thermal Impedance ( ADuC836 Test Conditions/Comments 1.25 ± 1% Initial Tolerance @ 25° 100 2.5 ± 1% Initial Tolerance @ 25° ±100 External Reference Voltage = 2.5 V RN2, RN1, RN0 of ADC0CON Set to ± ...

Page 5

... –5– ADuC836 Unit nA typ nA typ % typ %/°C typ A typ % typ ppm/°C typ % typ ppm/°C typ A/V typ A/V typ V max V min V max V max V min V min/V max V min/V max ...

Page 6

... Wake-Up with SPI Interrupt Wake-Up with TIC Interrupt Wake-Up with External RESET Oscillator Powered Down Wake-Up with INT0 Interrupt Wake-Up with SPI Interrupt Wake-Up with External RESET FLASH/EE MEMORY RELIABILITY CHARACTERISTICS 16 Endurance 17 Data Retention ADuC836 Test Conditions/Comments 0.4 ...

Page 7

... Osc Osc. Off = 125°C; Osc Osc. Off = 2 3 5.25 V, Core CLK = 1.57 MHz = 85°C; Osc. On, TIC On = 125°C; Osc. On, TIC 85°C; MAX = 5. 125°C; MAX ADuC836 Unit V min V max V min V max V min V max V min V max mA max mA typ mA max  ...

Page 8

... ADuC836 NOTES 1 Temperature range for ADuC836BS (MQFP package) is –40°C to +125°C. Temperature range for ADuC836BCP (CSP package) is –40°C to +85°C. 2 These numbers are not production tested but are guaranteed by design and/or characterization data on production release. 3 System Zero-Scale Calibration can remove this error. ...

Page 9

... CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the ADuC836 features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges.Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality ...

Page 10

... IEXC 1 CURRENT SOURCE MUX IEXC *PIN NUMBERS REFER TO THE 52-LEAD MQFP PACKAGE SHADED AREAS REPRESENT THE NEW FEATURES OF THE ADuC836 OVER THE ADuC816 Pin No. Pin No. 52-Lead 56-Lead MQFP CSP Mnemonic 1, 2 56, 1 P1.0/P1.1 P1.0/T2/PWM0 P1.1/T2EX/PWM1 I/O 3–4, 2–3, P1.2– ...

Page 11

... I Input to the Crystal Oscillator Inverter O Output from the Crystal Oscillator Inverter. (See the Hardware Design Considerations section for description.) –11– ADuC836 SPI Interface input, this pin is a ...

Page 12

... ADuC836 Pin No. Pin No. 52-Lead 56-Lead MQFP CSP Mnemonic PSEN 42 45 ALE 43–46 46–49 P0.0–P0.7 49–52 52–55 (AD0–AD3 Input Output Supply. PIN FUNCTION DESCRIPTIONS (continued) Type* Description I/O External Access Enable, Logic Input. When held high, this input enables the device to fetch code from internal program memory locations 0000h to F7FFh ...

Page 13

... Figure 2. Lower 128 Bytes of Internal Data Memory (4) Internal XRAM The ADuC836 contains 2 Kbytes of on-chip extended data mem- ory. This memory, although on-chip, is accessed via the MOVX instruction. The 2 Kbytes of internal XRAM are mapped into the bottom 2 Kbytes of the external address space if the CFG836.0 bit is set ...

Page 14

... MOVX instruction. The MOVX instruction automatically outputs the various control strobes required to access the data memory. The ADuC836, however, can access Mbytes of external data memory. This is an enhancement of the 64 Kbytes external data memory space available on a standard 8051 compatible core. ...

Page 15

... Table II. The TIC (Wake-Up/RTC timer) can be used to accurately wake up the ADuC836 from power-down at regular intervals. To use the TIC to wake up the ADuC836 from power-down, the OSC_PD bit in the PLLCON SFR must be clear and the TIC must be enabled. ...

Page 16

... ADuC836 COMPLETE SFR MAP Figure 6 shows a full SFR memory map and the SFR con- tents after RESET. NOT USED indicates unoccupied SFR locations. Unoccupied locations in the SFR address space are ISPI WCOL SPE SPIM CPOL CPHA FFH 0 FEH 0 FDH 0 FCH 0 FBH ...

Page 17

... GN0M/H GN1L/H Table IV. ADCSTAT SFR Bit Designations . REF –17– ADuC836 Primary ADC 16-bit conversion result is held in these two 8-bit registers. Auxiliary ADC 16-bit conversion result is held in these two 8-bit registers. Primary ADC 16-bit Offset Calibration Coefficient is held in these two 8-bit registers. ...

Page 18

... ADuC836 ADCMODE (ADC Mode Register) Used to control the operational mode of both ADCs. SFR Address D1H Power-On Default Value 00H Bit Addressable No Bit Name Description 7 ––– Reserved for Future Use 6 ––– Reserved for Future Use 5 ADC0EN Primary ADC Enable. ...

Page 19

... V–2. Unipolar Mode) Table VII. ADC1CON SFR Bit Designations Positive Input Negative Input AIN3 AGND AIN4 AGND Temp Sensor AGND (Temp Sensor routed to the ADC input) AIN5 AGND –19– ADuC836 ). REF Auxiliary ADC Control SFR D3H 00H No = 1.25 V). REF = 2.5 V) REF ...

Page 20

... ADuC836 ADC0H/ADC0M (Primary ADC Conversion Result Registers) These two 8-bit registers hold the 16-bit conversion result from the primary ADC. SFR Address ADC0H ADC0M Power-On Default Value 00H Bit Addressable No ADC1H/ADC1L (Auxiliary ADC Conversion Result Registers) These two 8-bit registers hold the 16-bit conversion result from the auxiliary ADC. ...

Page 21

... SF Register will MOD be that programmed by user software. SF(dec and con- ADC 255 Table IX. ICON SFR Bit Designations –21– ADuC836 . As mentioned earlier, all calibra- ADC Table VIII. SF SFR Bit Designations SF(hex) f (Hz) ADC 0D 105 ...

Page 22

... ADuC836 PRIMARY AND AUXILIARY ADC NOISE PERFORMANCE Tables X, XI, and XII show the output rms noise in mV and output peak-to-peak resolution in bits (rounded to the nearest 0.5 LSB) for some typical output update rates on both the primary and auxiliary ADCs. The numbers are typical and are generated at a differential input voltage of 0 V.The output update rate is selected Table X. Primary ADC, Typical Output RMS Noise ( ...

Page 23

... PRIMARY AND AUXILIARY ADC CIRCUIT DESCRIPTION Overview The ADuC836 incorporates two independent - ADCs (primary and auxiliary) with on-chip digital filtering intended for the mea- surement of wide dynamic range, low frequency signals such as those in weigh-scale, strain gage, pressure transducer, or tempera- ture measurement applications ...

Page 24

... ADC. When the analog input channel is switched, the settling time of the part must elapse before a new valid word is available from the ADC. DIFFERENTIAL REFERENCE THE EXTERNAL REFERENCE INPUT TO THE ADuC836 IS DIFFERENTIAL AND FACILITATES RATIOMETRIC OPERATION. THE EXTERNAL - ADC REFERENCE VOLTAGE IS SELECTED VIA THE XREF1 BIT IN ADC1CON. THE  ...

Page 25

... For example, if AIN(–) is 2.5 V and the primary ADC is configured for an analog input range mV, the input voltage range on the AIN(+) input AIN(–) is 2.5 V and the ADuC836 is configured for an analog input range of 1.28 V, the analog input range on the AIN(+) input is 1. 3.78 V (i.e., 2.5 V ± 1.28 V). ...

Page 26

... REFIN(+) and REFIN(–) pins goes below 0 either the REFIN(+) or REFIN(–) inputs is open circuit, the ADuC836 detects that it no longer has a valid reference. In this case, the NOXREF bit of the ADCSTAT SFR is set the ADuC836 is performing normal conversions and the NOXREF bit becomes active, the conversion results revert to all 1s ...

Page 27

... In this manner, the 1-bit output of the comparator is translated into a band-limited, low noise output from the ADuC836 ADCs. The ADuC836 filter is a low-pass, SIN primary function is to remove the quantization noise introduced at the modulator ...

Page 28

... The ADuC836 provides four calibration modes that can be pro- grammed via the mode bits in the ADCMODE SFR detailed in Table V. In fact, every ADuC836 has already been factory cali- brated. The resultant Offset and Gain calibration coefficients for both the primary and auxiliary ADCs are stored on-chip in manufacturing-specific Flash/EE memory locations ...

Page 29

... REV. A ADuC836 Flash/EE Memory Reliability The Flash/EE program and data memory arrays on the ADuC836 are fully qualified for two key Flash/EE memory characteristics: Flash/EE Memory Cycling Endurance and Flash/EE Memory Data Retention. ...

Page 30

... ADuC836 Flash/EE Program Memory The ADuC836 contains a 64 Kbyte array of Flash/EE program memory. The lower 62 Kbytes of this program memory are avail- able to the user, and can be used for program storage or indeed as additional NV data memory. The upper 2 Kbytes of this Flash/EE program memory array con- tain permanently embedded firmware, allowing in-circuit serial download, serial debug, and nonintrusive single pin emulation ...

Page 31

... Figure 19. ULOAD mode can be used to upgrade your code in the field via any user defined download protocol. Configuring the SPI port on the ADuC836 as a slave possible to completely reprogram the 56 Kbytes of Flash/EE program memory in only 5 seconds (see Application Note uC007). ...

Page 32

... ADuC836 Using the Flash/EE Data Memory The 4 Kbytes of Flash/EE data memory are configured as 1024 pages, each of four bytes. As with the other ADuC836 peripherals, the interface to this memory space is via a group of registers mapped in the SFR space. A group of four data regis- ters (EDATA1–A4) is used to hold the four bytes of data at each page ...

Page 33

... Flash/EE array.This command coded in 8051 assembly would appear as: MOV ECON,#06H ; Erase all Command ; 2 ms Duration Flash/EE Memory Timing Typical program and erase times for the ADuC836 are as follows: Normal Mode (operating on Flash/EE data memory) READPAGE (4 bytes) WRITEPAGE (4 bytes) VERIFYPAGE (4 bytes) ...

Page 34

... ADuC836 DAC The ADuC836 incorporates a 12-bit voltage output DAC on-chip. It has a rail-to-rail voltage output buffer capable of driving 10 k/100 pF. It has two selectable ranges nal band gap 2.5 V reference) and 12-bit or 8-bit mode.The DAC has a control register, DACCON, and two data registers, DACH/L ...

Page 35

... The endpoint nonlinearities conceptually illustrated in Figure 22 get worse as a function of output loading. Most of the ADuC836 data sheet specifications assume a 10 k resistive load to ground at the DAC output. As the output is forced to source or sink more current, the nonlinear regions at the top or bottom (respectively) of Figure 22 become larger ...

Page 36

... ADuC836 PULSEWIDTH MODULATOR (PWM) The PWM on the ADuC836 is a highly flexible PWM offering programmable resolution and input clock, and can be configured for any one of six different modes of operation.Two of these modes allow the PWM to be configured as a - DAC with bits of resolution ...

Page 37

... PWM1H/L, PWM1 (P1.1) goes low and remains low until the P1.0 PWM counter rolls over. In this mode, both PWM outputs are synchronized (i.e., once the PWM counter rolls over to 0, both PWM0 (P1.0) and PWM1 (P1.1) will go high). Figure 29. PWM Mode 3 –37– ADuC836 PWM1L PWM COUNTER PWM0H PWM0L PWM1H 0 P1.0 P1 ...

Page 38

... ADuC836 Mode 4: Dual NRZ 16-Bit - DAC Mode 4 provides a high speed PWM output similar to that of a - DAC. Typically, this mode will be used with the PWM clock equal to 12.58 MHz. In this mode, P1.0 and P1.1 are updated every PWM clock ( the case of 12.58 MHz). Over any 65536 cycles (16-bit PWM), PWM0 (P1.0) is high for PWM0H/L cycles and low for (65536 – ...

Page 39

... In this mode, the PLL output can be 12.58 MHz ± 20%. After the ADuC836 wakes up from power-down, user code may poll this bit to wait for the PLL to lock. If LOCK = 0, then the PLL is not locked. ...

Page 40

... MIN, and HOURS SFRs. To ensure that these registers are cleared, TCEN must be held low for at least 30.5 s (32 kHz). The time registers (HTHSEC, SEC, MIN, and HOUR) can be written only while TCEN is low. If the ADuC836 is in Power-Down mode, again with TIC inter- rupt enabled, the TII bit will wake up the device and resume code execution by vectoring directly to the TIC interrupt service vector address at 0053H ...

Page 41

... This register is incremented in 1-hour intervals once TCEN in TIMECON is active.The HOUR SFR counts from before rolling over to 0. SFR Address A5H Power-On Default Value 00H Reset Default Value 00H if TCEN = 0, previous value before reset if TCEN = 1 Bit Addressable No Valid Value decimal REV. A –41– ADuC836 ...

Page 42

... ADuC836 WATCHDOG TIMER The purpose of the watchdog timer is to generate a device reset or interrupt within a reasonable amount of time if the ADuC836 enters an erroneous state, possibly due to a programming error, electrical noise, or RFI. The watchdog function can be disabled by clearing the WDE (Watchdog Enable) bit in the Watchdog Control (WDCON) SFR ...

Page 43

... POWER SUPPLY MONITOR As its name suggests, the Power Supply Monitor, once enabled, monitors both supplies ( the ADuC836. It will DD DD indicate when any of the supply pins drops below one of four user-selectable voltage trip points from 2. 4.63 V. For cor- rect operation of the Power Supply Monitor function equal to or greater than 2 ...

Page 44

... The data is transferred as byte- wide (8-bit) serial data, MSB first. SS (Slave Select Input Pin), Pin 13 The Slave Select (SS) input pin is only used when the ADuC836 is configured in SPI Slave mode. This line is active low. Data is only received or transmitted in Slave mode when the SS pin is low, allowing the ADuC836 to be used in single master, multislave SPI configurations ...

Page 45

... SPIDAT Register. The SCLOCK bit rate is determined by SPR0 and SPR1 in SPICON. It should also be noted that the SS pin is not used in Master mode. If the ADuC836 needs to assert the SS pin on an external slave device, a port digital output pin should be used. ...

Page 46

... ADuC836 SERIAL INTERFACE The ADuC836 supports a fully licensed interface is implemented as a full hardware slave and soft- ware master. SDATA (Pin 27) is the data I/O pin and SCLOCK (Pin 26) is the serial clock. These two pins are shared with the MOSI and SCLOCK pins of the on-chip SPI interface ...

Page 47

... Bit EA in the IE SFR, i.e., ; Enabling I2C Interrupts for the ADuC836 MOV IEIP2,#01h ; enable I2C interrupt SETB EA On the ADuC836, an auto clear of the I2CI bit is implemented so this bit is cleared automatically on a read or write access to the I2CDAT SFR. 2 ...

Page 48

... ADuC836 DUAL DATA POINTER The ADuC836 incorporates both main and shadow data pointers. The shadow data pointer is selected via the data pointer control SFR (DPCON). DPCON also includes features such as automatic hardware post-increment and post-decrement, as well as automatic data pointer toggle. DPCON is described in Table XXIII. ...

Page 49

... SFR bit definitions. Parallel I/O The ADuC836 uses four input/output ports to exchange data with external devices. In addition to performing general-purpose I/O, some ports are capable of external memory operations while others are multiplexed with alternate functions for the peripheral features on the device ...

Page 50

... ADuC836 P1.2 to P1.7 The remaining Port 1 pins (P1.2 to P1.7) can only be configured as analog input (ADC) or digital input pins. By (power-on) default, these pins are configured as analog inputs, i.e., 1 written in the corresponding Port 1 register bit. To configure any of these pins as digital inputs, the user should write these port bits to configure the corresponding pin as a high impedance digital input ...

Page 51

... Q3 voltage of the transistor and interpret Logic 0. Reading the latch rather than the pin will return the correct value of 1. –51– ADuC836 DV DD HARDWARE SPI MISO (MASTER/SLAVE) ...

Page 52

... ADuC836 TIMERS/COUNTERS The ADuC836 has three 16-bit Timer/Counters:Timer 0,Timer 1, and Timer 2. The Timer/Counter hardware has been included on-chip to relieve the processor core of the overhead inherent in implementing timer/counter functionality in software. Each Timer/Counter consists of two 8-bit registers: THx and TLx ( and 2). All three can be configured to operate either as timers or event counters ...

Page 53

... TH0 and TL0 Timer 0 high byte and low byte. SFR Address = 8CH, 8AH, respectively. TH1 and TL1 Timer 1 high byte and low byte. SFR Address = 8DH, 8BH, respectively. REV. A Table XXVII. TCON SFR Bit Designations –53– ADuC836 ...

Page 54

... ADuC836 TIMER/COUNTER 0 AND 1 OPERATING MODES The following paragraphs describe the operating modes for Timer/ Counters 0 and 1. Unless otherwise noted, it should be assumed that these modes of operation are the same for both Timer 0 and 1. Mode 0 (13-Bit Timer/Counter) Mode 0 configures an 8-bit timer/counter with a divide-by-32 prescaler ...

Page 55

... CONTROL TR2 RELOAD RCAP2L RCAP2H CONTROL EXEN2 Figure 52.Timer/Counter 2, 16-Bit Autoreload Mode TL2 TH2 (8 BITS) (8 BITS CONTROL TR2 CAPTURE RCAP2L RCAP2H CONTROL EXEN2 Figure 53.Timer/Counter 2, 16-Bit Capture Mode –55– ADuC836 TF2 TIMER INTERRUPT EXF2 TF2 TIMER INTERRUPT EXF2 ...

Page 56

... ADuC836 T2CON Timer/Counter 2 Control Register SFR Address C8H Power-On Default Value 00H Bit Addressable Yes Bit Name Description 7 TF2 Timer 2 Overflow Flag. Set by hardware on a Timer 2 overflow. TF2 will not be set when either RCLK or TCLK = 1. Cleared by user software. 6 EXF2 Timer 2 External Flag. ...

Page 57

... Mode 1: 8-bit UART, variable baud rate Mode 2: 9-bit UART, fixed baud rate (f Mode 3: 9-bit UART, variable baud rate CORE CLK ALE RxD (DATA OUT) TxD (SHIFT CLOCK) Figure 54. UART Serial PortTransmission, Mode 0 –57– ADuC836 /12) CORE /64 /32) CORE CORE MACHINE MACHINE MACHINE CYCLE 1 CYCLE 2 ...

Page 58

... Traditionally, the baud rates in Modes 1 and 3 are determined by the overflow rate in Timer 1 or Timer 2, or both (one for transmit and the other for receive). On the ADuC836, however, the baud rate can also be generated via a separate baud rate generator to achieve higher baud rates and allow all three to be used for other functions. – ...

Page 59

... CONTROL OVERFLOW TL2 TH2 (8 BITS) (8 BITS) TR2 RELOAD RCAP2L RCAP2H TIMER 2 EXF 2 INTERRUPT CONTROL EXEN2 Figure 56.Timer 2, UART Baud Rates –59– ADuC836 ( ) ( = × Timer Overflow Rate f = and Mode Baud Rate 3 ( × 32 65536 Core RCAP2H RCAP2L Actual ...

Page 60

... The high integer dividers in a UART block means that high speed baud rates are not always possible using some particular crystals, e.g., using a 12 MHz crystal, a baud rate of 115200 is not possible. To address this problem, the ADuC836 has added a dedicated baud rate timer (Timer 3) specifically for generating highly accurate baud rates. ...

Page 61

... INTERRUPT SYSTEM The ADuC836 provides a total of 11 interrupt sources with two priority levels. The control and configuration of the interrupt system are carried out through three interrupt-related SFRs: the IE (Interrupt Enable) Register, IP (Interrupt Priority Register), and IEIP2 (Secondary Interrupt Enable/Priority SFR) Registers. Their bit definitions are given in the Tables XXXV to XXXVII. ...

Page 62

... ADuC836 Interrupt Priority The Interrupt Enable registers are written by the user to enable individual interrupt sources, while the Interrupt Priority registers allow the user to select one of two priority levels for each inter- rupt. An interrupt of a high priority may interrupt the service routine of a low priority interrupt, and if two interrupts of differ- ent priority occur at the same time, the higher level interrupt will be serviced first ...

Page 63

... It emits the low byte of the data pointer (DPL address, which is latched by ALE prior to data being placed on the bus by the ADuC836 (write operation the external data memory (read operation). Port 2 (P2) provides the data pointer page byte (DPP latched by ALE, followed by the data pointer high byte (DPH) ...

Page 64

... Connect the ground terminal of each of these capacitors directly to and the underlying ground plane. Finally, it should also be noticed that, at all times, the analog and digital ground pins on the ADuC836 line. In this mode, DD should be referenced to the same system ground reference point. Power-On Reset (POR) Operation voltage level of ...

Page 65

... ADuC836 since a ground loop would result. In these cases, tie the ADuC836’s AGND and DGND pins all to the analog ground plane, as illustrated in Figure 64b. In systems with only one ground plane, ensure that the digital and analog com- ...

Page 66

... ADuC836’s digital inputs, add a series resistor to each relevant line to keep rise and fall times longer than the ADuC836 input pins. A value of 100  or 200  is usually suf- ficient to prevent high speed signals from coupling capacitively into the ADuC836 and affecting the accuracy of ADC conversions. ...

Page 67

... Download mode. This is accom- plished via a 1 k pull-down resistor that can be jumpered onto the PSEN pin, as shown in Figure 66. To get the ADuC836 into Download mode, simply connect this jumper and power-cycle the device (or manually reset the device manual reset button is available), and it will be ready to receive a new program serially ...

Page 68

... ADuC836 Typical System Configuration A typical ADuC836 configuration is shown in Figure 66. It sum- marizes some of the hardware considerations discussed in the previous paragraphs. Figure 66 also includes connections for a typical analog mea- surement application of the ADuC836, namely an interface to an RTD (Resistive Temperature Device). The arrangement shown is commonly referred 4-wire RTD configuration ...

Page 69

... QUICKSTART DEVELOPMENT SYSTEM The QuickStart Development System is a full featured, low cost development tool suite supporting the ADuC836. The system consists of the following PC based (Windows ware and software development tools: Hardware: ADuC836 Evaluation Board and Serial Port Cable Code Development: 8051 Assembler ...

Page 70

... Port 0, ALE, PSEN outputs = 100 pF; C LOAD 4 ADuC836 internal PLL locks onto a multiple (384 times) the external crystal frequency of 32.768 kHz to provide a stable 12.583 MHz internal clock for the system. The core can operate at this frequency binary submultiple called Core_Clk, selected via the PLLCON SFR. 5 This number is measured at the default Core_Clk operating frequency of 1 ...

Page 71

... Variable Core_Clk Min Max 2t – 40 CORE t – 40 CORE t – 30 CORE 4t – 100 CORE t – 30 CORE 3t – 45 CORE 3t – 105 CORE 0 t – 25 CORE 5t – 105 CORE LLIV t PLIV t PXIZ t PXIX INSTRUCTION (IN) t PHAX ADuC836 Unit ...

Page 72

... ADuC836 Parameter EXTERNAL DATA MEMORY READ CYCLE t RD Pulsewidth RLRH t Address Valid after ALE Low AVLL t Address Hold after ALE Low LLAX t RD Low to Valid Data In RLDV t Data and Address Hold after RD RHDX t Data Float after RD RHDZ t ALE Low to Valid Data In ...

Page 73

... LLWL WLWH t AVWL t QVWX t LLAX t t AVLL QVWH A0–A7 DATA A16–A23 A8–A15 Figure 73. External Data Memory Write Cycle –73– ADuC836 Variable Core_Clk Min Max Unit 6t – 100 ns CORE t – CORE t – CORE 3t – ...

Page 74

... ADuC836 Parameter UART TIMING (Shift Register Mode) t Serial Port Clock Cycle Time XLXL t Output Data Setup to Clock QVXH t Input Data Setup to Clock DVXH t Input Data Hold after Clock XHDX t Output Data Hold after Clock XHQX ALE (O) TxD (OUTPUT CLOCK) RxD (OUTPUT DATA) ...

Page 75

... MISO MSB IN t DSU REV. A Min 100 100 DAV MSB BITS 6–1 BITS 6–1 t DHD Figure 75. SPI Master ModeTiming (CPHA = 1) –75– ADuC836 Typ Max Unit 630 ns 630 ...

Page 76

... ADuC836 Parameter SPI MASTER MODE TIMING (CPHA = 0) t SCLOCK Low Pulsewidth SCLOCK High Pulsewidth Data Output Valid after SCLOCK Edge DAV t Data Output Setup before SCLOCK Edge DOSU t Data Input Setup Time before SCLOCK Edge DSU t Data Input Hold Time after SCLOCK Edge ...

Page 77

... DAV DF DR BITS 6 MSB BITS 6 MSB DSU DHD Figure 77. SPI Slave ModeTiming (CPHA = 1) –77– Typ Max 330 330 SFS – LSB 1 LSB IN – ADuC836 Unit ...

Page 78

... ADuC836 Parameter SPI SLAVE MODE TIMING (CPHA = SCLOCK Edge SS t SCLOCK Low Pulsewidth SL t SCLOCK High Pulsewidth SH t Data Output Valid after SCLOCK Edge DAV t Data Input Setup Time before SCLOCK Edge DSU t Data Input Hold Time after SCLOCK Edge ...

Page 79

... SUP MSB LSB t DSU t DHD SHD 1 2 Figure 79 Compatible InterfaceTiming –79– Max 0.9 300 300 ACK MSB t DSU F t DHD t RSU SUP S( REPEATED START ADuC836 Unit µs µs µs ns µs µs µs µ ...

Page 80

... ADuC836 1.03 0.88 0.73 SEATING PLANE VIEW A 0.23 0.11 BSC SQ PIN 1 INDICATOR 1.00 12 MAX 0.90 0.80 0.20 REF SEATING PLANE Revision History Location 4/03—Data Sheet changed from REV REV. A. Updated OUTLINE DIMENSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 OUTLINE DIMENSIONS 52-Lead Metric Quad Flat Package [MQFP] (S-52) Dimensions shown in millimeters 14.15 13.90 SQ 2.45 13.65 MAX 39 40 7.80 TOP VIEW REF ...

Related keywords