ADuCM355 Hardware Reference Manual UG-1262 One Technology Way • P.O. Box 9106 • Norwood, MA 02062-9106, U.S.A. • Tel: 781.329.4700 • Fax: 781.461.3113 • www.analog.com ADuCM355 Hardware Reference Manual SCOPE This manual provides a detailed description of the ADuCM355 functionality and features. See the...
Revision History ................9 Power Mode Register ..............31 Using the ADuCM355 Reference Manual ........11 Key Protection for PWRMOD and SRAMRET Register ..31 Introduction to the ADuCM355 ..........12 Control for Retention SRAM During Hibernate Mode ...
Page 3
ADuCM355 Hardware Reference Manual UG-1262 ADC, High Speed DAC, and Associated Amplifiers Offset Calibration High Speed TIA Channel Register ..78 Operating Mode Configuration ..........52 Gain Calibration for High Speed TIA Channel Register ..78 ...
Page 4
UG-1262 ADuCM355 Hardware Reference Manual Low Power TIA Switch Configuration for Channel 0 Register DAC Offset with Attenuator Disabled (Low Power Mode) ....................... 94 Register ..................114 Low Power TIA Control Bits Channel 1 Register ....95 DAC Offset with Attenuator Enabled (High Power Mode) ...
Page 5
ADuCM355 Hardware Reference Manual UG-1262 Sleep and Wake-Up Timer Features ........145 Channel Primary Alternate Clear Register ......180 Sleep and Wake-Up Timer Overview ........145 Channel Priority Set Register ..........180 Configuring a Defined Sequence Order ....... 145 Channel Priority Clear Register ..........
Page 6
C Operation ................226 Serial Wire Debug Enable Register ........213 C Operating Modes ............... 228 Analog Devices Identification (Analog Die) Register ..213 Register Summary: I C ..............231 Chip Identification (Analog Die) Register ......213 ...
Page 7
ADuCM355 Hardware Reference Manual UG-1262 First Master Address Byte Register ........234 UART Serial Interface ..............256 Second Master Address Byte Register ........234 UART Overview ................ 256 Serial Clock Period Divisor Register ........235 UART Features ................
Page 8
UG-1262 ADuCM355 Hardware Reference Manual Analog Die General-Purpose Timers Features ....274 WUT Functional Description ..........287 AFE PWM ................. 274 WUT Operating Modes ............288 Register Summary: Analog Die General-Purpose Timers ..275 WUT Recommendations: Clock and Power ......
ADuCM355 Hardware Reference Manual UG-1262 REVISION HISTORY 2/2020—Rev. A to Rev. B Changes to Electrochemical Amperometric Measurement Section ..............90 Changed PLCC_CACHE to PLCC ......Throughout Changes to Table 9 ................20 Change to Electrochemical Impedance Spectroscopy Section ..............91 Changes to Power Management Unit Features Section ....
ADuCM355 Hardware Reference Manual UG-1262 USING THE ADuCM355 REFERENCE MANUAL Table 1. Number Notations Notation Description Bit N Bits are numbered in little endian format, where the least significant bit of a number is referred to as Bit 0. V[x:y] A range from Bit x to Bit y of a value or a field (V) is represented in bit field format, V[x:y].
The package is 6 mm × 5 mm, 72-lead land grid array (LGA) package, and the temperature range is −40°C to +85°C. A low cost development system and a third party compiler and emulator tool support are included in the ADuCM355 evaluation kit.
Page 13
ADuCM355 Hardware Reference Manual UG-1262 0x400C_23FF AFE DIE REGISTERS 0x400C_0800 0x4004_4FFF DIGITAL DIE REGISTERS 0x4000_0000 0x2000_7FFF (MAPPABLE) SRAM 0x2000_0000 0x1000_7FFF (MAPPABLE) SRAM 0x1000_0000 0x0001_FFFF FLASH MEMORY 0x0000_0000 UNUSED ADDRESS SPACE Figure 1. Arm Cortex-M3 Memory Map Diagram Rev. B | Page 13 of 312...
UG-1262 ADuCM355 Hardware Reference Manual CLOCKING ARCHITECTURE CLOCKING ARCHITECTURE OPERATION ADuCM355 contains two internal die. Therefore, there are two independent clock systems: a digital die clock system and an analog die clock system. Figure 2 shows the overall clock architecture.
ADuCM355 Hardware Reference Manual UG-1262 DIGITAL DIE RTC1 FREQUENCY FREQUENCY OSCILLATOR INTERNAL BEEPER OSCILLATOR 32kHz HPBUCK CLK 200kHz HPBUCK 13MHz RCLK DIV2 FLASH HCLK DIV HIGH CLK CTL1 RESERVED FREQUENCY [5:0] HIGH OSCILLATOR FREQUENCY CTL5[4] ROOT_CLK INTERNAL C UCLK OSCILLATOR...
Page 16
UG-1262 ADuCM355 Hardware Reference Manual To connect and select the AFE die 16 MHz oscillator as the external clock input for the digital die, perform the following steps: Enable AFE die Pad P2.2 as an output. pADI_AGPIO2->OEN |= 0x4; Configure the internal digital die Pad P1.10 as an input and configure its mode as EXT_CLKIN.
ADuCM355 Hardware Reference Manual UG-1262 CLOCK DIVIDERS REGISTER Address: 0x4004C304, Reset: 0x00100404, Name: CTL1 The clock dividers register is used to set the divide rates for the HCLK, PCLK, and ACLK dividers. This register can be written to at any time.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access GPIOCLKOFF GPIO Clock Control. This bit disables the GPIO clock and controls the gate on the ACLK out from ACLK divider. This ACLK control is available in active mode and Flexi™...
ADuCM355 Hardware Reference Manual UG-1262 CLOCK CONTROL OF LOW POWER TIA CHOP, WATCHDOG, AND WAKE-UP TIMERS REGISTER Address: 0x400C0A70, Reset: 0x0000, Name: CLKEN0 Table 16. Bit Descriptions for CLKEN0 Bits Bit Name Settings Description Reset Access [15:3] Reserved Reserved. TIACHPDIS TIA Chop Clock Disable.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access HFOSCEN High Frequency Oscillator Enable. This bit is used to enable or disable the oscillator. The oscillator must be stable before use. This bit must be set before the SYSRESETREQ system reset can be initiated.
ADuCM355 Hardware Reference Manual UG-1262 POWER MANAGEMENT UNIT DIGITAL DIE DVDD DIGITAL BUCK DIE 3V CONVERTOR MAIN DIGITAL DIE 3V SUPPLY DVDD POWER SUPPLY FOR FLASH AND OTHER DIGITAL BLOCKS 2.8V TO 3.6V POWER SUPPLY AVDD_DD FOR DIGITAL DIE OSCILLATOR,...
UG-1262 ADuCM355 Hardware Reference Manual Flexi Mode In this mode, the Arm Cortex-M3 is disabled. The user selects the peripherals to be enabled, for example, SPI for DMA or I C for DMA. Hibernate Mode On the digital die, the system is power gated. 8 kB of SRAM is always retained. Up to an additional 24 kB SRAM can be selected to be retained.
ADuCM355 Hardware Reference Manual UG-1262 CODE EXAMPLES Enter Power Saving Mode The following function configures the analog die operating mode: uint32_t AfePwrCfg(uint16_t iMode) // PSWFULLCON[14:13]= [11]b //Close switches NL and NL2. PSWFULLCON[11:10]= [11]b pADI_AFE-> PSWFULLCON|=0x6C00; // Close PL2, PL1, P12, P11 switches to tie HSTIA N and D //terminals to 1.8 V LDO...
ADuCM355 provides a number of features to help user code monitor the AVDD and DVDD supply rails of the ADuCM355. On the digital die, voltage supervisory circuits are enabled at all times to guarantee that the AVDD_DD supply (2.8 V to 3.6 V) and the regulated supply are always within operating levels.
ADuCM355 Hardware Reference Manual UG-1262 REGISTER SUMMARY: POWER MANAGEMENT UNIT Table 21. Digital Die Power Management Register Summary (PMG0 Stack) Address Name Description Reset Access 0x4004C000 Power supply monitor interrupt enable 0x00000000 0x4004C004 PSM_STAT Power supply monitor status 0x2100 0x4004C008...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: POWER MANAGEMENT UNIT POWER SUPPLY MONITOR INTERRUPT ENABLE REGISTER Address: 0x4004C000, Reset: 0x00000000, Name: IEN Table 23. Bit Descriptions for IEN Bits Bit Name Settings Description Reset Access [31:11] Reserved Reserved. 0x00000 IENBAT Interrupt Enable for AVDD_DD Range.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access RANGE1 AVDD_DD Range 1 (>2.75 V). This is a write one to clear status bit indicating the R/W1C relevant AVDD_DD range. Generates the AVDD_DD range interrupt if IEN, Bit 10 is set.
UG-1262 ADuCM355 Hardware Reference Manual CONTROL FOR RETENTION SRAM DURING HIBERNATE MODE REGISTER Address: 0x4004C014, Reset: 0x00000000, Name: SRAMRET Table 27. Bit Descriptions for SRAMRET Bits Bit Name Settings Description Reset Access [31:2] Reserved Reserved. BNK2EN Enable Retention Bank 2 (16 kB). Bank address is 0x10000000 to 0x10003FFF if SRAM_CTL, Bit 31 = 1.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access PENBNK1 Enable Parity Check for SRAM Bank 1. SRAM Address 0x20002000 to Address 0x20003FFF. Parity is checked when data is read and when a byte or half word data is written to this SRAM area.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access BNK3 Initialization Status of SRAM Bank 3. Not initialized. Initialization completed. BNK2 Initialization Status of SRAM Bank 2. Not initialized. Initialization completed. BNK1 Initialization Status of SRAM Bank 1.
ADuCM355 Hardware Reference Manual UG-1262 ARM CORTEX-M3 PROCESSOR ADuCM355 contains an embedded Arm Cortex-M3 processor. The Arm Cortex-M3 processor provides a high performance, low cost platform that meets the system requirements of minimal memory implementation, reduced pin count, and low power consumption, and delivers computational performance and system response to interrupts.
Dynamic priority changes support Interrupt masking In addition, the NVIC has an NMI input. The NVIC is implemented on the ADuCM355, and more details are available in the System Exceptions and Peripheral Interrupts section. Wake-Up Interrupt Controller ADuCM355 has a modified WIC that provides the lowest possible power-down current.
ADuCM355 Hardware Reference Manual UG-1262 SYSTEM RESETS There are three primary reset sources on the digital die, as shown in Figure 4. A digital die watchdog timer is also available, but is disabled by default. These reset sources are as follows: ...
Page 38
UG-1262 ADuCM355 Hardware Reference Manual Table 33. Digital Die Reset Implications Reset External Reset All MMRs Pins to Default Execute Except RST_STAT Reset All Valid RST_STAT Register After Reset Reset State Kernel Register Peripherals SRAM Event Software Yes/No RST_STAT, Bit 3 = 1...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER SUMMARY: SYSTEM RESETS Table 34. Digital Die Reset Register Summary Address Name Description Reset Access 0x4004C040 RST_STAT Digital die reset status 0x000000XX R/W1C Table 35. Always On Register Summary Address Name Description Reset Access...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: SYSTEM RESETS DIGITAL DIE RESET STATUS REGISTER Address: 0x4004C040, Reset: 0x000000XX, Name: RST_STAT Table 37. Bit Descriptions for RST_STAT Bits Bit Name Settings Description Reset Access [15:6] Reserved Reserved. [5:4] PORSRC POR Source for Digital Die. This bit contains additional details after a POR occurs.
To save power, users can disable the internal pull-up resistor and reconfigure these pins as tristate. Take care when reconfiguring these pins from their default state, because this reconfiguration disables debug access to the ADuCM355. It is recommended to only disable the SWCLK and SWDIO feature of these pins in user code when code development and debugging is almost complete.
UG-1262 ADuCM355 Hardware Reference Manual SYSTEM EXCEPTIONS AND PERIPHERAL INTERRUPTS CORTEX-M3 AND FAULT MANAGEMENT ADuCM355 integrates an Arm Cortex-M3 processor, which supports several system exceptions and interrupts generated by peripherals. Table 40 lists the Arm Cortex-M3 processor system exceptions. Table 40. System Exceptions...
Page 43
ADuCM355 Hardware Reference Manual UG-1262 Wake Up From Exception Number IRQx Vector Flexi Hibernate IRQ16 SPI1 IRQ17 C slave IRQ18 C master IRQ19 DMA Error IRQ20 DMA Channel 0 done IRQ21 DMA Channel 1 done IRQ22 DMA Channel 2 done...
UG-1262 ADuCM355 Hardware Reference Manual Internal to the Arm Cortex-M3 processor, the highest user-programmable priority (0) is treated as fourth priority after a reset, an NMI, or a hard fault. The ADuCM355 implements three priority bits, which means that eight priority levels are available as programmable priorities.
ADuCM355 Hardware Reference Manual UG-1262 Table 42. Analog Die Interrupts List Exception Interrupt Enable Interrupt Enable Interrupt Status Interrupt Status Number IRQx Register Register Bit Register Register Bit IRQ48 ADCINTIEN ADCRDYIEN ADCINTSTA ADCRDY DFTRDYIEN DFTRDY SINC2RDYIEN SINC2RDY TEMPRDYIEN TEMPRDY ADCMINFAILIEN...
UG-1262 ADuCM355 Hardware Reference Manual CORTEX-M3 NVIC REGISTER LIST The registers in Table 43 are found in the Arm Cortex-M3. Table 43. NVIC Registers Analog Devices Address Header File Name Description Access 0xE000E004 ICTR Shows the number of interrupt lines that the NVIC supports.
ADuCM355 Hardware Reference Manual UG-1262 EXTERNAL INTERRUPT CONFIGURATION Two external interrupts are implemented, separate from those described in the Digital Inputs and Outputs section. One of these external interrupts is the P1.0/SYS_WAKE pin. The other is the interrupt source from the analog die that connects to External Interrupt 3 line of the digital die, which can be connected to the UART input pin (P0.11/UART_SIN).
UG-1262 ADuCM355 Hardware Reference Manual EXTERNAL WAKE-UP INTERRUPT STATUS REGISTER Address: 0x4004C084, Reset: 0x00000000, Name: XINT_EXT_STAT Table 47. Bit Descriptions for XINT_EXT_STAT Bits Bit Name Settings Description Reset Access [31:6] Reserved Reserved. Interrupt Status Bit for P0.11/UART_SIN Wake-Up Interrupt. Read only STAT_UART_RXWKUP register bit.
ADuCM355 Hardware Reference Manual UG-1262 ANALOG DIE INTERRUPT ENABLE REGISTER Address: 0x400C0A28, Reset: 0x0000, Name: EI2CON Table 50. Bit Descriptions for EI2CON Bits Bit Name Settings Description Reset Access [15:4] Reserved Reserved. BUSINTEN Bus Interrupt Detection Enable Bit. Set before entering hibernate to enable the AFE wakeup via any analog die access.
UG-1262 ADuCM355 Hardware Reference Manual ANALOG DIE CIRCUITRY SUMMARY ADuCM355 analog die includes the following eight main blocks: ADC. The ADC is a high speed SAR ADC with a wide range of voltage and current input channels. See the ADC Circuit section.
Page 53
ADuCM355 Hardware Reference Manual UG-1262 2.5V LPDAC0 LPTIA0 AIN0 TO AIN7 2.5V LPDAC1 INTERNAL CHANNELS LPTIA1 P NODE N NODE RCAL0 POSTPROCESSING: DIGITAL FILTERS, 1.82V DFT, CALIBRATION RCAL1 CE0, CE1, GAIN HSDAC AIN0 SWITCH RCAL0, SE1, AIN0 TO AIN3/BUF_VREF1V8 AIN1...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER SUMMARY: ANALOG DIE CIRCUITRY Table 51. Analog Die Circuitry Register Summary Address Name Description Reset Access 0x400C2000 AFECON Analog configuration 0x00080000 Rev. B | Page 54 of 312...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: ANALOG DIE CIRCUITRY AFE CONFIGURATION REGISTER Address: 0x400C2000, Reset: 0x00080000, Name: AFECON Specific bits in this registers are relevant to particular blocks in the analog die. The relevant bits for each block are as follows: ...
Page 56
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access EXBUFEN Enable Excitation Buffer on High Speed DAC Output. High speed DAC excitation buffer disabled. High speed DAC excitation buffer enabled. ADCCONVEN ADC Conversion Start Enable. ADC idle. ADC powered on but not converting.
ADuCM355 Hardware Reference Manual UG-1262 ADC CIRCUIT ADC CIRCUIT OVERVIEW The SAR ADC circuit is implemented on the analog die. The die operates from a 2.8 V to 3.6 V power supply. The Arm Cortex-M3 processor interfaces to the ADC via an internal die-to-die interface. The ADC uses a precision, low drift, factory calibrated 1.82 V reference.
UG-1262 ADuCM355 Hardware Reference Manual One high speed current input channel for performing impedance measurements up to 200 kHz. This channel has dedicated TIAs with a programmable gain resistor. Multiple external voltage inputs. Eight dedicated voltage input channels, AIN0 to AIN7.
ADuCM355 Hardware Reference Manual UG-1262 FFFF C000 8000 4000 0000 0.2V 1.11V 2.02V Figure 9. Ideal ADC Transfer Function, Voltage Input to ADC vs. Output Codes, Where Input is ADCVBIAS_CAP at 1.11 V To calculate the input voltage (V ), use the following equation to convert ADC codes to a voltage: For PGA gain = 1, = (VREF ×...
UG-1262 ADuCM355 Hardware Reference Manual The low power TIA outputs have a low-pass filter. The resistor connecting the TIA output to the input mux is typically 1 MΩ with a recommended external low-pass filter capacity of 4.7 μF resulting in a very low cutoff frequency. This resistor is labeled RFILTER in Figure 10.
ADuCM355 Hardware Reference Manual UG-1262 When changing ADC input channels, restarting the ADC, or changing the ADC update rates via the ADCFILTERCON register, reset the sinc2 filter. If the sinc2 filter is not reset, the ADC samples with the new settings are inaccurate.
UG-1262 ADuCM355 Hardware Reference Manual INTERNAL TEMPERATURE SENSOR CHANNELS ADuCM355 analog die contains two internal temperature sensor channels. Temperature Sensor 0 The temperature sensor outputs a voltage proportional to die temperature. This voltage is linear relative to temperature. This internal channel is measured via the ADC by selecting the temperature sensor channels as the positive and negative inputs from the mux.
ADuCM355 Hardware Reference Manual UG-1262 BITM_AFE_ADCINTSTA_TEMPRDY; // Clear interrupt flag void CalculateTemp(void) // PGA GAIN of 1.5x assumed fTemp = (float)(( TEMP_RESULT/(1.5*8.13))-273.15); // ((Temperature reading/(PGA_Gain*8.13)-273.15 Temperature Sensor 1 A second backup temperature sensor is provided on the ADuCM355 analog die for functional safety purposes. Only use Temperature Sensor 1 to crosscheck the Temperature Sensor 0 channel.
ADC CALIBRATION Because of the multiple input types of the ADuCM355, there are multiple offset and gain calibration options. The ADC must be recalibrated when switching from low power mode to high power mode, regardless of the gain change. For optimal performance, calibrate the ADC in low power mode and high power mode, if both power modes are used.
UG-1262 When calibrating the gain error for the ADC voltage channels during Analog Devices production testing, the value loaded to the ADCGAINGN1P5 calibration register is ≥0x4000. To ensure this value, the target ADC result is higher than normal. The factory trim value for the ADC reference is 1.82 V, but for calibration purposes, the target voltage is 1.835 V.
UG-1262 ADuCM355 Hardware Reference Manual VOLTAGE REFERENCE OPTIONS The ADC features internal 1.82 V and 2.5 V voltage reference sources, as shown in Figure 14. AVDD 1.82V FOR VREF_OUT HIGH POWER DAC AIN3/ BUFFER BUF_VREF1V8 1.82V 1.82V ANALOG REFERENCE BUFSENCON[8]...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access [11:8] SINC2OSR Sinc2 Filter Oversampling Rates. 22 samples for this OSR setting. 44 samples for this OSR setting. 89 samples for this OSR setting. 178 samples for this OSR setting.
UG-1262 ADuCM355 Hardware Reference Manual DFT RESULT, IMAGINARY PART REGISTER Address: 0x400C207C, Reset: 0x00000000, Name: DFTIMAG Table 67. Bit Descriptions for DFTIMAG Bits Bit Name Settings Description Reset Access [31:18] Reserved Reserved. [17:0] DATA DFT Imaginary. DFT hardware accelerator returns a complex number. This register returns the 18-bit imaginary part of the complex number from the DFT result.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access SINC2RDYIEN Low-Pass Filter Result Interrupt. Supply rejection filter result ready for interrupt enable. The SINC2DAT register is ready for reading. Interrupt disabled. Interrupt enabled. DFTRDYIEN DFT Result Ready Interrupt. The DFTREAL and DFTIMAG registers are ready for reading.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access SINC2RDY Low-Pass Filter Result Status. Supply rejection filter result ready interrupt. R/W1C User must write 1 to this bit to clear it. Writing 0 has no effect. Interrupt not asserted.
ADuCM355 Hardware Reference Manual UG-1262 TEMPERATURE SENSOR 0 CONFIGURATION REGISTER Address: 0x400C2174, Reset: 0x00000000, Name: TEMPCON0 Table 73. Bit Descriptions for TEMPCON0 Bits Bit Name Settings Description Reset Access [31:4] Reserved Reserved. [3:2] CHOPFRESEL Chop Mode Frequency Setting. Sets frequency of chop mode switching.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access V1P8HPADCILIMITEN High Power ADC Input Current Limit. Protects ADC input buffer. Disable buffer current limit. Enable buffer current limit. Recommended setting. V1P8HPADCEN High Power 1.8 V Reference Buffer. Enable for normal ADC conversions.
ADuCM355 Hardware Reference Manual UG-1262 OFFSET CALIBRATION LOW POWER TIA0 CHANNEL REGISTER Address: 0x400C2288, Reset: 0x00000000, Name: ADCOFFSETLPTIA0 Table 78. Bit Descriptions for ADCOFFSETLPTIA0 Bits Bit Name Settings Description Reset Access [31:15] Reserved Reserved. [14:0] VALUE Offset Calibration for Low Power TIA0. Represented as a twos complement number.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access 0x4001 1.000061 (minimum positive gain adjustment). 0x4000 1.0. ADC result multiplied by 1. No gain adjustment. Default value. 0x3FFF 0.999939 (minimum negative gain adjustment). 0x2000 0.5. ADC result multiplied by 0.5.
ADuCM355 Hardware Reference Manual UG-1262 GAIN CALIBRATION VOLTAGE INPUT CHANNEL (PGA GAIN = 1) REGISTER Address: 0x400C2240, Reset: 0x00004000, Name: ADCGAINGN1 Table 85. Bit Descriptions for ADCGAINGN1 Bits Bit Name Settings Description Reset Access [31:15] Reserved Reserved. Gain Calibration PGA Gain 1. ADC gain correction for voltage input channels.
UG-1262 ADuCM355 Hardware Reference Manual OFFSET CALIBRATION VOLTAGE INPUT CHANNEL (PGA GAIN = 2) REGISTER Address: 0x400C22C8, Reset: 0x00000000, Name: ADCOFFSETGN2 Table 88. Bit Descriptions for ADCOFFSETGN2 Bits Bit Name Settings Description Reset Access [31:15] Reserved Reserved. [14:0] VALUE Offset Calibration Voltage Channel Gain 2. ADC offset correction for inputs using PGA gain = 2, represented as a twos complement number.
ADuCM355 Hardware Reference Manual UG-1262 GAIN CALIBRATION VOLTAGE INPUT CHANNEL (PGA GAIN = 4) REGISTER Address: 0x400C2278, Reset: 0x00004000, Name: ADCGAINGN4 Table 91. Bit Descriptions for ADCGAINGN4 Bits Bit Name Settings Description Reset Access [31:15] Reserved Reserved. [14:0] VALUE Gain Calibration PGA Gain 4. ADC gain correction for voltage input channels.
UG-1262 ADuCM355 Hardware Reference Manual OFFSET CALIBRATION TEMPERATURE SENSOR CHANNEL 0 REGISTER Address: 0x400C223C, Reset: 0x00000000, Name: ADCOFFSETTEMPSENS0 Table 94. Bit Descriptions for ADCOFFSETTEMPSENS0 Bits Bit Name Settings Description Reset Access [31:15] Reserved Reserved. [14:0] VALUE Offset Calibration Temperature Sensor. ADC offset correction for temperature sensor channel, represented as a twos complement number.
ADuCM355 Hardware Reference Manual UG-1262 MAXIMUM VALUE CHECK REGISTER Address: 0x400C20B0, Reset: 0x00000000, Name: ADCMAX Table 98. Bit Descriptions for ADCMAX Bits Bit Name Settings Description Reset Access [31:16] Reserved Reserved. [15:0] MAXVAL ADC Maximum Threshold. Optional maximum ADCDAT threshold. If a value greater than ADCMAX is measured by the ADC, ADCINTSTA, Bit 5 is set to 1.
UG-1262 ADuCM355 Hardware Reference Manual MEAN OUTPUT REGISTER Address: 0x400C21C8, Reset: 0x00000000, Name: STATSMEAN Table 102. Bit Descriptions for STATSMEAN Bits Bit Name Settings Description Reset Access [31:16] Reserved Reserved. [15:0] MEAN Mean Output. Mean value calculated for the number of ADC samples set by STATSCON, Bits[6:4].
LOW POWER TIAs Two low power TIA channels are available on the ADuCM355. The load resistor and gain resistor values are specified in the Lx registers. Select the TIA gain resistor that maximizes the ADC input voltage range for the selected PGA gain setting. For example, if the PGA gain setting is 1, select a TIA gain resistor to maximize the ±900 mV range.
Page 86
UG-1262 ADuCM355 Hardware Reference Manual Close SW0 when changing the R value, and open SW0 again when the change is complete. If high currents are detected on the low power TIA input path when using an oxygen electrochemical sensor, close the shorting switch, SW1, to protect the low power TIA input circuitry.
UG-1262 ADuCM355 Hardware Reference Manual Figure 18 shows the relationship between the R and R settings for the low power TIA. R is configured by setting LPTIACON0, LOAD GAIN LOAD Bits[12:10]. R is configured by LPTIACON0, Bits[9:5]. When R is large, it uses resistors from the R...
Page 89
ADuCM355 Hardware Reference Manual UG-1262 LOW POWER DAC BLOCK DIAGRAM MAIN DAC VREF_2.5V 2.4V TO TOP MUX TO BOTTOM MUX 2.36615V TO TOP MUX SubDAC 63 × R1 TO BOTTOM MUX SET BY LPDACDATx[5:0] TO TOP MUX 62 × R1 TO BOTTOM MUX 63 ×...
Page 90
UG-1262 ADuCM355 Hardware Reference Manual To control the switches individually, use the LPDACSWx registers. LPDACSWx, Bit 5 must be set to 1 so that each switch can be individually controlled via LPDACSWx, Bits[4:0]. Relationship Between 12-Bit and 6-Bit Outputs, Hardware Compensation Enabled The 12-bit and 6-bit outputs are mostly independent.
Page 91
ADuCM355 Hardware Reference Manual UG-1262 Table 106. Recommended Switch Settings in Low Power Potentiostat Loop LPDACCONx LPDACSWx LPTIASWx Measurement Name Bit 5 Setting Bits[5:0] Setting Bits[13:0] Setting Description Amperometric Mode 0xXX (don’t care) 0x302C or 0b11 Normal dc current measurement. External...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER SUMMARY: LOW POWER TIA/POTENTIOSTAT AND DAC CIRCUITS Table 107. Low Power Potentiostat and TIA Control Register Summary Address Name Description Reset Access 0x400C20EC LPTIACON0 Low power TIA control bits Channel 0 0x00000003 0x400C20E4 LPTIASW0...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: LOW POWER TIA/POTENTIOSTAT AND DAC CIRCUITS LOW POWER TIA CONTROL BITS CHANNEL 0 REGISTER Address: 0x400C20EC, Reset: 0x00000003, Name: LPTIACON0 Table 109. Bit Descriptions for LPTIACON0 Bits Bit Name Settings Description Reset Access...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access SW9 Switch Control Active High. Open switch. Close switch. SW8 Switch Control Active High. Open switch. Close switch. SW7 Switch Control Active High. Open switch. Close switch. SW6 Switch Control Active High.
Page 96
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [12:10] TIARL Set R LOAD 0 Ω. 10 Ω. 30 Ω. 50 Ω. 100 Ω. 1.6 kΩ. R must be ≥2 kΩ. 3.1 kΩ. R must be ≥4 kΩ.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access PAPDEN Potentiostat Amplifier Power-Down. Low power Potentiostat Amplifier 1 power-down control bit. Power-up. Power-down. TIAPDEN TIA Power-Down. Low power TIA1 power-down control bit. Power up. Power down. LOW POWER TIA SWITCH CONFIGURATION FOR CHANNEL 1 REGISTER Address: 0x400C20E0, Reset: 0x00000000, Name: LPTIASW1 See Figure 17 for details on the switches mentioned in this register.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access SW2 Switch Control Active High. Open switch. Close switch. SW1 Switch Control Active High. Open switch. Close switch. SW0 Switch Control Active High. Open switch. Close switch. LPDAC0 DATA OUT REGISTER Address: 0x400C2120, Reset: 0x00000000, Name: LPDACDAT0 Table 113.
ADuCM355 Hardware Reference Manual UG-1262 LPDAC0 CONTROL REGISTER Address: 0x400C2128, Reset: 0x00000002, Name: LPDACCON0 Table 115. Bit Descriptions for LPDACCON0 Bits Bit Name Settings Description Reset Access [31:7] Reserved Reserved. WAVETYPE Low Power DAC Source. Direct from the LPDACDAT0 register.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access PWDEN Low Power DAC1 Power. Power-down control bit for low power DAC1. Low Power DAC1 powered on. Clear to 0 to power on low power DAC1. Low Power DAC1 powered off. Default. Power down low power DAC1 and open all switches on the low power DAC1 output.
UG-1262 ADuCM355 Hardware Reference Manual HIGH SPEED TIA CIRCUITS The high speed TIA is intended for measuring wide bandwidth input signals up to 200 kHz. The output of the high speed TIA transfers to the main ADC mux, where the high speed TIA can be selected as the ADC input channel. The high speed TIA is especially designed for impedance measurements in conjunction with the high speed DAC and excitation amplifier.
Page 103
ADuCM355 Hardware Reference Manual UG-1262 DE0RESCON, Bits[7:0] (DE0) and DE1RESCON, Bits[7:0] (DE1) Setting and R Value (Ω) and R Value LOAD03 LOAD05 TIA2_03 TIA2_05 0x7A 40.07 kΩ 0x82 80.07 kΩ 0x8A 160.07 kΩ 0x1B 50 Ω 0x33 100 Ω 0x4B 190 Ω...
UG-1262 ADuCM355 Hardware Reference Manual USING DE0 AND DE1 INPUTS WITH THE HIGH SPEED TIA To use DE0 as the input of the high speed TIA, set the following register values: DE0RESCON = value required to set R and R .
ADuCM355 Hardware Reference Manual UG-1262 REGISTER SUMMARY: HIGH SPEED TIA CIRCUITS AFECON, Bit 11 and AFECON, Bit 5 are relevant to the high speed TIA block. See Table 52 for more details. Table 121. High Speed TIA Circuit Register Summary...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: HIGH SPEED TIA CIRCUITS HIGH SPEED R CONFIGURATION REGISTER Address: 0x400C20F0, Reset: 0x0000000F, Name: HSRTIACON This register controls the high speed TIA R , current protection diode, and feedback capacitor. Table 122. Bit Descriptions for HSRTIACON...
ADuCM355 Hardware Reference Manual UG-1262 DE0 HIGH SPEED TIA RESISTOR CONFIGURATION REGISTER Address: 0x400C20F8, Reset: 0x000000FF, Name: DE0RESCON Table 124. Bit Descriptions for DE0RESCON Bits Bit Name Settings Description Reset Access [31:8] Reserved Reserved. [7:0] DE0RCON DE0 R and R Setting.
UG-1262 ADuCM355 Hardware Reference Manual HIGH SPEED DAC CIRCUITS The 12-bit high speed DAC generates an ac excitation signal when measuring the impedance of an external sensor. The DAC output signal can be controlled directly by writing to a data register or by the automated waveform generator block. The high speed DAC signal is fed to an excitation amplifier designed specifically to couple the ac signal on top of the normal dc bias voltage of the sensor.
ADuCM355 Hardware Reference Manual UG-1262 Ensure CLKSEL, Bits[1:0] selects a 32 MHz clock source. For example, an internal high speed oscillator is selected if CLKSEL, Bits[1:0] = 00. Ensure that the system clock divide ratio is 1 (CLKCON0, Bits[5:0] = 0 or 1).
UG-1262 ADuCM355 Hardware Reference Manual OPEN THIS SWITCH VREF_2.5V TO DISCONNECT POTENTIOSTAT AMP – DACN 2.4V BIAS = 80kHz – DACP DUAL VBIAS0 OUTPUTS 12-BIT 12-BIT VDAC WAVE SW12 ZERO C = ~0.1µF DACN 0.2V C = 0.1µF DAC TO DAC BUFFERS –...
Page 111
ADuCM355 Hardware Reference Manual UG-1262 The high speed DAC transfer function is shown in Figure 25. Note that in Figure 26 the common-mode voltage setting for the calibration circuit is set by the noninverting input of the high speed TIA.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER SUMMARY: HIGH SPEED DAC CIRCUITS Table 128. High Speed DAC Control Register Summary Address Name Description Reset Access 0x400C2010 HSDACCON High speed DAC configuration 0x0000001E 0x400C2048 HSDACDAT Direct write to DAC output control value...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: HIGH SPEED DAC CIRCUITS HIGH SPEED DAC CONFIGURATION REGISTER Address: 0x400C2010, Reset: 0x0000001E, Name: HSDACCON Table 130. Bit Descriptions for HSDACCON Bits Bit Name Settings Description Reset Access [31:13] Reserved Reserved. INAMPGNMDE Excitation Amplifier Gain Control. Selects the gain of excitation amplifier.
UG-1262 ADuCM355 Hardware Reference Manual DAC GAIN REGISTER Address: 0x400C2260, Reset: 0x00000800, Name: DACGAIN Protected by CALDATLOCK. Valid for all settings of HSDACCON Bit 12 and HSDACCON Bit 0. Table 133. Bit Descriptions for DACGAIN Bits Bit Name Settings Description...
Access [31:5] Reserved Reserved. DACGAINCAL DAC Gain Enable. Use the DAC gain calculated during the Analog Devices factory trim and stored in the DACGAIN register. Bypass DAC gain correction. Enable DAC gain correction using value in the DACGAIN register. DACOFFSETCAL Bypass DAC Offset.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [2:1] TYPESEL Selects the Type of Waveform. Direct write to DAC. User code writes to the HSDACDAT register directly. Sinusoid. Set AFECON, Bit 4 to 1, set this bit to 10, and the DAC outputs a sine wave.
ADuCM355 Hardware Reference Manual UG-1262 PROGRAMMABLE SWITCHES CONNECTING THE EXTERNAL SENSOR TO THE HIGH SPEED DAC AND HIGH SPEED TIA ADuCM355 provides flexibility for connecting external pins to the high speed DAC excitation amplifier and to the high speed TIA inverting input.
Page 118
UG-1262 ADuCM355 Hardware Reference Manual EXCITATION BUFFER AMPLIFIER LOOP Dx SWITCHES DSWFULLCON OR SWCON[3:0] RCAL0 RCAL1 Px SWITCHES PSWFULLCON OR SWCON[7:4] DVDD_REG_AD LOAD02 Nx SWITCHES NSWFULLCON OR SWCON[11:8] LOAD04 TSWFULLCON OR SWCON[15:12] HSTIACON[1:0] HIGH SPEED SELECTS SOURCE Tx SWITCHES TRANSIMPEDANCE...
Page 119
ADuCM355 Hardware Reference Manual UG-1262 There are two options to control the programmable switches to the high speed DAC excitation amplifier and the high speed TIA inverting input: SWCON, Bit 16 = 0 and SWCON, Bit 16 =1. For SWCON, Bit 16 = 0, the bit selects the SWCON register as the control source for these switches. The Tx, Nx, Px, and Dx switches are controlled in groups as follows: ...
UG-1262 ADuCM355 Hardware Reference Manual REGISTER SUMMARY: PROGRAMMABLE SWITCHES The status of all the switches can be read from the switch status registers at any time. These statuses indicate whether each switch is open or closed. The switch status registers are DSWSTA, PSWSTA, NSWSTA, and TSWSTA.
ADuCM355 Hardware Reference Manual UG-1262 Nx SWITCH MATRIX FULL CONFIGURATION REGISTER Address: 0x400C2154, Reset: 0x00000000, Name: NSWFULLCON This register allows individual control of the Nx switches. The bit names are the same as the switch names shown in Figure 27.
UG-1262 ADuCM355 Hardware Reference Manual Px SWITCH MATRIX FULL CONFIGURATION REGISTER Address: 0x400C2158, Reset: 0x00000000, Name: PSWFULLCON This register allows individual control of the Px switches. The bit names are the same as the switch names shown in Figure 27.
ADuCM355 Hardware Reference Manual UG-1262 Tx SWITCH MATRIX FULL CONFIGURATION REGISTER Address: 0x400C215C, Reset: 0x00000000, Name: TSWFULLCON This register allows individual control of the Tx switches. The bit names are the same as the switch names shown in Figure 27.
UG-1262 ADuCM355 Hardware Reference Manual Dx SWITCH MATRIX STATUS REGISTER Address: 0x400C21B0, Reset: 0x00000000, Name: DSWSTA This gives the status of the Dx switches shown in Figure 27. Table 149. Bit Descriptions for DSWSTA Bits Bit Name Settings Description Reset...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access P11STA Status of P11 Switch. Switch open. Switch closed. P10STA Status of P10 Switch. Switch open. Switch closed. P9STA Status of P9 Switch. Switch open. Switch closed. P8STA Status of P8 Switch.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access N8STA Status of N8 Switch. Switch open. Switch closed. N7STA Status of N7 Switch. Switch open. Switch closed. N6STA Status of N6 Switch. Switch open. Switch closed. N5STA Status of N5 Switch.
Page 129
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access T5STA Status of T5 Switch. Switch open. Switch closed. T4STA Status of T4 Switch. Switch open. Switch closed. T3STA Status of T3 Switch. Switch open. Switch closed. T2STA Status of T2 Switch.
DSP blocks. The sequencer handles timing critical operations without being subject to system load. Four command sequences are supported by hardware on the ADuCM355. These sequences can be stored in the SRAM to switch between different measurement procedures. Only one sequence can be executed by the sequencer at a time. However, the user can configure which sequences the sequencer executes and the order in which they are executed.
ADuCM355 Hardware Reference Manual UG-1262 For example, when writing to the WGCON register directly through the die to die interface, Address 0x400C2014 is used. To write to the same register using the sequencer, the address field must be 0b0000101 (Bits[8:2] of the address used by the external controller).
Page 132
UG-1262 ADuCM355 Hardware Reference Manual RUN SEQUENCE ENABLE/DISABLE LOAD TRIM VALUES ANALOG BLOCKS, START ADC CONVERSION, STORE RESULTS IN SRAM BOOT MEASUREMENT MEASUREMENT INITIALIZATION HIBERNATE HIBERNATE • • • LOAD SEQUENCES TO SRAM, HIBERNATE MODE WITH SETUP SEQUENCE, FIFO, SLEEP AND SRAM CONTENTS WAKE-UP TIMER, AND GPIOs.
Page 133
ADuCM355 Hardware Reference Manual UG-1262 The interrupt flags associated with the data FIFO include empty, full, overflow, underflow, and threshold. These interrupts are user readable using the INTCFLAGx registers (see the AFE Interrupts section for more details). Each flag has an associated maskable interrupt.
UG-1262 ADuCM355 Hardware Reference Manual SEQUENCER AND FIFO REGISTERS Table 154. Sequence and FIFO Registers Summary Address Name Description Reset Access 0x400C2004 SEQCON Sequencer configuration register 0x00000002 0x400C2008 FIFOCON FIFO configuration register 0x00001010 0x400C2060 SEQCRC Sequencer CRC value register 0x00000001...
Page 135
ADuCM355 Hardware Reference Manual UG-1262 FIFO Configuration Register Address: 0x400C2008, Reset: 0x00001010, Name: FIFOCON Table 156. Bit Descriptions for FIFOCON Register Bits Bit Name Settings Description Reset Access [31:16] RESERVED Reserved. [15:13] DATAFIFOSRCSEL Data FIFO Source Select. 000, 001, ADC data. The ADC data is the output of the sinc3 filter.
Page 136
UG-1262 ADuCM355 Hardware Reference Manual Data FIFO Read Register Address: 0x400C206C, Reset: 0x00000000, Name: DATAFIFORD Table 160. Bit Descriptions for DATAFIFORD Register Bits Bit Name Description Reset Access [31:0] DATAFIFOOUT Data FIFO Read. When the data FIFO is empty, a read of this register returns 0x00000000. See Figure 32 and Figure 33 for word format details.
Page 137
ADuCM355 Hardware Reference Manual UG-1262 Sequence 2 Information Register Address: 0x400C21D0, Reset: 0x00000000, Name: SEQ2INFO Table 165. Bit Descriptions for SEQ2INFO Register Bits Bit Name Description Reset Access [31:27] Reserved Reserved. [26:16] SEQ2INSTNUM SEQ2 Instruction Number. [15:11] Reserved Reserved. [10:0] SEQ2STARTADDR SEQ2 Start Address.
Page 138
UG-1262 ADuCM355 Hardware Reference Manual Sequence 3 Information Register Address: 0x400C21E4, Reset: 0x00000000, Name: SEQ3INFO Table 169. Bit Descriptions for SEQ3INFO Register Bits Bit Name Description Reset Access [31:27] Reserved Reserved. [26:16] INSTNUM SEQ3 Instruction Number. [15:11] Reserved Reserved. [10:0] STARTADDR SEQ3 Start Address.
AFE INTERRUPTS There are interrupt options available on the ADUCM355 analog front end that can be configured to toggle the internal GPIO pin on the digital die. The GPIO pin is connected internally and is not bonded out of the LGA package.
Page 143
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access FLAG25 Data FIFO Threshold IRQ Status. Interrupt not asserted. Interrupt asserted. FLAG24 Data FIFO Empty IRQ Status. Interrupt not asserted. Interrupt asserted. FLAG23 Data FIFO Full IRQ Status.
Page 144
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access FLAG4 ADC Minimum Fail IRQ Status. When this bit is set, it indicates that an ADC result is below the minimum value as specified by the ADCMIN register. If this bit is clear, it indicates that no ADC value below the limit is detected since the last time this bit was cleared.
SLEEP AND WAKE-UP TIMER FEATURES The ADuCM355 integrates a 20-bit sleep and wake-up timer. The sleep and wake-up timer provides automated control of the sequencer and can run up to eight sequences sequentially in any order from SEQ0 to SEQ3. Each sequence has a defined sleep period (SEQxSLEEPx) and a defined active period (SEQxWUPx).
The timer loads the values from the SEQxSLEEPH and SEQxSLEEPL registers and begins counting down again when the sequencer is running. When the timer elapses, the ADuCM355 returns to sleep mode if the TMRCON register, Bit 0 = 1. If the AFE PWRMOD register, Bit 3 = 1, the ADuCM355 returns to sleep mode at the end of the last sequence.
Page 147
ADuCM355 Hardware Reference Manual UG-1262 Timer Control Register Address 0x400C0800, Reset: 0x0000, Name: CON The CON register is the wake-up timer control register. Table 181. Bit Descriptions for CON Register Bits Bit Name Settings Description Reset Access [15:7] Reserved Reserved.
Page 148
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [7:6] SEQD Sequence D Configuration. These bits select SEQ0, SEQ1, SEQ2, or SEQ3 for Timer Sequence D. Fills in SEQ0. Fills in SEQ1. Fills in SEQ2. Fills in SEQ3.
Page 149
ADuCM355 Hardware Reference Manual UG-1262 Sequence 0 to Sequence 3 Sleep Time Registers (LSB) Address 0x400C0810, Reset: 0xFFFF, Name: SEQ0SLEEPL Address 0x400C0820, Reset: 0xFFFF, Name: SEQ1SLEEPL Address 0x400C0830, Reset: 0xFFFF, Name: SEQ2SLEEPL Address 0x400C0840, Reset: 0xFFFF, Name: SEQ3SLEEPL The SEQxSLEEPL registers define the device active time for SEQ0 to SEQ3. The counter is 20 bits. These registers set the 16 LSBs.
UG-1262 ADuCM355 Hardware Reference Manual USE CASE CONFIGURATIONS ADuCM355 is primarily designed for controlling and measuring electrochemical sensors. This section gives suggested setup details for the main use cases of the ADuCM355 with an electrochemical sensor. HIBERNATE MODE WHILE MAINTAINING A DC BIAS TO THE SENSOR In this mode, the digital die and analog die are in hibernate mode.
Page 151
ADuCM355 Hardware Reference Manual UG-1262 EXCITATION BUFFER AMPLIFIER LOOP Dx SWITCHES DSWFULLCON OR SWCON[3:0] RCAL0 RCAL1 Px SWITCHES PSWFULLCON OR SWCON[7:4] DVDD_REG_AD LOAD02 Nx SWITCHES NSWFULLCON OR SWCON[11:8] LOAD04 TSWFULLCON OR SWCON[15:12] HSTIACON[1:0] HIGH SPEED SELECTS SOURCE Tx SWITCHES TRANSIMPEDANCE...
UG-1262 ADuCM355 Hardware Reference Manual MEASURING A DC CURRENT OUTPUT When measuring a dc current output, the ADC is powered on and set to measure the low power TIA input channel. The user has the option to average the ADC results before reading to the digital die, or to use DMA mode to directly move the ADC results to the digital die SRAM.
ADuCM355 Hardware Reference Manual UG-1262 Exiting Cyclic Voltammetry Mode When exiting voltammetry mode to return to biasing the sensor normally or to resume taking dc measurements, take care to minimize the sensor settling time, as follows: Before adjusting the switches for a normal dc bias, reconfigure the low power DAC outputs to their required dc levels. Write to the LPDACDAT0 register or the LPDACDAT1 register.
Page 158
UG-1262 ADuCM355 Hardware Reference Manual After turning on the high speed DAC, calibrate the high speed DAC output if necessary (optional). The high speed DAC can be calibrated to remove the offset error by setting the output code to 0x800, as follows: ...
Page 159
ADuCM355 Hardware Reference Manual UG-1262 C = 0.1µF C = 0.1µF VZERO0 VBIAS0 VBIAS0 DUAL LPTIASWx[13] = 1 OUTPUTS LPTIASWx[12] = 1 12-BIT VZERO0 DACP LOW POWER LOOP: 12-BIT LPTIASWX = 0x302C Dx SWITCHES: WAVE DACN NORMAL CLOSE DR0 EXCITATION...
Page 160
UG-1262 ADuCM355 Hardware Reference Manual C = 0.1µF C = 0.1µF VZERO0 VBIAS0 VBIAS0 DUAL LPTIASWx[13] = 1 OUTPUTS LPTIASWx[12] = 1 12-BIT VDAC VZERO0 DACP LOW POWER 12-BIT Dx SWITCHES: LOOP: WAVE DACN CLOSE D5 LPTIASWx = EXCITATION OPEN OTHER...
Page 161
ADuCM355 Hardware Reference Manual UG-1262 C = 0.1µF C = 0.1µF VZERO0 VBIAS0 VBIAS0 DUAL LPTIASW[13] = 1 OUTPUTS LPTIASW[12] = 1 12-BIT DACP VZERO0 12-BIT LOW POWER WAVE DACN Dx SWITCHES: LOOP: EXCITATION CLOSE D5 LPTIASWx = OPEN OTHER...
Page 162
UG-1262 ADuCM355 Hardware Reference Manual where: V(s) is the signal voltage. I(s) is the calibration current. (magnitude) is the magnitude of the impedance of the calibration. Therefore, (11) In Step 2, (12) RLOAD RLOAD where: is the impedance of the sensor and Load Resistor 2.
ADuCM355 Hardware Reference Manual UG-1262 DMA CONTROLLER The DMA controller is used to perform data transfer tasks between peripherals and memory locations to offload these tasks from the microcontroller unit (MCU). Data can be moved quickly by the DMA without CPU actions, keeping the CPU free for other operations.
UG-1262 ADuCM355 Hardware Reference Manual Program Flow After performing the following steps, the data FIFO issues DMA requests whenever the FIFO receives data. If the number of bytes transferred matches the value specified by Bits[13:4] of the control data configuration register (CFG), the DMA_DONE internal interrupt is asserted.
UG-1262 ADuCM355 Hardware Reference Manual CONTROL DATA CONFIGURATION For each DMA transfer, the CHNL_CFG memory location provides the control information for the DMA transfer to the controller. Table 193. CHNL_CFG Control Data Configuration Source Bit(s) Name Data Width Setting Description...
ADuCM355 Hardware Reference Manual UG-1262 Source Bit(s) Name Data Width Setting Description [17:14] R_POWER DMA Transfers Before Rearbitration. Set these bits to control the number of DMA transfers can occur before the controller rearbitrates. These bits must be set to 0000 for all DMA transfers involving peripherals.
Page 168
UG-1262 ADuCM355 Hardware Reference Manual Basic (CHNL_CFG, Bits[2:0] = 001) In basic mode, the controller can be configured to use either the primary or alternate data structure. The peripheral must present a request for every data transfer. After the channel is enabled, when the controller receives a request, it performs the following operations: The controller performs a transfer.
Page 170
UG-1262 ADuCM355 Hardware Reference Manual Memory Scatter Gather (CHNL_CFG, Bits[2:0] = 100 or 101) In memory scatter gather mode, the controller must be configured to use both the primary and alternate data structures. The controller uses the primary data structure to program the control configuration for the alternate data structure. The alternate data structure is used for actual data transfers, which are similar to an autorequest DMA transfer.
Page 171
ADuCM355 Hardware Reference Manual UG-1262 PRIMARY ALTERNATE COPY FROM A REQUEST IN MEMORY TO ALTERNATE AUTOMATIC REQUESTS N = 3, 2 TASK A AUTOMATIC REQUESTS COPY FROM B IN MEMORY TO ALTERNATE AUTOMATIC REQUESTS TASK B AUTOMATIC REQUESTS N = 8, 2...
Page 172
UG-1262 ADuCM355 Hardware Reference Manual Table 195. CHNL_CFG for Primary Data Structure in Peripheral Scatter Gather Mode, CHNL_CFG, Bits[2:0] = 110 Bit(s) Name Description [31:30] DST_INC Set to 10, configures the controller to use word increments for the address. [29:28] Reserved Undefined.
ADuCM355 Hardware Reference Manual UG-1262 DMA INTERRUPTS AND EXCEPTIONS Error Management The DMA controller generates an error interrupt to the core when a DMA error occurs. A DMA error can occur due to a bus error or an invalid descriptor fetch. A bus error can occur when fetching the descriptor or performing a data transfer. A bus error can occur when a read from or a write to a reserved address location occurs.
UG-1262 ADuCM355 Hardware Reference Manual 0xFFFF 0xFFFF 0xFFFF 0xFFFF FIRST DATA SOURCE SOURCE LAST DATA LAST DATA POINTER POINTER LAST DATA LAST DATA FIRST DATA FIRST DATA FIRST DATA 0x0000 0x0000 0x0000 0x0000 SRC_DEC = 0 DST_DEC = 0 SRC_DEC = 0...
ADuCM355 Hardware Reference Manual UG-1262 Whenever a channel is disabled, based on the current state of the DMA controller, the channel does one of the following: If the user disables the channel and there is no request pending for that channel, it is disabled immediately.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER SUMMARY: DMA Table 196. DMA Register Summary Address Name Description Reset Access 0x40010000 STAT Status 0x00180000 0x40010004 Configuration 0x00000000 0x40010008 PDBPTR Channel primary control data base pointer 0x00000000 0x4001000C ADBPTR Channel alternate control data base pointer...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: DMA STATUS REGISTER Address: 0x40010000, Reset: 0x00180000, Name: STAT Table 197. Bit Descriptions for STAT Bits Bit Name Settings Description Reset Access [31:21] Reserved Reserved. 0x000 [20:16] CHANM1 Number of Available DMA Channels Minus 1. With 24 channels available, the register 0x18 reads back 0x17.
UG-1262 ADuCM355 Hardware Reference Manual CHANNEL SOFTWARE REQUEST REGISTER Address: 0x40010014, Reset: 0x00000000, Name: SWREQ The SWREQ register enables the generation of a software DMA request. Each bit of the register represents the corresponding channel number in the DMA controller. M is the number of DMA channels.
UG-1262 ADuCM355 Hardware Reference Manual CHANNEL PRIMARY ALTERNATE CLEAR REGISTER Address: 0x40010034, Reset: 0x00000000, Name: ALT_CLR The ALT_CLR write only register enables the user to configure the appropriate DMA channel to use the primary control data structure. Each bit of the register represents the corresponding channel number in the DMA controller. The DMA controller sets and clears these bits automatically as necessary for ping pong, memory scatter gather, and peripheral scatter gather transfers.
ADuCM355 Hardware Reference Manual UG-1262 BUS ERROR CLEAR REGISTER Address: 0x40010048, Reset: 0x00000000, Name: ERR_CLR Table 210. Bit Descriptions for ERR_CLR Bits Bit Name Settings Description Reset Access [31:24] Reserved Reserved. 0x00 [23:0] CHAN Bus Error Status. This register is used to read and clear the DMA bus error status.
UG-1262 ADuCM355 Hardware Reference Manual CHANNEL BYTES SWAP ENABLE SET REGISTER Address: 0x40010800, Reset: 0x00000000, Name: BS_SET Table 213. Bit Descriptions for BS_SET Bits Bit Name Settings Description Reset Access [31:24] Reserved Reserved. 0x00 [23:0] CHAN Byte Swap Status. This register is used to configure a DMA channel to use byte 0x000000 swap.
ADuCM355 Hardware Reference Manual UG-1262 CHANNEL SOURCE ADDRESS DECREMENT ENABLE CLEAR REGISTER Address: 0x40010814, Reset: 0x00000000, Name: SRCADDR_CLR Table 216. Bit Descriptions for SRCADDR_CLR Bits Bit Name Settings Description Reset Access [31:24] Reserved Reserved. 0x00 [23:0] CHAN Disable Source Address Decrement. This register enables the user to configure a 0x000000 DMA channel to use the default source address in increment mode.
ADuCM355 Hardware Reference Manual UG-1262 FLASH CONTROLLER FLASH CONTROLLER FEATURES ADuCM355 processor includes 128 kB of embedded flash memory available for access through the flash controller. The embedded flash has a 72-bit wide data bus, providing two 32-bit words of data and one corresponding 8-bit ECC byte per access.
Information Space Information space is reserved for use by Analog Devices and generally stores a bootloader (kernel), several trim and calibration values, and other device specific metadata. All but the top 128 bytes of information space are readable by user code, but attempted erasures and writes are denied.
Page 187
ADuCM355 Hardware Reference Manual UG-1262 INFORMATION SPACE 0x7FF RESERVED 0x7FC RESERVED RANGE 0x780 RESERVED 128 BYTES OF PROTECTED DATA INPUT INTO SPACE. ALL OTHER INFORMATION SPACE ADDRESSES ARE READ ONLY. 0x000 Figure 51. Information Space User Accessible Area User Space Metadata User space is the portion of flash memory intended for user data and program code.
UG-1262 ADuCM355 Hardware Reference Manual FLASH ACCESS Flash memory can be read, written, and erased by user code. Read access is provided through the cache controller using two AHB ports (as shown in Figure 53): ICode for instructions and DCode for data. Write access is provided through keyhole writes using APB control of memory mapped registers.
ADuCM355 Hardware Reference Manual UG-1262 KEYHOLE WRITES A keyhole write is an indirect write operation wherein user code programs memory mapped registers with a target address and data values, then commands the flash controller to perform a write operation in the background. The flash controller supports write access to the flash memory only through keyhole writes.
In the event of an information space integrity check failure, it is expected that the device has failed. Dispose the device or return the device to Analog Devices for failure analysis. If the information space integrity check does not pass, the flash controller enters a special purpose debugging mode.
Page 191
Write protection is a user feature that enables blocks of user space pages to be protected against all write or erase commands. Write protection can be set by the user at run time, or by an Analog Devices bootloader. If protection is set by the user, the user stores the desired value in flash for the bootloader to consume during start-up.
UG-1262 ADuCM355 Hardware Reference Manual If immediate protection is required, user code must also write the same values to the WRPROT register. When writing the WRPROT metadata, consider including write protection of the most significant page, which protects the metadata from a page erase or other modification.
ADuCM355 Hardware Reference Manual UG-1262 User Key This key serves to prevent accidental access to some flash features and addresses. The key value is 0x676C7565. This key must be entered to run protected user commands (erase page, sign, mass erase, and abort) or to enable write access to the UCFG register. When entered, the key remains valid until an incorrect value is written to the key register, or a command is written to the CMD register.
UG-1262 ADuCM355 Hardware Reference Manual FLASH OPERATING MODES The flash memory used by the ADuCM355 processor supports the following power optimizing features. Sleep Mode The user code can put the flash IP into a low power sleep mode by writing the sleep command to the CMD register. The flash controller wakes the flash IP from sleep automatically on the first flash access following a sleep command.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: FLASH CACHE CONTROLLER (FLCC) STATUS REGISTER Address: 0x40018000, Reset: 0x00000000, Name: STAT This register provides information on current command states, error detection, and correction. Table 224. Bit Descriptions for STAT Bits Bit Name...
Page 197
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access [10:9] ECCRDERR ECC IRQ Cause. This field reports the cause of recently generated interrupts. R/W1C The controller can be configured to generate interrupts for 1-bit or 2-bit ECC events by writing the appropriate values to IEN, Bits[7:6].
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access CMDCOMP Command Complete. This bit asserts when a command completes. It R/W1C automatically clears when a new command is requested. Following a POR, the flash controller performs a number of operations, such as verifying the integrity of code in information space.
ADuCM355 Hardware Reference Manual UG-1262 COMMAND REGISTER Address0x40018008, Reset: 0x00000000, Name: CMD Write this register to execute a specified command. The user key must first be written to the key register for most command requests to be honored. See the Key Register section for details.
UG-1262 ADuCM355 Hardware Reference Manual WRITE ADDRESS REGISTER Address: 0x4001800C, Reset: 0x00000000, Name: KH_ADDR This register writes the byte address of any byte of a 64-bit, dual-word flash location to be targeted by a write command. All writes target 64-bit, dual-word elements in the flash array. User code can mask byte data to emulate byte, half word, or word writes. Flash IP specifications warn against writing to any location more than twice between erasures.
Integrity section). By default, the relevant location in flash is 0x3FFF0 (the fourth most significant word in user space) but can be relocated by the Analog Devices bootloader. Alternatively, user code can assert protection at run time for any unprotected blocks by directly writing this register. Blocks can have protection added but cannot have protection removed, and changes are lost on reset.
Hardware Reference Manual All write protection is cleared on a POR, but the Analog Devices bootloader reasserts write protection (as defined by the WRPROT word) in user space before enabling user access to the flash array. Removing write protection can only be performed by an erase page command of the most significant page in user space (provided that page is not currently protected) or by a mass erase command.
ADuCM355 Hardware Reference Manual UG-1262 IRQ ABORT ENABLE (LOWER BITS) REGISTER Address: 0x4001803C, Reset: 0x00000000, Name: ABORT_EN_LO Table 237. Bit Descriptions for ABORT_EN_LO Bits Bit Name Settings Description Reset Access [31:0] VALUE[31:0] System IRQ Abort Enable. To allow a system interrupt to abort an ongoing flash command, write 1 to the bit in this register corresponding with the desired system IRQ number.
UG-1262 ADuCM355 Hardware Reference Manual ANALOG DEVICES FLASH SECURITY REGISTER Address: 0x40018050, Reset: 0x00000000, Name: ADI_POR_SEC This register resets only after a POR or an external reset. Table 241. Bit Descriptions for ADI_POR_SEC Bits Bit Name Settings Description Reset Access...
ADuCM355 Hardware Reference Manual UG-1262 SRAM This section provides an overview of the SRAM functionality of the ADuCM355 processor. For details about the SRAM_INITSTAT, SRAM_CTL, and SRAMRET registers, refer to the Register Summary: Power Management Unit section. This memory space contains the application instructions and constant data that must be executed in real time. It supports read and write access via the Cortex-M3 core and read and write DMA access by system peripherals.
UG-1262 ADuCM355 Hardware Reference Manual When the cache controller is enabled, 4 kB of the instruction SRAM is reserved for cache data. Those 4 kB of cache data are not retained in hibernate mode. Parity bit error detection (optional) is available on all SRAM memories. Two parity bits are associated with each 32-bit word. Parity check can be configured to be enabled or disabled in different memory regions.
Page 207
ADuCM355 Hardware Reference Manual UG-1262 Initialization of more SRAM banks, where parity is enabled, can be achieved at any time by writing to the SRAM_CTL register. Set the appropriate SRAM_CTL, Bits[5:0] for SRAM banks that need parity to be enabled to 1. Also, set SRAM_CTL, Bit 13 to 1. SRAM_CTL, Bit 13 is autocleared to 0 after being written and triggers the initialization sequence.
UG-1262 ADuCM355 Hardware Reference Manual CACHE INITIALIZATION IN CACHE AND INSTRUCTION SRAM Enabling the cache provides a significant performance increase for applications executing from flash. Cache memory coexists with SRAM. When cache is enabled, part of the SRAM is allocated to the cache memory, and as such, cache memory cannot be used for other purposes.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: CACHE (FLCC) CACHE STATUS REGISTER Address: 0x40018058, Reset: 0x00000000, Name: STAT Table 243. Bit Descriptions for STAT Bits Bit Name Settings Description Reset Access [31:1] Reserved Reserved. 0x0000000 ICEN Instruction Cache Enable. Disabled. All AHB accesses take place via flash memory.
ADuCM355 Hardware Reference Manual UG-1262 SILICON IDENTIFICATION The digital and analog die of the ADuCM355 contain a chip ID and hardware revision register that can be read by software to allow users to determine the current revision of the silicon. The automated test equipment (ATE) test program, kernel revisions, and unique chip ID number can be read from the read only locations detailed in Table 246.
Reset Access [15:0] VALUE Analog Devices Identification. Reads a fixed value of 0x4144 to indicate to debuggers that 0x4144 they are connected to an Analog Devices implemented Cortex-based device. CHIP IDENTIFIER (DIGITAL DIE) REGISTER Address: 0x40002024, Reset: 0x0284, Name: CHIPID Chip identification for the digital die.
UG-1262 ADuCM355 Hardware Reference Manual DIGITAL INPUTS AND OUTPUTS DIGITAL INPUTS AND OUTPUTS FEATURES ADuCM355 features multiple bidirectional GPIO pins (GPIOx/PWMx). Most of the GPIO pins have multiple functions, configurable by user code. On power-up, these pins are configured as tristate. There are three 16-bit wide ports. However, not all bits on some ports are accessible.
ADuCM355 Hardware Reference Manual UG-1262 DIGITAL INPUTS AND OUTPUTS OPERATION Each digital input and output is configured, read, and written independent of the other bits. General-Purpose Input Data (GPxIN) The status of the GPIO pins can be read via the GPxIN registers when configured as inputs by the GPxIEN registers.
Page 216
UG-1262 ADuCM355 Hardware Reference Manual Interrupt bits are cleared by writing 1 to the appropriate bit location in GPxINT. Writing 0 has no effect. If interrupts are enabled to the core (GPxIENA, GPxIENB), an interrupt GPxINT value of 1 results in an interrupt to the core. Clear this GPxINT bit during servicing of the interrupt.
ADuCM355 Hardware Reference Manual UG-1262 DIGITAL DIE PORT MUX This block provides control over the GPIO functionality of specified pins. Some pins have the ability to work as a GPIO or perform other specific functions. Only configuration of the P2.4 pin of Port 2 is permitted. Attempted writes to other port pins are not allowed. Any blank cells in Table 255 are not applicable.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: DIGITAL INPUTS AND OUTPUTS Not all bits are accessible to the user on every port. Inaccessible bits are reserved. See Table 255 for more details on the accessible bits. GPIO PORT CONFIGURATION REGISTERS...
UG-1262 ADuCM355 Hardware Reference Manual AFE GPIO PORT OUTPUT ENABLE REGISTER Address: 0x400C0084, Reset: 0x0, Name: OEN Table 274. Bit Descriptions for OEN Bits Bit Name Settings Description Reset Access [15:3] Reserved Reserved. 0x0000 OEN1 Output Enable for AFE Die Clock to Digital Die. The AFE die Pad P2.2 is internally connected to the digital die internal Pad P1.10.
ADuCM355 Hardware Reference Manual UG-1262 AFE GPIO PORT DATA OUTPUT SET REGISTER Address: 0x400C0098, Reset: 0x0, Name: SET Table 279. Bit Descriptions for SET Bits Bit Name Settings Description Reset Access [15:2] Reserved Reserved. 0x0000 [1:0] Set Output High for the AFE Die Port Pins (GPIOx/PWMx). Set by user code to drive the corresponding GPIO high.
7-bit device addresses or a combination of one 10-bit address and two 7-bit addresses in the slave with repeated starts in master and slave modes. Other devices on the bus can enable clock stretching without causing any issues with the ADuCM355.
Page 227
ADuCM355 Hardware Reference Manual UG-1262 10-Bit Addressing This feature is enabled by setting SCTL, Bit 1 for master and slave mode. The 10-bit address of the slave is stored in the ID0 register and ID1 register, where the ID0 register contains the first byte of the address, and the R/W bit and the upper five bits must be programmed to 11110, as shown in Figure 58.
UG-1262 ADuCM355 Hardware Reference Manual Low = REQD_LOW_TIME/PCLK_PERIOD – 1 where REQD_LOW_TIME is the required low time period. For 100 kHz SCL operation with a low time of 5 μs, a high time of 5 μs, and a PCLK frequency of 26 MHz, High = (5 μs/(1/26,000,000)) −...
Page 229
ADuCM355 Hardware Reference Manual UG-1262 In the slave, if there is no valid data to transmit when the transmit shifter is loaded, the transmit underflow status bit asserts (MSTAT, Bit 12 or SSTAT, Bit 1). In slave mode, the transmit FIFO must be loaded with a byte before the falling edge of I2C_SCL and before the acknowledge or no acknowledge is asserted.
Page 230
It is recommended that all devices with an I C bus (including the ADuCM355) are fully powered up before any communications is started on the bus. Rev. B | Page 230 of 312...
ADuCM355 Hardware Reference Manual UG-1262 REGISTER SUMMARY: I Table 282. I C Register Summary Address Name Description Reset Access 0x40003000 MCTL Master control 0x0000 0x40003004 MSTAT Master status 0x6000 0x40003008 Master receive data 0x0000 0x4000300C Master transmit data 0x0000 0x40003010...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access MSTOP Stop Driven by this I C Master. Asserts when this I C master drives a stop condition on the I C bus. This bit, when asserted, can indicate a transaction completion, transmit underflow, receive overflow, or a no acknowledge by the slave.
UG-1262 ADuCM355 Hardware Reference Manual MASTER TRANSMIT DATA REGISTER Address: 0x4000300C, Reset: 0x0000, Name: MTX Table 286. Bit Descriptions for MTX Bits Bit Name Settings Description Reset Access [15:8] Reserved Reserved. [7:0] VALUE Master Transmit. For test and debug purposes, when read, this register returns the byte that is currently being transmitted by the master.
ADuCM355 Hardware Reference Manual UG-1262 SERIAL CLOCK PERIOD DIVISOR REGISTER Address: 0x40003024, Reset: 0x1F1F, Name: DIV Table 291. Bit Descriptions for DIV Bits Bit Name Settings Description Reset Access [15:8] HIGH Serial Clock High Time. This register controls the clock high time. The PCLK drives the timer.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access ADR10EN Enabled 10-Bit Addressing. If this bit is clear, the slave can support four slave addresses, programmed in the ID0 register to the ID3 register. When this bit is set, 10-bit addressing is enabled.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access STXREQ Slave Transmit Request. If SCTL, Bit 5 = 0, this bit is set when the direction bit for a transfer is received high. As long as the transmit FIFO is not full, this bit remains asserted.
UG-1262 ADuCM355 Hardware Reference Manual SECOND SLAVE ADDRESS DEVICE ID REGISTER Address: 0x40003040, Reset: 0x0000, Name: ID1 Table 298. Bit Descriptions for ID1 Bits Bit Name Settings Description Reset Access [15:8] Reserved Reserved. [7:0] Slave Device ID 1. ID1, Bits[7:1] are programmed with the device ID. ID1, Bit 0 is don't care.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access [3:2] SRXF Slave Receive FIFO Status. The status is a count of the number of bytes in a FIFO. FIFO empty. 1 bytes in the FIFO. 2 bytes in the FIFO.
Page 240
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [3:0] Automatic Stretch Mode Control for Master. These bits control automatic stretch mode for master operation. These bits allow the master to hold the I2C_SCL line low and gain more time to service an interrupt, load a FIFO, or read a FIFO. Use the timeout feature to avoid a bus lockup condition where the master indefinitely holds I2C_SCL low.
ADuCM355 Hardware Reference Manual UG-1262 SERIAL PERIPHERAL INTERFACES SPI FEATURES ADuCM355 integrates two complete hardware SPIs with the following standard features: Serial clock phase mode and serial clock polarity mode. LSB first transfer option. Loopback mode. ...
UG-1262 ADuCM355 Hardware Reference Manual In master mode, the SPIx_CTL register controls the polarity and phase of the clock, and the bit rate is defined in the SPIx_DIV register as follows: PCLK (25) SCLK 2 (1 SPIx DIV[5 : 0] where PCLK is the system clock divided by the factor set in CTL1, Bits[13:8].
Page 243
ADuCM355 Hardware Reference Manual UG-1262 In continuous mode, if SPIx_CNT, Bits[13:0] > 0 and SPIx_CNT, Bit 15 = 1, a read of the receive FIFO at the end of an SPI frame always initiates a new SPI frame. To stop SPI transfers at any given frame, clear the SPIx_CNT, Bit 15 before reading the final set of receive bytes.
UG-1262 ADuCM355 Hardware Reference Manual Full Duplex Operation Simultaneous reads and writes are supported on the SPI. When implementing full duplex transfers in master mode, use the following procedure: Initiate a transfer sequence via a transmit on the P0.1/SPI0_MOSI pin and the P1.3/SPI1_MOSI pin. Set SPIx_CTL, Bit 6 = 1. If interrupts are enabled, interrupts are triggered when a transmit interrupt occurs but not when a byte is received.
ADuCM355 Hardware Reference Manual UG-1262 Underrun and Overflow Interrupts SPIx_STAT, Bit 7 and SPIx_STAT, Bit 4 generate SPI interrupts. When a transfer starts with no data in the transmit FIFO, SPIx_STAT, Bit 4 is set to indicate an underrun condition, which causes an interrupt. The interrupt and status bits are cleared upon a read of the status register.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: SPI0/SPI1 STATUS REGISTERS Address: 0x40004000, Reset: 0x0800, Name: SPI0_STAT Address: 0x40024000, Reset: 0x0800, Name: SPI1_STAT Table 306. Bit Descriptions for SPI0_STAT, SPI1_STAT Bits Bit Name Settings Description Reset Access Detected an Edge on Ready Indicator for Flow Control. This bit indicates that there R/W1C was an active edge on the P0.3 line depending on the flow control mode.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access TXDONE SPI Transmit Done in Read Command Mode. R/W1C Cleared to 0 when 1 is written to this bit or when SPIx_CTL, Bit 0 is cleared to 0.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access CPOL Serial Clock Polarity. Serial clock idles low. Serial clock idles high. CPHA Serial Clock Phase Mode. Serial clock pulses at the end of each serial bit transfer.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [2:0] IRQMODE SPI IRQ Mode Bits. These bits configure when the transmit or receive interrupts occur in a transfer. For DMA receive transfer, these bits are 0b000. Transmit interrupt occurs when 1 byte has been transferred. Receive interrupt occurs when 1 or more bytes have been received into the FIFO.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access TXEN Enable Transmit DMA Request. Disable transmit DMA interrupt. Enable transmit DMA interrupt. Enable DMA for Data Transfer. Set by user code to start a DMA transfer. Cleared by user code at the end of DMA transfer.
UG-1262 ADuCM355 Hardware Reference Manual READ CONTROL REGISTERS Address: 0x40004024, Reset: 0x0000, Name: SPI0_RD_CTL Address: 0x40024024, Reset: 0x0000, Name: SPI1_RD_CTL This register is only used in master mode. Table 315. Bit Descriptions for SPI0_RD_CTL, SPI1_RD_CTL Bits Bit Name Settings Description...
ADuCM355 Hardware Reference Manual UG-1262 FLOW CONTROL REGISTERS Address: 0x40004028, Reset: 0x0000, Name: SPI0_FLOW_CTL Address: 0x40024028, Reset: 0x0000, Name: SPI1_FLOW_CTL This register is only used in master mode. Table 316. Bit Descriptions for SPI0_FLOW_CTL, SPI1_FLOW_CTL Bits Bit Name Settings Description...
UG-1262 ADuCM355 Hardware Reference Manual UART SERIAL INTERFACE UART OVERVIEW The UART peripheral is a full duplex UART, compatible with the industry-standard 16450 UART or 16550 UART. The UART is responsible for converting data between serial and parallel formats. The serial communication follows an asynchronous protocol, supporting various word lengths, stop bits, and parity generation options.
Page 257
ADuCM355 Hardware Reference Manual UG-1262 Interrupts The UART peripheral has one interrupt output to the interrupt controller for both receive and transmit interrupts. The COMIIR register must be read by the software to determine the cause of the interrupt. In DMA mode, the break interrupt is not available. When receiving in input or output mode, the interrupt is generated for the following cases: ...
Page 258
10 μs settling time after the first falling edge of the UART wake-up byte. This delay means that the first UART receive byte may not be read correctly by the ADuCM355, especially with UART baud rates ≥ 57,600.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: UART TRANSMIT HOLDING REGISTER Address: 0x40005000, Reset: 0x0000, Name: COMTX COMRX and COMTX share the same address although they are implemented as different registers. If these registers are written to, the user accesses the transmit holding register (COMTX). If these registers are read from, the user accesses the receive buffer register (COMRX).
UG-1262 ADuCM355 Hardware Reference Manual MODEM CONTROL REGISTER Address: 0x40005010, Reset: 0x0000, Name: COMMCR Table 326. Bit Descriptions for COMMCR Bits Bit Name Settings Description Reset Access [15:5] Reserved Reserved. LOOPBACK Loopback Mode. In loopback mode, the UART_SOUT is forced high. The modem signals are...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access Overrun Error. If set, this bit self clears after COMLSR is read. Receive data has not been overwritten. Receive data was overwritten by new data before COMRX was read.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access FDMAMD FIFO DMA Mode. Receive DMA request is asserted when there is data in RBR in the COMRX register or the receive FIFO, and deasserts when RBR or the receive FIFO is empty. A transmit DMA request is asserted when THR in the COMTX register or the transmit FIFO is empty, and deasserts whenever data is written to the COMTX register.
ADuCM355 Hardware Reference Manual UG-1262 DIGITAL DIE GENERAL-PURPOSE TIMERS DIGITAL DIE GENERAL-PURPOSE TIMERS FEATURES ADuCM355 digital die integrates three identical general-purpose, 16-bit count up or count down timers: Timer 0, Timer 1, and Timer 2. These timers can be clocked from the 32 kHz internal low frequency oscillator, the PCLK, or the internal 26 MHz high frequency oscillator.
Page 268
UG-1262 ADuCM355 Hardware Reference Manual undefined results can occur. By default, the counter is reloaded automatically when generating the interrupt signal. If GPTx_CTL, Bit 7 is set to 1, the counter is also reloaded when user code writes GPTx_CLRINT, which allows user changes to GPTx_LOAD to take effect immediately instead of waiting until the next timeout.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access MODE Timer Mode. This bit controls whether the timer runs in periodic or free running mode. In periodic mode, the up or down counter starts at the defined load value (GPTx_LOAD). In free running mode, the up or down counter starts at 0x0000 or 0xFFFF depending on whether the timer is counting up or down.
AFE PWM The AFE die in the ADuCM355 has a dedicated PWM output feature. The high period for the PWM is the difference between the values in the timer load register and either the PWMMAT0 register or PWMMATCH register. The low period for the PWM is the difference between either the PWMMAT0 register or PWMMATCH register and the overflow value 0xFFFF.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: ANALOG DIE GENERAL-PURPOSE TIMERS 16-BIT LOAD VALUE REGISTER Address: 0x400C0D00, Reset: 0x0000, Name: LD0 Table 353. Bit Descriptions for LD0 Bits Bit Name Settings Description Reset Access Load Value. The up or down counter is periodically loaded with this value if periodic...
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access Count Up. Used to control whether the timer increments (counts up) or decrements (counts down) the up or down counter. Timer is set to count up. Timer is set to count down. Default.
UG-1262 ADuCM355 Hardware Reference Manual STATUS REGISTER Address: 0x400C0D1C, Reset: 0x0000, Name: STA0 Table 359. Bit Descriptions for STA0 Bits Bit Name Settings Description Reset Access [15:9] Reserved Reserved. RSTCNT Counter Reset Occurring. Indicates that the counter is currently being reset due to an event detection.
ADuCM355 Hardware Reference Manual UG-1262 INTERRUPT ENABLE REGISTER Address: 0x400C0D28, Reset: 0x0000, Name: INTEN Table 362. Bit Descriptions for INTEN Bits Bit Name Settings Description Reset Access [15:1] Reserved Reserved. INTEN Interrupt Enable. This value is used when the PWM is operating in match mode. The PWM output is asserted when the up or down counter is equal to this match value.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access [6:5] Clock Select. Used to select a timer clock from the four available clock sources. AFE PCLK. AFE high power oscillator. AFE low frequency oscillator. External clock. Timer Enable. Used to enable and disable the timer. Clearing this bit resets the timer, including the CURCNT register.
ADuCM355 Hardware Reference Manual UG-1262 16-BIT TIMER VALUE, ASYNCHRONOUS REGISTER Address: 0x400C0E18, Reset: 0x0000, Name: ACURCNT Only use when a synchronous clock source is selected (CTL, Bits[6:5] = 00). Table 368. Bit Descriptions for ACURCNT Bits Bit Name Settings Description...
UG-1262 ADuCM355 Hardware Reference Manual AFE WATCHDOG TIMER WATCHDOG TIMER FEATURES AND BLOCK DIAGRAM To satisfy the IEC 61508 standard requirement for separating the watchdog timer from all processor clock sources, the analog die watchdog timer is used to recover from an invalid software state. After the watchdog timer is enabled by user code, it requires periodic servicing to prevent it from forcing a reset of the processor.
UG-1262 ADuCM355 Hardware Reference Manual REGISTER DETAILS: AFE WATCHDOG TIMER WATCHDOG TIMER LOAD VALUE REGISTER Address: 0x400C0900, Reset: 0x1000, Name: WDTLD Table 373. Bit Descriptions for WDTLD Bits Bit Name Settings Description Reset Access [15:0] LOAD Watchdog Timer Load Value. This user programmable value. is the value that the 0x1000 counter starts from before counting down to 0.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access WDT Interrupt Enable. Watchdog timer timeout creates a reset. Watchdog timer timeout creates an interrupt instead of a reset. PDSTOP Power Down Stop Enable. Continue counting when in hibernate mode. The watchdog timer continues its count down while in hibernate mode.
OVERVIEW The digital die WUT is the highest priority interrupt on the ADuCM355, as described in Table 41. The WUT is also one of four interrupt sources that can wake the digital die from hibernate mode. The WUT is clocked by the low frequency oscillator. The accuracy specifications of the low frequency oscillator deem this timer unsuitable for a real-time clock setup, although some register names indicate support for a true real-time clock.
UG-1262 ADuCM355 Hardware Reference Manual PROCESSOR CLOCK DOMAIN, CLOCK DOMAIN, FCLK AND PCLK 32kHz DIGITAL TRIM PRESCALER CRYSTAL INTERRUPT OSCILLATOR CONTROL FCLK TIMED CIRCUIT AND STATUS 32kHz IRQ TO NVIC (ANALOG) BASE CLOCK COUNT PRESCALED, GATED 32kHz RTC TIME BASE...
Page 289
ADuCM355 Hardware Reference Manual UG-1262 Ensuring No Communication Across WUT Power Boundary When Powering Down When the CPU has advance knowledge about a power-down, it must either check to confirm that there are no posted writes in the WUT awaiting execution or cancel all queued and executing posted writes in the WUT. Cancellation is achieved by writing a cancellation key of 0xA2C5 to the GWY register, which takes immediate effect.
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: DIGITAL DIE WAKE-UP TIMER CONTROL 0 REGISTER Address: 0x40001400, Reset: 0x03C4, Name: CR0 CR0 is the primary of two control registers for the WUT, the other being CR1. All mainstream WUT operations are enabled and disabled by the CPU using CR0.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access MOD60ALMEN Enable WUT Modulo 60 Counting of Time Past a Modulo 60 Boundary. Enables the detection of the counter passing a value of 60, whereas MOD60ALMINTEN enables the generation of a resultant interrupt.
Page 293
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access WSYNCALM0 Synchronization Status of Posted Writes to the ALM0 Register. WSYNCALM0 indicates if the effects of a posted write to ALM0 are visible to the CPU. Results of a posted write are not yet visible to the CPU.
UG-1262 ADuCM355 Hardware Reference Manual Bits Bit Name Settings Description Reset Access ISOINT WUT Power Domain Isolation Interrupt Source. ISOINT is a sticky interrupt source that R/W1C indicates whether the WUT has had to activate its power domain isolation barrier due to a power loss in the core.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access The WUT can accept new posted clearances of interrupt sources in SR0 located in the 32 kHz domain. A previously posted clearance of interrupt sources in SR0 and maintained in the 32 kHz domain is still awaiting execution.
UG-1262 ADuCM355 Hardware Reference Manual ALARM 0 REGISTER Address: 0x40001414, Reset: 0xFFFF, Name: ALM0 ALM0 contains the lower 16 bits of the prescaled nonfractional WUT alarm target time value, where the overall alarm is defined as ALM1, ALM0, and ALM2.
ADuCM355 Hardware Reference Manual UG-1262 CONTROL 1 REGISTER Address: 0x40001428, Reset: 0x01E0, Name: CR1 This register is a secondary control register that expands the level of WUT control, which is provided by CR0. CR1 allows additional sticky interrupt sources in SR2 to be enabled. These sources fan into the WUT peripheral interrupt to optionally...
UG-1262 ADuCM355 Hardware Reference Manual STATUS 2 REGISTER Address: 0x4000142C, Reset: 0xC000, Name: SR2 SR2 is a status register that further complements the status information provided by SR0 and SR1. SR2 contains sticky interrupt sources optionally enabled via the CR1 register. These interrupt sources alert the CPU when the WUT count has changed, when the prescaled gated clock that controls the advancement of the WUT count has activated, when a trim boundary has occurred, when the 32-bit WUT count has rolled over, and when the modulo 60 version of the WUT count has rolled over.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access The WUT real-time count in CNT1, CNT0, and CNT2 has not risen due to a roll over. The WUT real-time count currently in CNT1, CNT0, and CNT2 has rolled over from a value at or within trimming distance of its maximum to a value at or within trimming distance of its minimum.
UG-1262 ADuCM355 Hardware Reference Manual SNAPSHOT 1 REGISTER Address: 0x40001434, Reset: 0x0000, Name: SNAP1 SNAP1 is a sticky snapshot of the value of CNT1. It is updated at the same time as its counterparts, SNAP0 and SNAP2, thereby overwriting any previous value of SNAP1, SNAP0, and SNAP2. This updating and overwriting occurs when the CPU writes a snapshot request key of 0x7627 to the GWY register.
ADuCM355 Hardware Reference Manual UG-1262 Bits Bit Name Settings Description Reset Access [5:0] CNTMOD60 Modulo 60 Value of the WUT Count. CNTMOD60 is the modulo 60 value of the prescaled WUT count in CNT1 and CNT0. CNTMOD60 counts from 0 to 59 and then rolls over to 0 again.
UG-1262 ADuCM355 Hardware Reference Manual STATUS 6 REGISTER Address: 0x40001488, Reset: 0x7900, Name: SR6 SR6 is a status register that provides the unread status of snapshots of input capture channels, SNAP0, SNAP1, and SNAP2. Table 396. Bit Descriptions for SR6...
ADuCM355 Hardware Reference Manual UG-1262 CYCLIC REDUNDANCY CHECK The CRC accelerator on the digital die computes the CRC for a block of memory locations on the digital die only. The exact memory location can be in the SRAM, flash, or any combination of memory mapped registers. The CRC accelerator generates a checksum that can be compared to an expected signature.
Page 304
UG-1262 ADuCM355 Hardware Reference Manual Polynomial The CRC accelerator supports the calculation of the CRC using any length polynomial. The polynomial must be written to the polynomial register. For MSB first implementation, omit the highest power while programming the CRC polynomial register and left justify the polynomial.
Page 305
ADuCM355 Hardware Reference Manual UG-1262 8-Bit Polynomial Programming for MSB First Calculation Polynomial: CRC-8-ATM + x + 1 = (1) 0000 0111 = 0x07 where the largest exponent (x term) is implied. Therefore, the polynomial is 0000 0111. When left justified in the polynomial register, the register format is detailed in Table 399.
UG-1262 ADuCM355 Hardware Reference Manual Reset and Hibernate Modes The CRC configuration bits are retained, except for the block enable bit (CTL, Bit 0). The block must be enabled again after exiting hibernate mode. The CRC polynomial and CRC result registers are retained after exiting hibernate mode. See Table 402 for details on the CRC registers after a reset and in hibernate mode.
Page 307
ADuCM355 Hardware Reference Manual UG-1262 Read the result register. This register contains the x-bit result in x MSB bits for MSB first and in x LSB bits for LSB first CRC calculations. Calculate CRC on the next data block. To calculate the CRC on the next block of data, repeat Step 1 to Step 5.
ADuCM355 Hardware Reference Manual UG-1262 REGISTER DETAILS: CRC CRC CONTROL REGISTER Address: 0x40040000, Reset: 0x10000000, Name: CTL Table 405. Bit Descriptions for CTL Bits Bit Name Settings Description Reset Access [31:28] REVID Revision ID. [27:5] Reserved Reserved. W16SWP Word 16 Swap. This bit swaps 16-bit half words within a 32-bit word.
UG-1262 ADuCM355 Hardware Reference Manual INPUT DATA BITS REGISTER Address: 0x40040010 to 0x40040017 (Increments of 0x01), Reset: 0x00, Name: IPBITSN Table 409. Bit Descriptions for IPBITSN Bits Bit Name Settings Description Reset Access [7:0] DATA_BITS Input Data Bits. These fields are used to calculate CRC data byte from 1 bit to 7 bits of input data.
Legal Terms and Conditions 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 otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners.
Need help?
Do you have a question about the ADuCM355 and is the answer not in the manual?
Questions and answers