Datasheet docs

Nordic Semiconductor

nRF9151

Low-power IoT System-in-Package integrating an Arm Cortex-M33 application processor, LTE-M/NB-IoT modem, DECT NR+, and GPS receiver.

Cellular IoT SiP/modulenRF9151nRF91 Series12.1 × 11.1 × 1.2 mm LGA SiPLTE-MNB-IoTDECT NR+GPSSPII2CUARTGPIOPWMSWD

Product Specification
v1.0

nRF9151

nRF9151 features

Features:

Microcontroller:

• Arm® Cortex®-M33

247 EEMBC CoreMark score running from flash memory

• Data watchpoint and trace (DWT), embedded trace macrocell (ETM), and instrumentation trace macrocell (ITM)

• Serial wire debug (SWD)

• Trace port

1 MB flash

• 256 kB low leakage RAM

R • Arm TrustZone

• Arm CryptoCell 310

• Up to 4x SPI master/slave with EasyDMA

• Up to 4x I2C compatible two-wire master/slave with EasyDMA

• Up to 4x UART (CTS/RTS) with EasyDMA

• I2S with EasyDMA

• Digital microphone interface (PDM) with EasyDMA

• 4x pulse width modulator (PWM) unit with EasyDMA

• 12-bit, 200 ksps ADC with EasyDMA - eight configurable channels with programmable gain

• 3x 32-bit timer with counter mode

• 2x real-time counter (RTC)

• Programmable peripheral interconnect (PPI)

• 32 general purpose I/O pins

• Single supply voltage: 3.0 – 5.5 V

• All necessary clock sources integrated

• Package: 12.1 × 11.1 × 1.2 mm LGA

Applications:

• Sensor networks

• Logistics and asset tracking

• Smart energy

• Smart building automation

• Smart agriculture

LTE modem:

• Transceiver and baseband

● 3GPP LTE release 14 Cat-M1 compliant

• 3GPP LTE release 14 Cat-NB1 and Cat-NB2 compliant

• GPS receiver

• GPS L1 C/A supported

• QZSS L1 C/A supported

• RF transceiver for global coverage

• Power Class 3 up to 23 dBm output power

• Power Class 5 up to 20 dBm output power

• -108 dBm sensitivity (Cat-M1) for low band, -107 dBm for mid band

• Single 50 Ω antenna interface

• LTE band support in hardware:

Cat-M1: B1, B2, B3, B4, B5, B8, B12, B13, B18, B19, B20, B25, B26, B28, B66, B85

Cat-NB1/NB2: B1, B2, B3, B4, B5, B8, B12, B13, B17, B19, B20, B25, B26, B28, B65, B66, B85

• Supports SIM and eSIM with an ETSI TS 102 221 compatible UICC interface

• Power saving features: DRX, eDRX, PSM

• IP v4/v6 stack

• Secure socket (TLS/DTLS) AP

DECT NR+:

• NR+ band: 1, 2, 9, 22

Current consumption @ 3.7 V:

• LTE power saving mode (PSM) floor current: 2.7 µA

• eDRX @ 81.92s: 18 µA in Cat-M1, 32 µA in Cat-NB1 (UICC included)

• Industrial

• Retail and monitor devices

• Medical devices

• Wearables

Contents

nRF9151 features. ii

1 Revision history. 10
2 About this document. 11
2.1 Document status. 11
2.2 Peripheral chapters. 11
2.2.2 Peripheral instantiation. 11
2.3 Register tables. 12
2.3.1 Fields and values. 12
2.3.2 Permissions. 13
2.4 Registers. 13
2.4.1 DUMMY. 13

3 Product overview. 14
3.1 Block diagram. 14
3.2 Peripheral interface. 15
3.2.1 Peripheral ID. 16
3.2.2 Peripherals with shared ID. 17
3.2.3 Peripheral registers. 17
3.2.4 Bit set and clear. 17
3.2.5 Tasks. 18
3.2.6 Events. 18
3.2.7 Publish and subscribe. 18
3.2.8 Shortcuts. 18
3.2.9 Interrupts. 18
3.2.10 Secure/non-secure peripherals. 19

4 Application core. 20
4.1 CPU. 20
4.1.1 Floating-point interrupt. 20
4.1.2 CPU and support module configuration. 20
4.1.3 Electrical specification. 21
4.2 Memory. 21
4.2.1 Memory map. 23
4.2.2 Instantiation. 25
4.2.3 Peripheral access control capabilities. 27
4.3 VMC — Volatile memory controller. 28
4.3.1 Registers. 28
4.4 NVMC — Non-volatile memory controller. 29
4.4.1 Writing to flash. 30
4.4.2 Erasing a secure page in flash. 30
4.4.3 Erasing a non-secure page in flash. 30
4.4.4 Writing to user information configuration registers (UICR). 30
4.4.5 Erase all. 31
4.4.6 NVMC protection mechanisms. 31
4.4.7 Cache. 32
4.4.8 Registers. 32
4.4.9 Electrical specification. 36

4.5 FICR — Factory information configuration registers. 36
4.5.1 Registers. 36
4.6 UICR — User information configuration registers. 42
4.6.1 Registers. 42
4.7 EasyDMA. 46
4.7.1 EasyDMA error handling. 47
4.7.2 EasyDMA array list. 48
4.8 AHB multilayer interconnect. 48
4.8.1 AHB multilayer priorities. 49

5 Power and clock management. 50
5.1 Power management. 50
5.1.1 System Disabled mode. 50
5.1.2 System OFF mode. 51
5.1.3 System ON mode. 52
5.1.4 Electrical specification. 52
5.2 Power supply. 52
5.2.1 General purpose I/O supply. 52
5.3 Power supply monitoring. 53
5.3.1 Power supply supervisor. 53
5.3.2 External power failure warning. 54
5.3.3 Battery monitoring on VDD. 55
5.3.4 Electrical specification. 55
5.4 Clock management. 56
5.4.1 HFCLK clock controller. 57
5.4.2 LFCLK clock controller. 58
5.4.3 Electrical specification. 58
5.5 Reset. 59
5.5.1 Power-on reset. 59
5.5.2 Pin reset. 59
5.5.3 Wakeup from System OFF mode reset. 59
5.5.4 Soft reset. 60
5.5.5 Watchdog reset. 60
5.5.6 Brownout reset. 60
5.5.7 Retained registers. 60
5.5.8 Reset behavior. 60
5.5.9 Electrical specification. 61
5.6 Current consumption. 61
5.6.1 Electrical specification. 63
5.7 Register description. 68
5.7.1 POWER — Power control. 68
5.7.2 CLOCK — Clock control. 74
5.7.3 REGULATORS — Voltage regulators control. 82

6 Peripherals. 84
6.1 CRYPTOCELL — Arm TrustZone CryptoCell 310. 84
6.1.1 Disclaimer. 85
6.1.2 Usage. 85
6.1.3 Security configuration. 85
6.1.4 Cryptographic flow. 86
6.1.5 Cryptographic key selection. 86
6.1.6 Internal memories. 88
6.1.7 Direct memory access (DMA). 88

6.1.8 Power and clock. 88
6.1.9 Interrupt handling. 89
6.1.10 Standards. 89
6.1.11 Registers. 90
6.1.12 Accelerators. 91
6.1.13 Host integration. 132
6.2 DPPI - Distributed programmable peripheral interconnect. 152
6.2.1 Subscribing to and publishing on channels. 153
6.2.2 DPPI configuration (DPPIC). 155
6.2.3 Connection examples. 155
6.2.4 Special considerations for a system implementing TrustZone for Cortex-M processors. 156
6.2.5 Registers. 157
6.3 EGU — Event generator unit. 160
6.3.1 Registers. 161
6.3.2 Electrical specification. 163
6.4 GPIO — General purpose input/output. 163
6.4.1 Pin configuration. 164
6.4.2 Pin sense mechanism. 165
6.4.3 GPIO security. 166
6.4.4 Registers. 168
6.4.5 Electrical specification. 172
6.5 GPIOTE — GPIO tasks and events. 173
6.5.1 Pin events and tasks. 173
6.5.2 Port event. 174
6.5.3 Tasks and events pin configuration. 174
6.5.4 Registers. 175
6.6 IPC — Interprocessor communication. 179
6.6.1 IPC and PPI connections. 181
6.6.2 Registers. 182
6.6.3 Electrical specification. 185
6.7 I2S — Inter-IC sound interface. 185
6.7.1 Mode. 186
6.7.2 Transmitting and receiving. 186
6.7.3 Left right clock (LRCK). 187
6.7.4 Serial clock (SCK). 187
6.7.5 Master clock (MCK). 188
6.7.6 Width, alignment, and format. 189
6.7.7 EasyDMA. 190
6.7.8 Module operation. 192
6.7.9 Pin configuration. 194
6.7.10 Registers. 194
6.7.11 Electrical specification. 205
6.8 KMU — Key management unit. 205
6.8.1 Functional view. 206
6.8.2 Access control. 206
6.8.3 Protecting the UICR content. 207
6.8.4 Usage. 207
6.8.5 Registers. 211
6.9 PDM — Pulse density modulation interface. 215
6.9.1 Master clock generator. 215
6.9.2 Module operation. 216
6.9.3 Decimation filter. 216
6.9.4 EasyDMA. 216
6.9.5 Hardware example. 217

6.9.6 Pin configuration. 218
6.9.7 Registers. 218
6.9.8 Electrical specification. 227
6.10 PWM — Pulse width modulation. 227
6.10.1 Wave counter. 228
6.10.2 Decoder with EasyDMA. 231
6.10.3 Limitations. 239
6.10.4 Pin configuration. 239
6.10.5 Registers. 239
6.11 RTC — Real-time counter. 250
6.11.1 Clock source. 251
6.11.2 Resolution versus overflow and the prescaler. 251
6.11.3 Counter register. 252
6.11.4 Overflow. 252
6.11.5 Tick event. 253
6.11.6 Event control. 253
6.11.7 Compare. 253
6.11.8 Task and event jitter/delay. 255
6.11.9 Registers. 257
6.12 SAADC — Successive approximation analog-to-digital converter. 265
6.12.1 Overview. 265
6.12.2 Digital output. 266
6.12.3 Analog inputs and channels. 267
6.12.4 Operation modes. 267
6.12.5 EasyDMA. 269
6.12.6 Resistor ladder. 270
6.12.7 Reference. 271
6.12.8 Acquisition time. 271
6.12.9 Limits event monitoring. 272
6.12.10 Registers. 273
6.12.11 Electrical specification. 290
6.12.12 Performance factors. 291
6.13 SPIM — Serial peripheral interface master with EasyDMA. 291
6.13.1 SPI master transaction sequence. 292
6.13.2 Master mode pin configuration. 293
6.13.3 Shared resources. 294
6.13.4 EasyDMA. 294
6.13.5 Low power. 294
6.13.6 Registers. 295
6.13.7 Electrical specification. 306
6.14 SPIS — Serial peripheral interface slave with EasyDMA. 307
6.14.1 Shared resources. 308
6.14.2 EasyDMA. 308
6.14.3 SPI slave operation. 308
6.14.4 Semaphore operation. 310
6.14.5 Pin configuration. 311
6.14.6 Registers. 311
6.14.7 Electrical specification. 321
6.15 SPU — System protection unit. 323
6.15.1 General concepts. 323
6.15.2 Flash access control. 324
6.15.3 RAM access control. 327
6.15.4 Peripheral access control. 330
6.15.5 Pin access control. 332

6.15.6 DPPI access control. 332
6.15.7 External domain access control. 334
6.15.8 TrustZone for Cortex-M ID allocation. 335
6.15.9 Registers. 336
6.16 TIMER — Timer/counter. 345
6.16.1 Capture. 346
6.16.2 Compare. 346
6.16.3 Task delays. 346
6.16.4 Task priority. 346
6.16.5 Registers. 347
6.17 TWIM — I²C compatible two-wire interface master with EasyDMA. 354
6.17.1 Shared resources. 355
6.17.2 EasyDMA. 355
6.17.3 Master write sequence. 356
6.17.4 Master read sequence. 356
6.17.5 Master repeated start sequence. 357
6.17.6 Low power. 358
6.17.7 Master mode pin configuration. 358
6.17.8 Registers. 359
6.17.9 Electrical specification. 373
6.17.10 Pullup resistor. 374
6.18 TWIS — I²C compatible two-wire interface slave with EasyDMA. 374
6.18.1 Shared resources. 376
6.18.2 EasyDMA. 376
6.18.3 TWI slave responding to a read command. 377
6.18.4 TWI slave responding to a write command. 378
6.18.5 Master repeated start sequence. 379
6.18.6 Terminating an ongoing TWI transaction. 380
6.18.7 Low power. 380
6.18.8 Slave mode pin configuration. 380
6.18.9 Registers. 380
6.18.10 Electrical specification. 394
6.19 UARTE — Universal asynchronous receiver/transmitter with EasyDMA. 394
6.19.1 EasyDMA. 395
6.19.2 Transmission. 395
6.19.3 Reception. 396
6.19.4 Error conditions. 398
6.19.5 Using the UARTE without flow control. 398
6.19.6 Parity and stop bit configuration. 398
6.19.7 Low power. 398
6.19.8 Pin configuration. 399
6.19.9 Registers. 399
6.19.10 Electrical specification. 417
6.20 WDT — Watchdog timer. 417
6.20.1 Reload criteria. 417
6.20.2 Temporarily pausing the watchdog. 418
6.20.3 Watchdog reset. 418
6.20.4 Registers. 418
6.20.5 Electrical specification. 422

LTE modem.. 423
7.1 SIM card interface.. 424
7.2 LTE coexistence interface.. 425
7.3 LTE RF control external interface.. 426

7.4 RF front-end interface. 427
7.5 Electrical specification. 427
7.5.1 Key RF parameters for Cat-M1. 427
7.5.2 Key RF parameters for Cat-NB1 and Cat-NB2. 427
7.5.3 Receiver parameters for Cat-M1. 428
7.5.4 Receiver parameters for Cat-NB1 and Cat-NB2. 428
7.5.5 Transmitter parameters for Cat-M1. 428
7.5.6 Transmitter parameters for Cat-NB1 and Cat-NB2. 428

8 DECT NR+. 429
8.1 massive Machine Type Communication (mMTC). 430
8.2 Ultra-Reliable Low-Latency Communication (URLLC). 430
8.3 DECT NR+ on the nRF9151. 430
8.4 Key RF Parameters. 430
8.5 DECT NR+ coexistence interface. 431

9 GPS receiver. 432
9.1 Electrical specification. 432

10 Debug and trace. 434
10.1 DAP - Debug access port. 434
10.2 Access port protection. 435
10.2.2 Registers. 437
10.3 Debug interface mode. 439
10.4 Real-time debug. 439
10.5 Registers. 439
10.5.1 TARGETID. 439
10.6 Electrical specification. 440
10.6.1 Trace port. 440
10.7 Trace. 440
10.7.1 ATB Funnel. 441
10.7.2 ATB Replicator. 448
10.7.3 ETB — Embedded trace buffer. 455
10.7.4 ETM — Embedded trace macrocell. 468
10.7.5 TPIU — Trace port interface unit. 489
10.8 CTRL-AP - Control access port. 503
10.8.1 Reset request. 504
10.8.2 Erase all. 504
10.8.3 Mailbox interface. 504
10.8.4 Disabling erase protection. 505
10.8.5 Debugger registers. 505
10.8.6 Registers. 509
10.9 TAD - Trace and debug control. 511
10.9.1 Registers. 511

11 Hardware and layout. 516
11.1 Pin assignments. 516
11.1.1 LGA pin assignments. 516
11.2 Mechanical specifications. 519
11.2.1 12.1 x 11.1 mm package. 519
11.3 Reference circuitry. 521
11.3.1 nRF9151 reference design. 521

11.4 Reflow conditions. 522
11.5 Shelf and floor life. 522
12 Operating conditions. 523
12.1 VDD_GPIO considerations. 523
13 Absolute maximum ratings. 524
14 Ordering information. 525
14.1 SiP marking. 525
14.2 Box labels. 525
14.3 Order code. 526
14.4 Code ranges and values. 527
14.5 Ordering options. 529
15 Regulatory information. 530
15.1 Certified bands. 530
15.2 Supported FCC/ISED rules. 531
15.3 FCC/ISED regulatory notices. 531
15.4 RF exposure considerations. 534
15.5 Host device manufacturer responsibility. 534
15.6 Antenna interface. 534
15.7 Antenna port test connector. 535
15.8 Reference design. 535
16 Legal notices. 536

Revision history

DateVersionDescription
July 20241.0First release

About this document

This document is organized into chapters that are based on the modules and peripherals available in the IC.

2.1 Document status

The document status reflects the level of maturity of the document.

Document nameDescription
Objective Product Specification (OPS)Applies to document versions up to 1.0.This document contains target specifications for product development.
Product Specification (PS)Applies to document versions 1.0 and higher.This document contains final product specifications. Nordic Semiconductor ASA reserves the right to make changes at any time without notice in order to improve design and supply the best possible product.

Table 1: Defined document names

2.2 Peripheral chapters

Every peripheral has a unique capitalized name or an abbreviation of its name, e.g. TIMER, used for identification and reference. This name is used in chapter headings and references, and it will appear in the Arm Cortex Microcontroller Software Interface Standard (CMSIS) hardware abstraction layer to identify the peripheral.

The peripheral instance name, which is different from the peripheral name, is constructed using the peripheral name followed by a numbered postfix, starting with 0, for example, TIMER0. A postfix is normally only used if a peripheral can be instantiated more than once. The peripheral instance name is also used in the CMSIS to identify the peripheral instance.

The chapters describing peripherals may include the following information:

• A detailed functional description of the peripheral.

• The register configuration for the peripheral.

• The electrical specification tables, containing performance data which apply for the operating conditions described in Operating conditions on page 523.

2.2.2 Peripheral instantiation

The peripherals have a set of security capabilities listed in the instantiation tables.

The following table describes the abbreviations used.

AbbreviationDescription
NSTrustzone/security attribute is Non-secure - The peripheral is always accessible as a Non-secure peripheral.
STrustzone/security attribute is Secure - The peripheral is always accessible as a Secure peripheral.
USTrustzone Map is user selectable - The Trustzone/security attribute of the peripheral is configurable.
HFTrustzone Map is Hardware Fixed - The Trustzone/security attribute of the peripheral cannot be changed.
NANot Applicable - Peripheral has no DMA capability.
NSANoSeparateAttribute - Peripheral with DMA and DMA transfer has the same security attribute as assigned to the peripheral.
SASeparateAttribute - Peripheral with DMA and DMA transfers can have a different security attribute than the one assigned to the peripheral.

Table 2: Instantiation table abbreviations

The Secure mapping column in the peripheral instantiation table defines configuration capabilities for the Arm TrustZone for Armv8-M secure attribute. The DMA security column describes the DMA capabilities of the peripheral.

The instantiation table has the following columns:

• Instance Column - Indicates the peripheral instance name followed by optional Trustzone attribute. A corresponding address is listed in Base address column indicating the base address for Secure and Nonsecure Trustzone attribute. This optional Trustzone attribute is separated by a colon (:).

• Trustzone Column - This has 3 sub-columns indicating the Trustzone map, Trustzone attribute and DMA capability. The options are as listed in Instantiation table abbreviations on page 12.

2.3 Register tables

Individual registers are described using register tables. These tables are built up of two sections. The first three colored rows describe the position and size of the different fields in the register. The following rows describe the fields in more detail.

2.3.1 Fields and values

The Id (Field Id) row specifies the bits that belong to the different fields in the register. If a field has enumerated values, then every value will be identified with a unique value id in the Value Id column.

A blank space means that the field is reserved and read as undefined, and it also must be written as 0 to secure forward compatibility. If a register is divided into more than one field, a unique field name is specified for each field in the Field column. The Value Id may be omitted in the single-bit bit fields when values can be substituted with a Boolean type enumerator range, e.g. true/false, disable(d)/enable(d), on/ off, and so on.

Values are usually provided as decimal or hexadecimal. Hexadecimal values have a prefix, decimal values have no prefix.

The Value column can be populated in the following ways:

• Individual enumerated values, for example 1, 3, 9.

• Range of values, e.g. [0..4], indicating all values from and including 0 and 4.

• Implicit values. If no values are indicated in the Value column, all bit combinations are supported, or alternatively the field's translation and limitations are described in the text instead.

If two or more fields are closely related, the Value Id, Value, and Description may be omitted for all but the first field. Subsequent fields will indicate inheritance with '..'.

A feature marked Deprecated should not be used for new designs.

2.3.2 Permissions

Different fields in a register might have different access permissions enforced by hardware.

The access permission for each register field is documented in the Access column in the following ways:

AccessDescriptionHardware behavior
RORead-onlyField can only be read. A write will be ignored.
WOWrite-onlyField can only be written. A read will return an undefined value.
RWRead-writeField can be read and written multiple times.
W1Write-onceField can only be written once per reset. Any subsequent write will be ignored. A read will return an undefined value.
RW1Read-write-onceField can be read multiple times, but only written once per reset. Any subsequent write will be ignored.
W1CWrite 1 to clearField can be read multiple times. A one clears (set to zero) the corresponding bit in the register. Bits set to zero are ignored.
W1SWrite 1 to setField can be read multiple times. A one sets the corresponding bit in the register. Bits set to zero are ignored.

Table 3: Register field permission schemes

2.4 Registers

Register overview

RegisterOffsetDescription
DUMMY0x514Example of a register controlling a dummy feature

2.4.1 DUMMY

Address offset: 0x514

Example of a register controlling a dummy feature

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDCCCBA
Reset 0x00050002000000000000001010000000000000010
IDR/WFieldValue IDValueDescription
-ARWFIELD0Example of a read-write field with several enumerated values
DisabledThe example feature is disabled
NormalModeThe example feature is enabled in normal mode
ExtendedModeThe example feature is enabled along with extra functionality
BRWFIELD1Example of a deprecated read-write field
This field is deprecated.
DisabledThe override feature is disabled
EnabledThe override feature is enabled
CRWFIELD2Example of a read-write field with a valid range of values
ValidRange[2..7]Example of allowed values for this field
DRWFIELD3Example of a read-write field with no restriction on the values

3 Product overview

The nRF9151 System-in-Package (SiP) is a low-power Internet of Things (IoT) solution integrating an Arm Cortex-M33 processor with advanced security features, a range of peripherals and a Low-Power Wide-Area (LPWA) network processor. The LPWA network processor can operate as a 5G DECT NR+ (NR+) device, independent of cellular network provider or as an LTE modem compliant with 3GPP LTE release 14 Cat-M1 and Cat-NB1/NB2 standards.

The LPWA network processor integrates a flexible transceiver with frequency range 700 MHz to 2200 MHz, through a single 50 Ω antenna pin and a baseband processor. NR+ or LTE operation is supported depending on which network protocol firmware the customer installs on the LPWA network processor of the nRF9151. Nordic Semiconductor provides firmware to support NR+ or LTE, layers L1-L3 and upper IP layers, providing a secure socket API to the application.

The nRF9151 LPWA network processor also integrate a GPS receiver, enabling local positioning support when supported by the installed firmware.

The Arm Cortex-M33 processor is exclusively for the user application, with 1 MB of flash and 256 kB of RAM dedicated for this. The M33 application processor shares the power, clock, and peripheral architecture with Nordic Semiconductor nRF5 Series of PAN/LAN SoCs, ensuring minimal porting efforts.

The peripheral set offers a variety of analog and digital functionality enabling single-chip implementation of a wide range of IoT applications. Arm TrustZone technology, CryptoCell 310 and supporting blocks for system protection and key management, are embedded to enable advanced security needed for IoT applications.

3.1 Block diagram

The block diagram illustrates the overall system. Arrows with white heads indicate signals that share physical pins with other signals.


Figure 1: Block diagram

3.2 Peripheral interface

Peripherals are controlled by the CPU through configuration registers, as well as task and event registers. Task registers are inputs, enabling the CPU and other peripherals to initiate a functionality. Event registers are outputs, enabling a peripheral to trigger tasks in other peripherals and/or the CPU by tying events to CPU interrupts.


Figure 2: Peripheral interface

The distributed programmable peripheral interconnect (DPPI) feature enables peripherals to connect events to tasks without CPU intervention. For more information on DPPI and the DPPI channels, see DPPI - Distributed programmable peripheral interconnect on page 152.

3.2.1 Peripheral ID

Every peripheral is assigned a fixed block of 0x1000 bytes of address space, which is equal to 1024 x 32-bit registers.

See Instantiation on page 25 for more information about which peripherals are available and where they are located in the address map.

There is a direct relationship between peripheral ID and base address. For example, a peripheral with base address 0x40000000 is assigned ${ \mathsf { I D } } { = } 0 ,$ a peripheral with base address 0x40001000 is assigned ID=1, and a peripheral with base address 0x4001F000 is assigned ID=31.

Peripherals may share the same ID, which may impose one or more of the following limitations:

• Shared registers or common resources

• Limited availability due to mutually exclusive operation; only one peripheral in use at a time • Enforced peripheral behavior when switching between peripherals (disable the first peripheral before enabling the second)

3.2.2 Peripherals with shared ID

In general (with the exception of ID 0), peripherals sharing an ID and base address may not be used simultaneously. Only one peripheral can be enabled at a given ID.

When switching between two peripherals sharing an ID, the following should be performed to prevent unwanted behavior:

  1. Disable the previously used peripheral.

  2. Disable any publish/subscribe connection to the DPPI system for the peripheral that is being disabled.

  3. Clear all bits in the INTEN register, i.e. INTENCLR = 0xFFFFFFFF.

  4. Explicitly configure the peripheral being enabled. Do not rely on inherited configuration from the disabled peripheral.

  5. Enable the now configured peripheral.

For a list of which peripherals that share an ID see Instantiation on page 25.

3.2.3 Peripheral registers

Most peripherals feature an ENABLE register. Unless otherwise specified, the peripheral registers must be configured before enabling the peripheral.

PSEL registers need to be set before a peripheral is enabled or started. Updating PSEL registers while the peripheral is running has no effect. To connect a peripheral to a different GPIO, the following must be performed:

  1. Disable the peripheral.

  2. Update the PSEL register.

  3. Re-enable the peripheral.

It takes four CPU cycles between the PSEL register update and the connection between a peripheral and a GPIO becoming effective.

Note: The peripheral must be enabled before tasks and events can be used.

Most of the register values are lost during System OFF or when a reset is triggered. Some registers will retain their values in System OFF or for some specific reset sources. These registers are marked as retained in the register description for a given peripheral. For more information on their behavior, see chapter Reset on page 59.

3.2.4 Bit set and clear

Registers with multiple single-bit bit fields may implement the set-and-clear pattern. This pattern enables firmware to set and clear individual bits in a register without having to perform a read-modify-write operation on the main register.

This pattern is implemented using three consecutive addresses in the register map, where the main register is followed by dedicated SET and CLR registers (in that exact order).

In the main register, the SET register sets individual bits and the CLR register clears them. Writing 1 to a bit in the SET or CLR register will set or clear the same bit in the main register respectively. Writing 0 to a bit in the SET or CLR register has no effect. Reading the SET or CLR register returns the value of the main register.

Note: The main register may not be visible and therefore not directly accessible in all cases.

3.2.5 Tasks

Tasks are used to trigger actions in a peripheral, such as to start a particular behavior. A peripheral can implement multiple tasks with each task having a separate register in that peripheral's task register group.

A task is triggered when firmware writes 1 to the task register, or when the peripheral itself or another peripheral toggles the corresponding task signal. See the figure Peripheral interface on page 16.

3.2.6 Events

Events are used to notify peripherals and the CPU about events that have happened, for example a state change in a peripheral. A peripheral may generate multiple events, where each event has a separate register in that peripheral's event register group.

An event is generated when the peripheral itself toggles the corresponding event signal, and the event register is updated to reflect that the event has been generated, see figure Peripheral interface on page 16. An event register is cleared when a 0 is written to it by firmware. Events can be generated by the peripheral even when the event register is set to 1.

3.2.7 Publish and subscribe

Events and tasks from different peripherals can be connected together through the DPPI system using the PUBLISH and SUBSCRIBE registers in each peripheral. See Peripheral interface on page 16. An event can be published onto a DPPI channel by configuring the event's PUBLISH register. Similarly, a task can subscribe to a DPPI channel by configuring the task's SUBSCRIBE register.

See DPPI - Distributed programmable peripheral interconnect on page 152 for details.

3.2.8 Shortcuts

A shortcut is a direct connection between an event and a task within the same peripheral. If a shortcut is enabled, the associated task is automatically triggered when its associated event is generated.

Using shortcuts is equivalent to making the connection outside the peripheral and through the DPPI. However, the propagation delay when using shortcuts is usually shorter than the propagation delay through the DPPI.

Shortcuts are predefined, which means that their connections cannot be configured by firmware. Each shortcut can be individually enabled or disabled through the shortcut register, one bit per shortcut, giving a maximum of 32 shortcuts for each peripheral.

3.2.9 Interrupts

All peripherals support interrupts which are generated by events.

A peripheral only occupies one interrupt, and the interrupt number follows the peripheral ID. For example, the peripheral with ID=4 is connected to interrupt number 4 in the nested vectored interrupt controlle (NVIC).

Using registers INTEN, INTENSET, and INTENCLR, every event generated by a peripheral can be configured to generate that peripheral's interrupt. Multiple events can be enabled to generate interrupt simultaneously. To resolve the correct interrupt source, the event registers in the event group of peripheral registers will indicate the source.

Some peripherals implement only INTENSET and INTENCLR registers, and the INTEN register is not available on those peripherals. See the individual peripheral chapters for details. In all cases, reading back the INTENSET or INTENCLR register returns the same information as in INTEN.

Each event implemented in the peripheral is associated with a specific bit position in the INTEN, INTENSET, and INTENCLR registers.

The relationship between tasks, events, shortcuts, and interrupts is illustrated in figure Peripheral interface on page 16.

3.2.9.1 Interrupt clearing and disabling

Interrupts should always be cleared by writing 0 to the corresponding EVENT register.

Until cleared, interrupts will immediately be re-triggered and cause software interrupt service routines to be executed repeatedly.

Because the clearing of the EVENT register may take a number of CPU clock cycles, the program should perform a read from the EVENT register that has been cleared before exiting the interrupt service routine. This will ensure that the EVENT clearing has taken place before the interrupt service routine is exited. Care should be taken to ensure that the compiler does not remove the read operation as an optimization.

Similarly, when disabling an interrupt inside an interrupt service routine, the program should perform a read from the INTEN or INTENCLR registers to ensure that the interrupt is disabled before exiting the interrupt service routine.

3.2.10 Secure/non-secure peripherals

For some peripherals, the security configuration can change from secure to non-secure, or vice versa. Care must be taken when changing the security configuration of a peripheral, to prevent security information leakage and ensure correct operation.

The following sequence should be followed, where applicable, when configuring and changing the security settings of a peripheral in the SPU — System protection unit on page 323.

  1. Stop peripheral operation.

  2. Disable the peripheral.

  3. Remove pin connections.

  4. Disable DPPI connections.

  5. Clear sensitive registers (e.g. writing back default values).

  6. Change peripheral security setting in the SPU — System protection unit on page 323.

  7. Re-enable the peripheral.

4 Application core

The nRF9151 application core has a modern and powerful Arm Cortex-M33 with on-chip flash and RAM exclusively for application use.

4.1 CPU

The Arm Cortex-M33 processor has a 32-bit instruction set (Thumb®-2 technology) that implements a superset of 16 and 32-bit instructions to maximize code density and performance.

This processor implements several features that enable energy-efficient arithmetic and high-performance signal processing, including:

• Digital signal processing (DSP) instructions

• Single-cycle multiply and accumulate (MAC) instructions

• Hardware divide

• 8- and 16-bit single instruction, multiple data (SIMD) instructions

• Single-precision floating-point unit (FPU)

• Memory Protection Unit (MPU)

• Arm TrustZone for ARMv8-M

The Arm Cortex Common Microcontroller Software Interface Standard (CMSIS) hardware abstraction layer for the Arm Cortex processor series is implemented and available for the M33 CPU.

Real-time execution is highly deterministic in thread mode, to and from sleep modes, and when handling events at configurable priority levels via the nested vectored interrupt controller (NVIC).

Executing code from internal or external flash will have a wait state penalty. The instruction cache can be enabled to minimize flash wait states when fetching instructions. For more information on cache, see Cache on page 32. The section Electrical specification on page 21 shows CPU performance parameters including the wait states in different modes, CPU current and efficiency, and processing power and efficiency based on the CoreMark® benchmark.

4.1.1 Floating-point interrupt

The floating-point unit (FPU) might generate exceptions when used (for example, due to overflow or underflow), which trigger the FPU interrupt.

See Instantiation on page 25 for more information about which exception number (peripheral ID) is triggered by an FPU exception.

The FPU is not affected by any security configuration. It is presented as non-secure in register PERIPHID[n].PERM. See SPU — System protection unit on page 323 for more information.

To clear the IRQ (interrupt request) line when an exception occurs, the relevant exception bit within the floating-point status and control register (FPSCR) must be cleared. For more information about the FPSCR or other FPU registers, see the Arm Cortex-M33 Devices Generic User Guide.

4.1.2 CPU and support module configuration

The Arm Cortex-M33 processor has a number of CPU options and support modules implemented on the device.

Option / ModuleDescriptionImplemented
Core options
NVICNested vectored interrupt controllerYES
PRIORITIESPriority bits3
WICWake-up interrupt controllerNO
EndiannessMemory system endiannessLittle endian
DWTData watchpoint and traceYES
Modules
MPU_NSNumber of non-secure memory protection unit (MPU) regions16
MPU_SNumber of secure MPU regions16
SAUNumber of security attribution unit (SAU) regions0, see SPU for more information about secure regions.
FPUFloating-point unitYES
DSPDigital signal processing extensionYES
ARMv8-M TrustZoneARMv8-M security extensionsYES
CPIFCo-processor interfaceNO
ETMEmbedded trace macrocellYES
ITMInstrumentation trace macrocellYES
MTBMicro trace bufferNO
CTICross trigger interfaceYES
BPUBreakpoint unitYES
HTMAMBA® AHB trace macrocellNO

4.1.3 Electrical specification

4.1.3.1 CPU performance

The CPU clock speed is 64 MHz. Current and efficiency data is taken when in System ON and the CPU is executing the CoreMark benchmark. It includes power regulator and clock base currents. All other blocks are IDLE.

SymbolDescriptionMin.Typ.Max.Units
$W_{FLASH}$ CPU wait states, running from flash, cache disabled04
$W_{FLASHCACHE}$ CPU wait states, running from flash, cache enabled02
$W_{RAM}$ CPU wait states, running from RAM0
$CM_{FLASH}$ CoreMark $^1$ , running from flash, cache enabled247CoreMark
$CM_{FLASH/MHz}$ CoreMark per MHz, running from flash, cache enabled3.86CoreMark/MHz
$CM_{FLASH/mA}$ CoreMark per mA, running from flash, cache enabled91CoreMark/mA

4.2 Memory

The application microcontroller has embedded 1024 kB flash and 256 kB RAM for application code and data storage.

As illustrated in Memory layout on page 22, both CPU and EasyDMA are able to access RAM via the AHB multilayer interconnect. See AHB multilayer interconnect on page 48 and EasyDMA on page 46 for more information about AHB multilayer interconnect and EasyDMA respectively. The LTE modem can access all application MCU memory, but typically a small portion of RAM is dedicated to data exchange between application MCU and the modem baseband controller.


Figure 3: Memory layout

RAM - Random access memory

RAM can be read and written an unlimited number of times by the CPU and the EasyDMA.

Each RAM AHB slave is connected to one or more RAM sections. See Memory layout on page 22 for more information.

The RAM blocks power states and retention states in System ON and System OFF modes are controlled by the VMC.

Flash - Non-volatile memory

Flash can be read an unlimited number of times by the CPU and is accessible via the AHB interface connected to the CPU, see Memory layout on page 22 for more information. There are restrictions on the number of times flash can be written and erased, and also on how it can be written. For more information, see Absolute maximum ratings on page 524. Writing to flash is managed by the non volatile memory controller (NVMC).

4.2.1 Memory map

All memory and registers are found in the same address space, as illustrated in the device memory map below.


Figure 4: Memory map

Some of the registers are retained (their values kept). Read more about retained registers in Retained registers on page 60 and Reset behavior on page 60.

4.2.2 Instantiation

IDBase addressInstanceTrustZoneSplit accessDescription
MapAttDMA
30x50003000SPUHFSNANoSystem Protection Unit
40x50004000REGULATORS : SUSNSNANoRegulator configuration
0x40004000REGULATORS : NS
50x50005000CLOCK : SUSNSNANoClock control
0x40005000CLOCK : NS
50x50005000POWER : SUSNSNANoPower control
0x40005000POWER : NS
60x50006000CTRL_AP_PERIHFSNANoCTRL-AP-PERI
80x50008000SPIMO : SUSNSSANoSPI master 0
0x40008000SPIMO : NS
80x50008000SPISO : SUSNSSANoSPI slave 0
0x40008000SPISO : NS
80x50008000TWIMO : SUSNSSANoTwo-wire interface master 0
0x40008000TWIMO : NS
80x50008000TWISO : SUSNSSANoTwo-wire interface slave 0
0x40008000TWISO : NS
80x50008000UARTEO : SUSNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 0
0x40008000UARTEO : NS
90x50009000SPIM1 : SUSNSSANoSPI master 1
0x40009000SPIM1 : NS
90x50009000SPIS1 : SUSNSSANoSPI slave 1
0x40009000SPIS1 : NS
90x50009000TWIM1 : SUSNSSANoTwo-wire interface master 1
0x40009000TWIM1 : NS
90x50009000TWIS1 : SUSNSSANoTwo-wire interface slave 1
0x40009000TWIS1 : NS
90x50009000UARTE1 : SUSNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 1
0x40009000UARTE1 : NS
100x5000A000SPIM2 : SUSNSSANoSPI master 2
0x4000A000SPIM2 : NS
100x5000A000SPIS2 : SUSNSSANoSPI slave 2
0x4000A000SPIS2 : NS
100x5000A000TWIM2 : SUSNSSANoTwo-wire interface master 2
0x4000A000TWIM2 : NS
100x5000A000TWIS2 : SUSNSSANoTwo-wire interface slave 2
0x4000A000TWIS2 : NS
100x5000A000UARTE2 : SUSNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 2
0x4000A000UARTE2 : NS
110x5000B000SPIM3 : SUSNSSANoSPI master 3
0x4000B000SPIM3 : NS
110x5000B000SPIS3 : SUSNSSANoSPI slave 3
0x4000B000SPIS3 : NS
110x5000B000TWIM3 : SUSNSSANoTwo-wire interface master 3
0x4000B000TWIM3 : NS
110x5000B000TWIS3 : SUSNSSANoTwo-wire interface slave 3
0x4000B000TWIS3 : NS
110x5000B000UARTE3 : SUSNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 3
0x4000B000UARTE3 : NS
130x5000D000GPIOTE0HFSNANoSecure GPIO tasks and events
140x5000E000SAADC : SUSNSSANoAnalog to digital converter
0x4000E000SAADC : NS
150x5000F000TIMER0 : SUSNSNANoTimer 0
0x4000F000TIMER0 : NS
160x50010000TIMER1 : SUSNSNANoTimer 1
0x40010000TIMER1 : NS
170x50011000TIMER2 : SUSNSNANoTimer 2
0x40011000TIMER2 : NS
200x50014000RTC0 : SUSNSNANoReal time counter 0
0x40014000RTC0 : NS
210x50015000RTC1 : SUSNSNANoReal time counter 1
0x40015000RTC1 : NS
230x50017000DPPIC : SHFNSNAYesDPPI configuration
0x40017000DPPIC : NS
240x50018000WDT : SUSNSNANoWatchdog timer
0x40018000WDT : NS
270x5001B000EGU0 : SUSNSNANoEvent generator unit 0
0x4001B000EGU0 : NS
280x5001C000EGU1 : SUSNSNANoEvent generator unit 1
0x4001C000EGU1 : NS
290x5001D000EGU2 : SUSNSNANoEvent generator unit 2
0x4001D000EGU2 : NS
300x5001E000EGU3 : SUSNSNANoEvent generator unit 3
0x4001E000EGU3 : NS
310x5001F000EGU4 : SUSNSNANoEvent generator unit 4
0x4001F000EGU4 : NS
320x50020000EGU5 : SUSNSNANoEvent generator unit 5
0x40020000EGU5 : NS
330x50021000PWM0 : SUSNSSANoPulse width modulation unit 0
0x40021000PWM0 : NS
340x50022000PWM1 : SUSNSSANoPulse width modulation unit 1
0x40022000PWM1 : NS
350x50023000PWM2 : SUSNSSANoPulse width modulation unit 2
0x40023000PWM2 : NS
360x50024000PWM3 : SUSNSSANoPulse width modulation unit 3
0x40024000PWM3 : NS
380x50026000PDM : SUSNSSANoPulse density modulation (digital microphone) interface
0x40026000PDM : NS
400x50028000I2S : SUSNSSANoInter-IC Sound
0x40028000I2S : NS
420x5002A000IPC : SUSNSNANoInterprocessor communication
0x4002A000IPC : NS
440x4002C000FPUHFNSNANoFloating-point unit
490x40031000GPIOTE1HFNSNANoNon Secure GPIO tasks and events
570x50039000APPROTECT : SHFNSNAYesAPPROTECT control
0x40039000APPROTECT : NS
570x50039000KMU : SHFNSNAYesKey management unit
0x40039000KMU : NS
570x50039000NVMC : SHFNSNAYesNon-volatile memory controller
0x40039000NVMC : NS
580x5003A000VMC : SUSNSNANoVolatile memory controller
0x4003A000VMC : NS
640x50840000CRYPTOCELLHFSNSANoCRYPTOCELL 310 security subsystem
650x50841000CC_AESHFSNSANoCRYPTOCELL AES engine
650x50841000CC_AHBHFSNSANoCRYPTOCELL AHB interface
650x50841000CC_CHACHAHFSNSANoCRYPTOCELL CHACHA engine
650x50841000CC_CTLHFSNSANoCRYPTOCELL CTL interface
650x50841000CC_DINHFSNSANoCRYPTOCELL DIN DMA engine
650x50841000CC_DOUTHFSNSANoCRYPTOCELL DOUT DMA engine
650x50841000CC_HASHHFSNSANoCRYPTOCELL HASH engine
650x50841000CC_HOST_RGFHFSNSANoCRYPTOCELL HOST register interface
650x50841000CC_MISCHFSNSANoCRYPTOCELL MISC interface
650x50841000CC_PKAHFSNSANoCRYPTOCELL PKA engine
650x50841000CC_RNGHFSNSANoCRYPTOCELL RNG engine
650x50841000CC_RNG_SRAMHFSNSANoCRYPTOCELL RNG SRAM interface
660x50842500P0 : S
0x40842500P0 : NSHFNSNAYesGeneral purpose input and output
N/A0x00FF0000FICRHFSNANoFactory information configuration
N/A0x00FF8000UICRHFSNANoUser information configuration
N/A0xE0041000ETMHFNSNANoETM
N/A0xE0051000ETBHFNSNANoETB
N/A0xE0054000TPIUHFNSNANoTPIU
N/A0xE0058000ATBREPLICATORHFNSNANoATBREPLICATOR
N/A0xE005A000ATBFUNNEL1HFNSNANoATBFUNNEL unit 1
N/A0xE005B000ATBFUNNEL2HFNSNANoATBFUNNEL unit 2
N/A0xE0080000TADHFSNANoTrace and debug control

Table 4: Instantiation table

4.2.3 Peripheral access control capabilities

Information about the peripheral access control capabilities can be found in the instantiation table.

The instantiation table has two columns containing the information about access control capabilities for a peripheral:

• Secure mapping: This column defines configuration capabilities for TrustZone-M secure attribute.

• DMA security: This column indicates whether the peripheral has DMA capabilities, and if DMA transfer can be assigned to a different security attribute than the peripheral itself.

For details on options in secure mapping column and DMA security column, see the following tables respectively.

AbbreviationDescription
NSNon-secure: This peripheral is always accessible as a non-secure peripheral.
SSecure: This peripheral is always accessible as a secure peripheral.
USUser-selectable: Non-secure or secure attribute for this peripheral is defined by the PERIPHID[0].PERM register.
SPLITBoth non-secure and secure: The same resource is shared by both secure and non-secure code.
NANot applicable: Peripheral has no DMA capability.
NSANo separate attribute: Peripheral has DMA, and DMA transfers always have the same security attribute as assigned to the peripheral.
SASeparate attribute: Peripheral has DMA, and DMA transfers can have a different security attribute than the one assigned to the peripheral.

Table 5: Secure mapping column options

Table 6: DMA security column options

4.3 VMC — Volatile memory controller

The volatile memory controller (VMC) provides power control of RAM blocks.

Each of the available RAM blocks, which can contain multiple RAM sections, can be turned on or off independently in System ON mode, using the RAM[n]registers. These registers also control if a RAM block, or some of its sections, is retained in System OFF mode. See Memory chapter for more information about RAM blocks and sections.

Note: Powering up a RAM block takes typically 10 cycles. Thus, it is recommended reading the POWER register before accessing a RAM block that has been recently powered on.

4.3.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
VMC : S0x5003A000USNSNANoVolatile memory controller
VMC : NS0x4003A000

Register overview

RegisterOffsetTZDescription
RAM[n].POWER0x600RAMn power control register
RAM[n].POWERSET0x604RAMn power control set register
RAM[n].POWERCLR0x608RAMn power control clear register

4.3.1.1 RAM[n].POWER (n=0..7)

Address offset: 0x600 + (n × 0x10)

RAMn power control register

Bit number313029282726252423222120191817161514131211109876543210
IDH G F EDCBA
Reset 0x0000FFFF00000000000000001111111111111111
IDR/WFieldValue IDValue
A-DRWS[i]POWER (i=0..3)
Off
On
E-HRWS[i]RETENTION (i=0..3)
Off
On

4.3.1.2 RAM[n].POWERSET (n=0..7)

Address offset: 0x604 + (n × 0x10)

RAMn power control set register

When read, this register will return the value of the POWER register.

Bit number313029282726252423222120191817161514131211109876543210
IDH G F EDCBA
Reset 0x0000FFFF00000000000000000111111111111111
IDR/WFieldValue IDValueDescription
A-DWS[i]POWER (i=0..3)Keep RAM section Si of RAM n on or off in System ON mode
On1On
E-HWS[i]RETENTION (i=0..3)Keep retention on RAM section Si of RAM n when RAM section is switched off
On1On

4.3.1.3 RAM[n].POWERCLR (n=0..7)

Address offset: 0x608 + (n × 0x10)

RAMn power control clear register

When read, this register will return the value of the POWER register.

Bit number313029282726252423222120191817161514131211109876543210
IDH G F EDCBA
Reset 0x0000FFFF00000000000000000111111111111111
IDR/WFieldValue IDValueDescription
A-DWS[i]POWER (i=0..3)Keep RAM section Si of RAM n on or off in System ON mode
Off1Off
E-HWS[i]RETENTION (i=0..3)Keep retention on RAM section Si of RAM n when RAM section is switched off
Off1Off

4.4 NVMC — Non-volatile memory controller

The non-volatile memory controller (NVMC) is used for writing and erasing of the internal flash memory and the user information configuration register (UICR).

The NVMC is a split security peripheral. This means that when the NVMC is configured as non-secure, only a subset of the registers is available from the non-secure code. See SPU — System protection unit on page 323 and Registers on page 32 for more details.

When the NVMC is configured to be a secure peripheral, only secure code has access.

Before a write can be performed, the NVMC must be enabled for writing in CONFIG.WEN. Similarly, before an erase can be performed, the NVMC must be enabled for erasing in CONFIG.EEN, see CONFIG on page 33. The user must make sure that writing and erasing are not enabled at the same time. Failing to do so may result in unpredictable behavior.

4.4.1 Writing to flash

When writing is enabled, in CONFIG register for secure region, or in CONFIGNS register for non-secure region, flash is written by writing a full 32-bit word to a word-aligned address in flash.

Secure code has access to both secure and non-secure regions, by using the appropriate configuration of CONFIG and CONFIGNS registers. Non-secure code, in contrast, has access to non-secure regions only. Thus, non-secure code only needs CONFIGNS.

The NVMC is only able to write '0' to erased bits in flash, that is bits set to '1'. It cannot write a bit back to '1'.

As illustrated in Memory on page 21, flash is divided into multiple pages. The same address in flash can only be written nWRITE number of times before a page erase must be performed.

Only full 32-bit words can be written to flash using the NVMC interface. To write less than 32 bits to flash, write the data as a word, and set all the bits that should remain unchanged in the word to '1'. Note that the restriction about the number of writes (see above) still applies in this case.

The time it takes to write a word to flash is specified by t . If CPU executes code from flash while the NVMC is writing to flash, the CPU will be stalled.

Only word-aligned writes are allowed. Byte or half-word-aligned writes will result in a bus fault.

4.4.2 Erasing a secure page in flash

When secure region erase is enabled (in CONFIG register), a flash page can be erased by writing 0xFFFFFFFF into the first 32-bit word in a flash page.

Page erase is only applicable to the code area in the flash and does not work with UICR.

After erasing a flash page, all bits in the page are set to '1'. The time it takes to erase a page is specified by t . The CPU is stalled if the CPU executes code from the flash while the NVMC performs the erase operation.

See Partial erase of a page in flash for information on splitting the erase time in smaller chunks.

4.4.3 Erasing a non-secure page in flash

When non-secure region erase is enabled, a non-secure flash page can be erased by writing 0xFFFFFFFF into the first 32-bit word of the flash page.

Page erase is only applicable to the code area in the flash and does not work with UICR.

After erasing a flash page, all bits in the page are set to '1'. The time it takes to erase a page is specified by t . The CPU is stalled if the CPU executes code from the flash while the NVMC performs the erase operation.

4.4.4 Writing to user information configuration registers (UICR)

User information configuration registers (UICR) are written in the same way as flash. After UICR has been written, the new UICR configuration only takes effect after a reset.

UICR is only accessible by secure code. Any write from non-secure code will be faulted.

In order to lock the chip after uploading non-secure code, a simple sequence must be followed:

  1. Block access to secure code by setting UICR register SECUREAPPROTECT on page 44 to protected

  2. Use the WRITEUICRNS on page 35 register, via non-secure debugger, in order to set APPROTECT (APPROTECT is automatically written to 0x00000000 by the NVMC)

UICR can only be written nWRITE number of times before an erase must be performed using ERASEALL.

The time it takes to write a word to the UICR is specified by tWRITE. The CPU is stalled if the CPU executes code from the flash while the NVMC is writing to the UICR.

4.4.5 Erase all

When erase is enabled, the whole flash and UICR can be erased in one operation by using the ERASEALL register. ERASEALL does not erase the factory information configuration registers (FICR).

This functionality can be blocked by some configuration of the UICR protection bits, see the table NVMC protection (1 - Enabled, 0 - Disabled, X - Don't care) on page 31.

The time it takes to perform an ERASEALL on page 33 command is specified by tERASEALL. The CPU is stalled if the CPU executes code from the flash while the NVMC performs the erase operation.

4.4.6 NVMC protection mechanisms

This chapter describes the different protection mechanisms for the non-volatile memory.

4.4.6.1 NVMC blocking

UICR integrity is assured through use of multiple levels of protection. UICR protection bits can be configured to allow or block certain operations.

The table below shows the different statuses of UICR protection bits, and which operations are allowed or blocked.

UICR protection bit statusNVMC protection
SECUREAPPROTECTAPPROTECTERASEPROTECTCTRL-APNVMC
ERASEALLERASEALL
000AvailableAvailable
1X0AvailableBlocked
X10AvailableBlocked
XX1BlockedBlocked

Table 7: NVMC protection (1 - Enabled, 0 - Disabled, X - Don't care)

Note: Erase can still be performed through CTRL-AP, regardless of the above settings. See CTRL-AP - Control access port on page 503 for more information.

Uploading code with secure debugging blocked

Non-secure code can program non-secure flash regions. In order to perform these operations, the NVMC has the following non-secure registers: CONFIGNS, READY and READYNEXT.

Register CONFIGNS on page 35 works as the CONFIG register but it is used only for non-secure transactions. Both page erase and writing to flash require a write transaction (see Erasing a secure page in flash on page 30 or Erasing a non-secure page in flash on page 30). The SPU — System protection unit on page 323 prevents non-secure code from writing to a secure page since the transaction wil never reach the NVMC controller.

4.4.6.2 NVMC power failure protection

NVMC power failure protection is possible using a power-fail comparator which monitors the power supply. If the power-fail comparator is enabled, and the power supply voltage is below VPOF threshold, the comparator prevents the NVMC from performing erase or write operations in non-volatile memory (NVM).

If a power failure warning is present at the start of an NVM write or erase operation, the NVMC blocks the operation and a bus error is signaled.

If the power failure warning occurs during an ongoing NVM write operation, the NVMC will try to finish the operation. However, if the power failure warning persists, consecutive NVM write operations are blocked by the NVMC, and a bus error is signaled.

If a power failure warning occurs during an NVM erase operation, the operation is aborted and a bus error is signaled.

4.4.7 Cache

An instruction cache (I-Cache) can be enabled for the ICODE bus in the NVMC.

See Memory map on page 23 for the location of flash.

A cache hit is an instruction fetch from the cache, and it has a 0 wait-state delay. The number of waitstates for a cache miss, where the instruction is not available in the cache and needs to be fetched from flash, depends on the processor frequency, see CPU parameter W_FLASHCACHE.

Enabling the cache can increase the CPU performance and reduce power consumption, by reducing the number of wait cycles and the number of flash accesses. This depends on the cache hit rate. Cache draws current when enabled. If the reduction in average current due to reduced flash accesses is larger than the cache power requirement, the average current to execute the program code is reduced.

When disabled, the cache does not draw current and its content is not retained.

It is possible to enable cache profiling to analyze the performance of the cache for your program using the register ICACHECNF. When profiling is enabled, registers IHIT and IMISS are incremented for every instruction cache hit or miss respectively.

4.4.8 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
NVMC : S0x50039000HFNSNAYesNon-volatile memory controller
NVMC : NS0x40039000

Register overview

RegisterOffsetTZDescription
READY0x400NSReady flag
READYNEXT0x408NSReady flag
CONFIG0x504SConfiguration register
ERASEALL0x50CSRegister for erasing all non-volatile user memory
ERASEPAGEPARTIALCFG0x51CSRegister for partial erase configuration
ICACHECNF0x540SI-code cache configuration register
IHIT0x548SI-code cache hit counter
IMISS0x54CSI-code cache miss counter
CONFIGNS0x584NS
WRITEUICRNS0x588NSNon-secure APPROTECT enable register

4.4.8.1 READY

Address offset: 0x400

Ready flag

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WTZFieldValue IDValue
ARREADY
Busy0
Ready1

4.4.8.2 READYNEXT

Address offset: 0x408

Ready flag

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDA
Reset 0x0000000100000000000000000000000000000000001
IDR/WTZFieldValue IDValue
ARREADYNEXT
Busy0
Ready1

4.4.8.3 CONFIG

Address offset: 0x504

Configuration register

Note: This register is one hot

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WTZFieldValue IDValue
ARWWEN
Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used.
Ren
Wen
Een
PEen

4.4.8.4 ERASEALL

Address offset: 0x50C

Register for erasing all non-volatile user memory

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000
IDR/WTZFieldValue IDValue
AWERASEALL
NoOperation0
Erase1

4.4.8.5 ERASEPAGEPARTIALCFG

Address offset: 0x51C

Register for partial erase configuration

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000A00000000000000000000000001010
IDR/WTZFieldValue IDValueDescription
ARWDURATIONDuration of the partial erase in milliseconds
The user must ensure that the total erase time is long enough for a complete erase of the flash page

4.4.8.6 ICACHECNF

Address offset: 0x540

I-code cache configuration register

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x00000000000000000000000000000000000000000000000
IDR/WTZFieldValue IDValue
ARWCACHEEN
Disabled0
Enabled1
BRWCACHEPROFEN
Disabled0
Enabled1

4.4.8.7 IHIT

Address offset: 0x548

I-code cache hit counter

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WTZFieldValue IDValueDescription
ARWHITSNumber of cache hits

4.4.8.8 IMISS

Address offset: 0x54C

I-code cache miss counter

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WTZFieldValue IDValue
ARWMISSESNumber of cache misses

4.4.8.9 CONFIGNS

Address offset: 0x584

Note: This register is one hot

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WTZFieldValue IDValue
ARWWEN
Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used.
Ren0
Wen1
Een2

4.4.8.10 WRITEUICRNS

Address offset: 0x588

Non-secure APPROTECT enable register

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBBBBBBBBBBBBBA
Reset 0x0000000000000000000000000000000000000000
IDR/WTZFieldValue IDValueDescription
AWSETAllow non-secure code to set APPROTECT
Set1Set value
BWKEYKey to write in order to validate the write operation
Keyvalid0xAFBE5A7Key value

4.4.9 Electrical specification

4.4.9.1 Flash programming

SymbolDescriptionMin.Typ.Max.Units
$n_{WRITE}$ Number of times a 32-bit word can be written before erase2
$n_{ENDURANCE}$ Erase cycles per page10,000
$t_{WRITE}$ Time to write one 32-bit word43μs
$t_{ERASEPAGE}$ Time to erase one page87ms
$t_{ERASEALL}$ Time to erase all flash173ms
$t_{ERASEPAGEPARTIAL,setup}$ Setup time for one partial erase1.08ms

4.4.9.2 Cache size

SymbolDescriptionMin.Typ.Max.Units
$Size_{ICODE}$ I-Code cache size2048Bytes

4.5 FICR — Factory information configuration registers

Factory information configuration registers (FICR) are pre-programmed in factory and cannot be erased by the user. These registers contain chip-specific information and configuration.

4.5.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
FICR0x00FF0000HFSNANoFactory information configuration

Register overview

RegisterOffsetTZDescription
SIPINFO.PARTNO0x140SIP part number
SIPINFO.HWREVISION[n]0x144SIP hardware revision, encoded in ASCII, for example B0A or B1A
SIPINFO.VARIANT[n]0x148SIP VARIANT, encoded in ASCII, for example LACA. See Ordering information for details.
INFO.DEVICEID[n]0x204Device identifier
INFO.RAM0x218RAM variant
INFO.FLASH0x21CFlash variant
INFO.CODEPAGESIZE0x220Code memory page size
INFO.CODESIZE0x224Code memory size
INFO.DEVICETYPE0x228Device type
TRIMCNF[n].ADDR0x300Address
TRIMCNF[n].DATA0x304Data
TRNG90B.BYTES0xC00Amount of bytes for the required entropy bits
TRNG90B.RCCUTOFF0xC04Repetition counter cutoff
TRNG90B.APCUTOFF0xC08Adaptive proportion cutoff
TRNG90B.STARTUP0xC0CAmount of bytes for the startup tests
TRNG90B.ROSC10xC10Sample count for ring oscillator configuration 1
TRNG90B.ROSC20xC14Sample count for ring oscillator configuration 2
TRNG90B.ROSC30xC18Sample count for ring oscillator configuration 3
TRNG90B.ROSC40xC1CSample count for ring oscillator configuration 4

4.5.1.1 SIPINFO

SIP-specific device information is provided in the following chapters.

4.5.1.1.1 SIPINFO.PARTNO

Address offset: 0x140

SIP part number

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARPARTNO
91610x00009161
91600x00009160
91510x00009151
91310x00009131

4.5.1.1.2 SIPINFO.HWREVISION[n] (n=0..3)

Address offset: 0x144 + (n × 0x1)

SIP hardware revision, encoded in ASCII, for example B0A or B1A

Note: When treated as a c-string, content is not NULL-terminated.

4.5.1.1.3 SIPINFO.VARIANT[n] (n=0..3)

Address offset: 0x148 + (n × 0x1)

SIP VARIANT, encoded in ASCII, for example LACA. See Ordering information for details.

Note: When treated as a c-string, content is not NULL-terminated.

Bit number76543210
IDAAAAAAAA
Reset 0xFF11111111
IDR/WFieldValue IDValueDescription
ARVARIANTVARIANT[0] contains the most significant character of the SIP VARIANT.
VARIANT[3] contains the least significant character of the SIP VARIANT.
A0x41
B0x42
C0x43
I0x49
L0x4C
S0x53

4.5.1.2 INFO

Device info

4.5.1.2.1 INFO.DEVICEID[n] (n=0..1)

Address offset: 0x204 + (n × 0x4)

Device identifier

DEVICEID[0] contains the least significant bits of the device identifier. DEVICEID[1] contains the most significant bits of the device identifier.

4.5.1.2.2 INFO.RAM

Address offset: 0x218

RAM variant

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000010000000000000000000000000100000000
IDR/WFieldValue IDValueDescription
ARRAMRAM variant
K2560x100256 kByte RAM
Unspecified0xFFFFFFFUnspecified

4.5.1.2.3 INFO.FLASH

Address offset: 0x21C

Flash variant

4.5.1.2.4 INFO.CODEPAGESIZE

Address offset: 0x220

Code memory page size

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000100000000000000000000001000000000000
IDR/WFieldValue IDValueDescription
ARCODEPAGESIZECode memory page size
K40960x10004 kByte

4.5.1.2.5 INFO.CODESIZE

Address offset: 0x224

Code memory size

4.5.1.2.6 INFO.DEVICETYPE

Address offset: 0x228

Device type

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARDEVICETYPEDevice type
Die0x0000000Device is an physical DIE
FPGA0xFFFFFFFDevice is an FPGA

4.5.1.3 TRIMCNF[n].ADDR (n=0..255)

Address offset: 0x300 + (n × 0x8)

Address

4.5.1.4 TRIMCNF[n].DATA (n=0..255)

Address offset: 0x304 + (n × 0x8)

Data

4.5.1.5 TRNG90B

NIST800-90B RNG calibration data

4.5.1.5.1 TRNG90B.BYTES

Address offset: 0xC00

Amount of bytes for the required entropy bits

4.5.1.5.2 TRNG90B.RCCUTOFF

Address offset: 0xC04

Repetition counter cutoff

4.5.1.5.3 TRNG90B.APCUTOFF

Address offset: 0xC08

Adaptive proportion cutoff

4.5.1.5.4 TRNG90B.STARTUP

Address offset: 0xC0C

Amount of bytes for the startup tests

4.5.1.5.5 TRNG90B.ROSC1

Address offset: 0xC10

Sample count for ring oscillator configuration 1

4.5.1.5.6 TRNG90B.ROSC2

Address offset: 0xC14

Sample count for ring oscillator configuration 2

4.5.1.5.7 TRNG90B.ROSC3

Address offset: 0xC18

Sample count for ring oscillator configuration 3

4.6 UICR — User information configuration registers

The user information configuration registers (UICRs) are non-volatile memory (NVM) registers for configuring user specific settings.

For information on writing UICR registers, see the NVMC — Non-volatile memory controller on page 29 and Memory on page 21 chapters.

4.6.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
UICR0x00FF8000HFSNANoUser information configuration

Register overview

RegisterOffsetTZDescription
APPROTECT0x000Access port protection
XOSC32M0x014Oscillator control
HFXOSRC0x01CHFXO clock source selection
HFXOCNT0x020HFXO startup counter
APPNVMCPOFGUARD0x024Enable blocking NVM WRITE and aborting NVM ERASE for Application NVM in POFWARN condition.
SECUREAPPROTECT0x02CSecure access port protection
ERASEPROTECT0x030Erase protection
OTP[n]0x108One time programmable memory
KEYSLOT.CONFIG[n].DEST0x400Destination address where content of the key value registers (KEYSLOT.KEYn.VALUE[0-3]) will be pushed by KMU. Note that this address must match that of a peripheral's APB mapped write-only key registers, otherwise the KMU can push this key value into an address range which the CPU can potentially read.
KEYSLOT.CONFIG[n].PERM0x404Define permissions for the key slot. Bits 0-15 and 16-31 can only be written when equal to 0xFFFF.
KEYSLOT.KEY[n].VALUE[o]0x800Define bits [31+o*32:0+o*32] of value assigned to KMU key slot.

4.6.1.1 APPROTECT

Address offset: 0x000

Access port protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPALLBlocks debugger read/write access to all CPU registers and memory mapped addresses
Any value different to HwUnprotected will make access port protected.
HwUnprotected0x50FA50FAHwUnprotected
Protected0x00000000Protected

4.6.1.2 XOSC32M

Address offset: 0x014

Oscillator control

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0xFFFFFCF111111111111111111111111111001111
IDR/WFieldValue IDValue
ARWCTRL

4.6.1.3 HFXOSRC

Address offset: 0x01C

HFXO clock source selection

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWHFXOSRC
XTAL1
TCXO0

4.6.1.4 HFXOCNT

Address offset: 0x020

HFXO startup counter

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWHFXOCNTHFXO startup counter. Total debounce time = HFXOCNT*64 us + 0.5 us
MinDebounceTime0Min debounce time = (0*64 us + 0.5 us)
MaxDebounceTime255Max debounce time = (255*64 us + 0.5 us)

4.6.1.5 APPNVMCPOFGUARD

Address offset: 0x024

Enable blocking NVM WRITE and aborting NVM ERASE for Application NVM in POFWARN condition.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWNVMCPOFGUARDEN
Disabled0
Enabled1

4.6.1.6 SECUREAPPROTECT

Address offset: 0x02C

Secure access port protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPALL
Any value different to HwUnprotected will make access port protected.
HwUnprotected0x50FA50FA
Protected0x00000000

4.6.1.7 ERASEPROTECT

Address offset: 0x030

Erase protection

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPALLBlocks NVMC ERASEALL and CTRLAP ERASEALL functionality
Unprotected0xFFFFFFFUnprotected
Protected0x00000000Protected

4.6.1.8 OTP[n] (n=0..189)

Address offset: 0x108 + (n × 0x4)

One time programmable memory

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARW1LOWER
BRW1UPPER
Note: Can only be written to a non 0xFFFF value once.

4.6.1.9 KEYSLOT.CONFIG[n].DEST (n=0..127)

Address offset: 0x400 + (n × 0x8)

Destination address where content of the key value registers (KEYSLOT.KEYn.VALUE[0-3]) will be pushed by KMU. Note that this address must match that of a peripheral's APB mapped write-only key registers, otherwise the KMU can push this key value into an address range which the CPU can potentially read.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.

4.6.1.10 KEYSLOT.CONFIG[n].PERM (n=0..127)

Address offset: 0x404 + (n × 0x8)

Define permissions for the key slot. Bits 0-15 and 16-31 can only be written when equal to 0xFFFF.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARWWRITE
Disabled0
Enabled1
BRWREAD
Disabled0
Enabled1
CRWPUSH
Disabled0
Enabled1Enable pushing of key value registers over secure APB. Register KEYSLOT.CONFIGn.DEST must contain a valid destination address!
Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
DRWSTATE
Revoked0
Active1

4.6.1.11 KEYSLOT.KEY[n].VALUE[o] (n=0..127) (o=0..3)

Address offset: 0x800 + (n × 0x10) + (o × 0x4)

Define bits [31+o*32:0+o*32] of value assigned to KMU key slot.

Note: Writing/reading this register requires the KMU SELECTKEYSLOT register to be set to n+1.

4.7 EasyDMA

EasyDMA is a module implemented by some peripherals to gain direct access to Data RAM.

EasyDMA is an AHB bus master similar to CPU and is connected to the AHB multilayer interconnect for direct access to Data RAM. EasyDMA is not able to access flash.

A peripheral can implement multiple EasyDMA instances to provide dedicated channels. For example, for reading and writing of data between the peripheral and RAM. This concept is illustrated in EasyDMA example on page 46.


Figure 5: EasyDMA example

An EasyDMA channel is implemented in the following way, but some variations may occur:

READERBUFFER_SIZE 5
WRITERBUFFER_SIZE 6

uint8_t readerBuffer[READERBUFFER_SIZE] __at__ 0x20000000;
uint8_t writerBuffer[WRITERBUFFER_SIZE] __at__ 0x20000005;

// Configuring the READER channel
MYPERIPHERAL->READER.MAXCNT = READERBUFFER_SIZE;
MYPERIPHERAL->READER.PTR = &readerBuffer;

// Configure the WRITER channel
MYPERIPHERAL->WRITER.MAXCNT = WRITEERBUFFER_SIZE;
MYPERIPHERAL->WRITER.PTR = &writerBuffer;

This example shows a peripheral called MYPERIPHERAL that implements two EasyDMA channels - one for reading called READER, and one for writing called WRITER. When the peripheral is started, it is assumed that the peripheral will perform the following tasks:

• Read 5 bytes from the readerBuffer located in RAM at address 0x20000000

• Process the data

• Write no more than 6 bytes back to the writerBuffer located in RAM at address 0x20000005

The memory layout of these buffers is illustrated in EasyDMA memory layout on page 47.

0x20000000readerBuffer[0]readerBuffer[1]readerBuffer[2]readerBuffer[3]
0x20000004readerBuffer[4]writerBuffer[0]writerBuffer[1]writerBuffer[2]
0x20000008writerBuffer[3]writerBuffer[4]writerBuffer[5]

Figure 6: EasyDMA memory layout

The WRITER.MAXCNT register should not be specified larger than the actual size of the buffer (writerBuffer). Otherwise, the channel would overflow the writerBuffer.

Once an EasyDMA transfer is completed, the AMOUNT register can be read by the CPU to see how many bytes were transferred. For example, CPU can read MYPERIPHERAL->WRITER.AMOUNT register to see how many bytes WRITER wrote to RAM.

Note: The PTR register of a READER or WRITER must point to a valid memory region before use. The reset value of a PTR register is not guaranteed to point to valid memory. See Memory on page 21 for more information about the different memory regions and EasyDMA connectivity.

4.7.1 EasyDMA error handling

Some errors may occur during DMA handling.

If READER.PTR or WRITER.PTR is not pointing to a valid memory region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory on page 21 for more information about the different memory regions.

If several AHB bus masters try to access the same AHB slave at the same time, AHB bus congestion might occur. An EasyDMA channel is an AHB master. Depending on the peripheral, the peripheral might either stall and wait for access to be granted, or lose data.

4.7.2 EasyDMA array list

EasyDMA can operate in Array List mode.

The Array List mode is implemented in channels where the LIST register is available.

The array list does not provide a mechanism to explicitly specify where the next item in the list is located. Instead, it assumes that the list is organized as a linear array where items are located one after the other in RAM.

The EasyDMA Array List can be implemented by using the data structure ArrayList_type as illustrated in the code example below using a READER EasyDMA channel as an example:

#define BUFFER_SIZE 4
typedef struct ArrayList 
{
    uint8_t buffer[BUFFER_SIZE];
} ArrayList_type;

ArrayList_type ReaderList[3] __at__ 0x20000000;

MYPERIPHERAL->READER.MAXCNT = BUFFER_SIZE;
MYPERIPHERAL->READER.PTR = &ReaderList;
MYPERIPHERAL->READER.LIST = MYPERIPHERAL_READER_LIST_ArrayList;

The data structure only includes a buffer of size equal to the size of READER.MAXCNT register. EasyDMA uses the READER.MAXCNT register to determine when the buffer is full.

READER.PTR = &ReaderList

0x20000000 : ReaderList[0]

0x20000004 : ReaderList[1]

0x20000008 : ReaderList[2]

buffer[0]buffer[1]buffer[2]buffer[3]
buffer[0]buffer[1]buffer[2]buffer[3]
buffer[0]buffer[1]buffer[2]buffer[3]

Figure 7: EasyDMA array list

4.8 AHB multilayer interconnect

On the AHB multilayer interconnect, the application CPU and all EasyDMA instances are AHB bus masters while RAM, cache, and peripherals are AHB slaves. External MCU subsystems can be seen both as master and slave on the AHB multilayer interconnect.

Multiple AHB masters can access slave resources within the AHB multilayer interconnect as illustrated in Memory on page 21. Access rights to each of the AHB slaves are resolved using the default natural priority of the different bus masters in the system.

4.8.1 AHB multilayer priorities

Each master connected to the AHB multilayer is assigned a default natural priority.

Bus master nameNatural relative priorityIn/Out
System (CPU)Highest priorityI/O
LTE ModemI/O
I2SI/O
PDMI
SPIM0/SPIS0/TWIM0/TWIS0/UARTE0I/O
SPIM1/SPIS1/TWIM1/TWIS1/UARTE1I/O
SPIM2/SPIS2/TWIM2/TWIS2/UARTE2I/O
SPIM3/SPIS3/TWIM3/TWIS3/UARTE3I/O
SAADCI
PWM0O
PWM1O
PWM2O
PWM3O
CC310Lowest priorityI/O

Table 8: AHB bus masters (listed from highest to lowest priority)

Power and clock management

The power and clock management system automatically ensures maximum power efficiency.

The nRF9151 has three power modes - System Disabled, System ON and System OFF. The System ON and System OFF are internal (automatically handled by the device) and the System Disabled is external (driven by the ENABLE pin and overriding internal ones).

The core of the automatic power and clock management is the power management unit (PMU) illustrated in the following image.


Figure 8: Power management unit

When the device is powered and enabled, the PMU automatically tracks the power and clock resources required by the different components in the system. It then starts/stops and chooses operation modes in supply regulators and clock sources, without user interaction, to achieve the lowest power consumption possible.

5.1 Power management

The two internal modes are handled by the power management unit (PMU), whereas the external is handled by the user via the ENABLE pin.

The System Disabled mode provides a way to override the PMU by manipulating voltages presented to the ENABLE pin.

The PMU steers system-wide clock and power in order to provide the power modes - System ON and System OFF. Under the various modes, internal blocks are automatically powered by the PMU as required by the application.

5.1.1 System Disabled mode

The entire device can be powered down by presenting the appropriate voltage to the externally available ENABLE pin.

The nRF9151 provides a feature to be able disable power throughout the entire device externally. This can be useful when the device is operating as slave processor where it does not need to be powered on at all times, then it is possible to avoid unnecesary current leaking by driving the ENABLE pin to low. The nRF9151 will not start if is not enabled. Moreover, a change from disable to enable, will result in a poweron-reset behavior inside the device.

Note: VDD_GPIO input must be driven low when device is disabled, failing to do so could result in increased leakage. For more information, see VDD_GPIO considerations in Operating conditions on page 523.

Note: If System Disabled mode is not used, ENABLE must be connected to VDD.

Pin ValuePower statusdescription
LowDisabledDevice's internal power regulator disabled
HighEnabledDevice's internal power regulator enabled

Table 9: ENABLE pin configuration

5.1.2 System OFF mode

System OFF is the deepest internal power saving mode the system can enter.

In this mode, the core system functionality is powered down and ongoing tasks terminated, and only the reset and the wakeup functions are available and responsive.

The device is put into System OFF mode using the REGULATORS register interface. When in System OFF mode, one of the following signals/actions will wake up the device:

  1. DETECT signal, generated by the GPIO peripheral

  2. RESET

3. Debug session start

When the device wakes up from System OFF mode, a system reset is performed.

One or more RAM blocks can be retained in System OFF mode depending on the settings in the RAM[n].POWER registers in VMC. RAM[n].POWER are retained registers, see Reset behavior on page 60. Note that these registers are usually overwritten by the startup code provided with the nRF application examples.

Before entering System OFF mode, the user must make sure that all on-going EasyDMA transactions have completed. This can be done by making sure that EasyDMA enabled peripherals have stopped and END events from them received. The LTE modem must also be stopped, by issuing a command through the modem API, before entering System OFF mode. Once the command is issued, wait for the modem to respond that it actually has stopped, as there may be a delay until the modem is disconnected from the network.

5.1.2.1 Emulated System OFF mode

If the device is in debug interface mode, System OFF will be emulated to ensure that all resources required for debugging are available during System OFF.

See Debug and trace on page 434 chapter for more information. Resources required for debugging include the following key components: Debug and trace on page 434, CLOCK — Clock control on page 74, POWER — Power control on page 68, NVMC — Non-volatile memory controller on page 29, CPU on page 20, flash, and RAM. To prevent the CPU from executing unwanted code, an infinite loop must be added directly after entering System OFF mode.

5.1.3 System ON mode

System ON is the power mode entered after a power-on reset.

While in System ON, the system can reside in one of two sub modes:

• Low power

• Constant latency

The low power mode is default after power-on reset.

In low power mode, whenever no application or wireless activity takes place, function blocks like the application CPU, LTE modem and all peripherals are in IDLE state. That particular state is referred to as System ON IDLE. In this state, all function blocks retain their state and configuration, so they are ready to become active once configured by the CPU.

If any application or modem activity occurs, the system leaves the System ON IDLE state. Once a given activity in a function block is completed, the system automatically returns to IDLE, retaining its configuration.

As long as the system resides in low power mode, the PMU ensures that the appropriate regulators and clock sources are started or stopped based on the needs of the function blocks active at any given time.

This automatic power management can be overridden by switching to constant latency mode. In this mode, the CPU wakeup latency and the PPI task response are constant and kept at a minimum. This is secured by keeping a set of base resources that are always enabled. The advantage of having a constant and predictable latency will be at the cost of having significantly increased power consumption compared to the low power mode. The constant latency mode is enabled by triggering the CONSTLAT task (TASKS_CONSTLAT on page 69).

While the system is in constant latency mode, the low power mode can be enabled by triggering LOWPWR task (TASKS_LOWPWR on page 69).

To reduce power consumption while in System ON IDLE, RAM blocks can be turned off in System ON mode while enabling the retention of these RAM blocks in RAM[n].POWER registers in VMC. RAM[n].POWER are retained registers, see Reset behavior on page 60. Note that these registers are usually overwritten by the startup code provided with the nRF application examples.

5.1.4 Electrical specification

5.1.4.1 ENABLE pin

SymbolDescriptionMin.Typ.Max.Units
$V_{SYSTEM\_DISABLED\_ON}$ Operational voltage to enforce System-Disabled power mode.0.8*VDDV
$V_{SYSTEM\_DISABLED\_OFF}$ Operational voltage to cancel System-Disabled power mode.0.4V
$t_{HOLDENABLE}$ ENABLE pin hold timeTBAms

5.2 Power supply

The nRF9151 has a single main power supply VDD, and the internal components are powered by integrated voltage regulators. The PMU manages these regulators automatically, no voltage regulator control needs to be included in application firmware.

5.2.1 General purpose I/O supply

The input/output (I/O) drivers of P0.00 - P0.31 pins are supplied independently of VDD through VDD_GPIO. This enables easy match to signal voltage levels in the printed circuit board design.


Figure 9: GPIO supply input (VDD_GPIO)

The I/Os are supplied via VDD_GPIO pin as shown in figure above. VDD_GPIO pin supports voltage levels within range given in table Operating conditions on page 523. See VDD_GPIO considerations on page 523 for more information on how to control VDD_GPIO power supply.

5.3 Power supply monitoring

Power monitor solutions are available in the device, in order to survey the VDD (battery voltage).

5.3.1 Power supply supervisor

The power supply supervisor enables monitoring of the connected power supply.

Two functionalities are implemented:

• Power-on reset (POR): Generates a reset when the supply is applied to the device, and ensures that the device starts up in a known state

• Brownout reset (BOR): Generates a reset when the supply drops below the minimum voltage required for safe operations

Two BOR levels are used:

• V , used in System OFF

• VBORON, used in System ON

The power supply supervisor is illustrated in the image below.


Figure 10: Power supply supervisor

5.3.2 External power failure warning

The external power failure (EXTPOF) warning can provide the CPU an early warning of an imminent power failure. It does not reset the system, but gives the CPU time to prepare for an orderly power-down. EXTPOF detects power failures external to PMU from the device internal PMIC.

Note: All nRF9151 modem firmware versions support this feature.

The user can start and stop the PMIC EXTPOF feature and set the battery voltage low threshold leve through the modem API.

For application core to receive the power failure warning events, EXTPOFCON on page 83 register in REGULATORS — Voltage regulators control on page 82 must be enabled. If this is disabled, the state of the PMIC warning input is ignored and the power failure warning events are not delivered to application core.

The available time for the CPU to prepare for a power-down depends on the set warning threshold level, the load of the running tasks, and the type of power source used.

Note: For details on services provided by the modem AT command interface, see nRF Connect SDK AT interface and nRF91 AT Commands.

The EXTPOF functional overview is shown in the following figure.


Figure 11: External power failure warning arrangement

If EXTPOF is enabled and the device's internal PMIC detects that battery voltage has dropped below the low threshold level, an POFWARN event is generated (see EVENTS_POFWARN on page 70). The POFWARN event to the CPU can be cleared in the event register, however the PMIC input continues to indicate a warning as long as the battery voltage remains below the low threshold level.

POFWARN event also sets the LTE modem in offline mode.

Note: If a power failure warning occurs during an ongoing NVM write operation, the NVMC tries to finish the operation. Consecutive NVM write operations will be blocked by the NVMC as long as the PMIC input indicates a warning. The CPU interprets a blocked NVM write as a fault, which needs to be handled by the application. If a power failure warning occurs during an ongoing NVM erase operation, the operation will be aborted. Blocking NVM writes and aborting NVM erase operations can be disabled in APPNVMCPOFGUARD on page 44.

The external power failure warning doesn't trigger wakeup from System OFF.

The external power failure warning is disabled in System OFF mode.

5.3.3 Battery monitoring on VDD

A battery voltage (VDD) monitoring capability is provided via a modem API.

Note: For details on services provided by the modem AT command interface, see nRF Connect SDK AT interface and nRF91 AT Commands.

5.3.4 Electrical specification

5.3.4.1 Device startup times

SymbolDescriptionMin.Typ.Max.Units
$t_{POR}$ Time in power-on reset after VDD has reached 3V, ENABLE is tied to VDD.1.2ms
$t_{PINR}$ The maximum time taken to pull up the nRESET pin and release reset after power-on reset. Dependent on the pin capacitive load (C) $^{2}$ : t=TRC; Typical: T=2 R=13 kΩ; Max: T=5 R=16 kΩ.......
$t_{PINR,500nF}$ C=500 nF1340ms
$t_{PINR,10uF}$ C=10 μF260800ms
$t_{R2ON}$ Time from reset to ON (CPU execute)127135μs

2 To decrease the maximum time a device can be held in reset, a strong external pull-up resistor can be used.

SymbolDescriptionMin.Typ.Max.Units
$t_{OFF2ON}$ Time from OFF to CPU execute7392μs
$t_{WFE2CPU}$ Time from WFE to CPU execute7090μs
$t_{WFI2CPU}$ Time from WFI to CPU execute6990μs
$t_{EVTSET,CL1}$ Time from HW event to PPI event in constant latency System ON mode0.10.1μs
$t_{EVTSET,CL0}$ Time from HW event to PPI event in low power System ON mode0.10.7μs
$t_{LTEMODEM,TYP}$ LTE modem typical startup time. Time from application core powering up the modem until the modem is ready to receive the first AT command.200ms
$t_{LTEMODEM,WORSTCASE}$ LTE modem worst case startup time. Time from application core powering up the modem until the modem is ready to receive the first AT command, with modem firmware variable elements included.250ms
$t_{LTEMODEM,FOTA}$ LTE modem startup time after modem FOTA update. Time from application core powering up the modem after a modem FOTA update until the modem is ready to receive the first AT command.7.5s
$t_{LTEMODEM,FOTAREJECT}$ LTE modem startup time after a rejected modem FOTA update. Time from application core powering up the modem after a rejected modem FOTA update until the modem is ready to receive the first AT command. Modem will revert back to original firmware image.90s
$t_{LTEMODEM,STOP,TYP}$ LTE modem typical shutdown time. Time from application core calling bsd_shutdown command until bsd_shutdown returns.1.6s
$t_{LTEMODEM,STOP,WORSTCASE}$ LTE modem worst case shutdown time. Time from application core calling bsd_shutdown command until bsd_shutdown returns, including modem firmware variable elements.79s

5.3.4.2 Power supply supervisor

SymbolDescriptionMin.Typ.Max.Units
$V_{BOR}$ Brownout reset voltage threshold.2.80V
$V_{POR}$ Voltage threshold at which the device enters power-on reset (POR) when VDD is ramping up.3.0V

5.4 Clock management

The clock control system can source the system clocks from a range of high and low frequency oscillators, and distribute them to modules based upon a module's individual requirements.

Clock generation and distribution is handled automatically by PMU to optimize current consumption. This optimization will affect the predictability of the oscillators' startup times under different device operating conditions. However, it is possible to bypass some of the power saving mechanisms by explicitly keeping the system on constant latency sub mode (more about constant latency in System ON mode on page 52) and/or manipulating START/STOP clock task registers.

The following are the available clock signal sources:

• 64 MHz oscillator (HFINT)

• 64 MHz high accuracy oscillator (HFXO)

• 32.768 kHz RC oscillator (LFRC)

• 32.768 kHz high accuracy oscillator (LFXO)

The clock and oscillator resources are configured and controlled via the CLOCK peripheral as illustrated below.


Figure 12: Clock and oscillator setup

5.4.1 HFCLK clock controller

The HFCLK clock controller provides several clocks in the system.

These are as follows:

• HCLK: 64 MHz CPU clock

• PCLK1M: 1 MHz peripheral clock

• PCLK16M: 16 MHz peripheral clock

• PCLK32M: 32 MHz peripheral clock

The HFCLK controller uses the following high frequency clock (HFCLK) sources:

• 64 MHz oscillator (HFINT)

• 64 MHz high accuracy oscillator (HFXO)

For illustration, see Clock and oscillator setup on page 57.

The HFCLK controller automatically provides the clock(s) requested by the system. If the system does not request any clocks from the HFCLK controller, the controller switches off all its clock sources and enters a power saving mode.

The HFINT source is used when HFCLK is requested and HFXO has not been started.

The HFXO is started by triggering the HFCLKSTART task and stopped using the HFCLKSTOP task. A HFCLKSTARTED event is generated when the HFXO has started and its frequency is stable.

5.4.2 LFCLK clock controller

The system supports several low frequency clock sources.

As illustrated in Clock and oscillator setup on page 57, the system supports the following low frequency clock sources:

• LFXO: 32.768 kHz high accuracy oscillator

• LFRC: 32.768 kHz RC oscillator

The LFCLK clock controller and all LFCLK clock sources are always switched off when in System OFF mode.

The LFCLK clock is started by first selecting the preferred clock source in the LFCLKSRC on page 82 register and then triggering the LFCLKSTART task. LFXO is highly recommended as the LFCLK clock source, since the LFRC has a large frequency variation.

Note: The LTE modem requires use of LFXO as the LFCLK source.

Switching between LFCLK clock sources can be done without stopping the LFCLK clock. A LFCLK clock source which is running prior to triggering the LFCLKSTART task continues to run until the selected clock source is available. After that the clock sources will be switched. Switching between clock sources will stretch a clock pulse by 0.5 to 1.0 clock cycle (i.e. will delay rising edge by 0.5 to 1.0 clock cycle).

Note: If the watchdog timer (WDT) is running, the default LFCLK clock source (LFRC - see LFCLKSRC on page 82) is started automatically (LFCLKSTART task doesn't have to be triggered).

A LFCLKSTARTED event will be generated when the selected LFCLK clock source has started.

Note: The first time LFXO is selected, LFRC quality is provided until LFXO is stable.

A LFCLKSTOP task will prevent global requesting of the LFCLK clock, unless a system component such as WDT or modem requires the LFCLK, in which case the clock is not stopped. The LFCLKSTOP task should only be triggered after the STATE field in the LFCLKSTAT register indicates a LFCLK running state.

5.4.2.1 32.768 kHz RC oscillator (LFRC)

The default source of the low frequency clock (LFCLK) is the 32.768 kHz RC oscillator (LFRC).

The LFRC frequency is affected by variation in temperature.

5.4.3 Electrical specification

5.4.3.1 64 MHz internal oscillator (HFINT)

SymbolDescriptionMin.Typ.Max.Units
$f_{NOM\_HFINT}$ Nominal output frequency64MHz
$f_{TOL\_HFINT}$ Frequency tolerance±1±5%
$t_{START\_HFINT}$ Startup time3.2μs

5.4.3.2 64 MHz high accuracy oscillator (HFXO)

SymbolDescriptionMin.Typ.Max.Units
$f_{NOM\_HFXO}$ Nominal output frequency64MHz
$f_{TOL\_HFXO}$ Frequency tolerance±1ppm
$t_{START\_HFXO}$ Startup time2ms

5.4.3.3 32.768 kHz high accuracy oscillator (LFXO)

SymbolDescriptionMin.Typ.Max.Units
$f_{NOM\_LFXO}$ Frequency32.768kHz
$f_{TOL\_LFXO}$ Frequency tolerance±20ppm
$t_{START\_LFXO}$ Startup time450ms

5.4.3.4 32.768 kHz RC oscillator (LFRC)

SymbolDescriptionMin.Typ.Max.Units
$f_{NOM\_LFRC}$ Nominal frequency32.768kHz
$f_{TOL\_LFRC}$ Frequency tolerance30%
$t_{START\_LFRC}$ Startup time600μs

5.5 Reset

A system reset can be triggered by multiple sources. After a reset the CPU can query the RESETREAS (reset reason register) to find out which source generated the reset.

5.5.1 Power-on reset

The power-on reset generator initializes the system at power-on. The system is held in reset state until the supply has reached the minimum operating voltage and the internal voltage regulators have started.

5.5.2 Pin reset

A pin reset is generated when the physical reset pin (nRESET) on the device is pulled low.

To ensure that reset is issued correctly, the reset pin should be held low for the time specified in Pin reset on page 61.

nRESET pin has an always-on internal pull-up resistor connected to nRF9151 internal voltage typically of 2.2 V level, as illustrated in the following figure. The value of the pull-up resistor is given in Pin reset on page 61.

Note: Driving nRESET high with a voltage lower than 2.2V will result in additional leakage.


Figure 13: Pin reset internal generation

5.5.3 Wakeup from System OFF mode reset

The device is reset when it wakes up from System OFF mode.

The Debug access port is not reset following a wake up from System OFF mode if the device is in debug interface mode, see Debug and trace on page 434 chapter for more information.

5.5.4 Soft reset

A soft reset is generated when the SYSRESETREQ bit of the application interrupt and reset control register (AIRCR register) in the Arm core is set.

5.5.5 Watchdog reset

A watchdog reset is generated when the watchdog timer (WDT) times out.

See WDT — Watchdog timer on page 417 chapter for more information.

5.5.6 Brownout reset

The brownout reset generator puts the system in reset state if the supply voltage drops below the brownout reset threshold.

5.5.7 Retained registers

A retained register is a register that will retain its value in System OFF mode, and through a reset depending on reset source. For information on which peripheral registers are retained, see the corresponding peripheral's chapter.

5.5.8 Reset behavior

Reset behavior depends on the reset source.

The reset behavior is summarized in the table below.

Reset sourceReset target
CPUModem $Debug^3$ SWJ-DPNot retained RAM4Retained RAM4WDTRESETREAS
$CPU lockup ^5$ xx
Soft resetxx
Wakeup from System OFF mode resetxx $x^6$ xx
$Watchdog reset ^7$ xxxxxx
Pin resetxxxxxxx
Brownout resetxxxxxxxx
Power-on resetxxxxxxx

Table 10: Reset behavior for the main components

Note: The RAM is never reset but its content might be corrupted after reset in the cases given in the table above.

Reset sourceReset target
Regular peripheral registersGPIO, SPUNVMC WAITSTATENUMNVMC IFCREADDELAYREGULATORS, OSCILLATORSPOWER.GPREGRET
CPU lockup $^{5}$ XXX
Soft resetXXX
Wakeup from System OFF mode resetXX
Watchdog reset $^{7}$ XXXX
Pin resetXXXX
Brownout resetXXXXXX
Power-on resetXXXXXX

Table 11: Reset behavior for the retained registers

5.5.9 Electrical specification

5.5.9.1 Pin reset

SymbolDescriptionMin.Typ.Max.Units
$t_{HOLDRESET}$ Hold time for reset pin when doing a pin reset5μs
$R_{PULL-UP}$ Value of the internal pull-up resistor13kΩ

5.6 Current consumption

As the system is constantly tuned by the PMU described in Power and clock management on page 50, estimating the current consumption of an application can be challenging if the designer cannot perform measurements directly on the hardware. To facilitate the estimation process, a set of current consumption scenarios are provided to show the typical current drawn from the VDD supply.

Each scenario specifies a set of operations and conditions that apply to the given scenario. The following table shows a set of common conditions used in all scenarios, unless otherwise is stated in the scenario's description. Similarly, Current consumption scenarios, common conditions for LTE modem on page 62 describes the conditions used for the modem current consumption specifications. For a list of all scenarios, see Electrical specification on page 63.

Peripherals typically share one or more power sources. This results in a current consumption that does not scale linearly with the number of peripherals enabled. For example, the current consumption for an application with two peripherals enabled, is not the sum of the currents reported by their individua peripherals.

ConditionValue
Supply3.7 V
Temperature25 °C
CPUWFI (wait for interrupt)/WFE (wait for event) sleep
PeripheralsAll $idle^8$
ClockHFCLK=HFINT Not runningLFCLK=Not running
RAMNo retention
Cache enabledYes

Table 12: Current consumption scenarios, common conditions

Condition
Cat-M1 and Cat-NB1 HD FDD mode
Good channel, RF cable, no errors in DL/UL communication
Minimum network response times
Wideband radio communication tester used.9
Output power at antenna port, single-ended 50 Ω
Modem eDRX current consumption quoted with UICC that allows UICC supply shut down at eDRX intervals.10 11 12
Modem PSM TAU event energy is measured from the modem PSM wake-up until end of RX inactivity time
All LTE modem current consumption numbers include application core idle mode consumption13

Table 13: Current consumption scenarios, common conditions for LTE modem

5.6.1 Electrical specification

5.6.1.1 Current consumption during System Disabled

SymbolDescriptionMin.Typ.Max.Units
$I_{SYSTEM\_DISABLED}$ ENABLE and VDD_GPIO pins grounded150nA

5.6.1.2 Sleep

SymbolDescriptionMin.Typ.Max.Units
$I_{MCUOFF0}$ MCU off, modem off, wake on GPIO and reset1.4μA
$I_{MCUON0}$ MCU on IDLE, modem off, RTC off1.8μA
$I_{MCUON1}$ MCU on IDLE, modem off, RTC on2.2μA
$I_{MCUON2}$ MCU on IDLE, modem off, wake on GPIOTE input (event mode), Constant latency System ON mode600μA
$I_{MCUON3}$ MCU on IDLE, modem off, wake on GPIOTE input (event mode), Low power System ON mode18μA
$I_{MCUON4}$ MCU on IDLE, modem off, wake on GPIOTE input (port event)1.8μA
$I_{RAM}$ RAM retention leakage current of a 32kB block0.1μA

5.6.1.3 Application CPU active current consumption

The application CPU running parameters are obtained using the following compiler version: Compiler: Arm version 6.16 (armclang)

Compiler flags:

-Wno-unused-command-line-argument --target=arm-arm-none-eabi -c -g -masm=auto -Wno-unused-value -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fno-rtti -flto -funsigned-char -mcmse -Omax -ffunction-sections
SymbolDescriptionMin.Typ.Max.Units
$I_{CPU0\_FLASH}$ CPU running CoreMark @64 MHz from flash, clock = HFINT, cache enabled2.7mA
$I_{COREMARK\_PER\_MA\_FLASH}$ CoreMark per mA, executing from flash, CoreMark=24791CoreMark/mA
$I_{CPU0\_RAM}$ CPU running CoreMark @64 MHz from RAM, clock = HFINT2.1mA
$I_{COREMARK\_PER\_MA\_RAM}$ CoreMark per mA, executing from RAM, CoreMark=239114CoreMark/mA

5.6.1.4 I2S

SymbolDescriptionMin.Typ.Max.Units
$I_{I2S0}$ I2S transferring data left-channel (mono) @ 16 bit x 16 kHz(CONFIG.MCKFREQ = 32MDIV8, CONFIG.RATIO = 256X), Clock = HFINT600μA
$I_{I2S1}$ I2S transferring data left-channel (mono) @ 16 bit x 16 kHz(CONFIG.MCKFREQ = 32MDIV8, CONFIG.RATIO = 256X), Clock = HFXO1620μA

5.6.1.5 PDM

SymbolDescriptionMin.Typ.Max.Units
$I_{PDM}$ PDM receiving and processing data 16KHz, with FREQ = 1.28MHz,MODE.OPERATION = mono620μA
$I_{PDM}$ PDM receiving and processing data 16KHz, with FREQ = 1.28MHz,MODE.OPERATION = mono, clock HFXO1630μA

5.6.1.6 PWM

SymbolDescriptionMin.Typ.Max.Units
$I_{PWM0}$ PWM running @ 125 kHz, fixed duty cycle510μA
$I_{PWM1}$ PWM running @ 16 MHz, fixed duty cycle680μA

5.6.1.7 SAADC

SymbolDescriptionMin.Typ.Max.Units
$I_{SAADC\_HFXO}$ SAADC sampling @ 16 ksps, with high accuracy clock HFXO, acquisition time = 20 μs1550μA
$I_{SAADC\_HFINT}$ SAADC sampling @ 16 ksps, with low accuracy clock HFINT, acquisition time = 20 μs540μA

5.6.1.8 TIMER

SymbolDescriptionMin.Typ.Max.Units
$I_{TIMER0}$ TIMER running @ 1 MHz390μA
$I_{TIMER1}$ TIMER running @ 16 MHz440μA

5.6.1.9 SPIM

SymbolDescriptionMin.Typ.Max.Units
$I_{SPIM0}$ SPIM transferring data @ 2 Mbps, Clock = HFINT610μA
$I_{SPIM1}$ SPIM transferring data @ 2 Mbps, Clock = HFXO1620μA
$I_{SPIM2}$ SPIM transferring data @ 8 Mbps, Clock = HFINT640μA
$I_{SPIM3}$ SPIM transferring data @ 8 Mbps, Clock = HFXO1660μA

5.6.1.10 SPIS

SymbolDescriptionMin.Typ.Max.Units
$I_{SPIS\_2M}$ SPIS receiving data @ 2 Mbps, Clock=HFINT500μA
$I_{SPIS\_2MXO}$ SPIS receiving data @ 2 Mbps, Clock=HFXO1510μA
$I_{SPIS\_8M}$ SPIS receiving data @ 8 Mbps, Clock=HFINT510μA
$I_{SPIS\_8MXO}$ SPIS receiving data @ 8 Mbps, Clock=HFXO1520μA

5.6.1.11 TWIM

SymbolDescriptionMin.Typ.Max.Units
$I_{TWIM\_100}$ TWIM running @ 100 kbps, Clock=HFINT590μA
$I_{TWIM\_400}$ TWIM running @ 400 kbps, Clock = HFINT590μA
$I_{TWIM\_100XO}$ TWIM running @ 100 kbps, Clock = HFXO1600μA
$I_{TWIM\_400XO}$ TWIM running @ 400 kbps, Clock = HFXO1610μA

5.6.1.12 TWIS

SymbolDescriptionMin.Typ.Max.Units
$I_{TWIS,RUN\_100}$ TWIS transferring data @ 100 kbps, Clock=HFINT590μA
$I_{TWIS1,RUN\_400}$ TWIS transferring data @ 400 kbps, Clock=HFINT510μA
$I_{TWIS,RUN\_100XO}$ TWIS transferring data @ 100 kbps, Clock = HFXO1480μA
$I_{TWIS,RUN\_400XO}$ TWIS transferring data @ 400 kbps, Clock = HFXO1370μA

5.6.1.13 UARTE

SymbolDescriptionMin.Typ.Max.Units
$I_{UARTE,1M}$ UARTE transferring data @ 1Mbps700μA
$I_{UARTE,115K}$ UARTE transferring data @ 115200 bps510μA

5.6.1.14 WDT

SymbolDescriptionMin.Typ.Max.Units
$I_{WDT}$ WDT started2.5μA

5.6.1.15 Power Class 3 modem current consumption

To estimate specific use cases, see Online Power Profiler for LTE

SymbolDescriptionB13(typ.)B20(typ.)B3(typ.)B4(typ.)Units
Sleep current consumption, Cat-M1 and Cat-NB1
$I_{PSM}$ PSM floor current2.72.72.72.7μA
PSM TAU event energy and duration, Cat-M1
$E_{PSM\_TAU}$ Pout 23 dBm, QPSK, resource blocks 6, TBS index 9, UICC included91979594mJ
$T_{PSM\_TAU}$ Pout 23 dBm, QPSK, resource blocks 6, TBS index 9, UICC included1.01.01.01.0s
PSM TAU event energy and duration, Cat-NB1
$E_{PSM\_TAU}$ Pout 23 dBm, QPSK, UICC included; UL: 12SC, MCS Index 5 Resource Units 1, Repetitions 1; DL, 12SC, MCS Index 6, Subframes 3, Repetitions 1343376357347mJ
$T_{PSM\_TAU}$ Pout 23 dBm, QPSK, UICC included; UL: 12SC, MCS Index 5 Resource Units 1, Repetitions 1; DL, 12SC, MCS Index 6, Subframes 3, Repetitions 12.32.42.32.4s
Average current consumption, radio resource control (RRC) mode, Cat-M1
$I_{EDRX}$ eDRX average current, 81.92 s, one PO/PTW, PTW = 2.56 s18-18-μA
$I_{IEDRX}$ Idle eDRX average current, 655 s, one PO/PTW, PTW = 2.56 s5-5-μA
$I_{RMC\_0DBM}$ Pout 0 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.245454545mA
$I_{RMC\_10DBM}$ Pout 10 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.250505555mA
$I_{RMC\_23DBM}$ Pout 23 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.2115125120120mA
Average current consumption, radio resource control (RRC) mode, Cat-NB1
$I_{EDRX}$ eDRX average current, 81.92 s, one PO/PTW, PTW = 2.56 s32-33-μA
$I_{IEDRX}$ Idle eDRX average current, 655 s, one PO/PTW, PTW = 2.56 s7-7-μA
$I_{RMC\_0DBM}$ Pout 0 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.430303035mA
$I_{RMC\_10DBM}$ Pout 10 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.440404045mA
$I_{RMC\_23DBM}$ Pout 23 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.4100120110115mA
$I_{RMC\_0DBM}$ Pout 0 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.450505555mA
$I_{RMC\_10DBM}$ Pout 10 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.470708080mA
$I_{RMC\_23DBM}$ Pout 23 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.4215240235230mA

5.6.1.16 Power Class 5 modem current consumption

To estimate specific use cases, see Online Power Profiler for LTE

SymbolDescriptionB13(typ.)B20(typ.)B3(typ.)B4(typ.)Units
Sleep current consumption, Cat-M1 and Cat-NB1
$I_{PSM}$ PSM floor current2.72.72.72.7μA
PSM TAU event energy and duration, Cat-M1
$E_{PSM\_TAU}$ Pout 20 dBm, QPSK, resource blocks 6, TBS index 9, UICC included84878786mJ
$T_{PSM\_TAU}$ Pout 20 dBm, QPSK, resource blocks 6, TBS index 9, UICC included1.01.01.01.0s
PSM TAU event energy and duration, Cat-NB1
$E_{PSM\_TAU}$ Pout 20 dBm, QPSK, UICC included; UL: 12SC, MCS Index 5 Resource Units 1, Repetitions 1; DL, 12SC, MCS Index 6, Subframes 3, Repetitions 1260276280290mJ
$T_{PSM\_TAU}$ Pout 20 dBm, QPSK, UICC included; UL: 12SC, MCS Index 5 Resource Units 1, Repetitions 1; DL, 12SC, MCS Index 6, Subframes 3, Repetitions 12.32.42.42.4s
Average current consumption, radio resource control (RRC) mode, Cat-M1
$I_{EDRX}$ eDRX average current, 81.92 s, one PO/PTW, PTW = 2.56 s18-18-μA
$I_{IEDRX}$ Idle eDRX average current, 655 s, one PO/PTW, PTW = 2.56 s5-5-μA
$I_{RMC\_0DBM}$ Pout 0 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.245454545mA
$I_{RMC\_10DBM}$ Pout 10 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.250505555mA
$I_{RMC\_20DBM}$ Pout 20 dBm, QPSK, 1RB, 5MHz, RMC settings as per 3GPP TS 36.521-1 Annex A.290909090mA
Average current consumption, radio resource control (RRC) mode, Cat-NB1
$I_{EDRX}$ eDRX average current, 81.92 s, one PO/PTW, PTW = 2.56 s32-33-μA
$I_{IEDRX}$ Idle eDRX average current, 655 s, one PO/PTW, PTW = 2.56 s7-7-μA
$I_{RMC\_0DBM}$ Pout 0 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.430303035mA
$I_{RMC\_10DBM}$ Pout 10 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.440404045mA
$I_{RMC\_20DBM}$ Pout 20 dBm, QPSK, 1SC, 15 kHz, TX 33% RX 33%, RMC settings as per 3GPP TS 36.101 Annex A.2.470758080mA
$I_{RMC\_0DBM}$ Pout 0 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.450505555mA
$I_{RMC\_10DBM}$ Pout 10 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.470708080mA
$I_{RMC\_20DBM}$ Pout 20 dBm, BPSK, 1SC, 3.75 kHz, TX 80% RX 10%, RMC settings as per 3GPP TS 36.101 Annex A.2.4145150160160mA

5.6.1.17 DECT NR+ current consumption

SymbolDescriptionB1, B2, B9, B22 (typ.)Units
Average current during active transmission, nominal operating conditions
$I_{TX\_PL13\_LOW\_LATENCY}$ Minimum latency mode $^{14}$ , any modulation, Power level $^{15}$ 13 (19 dBm)235mA
Average current during active reception, nominal operating conditions
$I_{RX\_-90DBM\_LOW\_LATENCY}$ Minimum latency mode $^{14}$ , Received signal -90 dBm47mA
Average current during idle $^{16}$ , nominal operating conditions
$I_{IDLE\_LOW\_LATENCY}$ Minimum latency mode $^{14}$ , modem waiting for TX or RX operation37mA

5.6.1.18 GPS current consumption

SymbolDescriptionMin.Typ.Max.Units
IGPS_CONTINUOUSContinuous tracking, without power saving mode43.1mA
IGPS_CONTINUOUS_PSMContinuous tracking, power saving mode7.8mA
IGPS_PERIODICPeriodic fix average current with A-GPS $^{17}$ , one fix every 2 minutes0.5mA

5.7 Register description

5.7.1 POWER — Power control

The POWER module provides an interface to tasks, events, interrupt, and reset related configuration settings of the power management unit.

Note: Registers INTEN on page 71, INTENSET on page 72, and INTENCLR on page 72 are the same registers (at the same address) as corresponding registers in CLOCK — Clock control on page 74.

5.7.1.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
POWER : S0x50005000USNSNANoPower control
POWER : NS0x40005000

Register overview

RegisterOffsetTZDescription
TASKS_CONSTLAT0x78Enable constant latency mode.
TASKS_LOWPWR0x7CEnable low power mode (variable latency)
SUBSCRIBE_CONSTLAT0xF8Subscribe configuration for task CONSTLAT
SUBSCRIBE_LOWPWR0xFCSubscribe configuration for task LOWPWR
EVENTS_POFWARN0x108Power failure warning
EVENTS_SLEEPENTER0x114CPU entered WFI/WFE sleep
EVENTS_SLEEPEXIT0x118CPU exited WFI/WFE sleep
PUBLISH_POFWARN0x188Publish configuration for event POFWARN
PUBLISH_SLEEPENTER0x194Publish configuration for event SLEEPENTER
PUBLISH_SLEEPEXIT0x198Publish configuration for event SLEEPEXIT
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
RESETREAS0x400Reset reason
POWERSTATUS0x440Modem domain power status
GPREGRET[n]0x51CGeneral purpose retention register
LTEMODEM.STARTN0x610Start LTE modem
LTEMODEM.FORCEOFF0x614Force off LTE modem

5.7.1.1.1 TASKS_CONSTLAT

Address offset: 0x78

Enable constant latency mode.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_CONSTLAT
Trigger1

5.7.1.1.2 TASKS_LOWPWR

Address offset: 0x7C

Enable low power mode (variable latency)

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_LOWPWR
Trigger1

5.7.1.1.3 SUBSCRIBE_CONSTLAT

Address offset: 0xF8

Subscribe configuration for task CONSTLAT

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task CONSTLAT will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

5.7.1.1.4 SUBSCRIBE_LOWPWR

Address offset: 0xFC

Subscribe configuration for task LOWPWR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.1.1.5 EVENTS_POFWARN

Address offset: 0x108

Power failure warning

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_POFWARN
NotGenerated0
Generated1

5.7.1.1.6 EVENTS_SLEEPENTER

Address offset: 0x114

CPU entered WFI/WFE sleep

5.7.1.1.7 EVENTS_SLEEPEXIT

Address offset: 0x118

CPU exited WFI/WFE sleep

5.7.1.1.8 PUBLISH_POFWARN

Address offset: 0x188

Publish configuration for event POFWARN

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event POFWARN will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

5.7.1.1.9 PUBLISH_SLEEPENTER

Address offset: 0x194

Publish configuration for event SLEEPENTER

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.1.1.10 PUBLISH_SLEEPEXIT

Address offset: 0x198

Publish configuration for event SLEEPEXIT

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.1.1.11 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPOFWARN
Disabled0
Enabled1
DRWSLEEPENTER
Disabled0
Enabled1
IDEDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ERWSLEEPEXIT
Disabled0
Enabled1

5.7.1.1.12 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPOFWARNWrite '1' to enable interrupt for event POFWARN
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWSLEEPENTERWrite '1' to enable interrupt for event SLEEPENTER
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWSLEEPEXITWrite '1' to enable interrupt for event SLEEPEXIT
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

5.7.1.1.13 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPOFWARNWrite '1' to disable interrupt for event POFWARN
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWSLEEPENTERWrite '1' to disable interrupt for event SLEEPENTER
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWSLEEPEXITWrite '1' to disable interrupt for event SLEEPEXIT
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

5.7.1.1.14 RESETREAS

Address offset: 0x400

Reset reason

Note: Unless cleared, the RESETREAS register will be cumulative. A field is cleared by writing '1' to it. If none of the reset sources are flagged, this indicates that the chip was reset from the on-chip reset generator, which will indicate a power-on reset or a brownout reset.

Bit number313029282726252423222120191817161514131211109876543210
IDGDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRESETPINReset from pin reset detected
NotDetected0Not detected
Detected1Detected
BRWDOGReset from global watchdog detected
NotDetected0Not detected
Detected1Detected
CRWOFFReset due to wakeup from System OFF mode, when wakeup is triggered by DETECT signal from GPIO
NotDetected0Not detected
Detected1Detected
DRWDIFReset due to wakeup from System OFF mode, when wakeup is triggered by entering debug interface mode
NotDetected0Not detected
Detected1Detected
ERWSREQReset from AIRCR.SYSRESETREQ detected
NotDetected0Not detected
Detected1Detected
FRWLOCKUPReset from CPU lock-up detected
NotDetected0Not detected
Detected1Detected
GRWCTRLAPReset triggered through CTRL-AP
NotDetected0Not detected
Detected1Detected

5.7.1.1.15 POWERSTATUS

Address offset: 0x440

Modem domain power status

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARLTEMODEM
OFF0
ON1

5.7.1.1.16 GPREGRET[n] (n=0..1)

Address offset: 0x51C + (n × 0x4)

General purpose retention register

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWGPREGRETGeneral purpose retention register

This register is a retained register

5.7.1.1.17 LTEMODEM

LTE Modem

5.7.1.1.17.1 LTEMODEM.STARTN

Address offset: 0x610

Start LTE modem

Note: Starting and stopping LTE modem must only be done through the LTE modem API to guarantee correct sequence in FW and HW and to avoid possible malfunctions.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARWSTARTNStart LTE modem
Start0Start LTE modem
Hold1Hold LTE modem disabled

5.7.1.1.17.2 LTEMODEM.FORCEOFF

Address offset: 0x614

Force off LTE modem

Note: Starting and stopping LTE modem must only be done through the LTE modem API to guarantee correct sequence in FW and HW and to avoid possible malfunctions.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWFORCEOFF
Release0
Hold1

5.7.2 CLOCK — Clock control

The CLOCK module provides one of the interfaces to power and clock management configuration settings. Through CLOCK module it is able to configure the following:

• LFCLK clock source setup

• LFCLK and HFCLK status

• Tasks and events

• Interrupts

• Reset

Note: Registers INTEN on page 79, INTENSET on page 79, and INTENCLR on page 79 are the same registers (at the same address) as corresponding registers in POWER — Power control on page 68.

5.7.2.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CLOCK : S0x50005000USNSNANoClock control
CLOCK : NS0x40005000

Register overview

RegisterOffsetTZDescription
TASKS_HFCLKSTART0x000Start HFCLK source
TASKS_HFCLKSTOP0x004Stop HFCLK source
TASKS_LFCLKSTART0x008Start LFCLK source
TASKS_LFCLKSTOP0x00CStop LFCLK source
SUBSCRIBE_HFCLKSTART0x080Subscribe configuration for task HFCLKSTART
SUBSCRIBE_HFCLKSTOP0x084Subscribe configuration for task HFCLKSTOP
SUBSCRIBE_LFCLKSTART0x088Subscribe configuration for task LFCLKSTART
SUBSCRIBE_LFCLKSTOP0x08CSubscribe configuration for task LFCLKSTOP
EVENTS_HFCLKSTARTED0x100HFCLK oscillator started
EVENTS_LFCLKSTARTED0x104LFCLK started
PUBLISH_HFCLKSTARTED0x180Publish configuration for event HFCLKSTARTED
PUBLISH_LFCLKSTARTED0x184Publish configuration for event LFCLKSTARTED
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
HFCLKRUN0x408Status indicating that HFCLKSTART task has been triggered
HFCLKSTAT0x40CThe register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE).
LFCLKRUN0x414Status indicating that LFCLKSTART task has been triggered
LFCLKSTAT0x418The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE).
LFCLKSRCCOPY0x41CCopy of LFCLKSRC register, set after LFCLKSTART task has been triggered
LFCLKSRC0x518Clock source for the LFCLK. LFCLKSTART task starts a clock source selected with this register.

5.7.2.1.1 TASKS_HFCLKSTART

Address offset: 0x000

Start HFCLK source

5.7.2.1.2 TASKS_HFCLKSTOP

Address offset: 0x004

Stop HFCLK source

5.7.2.1.3 TASKS_LFCLKSTART

Address offset: 0x008

Start LFCLK source

5.7.2.1.4 TASKS_LFCLKSTOP

Address offset: 0x00C

Stop LFCLK source

5.7.2.1.5 SUBSCRIBE_HFCLKSTART

Address offset: 0x080

Subscribe configuration for task HFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.2.1.6 SUBSCRIBE_HFCLKSTOP

Address offset: 0x084

Subscribe configuration for task HFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.2.1.7 SUBSCRIBE_LFCLKSTART

Address offset: 0x088

Subscribe configuration for task LFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

5.7.2.1.8 SUBSCRIBE_LFCLKSTOP

Address offset: 0x08C

Subscribe configuration for task LFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task LFCLKSTOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

5.7.2.1.9 EVENTS_HFCLKSTARTED

Address offset: 0x100

HFCLK oscillator started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_HFCLKSTARTED
NotGenerated0
Generated1

5.7.2.1.10 EVENTS_LFCLKSTARTED

Address offset: 0x104

LFCLK started

5.7.2.1.11 PUBLISH_HFCLKSTARTED

Address offset: 0x180

Publish configuration for event HFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event HFCLKSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

5.7.2.1.12 PUBLISH_LFCLKSTARTED

Address offset: 0x184

Publish configuration for event LFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event LFCLKSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

5.7.2.1.13 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWHFCLKSTARTED
Disabled0
Enabled1
BRWLFCLKSTARTED
Disabled0
Enabled1

5.7.2.1.14 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWHFCLKSTARTED
Set1
Disabled0
Enabled1
BRWLFCLKSTARTED
Set1
Disabled0
Enabled1

5.7.2.1.15 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWHFCLKSTARTED
Clear1
Disabled0
Enabled1
BRWLFCLKSTARTED
Clear1
Disabled0Read: Disabled
Enabled1Read: Enabled

5.7.2.1.16 INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHFCLKSTARTEDRead pending status of interrupt for event HFCLKSTARTED
NotPending0Read: Not pending
Pending1Read: Pending
BRLFCLKSTARTEDRead pending status of interrupt for event LFCLKSTARTED
NotPending0Read: Not pending
Pending1Read: Pending

5.7.2.1.17 HFCLKRUN

Address offset: 0x408

Status indicating that HFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSHFCLKSTART task triggered or not
NotTriggered0Task not triggered
Triggered1Task triggered

5.7.2.1.18 HFCLKSTAT

Address offset: 0x40C

The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE).

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSRC
HFINT0
HFXO1
BRSTATE
NotRunning0
Running1

5.7.2.1.19 LFCLKRUN

Address offset: 0x414

Status indicating that LFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSLFCLKSTART task triggered or not
NotTriggered0Task not triggered
Triggered1Task triggered

5.7.2.1.20 LFCLKSTAT

Address offset: 0x418

The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE).

Bit number313029282726252423222120191817161514131211109876543210
IDBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSRC
RFU0
LFRC1
LFXO2
BRSTATE
NotRunning0
Running1

5.7.2.1.21 LFCLKSRCCOPY

Address offset: 0x41C

Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARSRC
RFU0
LFRC1
LFXO2

5.7.2.1.22 LFCLKSRC

Address offset: 0x518

Clock source for the LFCLK. LFCLKSTART task starts a clock source selected with this register.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARWSRC
RFU0
LFRC1
LFXO2

5.7.3 REGULATORS — Voltage regulators control

The REGULATORS module provides an interface to certain configuration settings of on-chip voltage regulators.

5.7.3.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
REGULATORS : S0x50004000USNSNANoRegulator configuration
REGULATORS : NS0x40004000

Register overview

RegisterOffsetTZDescription
SYSTEMOFF0x500System OFF register
EXTPOFCON0x514External power failure warning configuration
DCDCEN0x578Enable a step-down DC/DC voltage regulator.

5.7.3.1.1 SYSTEMOFF

Address offset: 0x500

System OFF register

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWSYSTEMOFF
Enable1

5.7.3.1.2 EXTPOFCON

Address offset: 0x514

External power failure warning configuration

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPOF
Disabled0Disable
Enabled1Enable

5.7.3.1.3 DCDCEN

Address offset: 0x578

Enable a step-down DC/DC voltage regulator.

Note: DCDCEN must be set to 1 (enabled) before the LTE modem is started.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWDCDCEN
Disabled0
Enabled1

Peripherals

The nRF9151 application core peripherals are found in Instantiation on page 25.

6.1 CRYPTOCELL — Arm TrustZone CryptoCell 310

Arm TrustZone CryptoCell 310 (CRYPTOCELL) is a security subsystem providing root of trust (RoT) and cryptographic services for a device.


Figure 14: CRYPTOCELL block diagram

The following cryptographic features are among the functionality that can be supported:

• True random number generator (TRNG) compliant with FIPS 140-2, BSI AIS-31, and NIST 800-90B.

• Pseudorandom number generator (PRNG) using underlying AES engine compliant with NIST 800-90A

• RSA public key cryptography

• Signature verification up to key sizes of 2048 bits

• Key generation up to key sizes of 2048 bits

• PKCS#1 v2.1/v1.5

• Elliptic curve cryptography (ECC)

• NIST FIPS 186-4 recommended curves using pseudorandom parameters, up to 521 bits:

• Prime field: P-192, P-224, P-256, P-384, P-521

• SEC 2 recommended curves using pseudorandom parameters, up to 521 bits:

• Prime field: secp160r1, secp192r1, secp224r1, secp256r1, secp384r1, secp521r1

• Koblitz curves using fixed parameters, up to 256 bits:

• Prime field: secp160k1, secp192k1, secp224k1, secp256k1

• Brainpool curves:

• Prime field: BrainpoolP256r1

• Edwards/Montgomery curves:

• Ed25519, Curve25519

• ECDH/ECDSA support

• Secure remote password protocol (SRP), up to 3072 bits operations

• Hashing functions

• SHA-1, SHA-2 up to 256 bits

• Keyed-hash message authentication code (HMAC)

• AES symmetric encryption

• General purpose AES engine (encrypt/decrypt, sign/verify)

• 128 bits key size

• Supported encryption modes: ECB, CBC, CMAC/CBC-MAC, CTR, CCM/CCM*

• ChaCha20/Poly1305 symmetric encryption

• 128 and 256 bits key size

• Authenticated encryption with associated data (AEAD) mode

6.1.1 Disclaimer

This section contains an important disclaimer about the CRYPTOCELL subsystem documentation.

The CRYPTOCELL subsystem is recommended for use with the libraries in the Nordic Semiconductor ASA SDK. These libraries are tested and verified to work with the CRYPTOCELL subsystem hardware. The CRYPTOCELL subsystem documentation and register descriptions are for reference only and can be used for modifying the Nordic supplied SDK libraries or implementing new features.

Nordic Semiconductor ASA reserves the right to change the CRYPTOCELL documentation and register descriptions without further notice. Changes will not trigger erratas and will not be seen as changing form/fit/function of the device.

Please note that Nordic cannot support questions directly related to the register interface or modification of the source code implementation. Nordic provide support for the top-level API in the software library distributed as part of the device SDK.

6.1.2 Usage

The CRYPTOCELL subsystem is a hardware and software solution where software is delivered as libraries in Nordic device SDKs. Recommended usage of the CRYPTOCELL subsystem is to use the SDK library implementation available for the device. The CRYPTOCELL subsystem is documented for reference purpose only, please see section Disclaimer on page 85 for more information.

To enable CRYPTOCELL, use register ENABLE on page 91. The device will not enter the System ON IDLE mode until CRYPTOCELL has been disabled, see POWER — Power control on page 68 for more information. The Nordic SDK software library automatically controls enabling and disabling of the CRYPTOCELL subsystem as a part of its function calls.

6.1.3 Security configuration

CRYPTOCELL has internal storage for its security configuration, which is preserved even if CRYPTOCELL is disabled.

The following configuration settings are retained:

• Device life cycle state (LCS)

• Various lock bits

• 128 bits device root key, KDR, see Device root key on page 87

Any reset source will erase the CRYPTOCELL internal storage, see Reset on page 59 for more information.

6.1.3.1 Lifecycle state (LCS)

Lifecycle refers to the multiple states a device goes through during its lifetime. DebugEnable and Secure are the two CRYPTOCELL lifecycle states available to the device.

The CRYPTOCELL lifecycle state (LCS) is controlled through register HOST_IOT_LCS on page 149. The LCS is configured by writing either DebugEnable or Secure to the LCS field of this register. To validate that the register is configured correctly, read back the read-only field LCS_IS_VALID from the register HOST_IOT_LCS on page 149. The LCS_IS_VALID field will change from Invalid to Valid once a valid LCS value is written.

The following debug override functionality is available if LCS is configured as DebugEnable:

• Registers HOST_IOT_KDR0 through HOST_IOT_KDR3 can be written multiple times.

• The TRNG output can be overridden. This is done by writing the desired value to register EHR_DATA[0] through EHR_DATA[5] in RNG engine. If LCS is configured as Secure, registers EHR_DATA are readonly and its content is randomly generated by the RNG engine.

LCS field valueLCS_IS_VALID field valueDescription
SecureInvalidDefault reset value indicating that LCS has not been configured.
SecureValidLCS set to Secure mode, and LCS is valid. Registers HOST_IOT_KDR0 through HOST_IOT_KDR3 can only be written once. Any additional writes are ignored.
DebugEnableValidLCS set to DebugEnable mode, and LCS is valid. Registers HOST_IOT_KDR0 through HOST_IOT_KDR3 can be written multiple times.

Table 14: Lifecycle states

6.1.4 Cryptographic flow

The following section describe a typical cryptographic flow for the CRYPTOCELL subsystem.

  1. Enable CRYPTOCELL subsystem as described in Usage on page 85.

  2. Perform clock control for the desired cryptographic engine(s) as described in Power and clock on page 88.

  3. Configure the desired cryptographic mode as described in CTL interface on page 134.

  4. Depending on the selected cryptographic mode the active engine(s) must be configured, including which cryptographic key to use as described in Cryptographic key selection on page 86.

  5. Optionally configure DMA engines as described in Direct memory access (DMA) on page 88.

  6. Initiate the operation, and wait for an event as described in Interrupt handling on page 89.

  7. Check status register(s) for the active engine(s).

6.1.5 Cryptographic key selection

The CRYPTOCELL subsystem can operate on different cryptographic keys.

6.1.5.1 Hardware unique keys

The AES engine can be instructed to use different key input sources.

The cryptographic key input for the AES engine on page 91 can either be a hard-coded RTL key referred to as KPRTL, a device root key referred to as KDR which is typically programmed into CRYPTOCELL during boot by an immutable bootloader, or a session key provided runtime by the application or the KMU — Key management unit on page 205.

Register HOST_CRYPTOKEY_SEL on page 147 selects one of the following keys for the AES cryptographic operations:

• RTL key $\mathsf { K } _ { \mathsf { P R T L } }$

• Device root key $K _ { \mathsf { D R } }$

• Session key

6.1.5.1.1 RTL key

CRYPTOCELL contains one hard-coded RTL key referred to as $\mathsf { K } _ { \mathsf { P R T L } }$ . This key is set to the same value for all devices with the same part code and cannot be changed.

CRYPTOCELL can perform cryptographic operations using the $\mathsf { K } _ { \mathsf { P R T L } }$ key without a bootloader or application having access to the key value itself. Usage of $\mathsf { K } _ { \mathsf { P R T L } }$ can be disabled until next reset by writing to register HOST_IOT_KPRTL_LOCK on page 147. If a locked $\mathsf { K } _ { \mathsf { P R T L } }$ key is requested, a zero vector key will be used by the AES engine instead.

6.1.5.1.2 Device root key

The device root key, $K _ { \mathsf { D R } } ,$ is a 128 bits AES key typically programmed by an immutable bootloader as part of the CRYPTOCELL initialization process during device boot sequence. It is kept in the CRYPTOCELL internal storage until the next reset.

To configure the $K _ { \mathsf { D R } }$ key, write the key value into registers HOST_IOT_KDR0 through HOST_IOT_KDR3. These registers are write-only when LCS is set to DebugEnable mode, and write-once when LCS is set to Secure mode. The $K _ { \mathsf { D R } }$ key value is kept when the read-back value of register HOST_IOT_KDR0 is Retained. Once configured, CRYPTOCELL can perform cryptographic operations using the $K _ { \mathsf { D R } }$ key without an updatable bootloader or application having access to the key value itself.

The $K _ { \mathsf { D R } }$ key should be protected by the KMU — Key management unit on page 205.

6.1.5.2 Session keys

Session keys are supported by the AES and CHACHA engine.

Before starting a cryptographic operation using a session key, the desired key value must be written in clear-text by the CPU into the write-only key registers of the corresponding engine. One session key can be overwritten by another as long as the write order of the write-only key registers are respected. Please refer to the corresponding chapter of each cryptographic engine for more information about write order.

The AES engine on page 91 supports 128 bits session keys, and CHACHA engine on page 97 supports 128/256 bits session keys.

The last written session key for each engine is retained until CRYPTOCELL is disabled, the engine is reset, or the device is reset.

6.1.5.3 Key Management Unit (KMU) keys

The KMU — Key management unit on page 205 is designed to securely transfer symmetric encryption keys directly into the dedicated write-only key registers of the AES and CHACHA cryptographic engines upon request from the CPU.

Pushing a symmetric key value stored in a KMU key slot into either the AES or CHACHA engine will replace the need for software to write a session key in clear-text into registers AES_KEY_0[n] (n=0..7) on page 93 for 128 bits AES keys or registers CHACHA_KEY[n] (n=0..7) on page 100 for 128/256 bits CHACHA keys.

The symmetric key value pushed from a KMU key slot into the AES or CHACHA engine will be retained until CRYPTOCELL is disabled or the device is reset.

6.1.5.4 Asymmetric keys

Asymmetric cryptographic keys are supported by the PKA engine.

Before starting a cryptographic operation using an asymmetric key, the desired key value must be written into the PKA SRAM together with the payload.

See PKA engine on page 110 for more information.

6.1.6 Internal memories

CRYPTOCELL contains two dedicated memory blocks; one 4 kB SRAM block for the PKA engine calculations, and one 2 kB SRAM block for the RNG engine entropy collector.

See PKA SRAM on page 114 and RNG SRAM on page 122 for more information about these dedicated memory blocks.

6.1.7 Direct memory access (DMA)

CRYPTOCELL support direct memory access (DMA) to allow cryptographic operations on memory mapped regions without involving the CPU.

The following table indicates which memory is accessible by CRYPTOCELL DMA engines.

Memory typeReadWrite
SRAMYesYes
FlashNoNo

Table 15: DMA transaction types

Data stored in a memory type not accessible by CRYPTOCELL DMA engines must be copied to an accessible memory type before it can be processed by the CRYPTOCELL subsystem. Maximum DMA transaction size is limited to 216-1 bytes.

The CRYPTOCELL DMA engine can also run in Bypass mode, meaning data is read and written without being piped through a cryptographic engine. Thus CRYPTOCELL can act as a general purpose DMA engine for moving data.

Operating the DMA engines in Bypass mode involve the following steps:

  1. Enable DMA engines clock using register DMA_CLK on page 151.

  2. Configure cryptographic control for Bypass mode using register CRYPTO_CTL on page 134.

  3. Set the the output destination address and size of the receiving buffer.

  4. Start the DMA transaction by configuring the input source address and the number of bytes to transfer.

  5. Status of the DMA transaction can be monitored by either polling register DOUT_DMA_MEM_BUSY on page 140, or by unmasking the interrupt for field DOUT_TO_MEM_MASK in register IMR on page 144.

See DIN DMA engine on page 135 and DOUT DMA engine on page 139 for more information.

6.1.8 Power and clock

Power and clock management of the CRYPTOCELL subsystem is handled automatically in hardware, as long as the neccessary conditions are fulfilled by software.

Clock gating

CRYPTOCELL implements separate clock domains for each cryptographic engine. Internal clock gating control is handled through the MISC interface on page 150, as well as register RNG_CLK on page 130. The registers of a cryptographic engine are only accessible when its clock is enabled.

Power gating

CRYPTOCELL must be disabled to ensure lowest possible power consumption when the subsystem is not needed.

The CRYPTOCELL subsystem power is controlled through register ENABLE on page 91. Even though external clock input is gated away automatically by hardware, the CRYPTOCELL subsystem power will still be enabled. To initiate a full power-down sequence software must perform the following steps:

  1. Make sure there are no pending tasks

  2. Clear all pending interrupts in register RNG_ICR on page 126 and register ICR on page 145.

  3. Disable CRYPTOCELL subsystem using register ENABLE on page 91.

6.1.9 Interrupt handling

CRYPTOCELL triggers interrupt once processing is complete.

See register IRR on page 144 for more information on which CRYPTOCELL subsystem components are able to trigger an interrupt request.

To clear the IRQ line when an interrupt has occurred, the relevant interrupt bit in register ICR on page 145 must be cleared. Interrupt sources can be masked using register IMR on page 144. If an interrupt source is masked, no interrupt request will be triggered.

In addition if field RNG_INT in register IRR on page 144 is asserted, the relevant RNG engine interrupt bit in register RNG_ICR on page 126 must be cleared before clearing that interrupt bit in register ICR on page 145 as described above.

The figure below shows how the CRYPTOCELL subsystem interrupt handling is designed and how it is connected to the NVIC module in the CPU.


Figure 15: CRYPTOCELL interrupt handling

6.1.10 Standards

Arm TrustZone CryptoCell 310 (CRYPTOCELL) is compliant with the protocol specifications and standards shown in the following table.

RegisterOffsetTZDescription
ENABLE0x500Enable CRYPTOCELL subsystem.
Algorithm familyIdentification codeDocument title
TRNGNIST SP 800-90BRecommendation for the Entropy Sources Used for Random Bit Generation
BSI AIS-31Functionality Classes and Evaluation Methodology for True Random Number Generators
FIPS 140-2Security Requirements for Cryptographic Modules
PRNGNIST SP 800-90ARecommendation for Random Number Generation Using Deterministic Random Bit Generators
Stream cipherChachaChaCha, a variant of Salsa20, Daniel J. Bernstein, January 28th 2008
MACPoly1305The Poly1305-AES message-authentication code, Daniel J. Bernstein
Cryptography in NaCl, Daniel J. Bernstein
Key agreementSRPThe Secure Remote Password Protocol, Thomas Wu, November 11th 1997
Key derivationNIST SP 800-108Recommendation for Key Derivation Using Pseudorandom Functions.
AESFIPS-197Advanced Encryption Standard (AES). Compliant with 128 bits key size only
NIST SP 800-38ARecommendation for Block Cipher Modes of Operation - Methods and Techniques
NIST SP 800-38BRecommendation for Block Cipher Modes of Operation: The CMAC Mode for Authentication
NIST SP 800-38CRecommendation for Block Cipher Modes of Operation: The CCM Mode for Authentication and Confidentiality
ISO/IEC 9797-1AES CBC-MAC per ISO/IEC 9797-1 MAC algorithm 1
IEEE 802.15.4-2011IEEE Standard for Local and metropolitan area networks - Part 15.4: Low-Rate Wireless Personal Area Networks (LR-WPANs), Annex B.4: Specification of generic CCM* mode of operation
HashFIPS 180-4Secure Hash Standard (SHA1, SHA-224, SHA-256)
RFC2104HMAC: Keyed-Hashing for Message Authentication
RSAPKCS#1Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications v1.5/2.1. RSA signature verification supported up to key sizes of 2048 bits. RSA key generation supported up to key sizes of 2048 bits.
Diffie-HellmanANSI X9.42Public Key Cryptography for the Financial Services Industry: Agreement of Symmetric Keys Using Discrete Logarithm Cryptography
PKCS#3Diffie-Hellman Key-Agreement Standard
ECCANSI X9.63Public Key Cryptography for the Financial Services Industry - Key Agreement and Key Transport Using Elliptic Curve Cryptography
IEEE 1363Standard Specifications for Public-Key Cryptography
ANSI X9.62Public Key Cryptography For The Financial Services Industry: The Elliptic Curve Digital Signature Algorithm (ECDSA)
Ed25519Edwards-curve, Ed25519: high-speed high-security signatures, Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, and Bo-Yin Yang
Curve25519Montgomery curve, Curve25519: new Diffie-Hellman speed records, Daniel J. Bernstein
FIPS 186-4Digital Signature Standard (DSS)
SEC 2Recommended Elliptic Curve Domain Parameters, Certicom Research
NIST SP 800-56A rev. 2Recommendation for Pair-Wise Key Establishment Schemes Using Discrete Logarithm Cryptography

Table 16: CRYPTOCELL cryptography standards

6.1.11 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CRYPTOCELL0x50840000HFSNSANoCRYPTOCELL 310 security subsystem

Register overview

6.1.11.1 ENABLE

Address offset: 0x500

Enable CRYPTOCELL subsystem.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled
Enabled

6.1.12 Accelerators

This chapter contains register interfaces for each of the hardware accelerator engines.

6.1.12.1 AES engine

The Advanced Encryption Standard (AES) hardware engine is designed according to FIPS197 for use in encrypt/decrypt and sign/verify operations for 128 bits key sizes.

The following cipher modes are supported:

• ECB

• CBC

• CBC-MAC

• CMAC

• CTR

• CCM

• CCM*

Note:

To ensure proper operation when writing 128 bits AES keys, the write-only key registers of the AES engine must be written in ascending order, starting with:

• AES_KEY_0[0]

• AES_KEY_0[1]

• AES_KEY_0[2]

• AES_KEY_0[3]

6.1.12.1.1 Cryptographic flow

The following section describe a simple cryptographic flow for this engine.

uint8_t buf_dst[16] = { 0 };
uint8_t buf_src[16] = { 0x81, 0x02, 0xF2, 0x40, 0xD5, 0xB9, 0x44, 0x59,
    0xA2, 0xEB, 0x6F, 0xF2, 0x49, 0xF5, 0xEB, 0x94 };

/* Enable CRYPTOCELL subsystem */
NRF_CRYPTOCELL->ENABLE = CRYPTOCELL_ENABLE_ENABLE_Enabled;

/* Enable engine and DMA clock */
NRF_CC_MISC->AES_CLK = CC_MISC_AES_CLK_ENABLE_Enable;
NRF_CC_MISC->DMA_CLK = CC_MISC_DMA_CLK_ENABLE_Enable;

/* Wait until crypto engine is Idle */
while (NRF_CC_CTL->CRYPTO_BUSY == CC_CTL_CRYPTO_BUSY_STATUS_Busy) { }

/* Configure AES as cryptographic flow */
NRF_CC_CTL->CRYPTO_CTL = CC_CTL_CRYPTO_CTL_MODE_AESActive;

/* Configure AES engine control for decryption using ECB mode (default) */
NRF_CC_AES->AES_CONTROL = CC_AES_AES_CONTROL_DEC_KEY0_Decrypt;

/* Load the AES key value into the engine */
NRF_CC_AES->AES_KEY_0[0] = 0x51515151;
NRF_CC_AES->AES_KEY_0[1] = 0x52525252;
NRF_CC_AES->AES_KEY_0[2] = 0x53535353;
NRF_CC_AES->AES_KEY_0[3] = 0x54545454;

/* Configure default init vector */
NRF_CC_AES->AES_IV_0[0] = 0x0;
NRF_CC_AES->AES_IV_0[1] = 0x0;
NRF_CC_AES->AES_IV_0[2] = 0x0;
NRF_CC_AES->AES_IV_0[3] = 0x0;

/* Configure DMA output destination address */
NRF_CC_DOUT->DST_MEM_ADDR = (uint32_t) buf_dst;
NRF_CC_DOUT->DST_MEM_SIZE = (uint32_t) sizeof(buf_dst);

/* Configure DMA input source address to start the cryptographic operation */
NRF_CC_DIN->SRC_MEM_ADDR = (uint32_t) buf_src;
NRF_CC_DIN->SRC_MEM_SIZE = (uint32_t) sizeof(buf_src);

/* Wait on DOUT DMA interrupt */
while(!(NRF_CC_HOST_RGF->IRR & CC_HOST_RGF_IRR_DOUT_TO_MEM_INT_Msk)) {}

6.1.12.1.2 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_AES0x50841000HFSNSANoCRYPTOCELL AES engine

Register overview

RegisterOffsetTZDescription
AES_KEY_0[n]0x400AES key value to use. The initial AES_KEY_0[0] register holds the least significant bits [31:0] of the key value.
AES_IV_0[n]0x440AES Initialization Vector (IV) to use. The initial AES_IV_0[0] register holds the least significant bits [31:0] of the IV.
AES_CTR[n]0x460AES counter (CTR) to use. The initial AES_CTR[0] register holds the least significant bits [31:0] of the CTR.
AES_BUSY0x470Status register for AES engine activity.
AES_SK0x478Writing to this address trigger sampling of the HW key to the AES_KEY_0 register
AES_CMAC_INIT0x47CWriting to this address triggers the AES engine to generate K1 and K2 for AES-CMAC operations.
AES_REMAINING_BYTES0x4BCThis register should be set with the amount of remaining bytes until the end of the current AES operation.
AES_CONTROL0x4C0Control the AES engine behavior.
AES_HW_FLAGS0x4C8Hardware configuration of the AES engine. Reset value holds the supported features.
AES_CTR_NO_INCREMENT0x4D8This register enables the AES CTR no increment mode in which the counter mode is not incremented between two blocks
AES_SW_RESET0x4F4Reset the AES engine.
AES_CMAC_SIZEO_KICK0x524Writing to this address triggers the AES engine to perform a CMAC operation with size 0. The CMAC result can be read from the AES_IV_0 register.

6.1.12.1.2.1 AES_KEY_0[n] (n=0..7)

Address offset: 0x400 + (n × 0x4)

AES key value to use. The initial AES_KEY_0[0] register holds the least significant bits [31:0] of the key value.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVALUEAES key value.

6.1.12.1.2.2 AES_IV_0[n] (n=0..3)

Address offset: 0x440 + (n × 0x4)

AES Initialization Vector (IV) to use. The initial AES_IV_0[0] register holds the least significant bits [31:0] of the IV.

AES_IV_0 must be configured according to the selected AES mode:

• AES CBC/CBC-MAC : Loaded with the IV.

This register is a 'R/W change' register, as the written register values changes during processing.

6.1.12.1.2.3 AES_CTR[n] (n=0..3)

Address offset: 0x460 + (n × 0x4)

AES counter (CTR) to use. The initial AES_CTR[0] register holds the least significant bits [31:0] of the CTR. AES_CTR must be configured according to the selected AES mode:

• AES CTR : Loaded with the counter value.

This register is a 'R/W change' register, as the written register values changes during processing.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUEAES CTR value.

6.1.12.1.2.4 AES_BUSY

Address offset: 0x470

Status register for AES engine activity.

6.1.12.1.2.5 AES_SK

Address offset: 0x478

Writing to this address trigger sampling of the HW key to the AES_KEY_0 register

6.1.12.1.2.6 AES_CMAC_INIT

Address offset: 0x47C

Writing to this address triggers the AES engine to generate K1 and K2 for AES-CMAC operations.

6.1.12.1.2.7 AES_REMAINING_BYTES

Address offset: 0x4BC

This register should be set with the amount of remaining bytes until the end of the current AES operation. The AES engine counts down from this value to determine the last block or the block before the last blocks in mode AES CMAC and mode AES CCM.

Bit number
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000R/W Field Value ID Description A PW VALUE Remaining bytes until the end of the current AES operation

Remaining bytes util the end of the current AES operation.

6.1.12.1.2.8 AES_CONTROL

Address offset: 0x4C0

Control the AES engine behavior.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCCBBBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDEC_KEY0
Encrypt0
Decrypt1
BRWMODE_KEY0
ECB0x0
CBC0x1
CTR0x2
CBC_MAC0x3
CMAC0x7
CRWNK_KEY0
128Bits0x0
DRWAES_XOR_CRYPTOKEY
Disable0
Enable1
ERWDIRECT_ACCESS
Disable0
Enable1

6.1.12.1.2.9 AES_HW_FLAGS

Address offset: 0x4C8

Hardware configuration of the AES engine. Reset value holds the supported features.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDK J I H G
Reset 0x000001080 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARSUPPORT_256_192_KEYIf this flag is set, the engine support 192 bits and 256 bits key size.
BRAES_LARGE_RKEKIf this flag is set, the engine support AES_LARGE_RKEK.
CRDPA_CNTRMSR_EXISTIf this flag is set, the engine support DPA countermeasures.
DRCTR_EXISTIf this flag is set, the engine support AES CTR mode.
ERONLY_ENCRYPTIf this flag is set, the engine only support encrypt operations.
FRUSE_SBOX_TABLEIf this flag is set, the engine uses SBOX tables.
GRUSE_5_SBOXESIf this flag is set, the engine uses 5 SBOX where each AES round takes 4 cycles.
HRAES_SUPPORT_PREV_IVIf this flag is set, the engine contains the PREV_IV register for faster AES XCBC MAC calculation.
IRAES_TUNNEL_EXISTIf this flag is set, the engine support tunneling operations.
JRSECOND_REGS_SET_EXISTIf this flag is set, the engine support a second register set for tunneling operations.
KRDFA_CNTRMSR_EXISTIf this flag is set, the engine support DFA countermeasures.

6.1.12.1.2.10 AES_CTR_NO_INCREMENT

Address offset: 0x4D8

This register enables the AES CTR no increment mode in which the counter mode is not incremented between two blocks

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE

6.1.12.1.2.11 AES_SW_RESET

Address offset: 0x4F4

Reset the AES engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWRESET
Enable1

6.1.12.1.2.12 AES_CMAC_SIZE0_KICK

Address offset: 0x524

Writing to this address triggers the AES engine to perform a CMAC operation with size 0. The CMAC result can be read from the AES_IV_0 register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWENABLE
Disable0
Enable1

6.1.12.2 CHACHA engine

The ChaCha algorithm is a family of stream ciphers.

The ChaCha family of stream ciphers can be used as both a stand-alone algorithm, and in combination with the Poly1305 authenticator to form an Authenticated Encryption with Associated Data (AEAD) algorithm as defined in RFC7539 for IETF protocols.

The CHACHA engine provide acceleration for the stream encryption, while the PKA engine is used for acceleration of the Poly1305 authenticator. The core of the ChaCha algorithm is a hash function which is based on rotation operations. In the default configuration the hash function consist of 20 rounds of rotation permutations. The implementation support ChaCha stream ciphers using key sizes up to 256 bits in 8, 12 and 20 rounds. The ChaCha20/Poly1305 combination is perfectly suited for embedded environments, and can achieve much higher throughput than AES using similar power consumption and execution time.

Note: To ensure proper operation when writing 128 bits CHACHA keys, the write-only key registers of the CHACHA engine must be written in ascending order, starting with:

• CHACHA_KEY[0]

• CHACHA_KEY[1]

• CHACHA_KEY[2]

• CHACHA_KEY[3]

For 256 bits CHACHA keys, this must be followed by:

• CHACHA_KEY[4]

• CHACHA_KEY[5]

• CHACHA_KEY[6]

• CHACHA_KEY[7]

6.1.12.2.1 Cryptographic flow

The following section describe a simple cryptographic flow for this engine.

uint8_t buf_dst[16] = { 0 };
uint8_t buf_src[16] = { 0x18, 0x35, 0x9B, 0x75, 0x18, 0x6F, 0x33, 0xBE,
    0x22, 0x0A, 0x3D, 0xB7, 0x66, 0xFD, 0x98, 0x35 };

/* Enable CRYPTOCELL subsystem */
NRF_CRYPTOCELL->ENABLE = CRYPTOCELL_ENABLE_ENABLE_Enabled;

/* Enable engine and DMA clock */
NRF_CC_MISC->CHACHA_CLK = CC_MISC_CHACHA_CLK_ENABLE_Enable;
NRF_CC_MISC->DMA_CLK = CC_MISC_DMA_CLK_ENABLE_Enable;

/* Wait until crypto engine is Idle */
while (NRF_CC_CTL->CRYPTO_BUSY == CC_CTL_CRYPTO_BUSY_STATUS_Busy) {}

/* Configure CHACHA as cryptographic flow */
NRF_CC_CTL->CRYPTO_CTL = CC_CTL_CRYPTO_CTL_MODE_ChaChaActive;

/* Configure testing NONCE */
NRF_CC_CHACHA->CHACHA_IV[0] = 0xBBBAAAA;
NRF_CC_CHACHA->CHACHA_IV[1] = 0x22221111;

/* Load the CHACHA test key value into the engine */
NRF_CC_CHACHA->CHACHA_KEY[0] = 0x51515151;
NRF_CC_CHACHA->CHACHA_KEY[1] = 0x52525252;
NRF_CC_CHACHA->CHACHA_KEY[2] = 0x53535353;
NRF_CC_CHACHA->CHACHA_KEY[3] = 0x54545454;
NRF_CC_CHACHA->CHACHA_KEY[4] = 0x51515151;
NRF_CC_CHACHA->CHACHA_KEY[5] = 0x52525252;
NRF_CC_CHACHA->CHACHA_KEY[6] = 0x53535353;
NRF_CC_CHACHA->CHACHA_KEY[7] = 0x54545454;

/* Configure CHACHA mode - using default (0x0), adding new message init */
NRF_CC_CHACHA->CHACHA_CONTROL =
(CC_CHACHA_CHACHA_CONTROL_INIT_Enable <<
CC_CHACHA_CHACHA_CONTROL_INIT_Pos);

/* Configure DMA output destination address */
NRF_CC_DOUT->DST_MEM_ADDR = (uint32_t) buf_dst;
NRF_CC_DOUT->DST_MEM_SIZE = (uint32_t) sizeof(buf_dst);

/* Configure DMA input source address to start the cryptographic operation */
NRF_CC_DIN->SRC_MEM_ADDR = (uint32_t) buf_src;
NRF_CC_DIN->SRC_MEM_SIZE = (uint32_t) sizeof(buf_src);

/* Wait on DOUT DMA interrupt */
while(!(NRF_CC_HOST_RGF->IRR & CC_HOST_RGF_IRR_DOUT_TO_MEM_INT_Msk)) {}

6.1.12.2.2 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_CHACHA0x50841000HFSNSANoCRYPTOCELL CHACHA engine

Register overview

RegisterOffsetTZDescription
CHACHA_CONTROL0x380Control the CHACHA engine behavior.
CHACHA_VERSION0x384CHACHA engine HW version
CHACHA_KEY[n]0x388CHACHA key value to use. The initial CHACHA_KEY[0] register holds the least significant bits [31:0] of the key value.
CHACHA_IV[n]0x3A8CHACHA Initialization Vector (IV) to use. The IV is also known as the nonce.
CHACHA_BUSY0x3B0Status register for CHACHA engine activity.
CHACHA_HW_FLAGS0x3B4Hardware configuration of the CHACHA engine. Reset value holds the supported features.
CHACHA_BLOCK_CNT_LSB0x3B8Store the LSB value of the block counter, in order to support suspend/resume of operation
CHACHA_BLOCK_CNT_MSB0x3BCStore the MSB value of the block counter, in order to support suspend/resume of operation
CHACHA_SW_RESET0x3C0Reset the CHACHA engine.
CHACHA_POLY1305_KEY[n]0x3C4The auto-generated key to use in Poly1305 MAC calculation.The initial CHACHA_POLY1305_KEY[0] register holds the least significant bits [31:0] of the key value.
CHACHA_ENDIANNESS0x3E4CHACHA engine data order configuration.
CHACHA_DEBUG0x3E8Debug register for the CHACHA engine

6.1.12.2.2.1 CHACHA_CONTROL

Address offset: 0x380

Control the CHACHA engine behavior.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000GF
IDR/WFieldValue IDValue000000000000000000000000000000000000000000000000
ARWCHACHA_OR_SALSARun engine in ChaCha or Salsa mode
ChaCha0
Bit number313029282726252423222120191817161514131211109876543210
IDGFEEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
12Rounds1
8Rounds2
FRWRESET_BLOCK_CNT
Disable0
Enable1
GRWUSE_IV_96BIT
Disable0
Enable1The IV is 96 bits

6.1.12.2.2.2 CHACHA_VERSION

Address offset: 0x384

CHACHA engine HW version

6.1.12.2.2.3 CHACHA_KEY[n] (n=0..7)

Address offset: 0x388 + (n × 0x4)

CHACHA key value to use. The initial CHACHA_KEY[0] register holds the least significant bits [31:0] of the key value.

6.1.12.2.2.4 CHACHA_IV[n] (n=0..1)

Address offset: 0x3A8 + (n × 0x4)

CHACHA Initialization Vector (IV) to use. The IV is also known as the nonce.

The size of the nonce is controlled from register CHACHA_CONTROL on page 99.

For 64 bits IV size the nonce value must be encoded using:

• CHACHA_IV[0] : Bits [31:0] of the nonce

• CHACHA_IV[1] : Bits [63:32] of the nonce

For 96 bits IV size the nonce value must be encoded using:

• CHACHA_BLOCK_CNT_MSB on page 101 : Bits [31:0] of the nonce

• CHACHA_IV[0] : Bits [63:32] of the nonce

• CHACHA_IV[1] : Bits [95:64] of the nonce

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWVALUECHACHA IV value.

6.1.12.2.2.5 CHACHA_BUSY

Address offset: 0x3B0

Status register for CHACHA engine activity.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSCHACHA engine status.
Idle0CHACHA engine is idle
Busy1CHACHA engine is busy

6.1.12.2.2.6 CHACHA_HW_FLAGS

Address offset: 0x3B4

Hardware configuration of the CHACHA engine. Reset value holds the supported features.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARCHACHA_EXISTS
BRSALSA_EXISTS
CRFAST_CHACHA

6.1.12.2.2.7 CHACHA_BLOCK_CNT_LSB

Address offset: 0x3B8

Store the LSB value of the block counter, in order to support suspend/resume of operation

The two first words (n) in the last row of the cipher matrix are the block counter. At the end of each block (512b), the block counter for the next block is written by HW to register CHACHA_BLOCK_CNT_LSB on page 101 and register CHACHA_BLOCK_CNT_MSB on page 101. If starting a new message the block counter must also be reset.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWVALUEThis register holds the ChaCha block counter bits [31:0] and must be read

This register holds the ChaCha block counter bits [31:0] and must be read and written during respectively suspend and resume operations

6.1.12.2.2.8 CHACHA_BLOCK_CNT_MSB

Address offset: 0x3BC

Store the MSB value of the block counter, in order to support suspend/resume of operation For the description of register CHACHA_BLOCK_CNT_MSB on page 101, see register CHACHA_BLOCK_CNT_LSB on page 101.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWVALUE

6.1.12.2.2.9 CHACHA_SW_RESET

Address offset: 0x3C0

Reset the CHACHA engine.

6.1.12.2.2.10 CHACHA_POLY1305_KEY[n] (n=0..7)

Address offset: 0x3C4 + (n × 0x4)

The auto-generated key to use in Poly1305 MAC calculation.

The initial CHACHA_POLY1305_KEY[0] register holds the least significant bits [31:0] of the key value.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARVALUEPoly1305 key value.

6.1.12.2.2.11 CHACHA_ENDIANNESS

Address offset: 0x3E4

CHACHA engine data order configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHACHA_DIN_WORD_ORDER
Default
Reverse
BRWCHACHA_DIN_BYTE_ORDER
Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000EDCBA
IDR/WFieldValue IDValueDescription0
Default0Use default byte order within each input word, where bytes are ordered as follows: B0, B1, B2, B3.
Reverse1

6.1.12.2.2.12 CHACHA_DEBUG

Address offset: 0x3E8

Debug register for the CHACHA engine

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARFSM_STATE
IDLE_STATE0
INIT_STATE1
ROUNDS_STATE2
FINAL_STATE3

6.1.12.3 HASH engine

The HASH engine is designed according to FIPS 180-4, and support both the SHA1 and SHA2 family of digest algorithms up to 256 bits.

The following SHA modes are supported:

• SHA-1

• SHA-224

• SHA-256

Note:

To ensure proper operation, the FIPS 180-4 defined initial hash values written to the registers of the HASH engine must be written in descending order, starting with:

• HASH_H[7] for SHA-256, and SHA-224.

• HASH_H[6] for SHA-256, and SHA-224.

• HASH_H[5] for SHA-256, and SHA-224.

• HASH_H[4] for SHA-256, SHA-224, and SHA-1.

• HASH_H[3] for SHA-256, SHA-224, and SHA-1.

• HASH_H[2] for SHA-256, SHA-224, and SHA-1.

• HASH_H[1] for SHA-256, SHA-224, and SHA-1.

• HASH_H[0] for SHA-256, SHA-224, and SHA-1.

6.1.12.3.1 Cryptographic flow

The following section describe a simple cryptographic flow for this engine.

uint8_t buf_src[32] = {
    0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA,
    0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA,
    0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA,
    0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA
};

/* Enable CRYPTOCELL subsystem */
NRF_CRYPTOCELL->ENABLE = CRYPTOCELL_ENABLE_ENABLE_Enabled;

/* Enable engine and DMA clock */
NRF_CC_MISC->HASH_CLK = CC_MISC_HASH_CLK_ENABLE_Enable;
NRF_CC_MISC->DMA_CLK = CC_MISC_DMA_CLK_ENABLE_Enable;

/* Wait until hash engine is Idle */
while (NRF_CC_CTL->HASH_BUSY == CC_CTL_HASH_BUSY_STATUS_Busy) {}

/* Clear all interrupts */
NRF_CC_HOST_RGF->ICR = 0xFFFFFFFF;

/* Configure HASH as cryptographic flow */
NRF_CC_CTL->CRYPTO_CTL = CC_CTL_CRYPTO_CTL_MODE_HashActive;

/* Configure engine for SHA256 */
NRF_CC_HASH->HASH_CONTROL = CC_HASH_HASH_CONTROL_MODE_SHA256;

/* Configure initial SHA256 values */
NRF_CC_HASH->HASH_H[7] = 0x5BE0CD19;
NRF_CC_HASH->HASH_H[6] = 0x1F83D9AB;
NRF_CC_HASH->HASH_H[5] = 0x9B05688C;
NRF_CC_HASH->HASH_H[4] = 0x510E527F;
NRF_CC_HASH->HASH_H[3] = 0xA54FF53A;
NRF_CC_HASH->HASH_H[2] = 0x3C6EF372;
NRF_CC_HASH->HASH_H[1] = 0xBB67AE85;
NRF_CC_HASH->HASH_H[0] = 0x6A09E667;

/* Configure DMA input source address to start the cryptographic operation */
NRF_CC_DIN->SRC_MEM_ADDR = (uint32_t) buf_src;
NRF_CC_DIN->SRC_MEM_SIZE = (uint32_t) sizeof(buf_src);

/* Wait on DIN DMA interrupt indicating data has been fetched */
while (!(NRF_CC_HOST_RGF->IRR & CC_HOST_RGF_IRR_MEM_TO_DIN_INT_Msk)) {}

/* Wait until hash engine is Idle */
while (NRF_CC_CTL->HASH_BUSY == CC_CTL_HASH_BUSY_STATUS_Busy) {}

/* Calculated SHA256 digest now available in
NRF_CC_HASH->HASH_H[0] to NRF_CC_HASH->HASH_H[7] */

6.1.12.3.2 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_HASH0x50841000HFSNSANoCRYPTOCELL HASH engine

Register overview

RegisterOffsetTZDescription
HASH_H[n]0x640HASH_H value registers. The initial HASH_H[0] register holds the least significant bits [31:0] of the value.
HASH_PAD_AUTO0x684Configure the HASH engine to automatically pad data at the end of the DMA transfer to complete the digest operation.
HASH_INIT_STATE0x694Configure HASH engine initial state registers.
HASH_VERSION0x7B0HASH engine HW version
HASH_CONTROL0x7C0Control the HASH engine behavior.
HASH_PAD0x7C4Enable the hardware padding feature of the HASH engine.
HASH_PAD_FORCE0x7C8Force the hardware padding operation to trigger if the input data length is zero bytes.
HASH_CUR_LEN_00x7CCBits [31:0] of the number of bytes that have been digested so far.
HASH_CUR_LEN_10x7D0Bits [63:32] of the number of bytes that have been digested so far.
HASH_HW_FLAGS0x7DCHardware configuration of the HASH engine. Reset value holds the supported features.
HASH_SW_RESET0x7E4Reset the HASH engine.
HASH_ENDIANNESS0x7E8Configure the endianness of HASH data and padding generation.

6.1.12.3.2.1 HASH_H[n] (n=0..7)

Address offset: 0x640 + (n × 0x4)

HASH_H value registers. The initial HASH_H[0] register holds the least significant bits [31:0] of the value. This register is a 'R/W change' register, as the written register values changes during processing.

6.1.12.3.2.2 HASH_PAD_AUTO

Address offset: 0x684

Configure the HASH engine to automatically pad data at the end of the DMA transfer to complete the digest operation.

This feature can only be used if HASH_PAD on page 108 is enabled, and must be disabled after a digest operation is completed. In the event of zero bytes input data length the hardware padding must be manually triggered using register HASH_PAD_FORCE on page 108.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWHWPAD
Do not enable automatic hardware padding.
Enable automatic hardware padding.

6.1.12.3.2.3 HASH_INIT_STATE

Address offset: 0x694

Configure HASH engine initial state registers.

Data fetched using the DIN DMA engine will be loaded into initial hash value registers HASH_H[n] (n=0..7) on page 106 or used as IV for AES MAC.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWLOAD
Disable this register when loading of data using DIN DMA is done.
Disable0
Enable1

Address offset: 0x7B0

HASH engine HW version

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBBBBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARPATCH
BRMINOR_VERSION_NUMBERMinor version number
CRMAJOR_VERSION_NUMBERMajor version number

6.1.12.3.2.5 HASH_CONTROL

Address offset: 0x7C0

Control the HASH engine behavior.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODESelect HASH mode to execute
SHA11Select SHA1 mode
SHA2562Select SHA256 mode
SHA22410Select SHA224 mode

6.1.12.3.2.6 HASH_PAD

Address offset: 0x7C4

Enable the hardware padding feature of the HASH engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARWENABLE
Disable0
Enable1

6.1.12.3.2.7 HASH_PAD_FORCE

Address offset: 0x7C8

Force the hardware padding operation to trigger if the input data length is zero bytes.

This feature can only be used if HASH_PAD on page 108 is enabled, and must be disabled after a digest operation is completed.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Do not force hardware padding to trigger.
DisableForce hardware padding to trigger.
Enable

6.1.12.3.2.8 HASH_CUR_LEN_0

Address offset: 0x7CC

Bits [31:0] of the number of bytes that have been digested so far.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWVALUE

6.1.12.3.2.9 HASH_CUR_LEN_1

Address offset: 0x7D0

Bits [63:32] of the number of bytes that have been digested so far.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUEBits [63:32] of current length of digested data in bytes.

6.1.12.3.2.10 HASH_HW_FLAGS

Address offset: 0x7DC

Hardware configuration of the HASH engine. Reset value holds the supported features.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDJ I H G F E D C C C C B B B A A A A
Reset 0x000120010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARCWIndicates the number of concurrent words the hash is using to compute signature.
One1One concurrent word used by hash during signature generation
Two2Two concurrent words used by hash during signature generation
BRCHIndicate if Hi adders are present for each Hi value or 1 adder is shared for all Hi.
One0One Hi value is updated at a time.
All1All Hi values are updated at the same time.
CRDWDetermine the granularity of word size.
32Bits032 bits word data.
64Bits164 bits word data.
DRSHA_512_EXISTSIf this flag is set, the engine include SHA-512 support.
ERPAD_EXISTSIf this flag is set, the engine include pad block support.
FRMD5_EXISTSIf this flag is set, the engine include MD5 support.
GRHMAC_EXISTSIf this flag is set, the engine include HMAC support.
HRSHA_256_EXISTSIf this flag is set, the engine include SHA-256 support.
IRHASH_COMPARE_EXISTSIf this flag is set, the engine include compare digest logic.
JRDUMP_HASH_TO_DOUT_EXISTSIf this flag is set, the engine include HASH to DOUT support.

6.1.12.3.2.11 HASH_SW_RESET

Address offset: 0x7E4

Reset the HASH engine.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue ID
AWRESET
Enable

6.1.12.3.2.12 HASH_ENDIANNESS

Address offset: 0x7E8

Configure the endianness of HASH data and padding generation.

6.1.12.4 PKA engine

The Public Key Accelerator (PKA) engine is designed to accelerate asymmetric cryptographic algorithms. The PKA design is a general purpose bignum modular ALU capable of supporting operand sizes between 128-3136 bits in the following operations:

• Modular exponentiation/inversion

• Modular/regular addition/subtraction

• Modular/regular increment/decrement

• Modular/regular multiplication/division

• Logical operations (AND, OR, XOR, SHIFT)

The PKA engine can be used to hardware accelerate various arithmentic regular and modular mathematical operations involving very large numbers which are used in both RSA and Elliptic Curve Cryptographic (ECC) public-key cryptosystems.

6.1.12.4.1 Virtual memory mapping

The PKA engine uses virtual register mapping to facilitate flexible data management across a variety of cryptographic algorithms.


Figure 16: Virtual register mapping

All virtual registers must be defined and configured in the dedicated PKA SRAM on page 114 before they can be accessed by the PKA engine during processing. This SRAM acts as a private memory pool for the PKA engine, where all other access is blocked during processing. The virtual registers are used as input for the PKA calculation and as a placeholder for intermediate and final results.

The PKA engine can be configured to perform multiple operations on virtual operand registers and store the result of the operation in a virtual result or intermediate result register. During the next iteration the PKA engine can then use an intermediate result register from a previous operation as a virtual operand register for further calculations. This re-mapping strategy enables the PKA engine to efficiently handle complex cryptographic operations.

In total there are 32 virtual registers that can be mapped to different PKA SRAM regions using register MEMORY_MAP[n] (n=0..31) on page 116, denoted as virtual register R0 - R31. Four of these 32 virtual registers are special registers, and their register index mapping can be changed using register N_NP_T0_T1_ADDR on page 117:

• N - holds the modulus number, by default mapped to virtual register R0. This register is used by the PKA engine for modular operations, and its modulus N value does not change during processing.

• Np - holds the inverse modulus number, by default mapped to virtual register R1. This register is used by the PKA engine for the Barrett reduction algorithm, and its inverse modulus Np value does not change during processing.

• T0 - temporary register, by default mapped to virtual register R30. This register is for internal use by the PKA engine.

• T1 - temporary register, by default mapped to virtual register R31. This register is for internal use by the PKA engine.

All virtual registers must be 64 bits word size aligned, and the size of the virtual registers must be at least the size of the largest operand plus an extra 64 bits for internal PKA calculations. These extra 64 bits must be initialized to zero. This is applicable for all virtual registers R0 - R31. The configured virtual register size does not define the size of the operation, it only limits the largest operand size that can be used with the corresponding virtual register.

The memory map configuration can be altered dynamically by the PKA engine, depending on the operation. Not all virtual registers need to be configured for each operation. It is recommended to re-write the memory map configuration after a reset.

6.1.12.4.2 Engine operations

The PKA engine can perform multiple operations on operands stored in virtual registers.

PKA processing is triggered by writing to register OPCODE on page 117. This register contains both the PKA operation to perform, and which virtual register indexes to use as operand inputs, tag, and intermediate or final result output of the operation. Register PKA_DONE on page 119 will indicate Processing until the PKA operation is done, after which the result can be read from the result register in PKA SRAM.

The following OPCODE virtual register indexes must be configured prior to starting the PKA engine:

• Field REG_R configure which virtual register to use for storing an intermediate or final result.

• Field REG_A and REG_B configure which virtual registers to use as operand input. The operand input fields can be interpreted by the PKA engine as constants instead of virtual register indexes by setting fields CONST_A and $\mathrm { C O N S T _ B }$ for certain operations, as documented in the table below.

• The size of the operands are set in field LEN, which must point to one of the pre-configured operand sizes in bits configured in register PKA_L[n] (n=0..7) on page 118.

6.1.12.4.2.1 OPCODE overview

Supported PKA operation codes and the corresponding required virtual register configurations.

OPCODEOperation
TerminateTerminate ongoing PKA operation
AddIncAdd or IncrementADD: REG_R = REG_A + REG_BINC: REG_R = REG_A + 0x1, when REG_B and CONST_B are 0x1
SubDecNegSubtract, Decrement, or NegateSUB: REG_R = REG_A - REG_BDEC: REG_R = REG_A - 0x1, when REG_B and CONST_B are 0x1NEG: REG_R = 0x0 - REG_B, when REG_A is 0x0 and CONST_A is 0x1
ModAddIncModular Add or Modular IncrementModADD: REG_R = (REG_A + REG_B) % REG_NModINC: REG_R = (REG_A + 0x1) % REG_N, when REG_B and CONST_B are 0x1
ModSubDecNegModular Subtract, Modular Decrement, or Modular NegateModSUB: REG_R = (REG_A - REG_B) % REG_NModDEC: REG_R = (REG_A - 0x1) % REG_N, when REG_B and CONST_B is 0x1ModNEG: REG_R = (0x0 - REG_B) % REG_N, when REG_A is 0x0
ANDTSTOCLROAnd, Test bit 0, or ClearAND: REG_R = REG_A &amp; REG_BTSTO: REG_R = REG_A &amp; 0x1, when REG_B is 0x1, and CONST_B is 0x1CLR: REG_R = 0x0, when REG_B is 0x0 and CONST_B is 0x1. REG_A is ignored.
ORCOPYSETOOr, Copy, or Set bit 0OR: REG_R = REG_A | REG_BCOPY: REG_R = REG_A, when REG_B is 0x0 and CONST_B is 0x1.SETO: REG_R = REG_A | 0x1, when REG_B and CONST_B is 0x1.
XORFLP0INVCMPXOR, Flip bit 0, Invert, or CompareXOR: REG_R = REG_A XOR REG_BFLP0: REG_R = REG_A XOR 0x1, when REG_B and CONST_B is 0x1.INV: REG_R = REG_A XOR 0xFFFFFFFF, when REG_B is 0x1F and CONST_B is 0x1.CMP: REG_A XOR REG_B, when DISCARD_R is 0x1, result of comparison is provided by the ALU_OUT_ZERO flag in PKA_STATUS register.
SHROShift right 0. This operation performs a logical right shift on the contents of REG_A by a specified number of bit positions and stores the result in REG_R. The leftmost bits of REG_R that are vacated by the shift operation are filled with zeros.REG_R = REG_A &gt;&gt; s, CONST_B must be set to 0x1. To perform s shifts, REG_B should be set to s - 1 (where 1 &lt;= s &lt;= 31).
SHR1Shift right 1. This operation performs a logical right shift on the contents of REG_A by a specified number of bit positions and stores the result in REG_R. The leftmost bits of REG_R that are vacated by the shift operation are filled with ones.REG_R = REG_A &gt;&gt; s, CONST_B must be set to 0x1. To perform s shifts, REG_B should be set to s - 1 (where 1 &lt;= s &lt;= 31).
SHL0Shift left 0. This operation performs a logical left shift on the contents of REG_A by a specified number of bit positions and stores the result in REG_R. The leftmost bits of REG_R that are vacated by the shift operation are filled with zeros.REG_R = REG_A &lt;&lt; s, CONST_B must be set to 0x1. To perform s shifts, REG_B should be set to s - 1 (where 1 &lt;= s &lt;= 31).
SHL1Shift left 1. This operation performs a logical left shift on the contents of REG_A by a specified number of bit positions and stores the result in REG_R. The leftmost bits of REG_R that are vacated by the shift operation are filled with ones.REG_R = REG_A &lt;&lt; s, CONST_B must be set to 0x1. To perform s shifts, REG_B should be set to s - 1 (where 1 &lt;= s &lt;= 31).
MulLowMultiply Low. This operation performs a multiplication of the values in REG_A and REG_B and stores the result in the destination register REG_R. Any bits of the product that exceed the operand size are discarded, effectively keeping only the least significant bits (LSBs) that fit within the operand size.REG_R = (REG_A * REG_B) &amp; operand size mask
ModMulModular Multiply.
REG_R = (REG_A * REG_B) % REG_N
ModMulNThe output of this operation is a number that is potentially larger than the modulus N, but guaranteed to be smaller than 2N. Assuming REG_A and REG_B are already reduced modulo N or are less than N, the operation is simply REG_R = (REG_A * REG_B).
ModExpModular Exponentiation.
REG_R = (REG_A ^ REG_B) % REG_N
DivisionInteger Division. This operation performs integer division of the value in REG_A by the value in REG_B. The quotient of the division is stored in REG_R, and the remainder is stored back in REG_A.
• REG_R = REG_A / REG_B
• REG_A = REG_A % REG_B
If REG_B is zero (0x0), the operation is invalid, and the divide by zero bit in the status register is set to indicate a division error.
ModInvModular Inversion.
REG_R = 1/REG_B % REG_N
ModDivModular division is done by calculating the modular inverse of the divisor, check that the inverse value exists by examining the GCD, and then use modular multiplication to multiply the inverse result by the divided.
REG_A = (REG_A * REG_B^(-1)) % REG_N
MulHighMultiply High. This operation multiplies REG_A by REG_B and captures the high-order bits of the result that exceed the operand size. It places these significant bits, along with an additional PKA_WORD number of bits, into the destination register REG_R.
REG_R = (REG_A * REG_B) &gt;&gt; operand size
ModMLACModular Multiplication Acceleration. Performs a modular multiplication and addition. REG_C is defined using the operation tag.
REG_R = ((REG_A * REG_B) + REG_C) % REG_N
ModMLACNRModular Multiplication Acceleration No Reduction. Same as ModMLAC, but this omits the final reduction of the result.
ReductionReduction. This operation performs a modular reduction, where the result REG_R is the remainder of REG_A divided by REG_N. The length of the operation is flexible and can be chosen based on the specific requirements of the use case.
REG_R = REG_A % REG_N

Table 17: PKA OPCODE descriptions

6.1.12.4.3 Pipeline configuration

The following section describe how the PKA engine is used to accelerate asymmetric cryptographic algorithms.

The PKA engine supports pipelined operations; the pipeline depth is one opcode, thus the next operation can be set up while the previous operation is executing. Register PKA_PIPE on page 119 will indicate if the pipeline is ready for a new opcode and register PKA_DONE on page 119 will indicate when the PKA operation has been completed and no operation is waiting in the pipeline.

  1. Enable CRYPTOCELL subsystem as described in Cryptographic flow on page 86.

  2. Initialize the PKA engine to accommodate the maximum bit size of all intended operations

a. Configure registers PKA_L[n] (n=0..7) on page 118 for all required operand bit sizes. The desired operand length is selected using field LEN in register OPCODE on page 117.

b. Define the PKA SRAM memory map partitioning using register MEMORY_MAP[n] (n=0..31) on page 116 for register , , , and , as well as any other virtual registers intended to be used in the operations. The PKA SRAM memory map partitioning must allow for the max operand bit size plus an additional 64 bits reserved for PKA engine internal calculations.

  1. For all operations

a. Load the PKA SRAM virtual registers N and Np as required

b. Load the remaining PKA SRAM virtual registers as required

c. Execute the operation by writing register OPCODE on page 117

d. Prepare the next opcode once register PKA_PIPE on page 119 is ready.

e. Handle any status bits in register PKA_STATUS on page 118

f. Re-use intermediate results of the previous operation as needed.

  1. Wait for the operation to complete by either polling register PKA_DONE on page 119, or by unmasking the interrupt for field PKA_MASK in register IMR on page 144

  2. Read the result from the result register.

6.1.12.4.4 PKA SRAM

The 4 kB PKA SRAM memory connected to the PKA engine is used exclusively by the engine during cryptographic operations. All access to this memory is blocked while the PKA engine is processing.

The PKA SRAM memory is not directly mapped to the device memory map. Instead, any read or write operation to this memory region must be done using the PKA engine on page 110.

Writing data to the PKA SRAM involves the following steps:

  1. Set the Address Offset: Specify the starting byte address for writing by setting register PKA_SRAM_WADDR on page 119. An offset value of 0x0 points to the first 32-bits word in the PKA SRAM memory. An offset value of 0x10 points to the fourth 32-bits word in the PKA SRAM memory.

  2. Write Data: After setting the address offset, data is written to register PKA_SRAM_WDATA on page 120. The address will automatically increment after each write, allowing writes to the next word without needing to set the offset again.

Reading data from the PKA SRAM involves the following steps:

  1. Set the Read Address: Specify the starting byte address for reading by setting register PKA_SRAM_RADDR on page 120

  2. Read Data: Retrieve the data from register PKA_SRAM_RDATA on page 120. Similar to the write address, the read address will auto-increment with each read, setting it to the next word.

Note: Before switching from writing to reading operations (or vice versa), the PKA SRAM write buffer must be cleared. This is done using register PKA_SRAM_WCLEAR on page 120. Clearing the buffer ensures that the next operation starts cleanly without any leftover data from the previous operation.

6.1.12.4.5 Cryptographic flow

The following section describe a simple cryptographic flow for this engine.

/* Enable CRYPTOCELL and its PKA engine */
NRF_CRYPTOCELL->ENABLE = CRYPTOCELL_ENABLE_ENABLE_Enabled;
NRF_CC_MISC->PKA_CLK = CC_MISC_PKA_CLK_ENABLE_Enable;

/* Define the operand bit size as 2048 */
NRF_CC_PKA->PKA_L[1] = 0x800;

/* Define the 32-bits PKA SRAM address of the selected R4 and R5 */
NRF_CC_PKA->MEMORY_MAP[4] = 0x108;
NRF_CC_PKA->MEMORY_MAP[5] = 0x14A;

/* Initialize the SRAM registers with one word of data */
NRF_CC_PKA->PKA_SRAM_WADDR = NRF_CC_PKA->MEMORY_MAP[4];
NRF_CC_PKA->PKA_SRAM_WDATA = 0x5;
NRF_CC_PKA->PKA_SRAM_WADDR = NRF_CC_PKA->MEMORY_MAP[5];
NRF_CC_PKA->PKA_SRAM_WDATA = 0x2;

/* Execute subtract, OPCODE SubDecNeg: R4 = R4 - R5 */
NRF_CC_PKA->OPCODE =
(4 << CC_PKA_OPCODE_REG_R_Pos) |
(5 << CC_PKA_OPCODE_REG_B_Pos) |
(4 << CC_PKA_OPCODE_REG_A_Pos) |
(1 << CC_PKA_OPCODE_LEN_Pos) |
(CC_PKA_OPCODE_OPCODE_SubDecNeg << CC_PKA_OPCODE_OPCODE_Pos);

/* Wait for operation to complete, result will be in R4 */
while (!NRF_CC_PKA->PKA_DONE) { }

This cryptographic flow example perform a subtract operation with the following assumptions:

• All PKA SRAM registers, including the special virtual registers N, Np, T0, and T1, have been cleared before the operation is run.

The operation is using index 1 in register PKA_L[n] (n=0..7) on page 118, which is set to accommodate an operand size of 2048 bits.

• Register R4 and R5 have been selected to run this operation. Register R4 is used both as the operand A register and the result register.

The memory map is configured to allow operands of 2048 bits plus an additional 64 bits for the interna PKA engine calculations. The configuration of the MEMORY_MAP[n] (n=0..31) on page 116 for virtual register N, Np, T0, and T1 is not included in the example. The memory map is thus configured with 66 words per register, leading to the following:

Virtual registerMemory map registerPKA SRAM address
N (R0)MEMORY_MAP[0]0x0
Np (R1)MEMORY_MAP[1]0x42
.........
R4MEMORY_MAP[4]0x108
R5MEMORY_MAP[5]0x14A
.........

6.1.12.4.6 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_PKA0x50841000HFSNSANoCRYPTOCELL PKA engine

Register overview

RegisterOffsetTZDescription
MEMORY_MAP[n]0x0Register for mapping the virtual register R[n] to a physical address in the PKA SRAM.
OPCODE0x80Operation code to be executed by the PKA engine.Writing to this register triggers the PKA operation.
N_NP_T0_T1_ADDR0x84This register defines the N, Np, T0, and T1 virtual register index.
PKA_STATUS0x88This register holds the status for the PKA pipeline.
PKA_SW_RESET0x8CReset the PKA engine.
PKA_L[n]0x90This register holds the operands bit size.
PKA_PIPE0xB0Status register indicating if the PKA pipeline is ready to receive a new OPCODE.
PKA_DONE0xB4Status register indicating if the PKA operation has been completed.
PKA_VERSION0xC4PKA engine HW version. Reset value holds the version.
PKA_SRAM_WADDR0xD4Start address in PKA SRAM for subsequent write transactions.
PKA_SRAM_WDATA0xD8Write data to PKA SRAM. Writing to this register triggers a DMA transaction writing data into PKA SRAM. The DMA address offset is automatically incremented during write.
PKA_SRAM_RDATA0xDCRead data from PKA SRAM. Reading from this register triggers a DMA transaction read data from PKA SRAM. The DMA address offset is automatically incremented during read.
PKA_SRAM_WCLEAR0xE0Register for clearing PKA SRAM write buffer.
PKA_SRAM_RADDR0xE4Start address in PKA SRAM for subsequent read transactions.

6.1.12.4.6.1 MEMORY_MAP[n] (n=0..31)

Address offset: 0x0 + (n × 0x4)

Register for mapping the virtual register R[n] to a physical address in the PKA SRAM.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWADDRThe physical word address used for the virtual register.

6.1.12.4.6.2 OPCODE

Address offset: 0x80

Operation code to be executed by the PKA engine.

Writing to this register triggers the PKA operation.

Bit number313029282726252423222120191817161514131211109876543210
IDIIIIIHHHGFFFFEDDDDDCBBBBBAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTAG
BRWREG_R
CRWDISCARD_R
Register0x0
Discard0x1
DRWREG_B
ERWCONST_B
Register0x0
Constant0x1
FRWREG_A
GRWCONST_A
Register0x0
Constant0x1
HRWLEN
IRWOPCODE
Terminate0x0
AddInc0x4
SubDecNeg0x5
ModAddInc0x6
ModSubDecNeg0x7
ANDTSTOCLR00x8
ORCOPYSET00x9
XORFLPOINVCMP0xA
SHRO0xC
SHR10xD
SHL00xE
SHL10xF
MulLow0x10
ModMul0x11
ModMulN0x12
ModExp0x13
Division0x14
ModInv0x15
ModDiv0x16
MulHigh0x17
ModMLAC0x18
ModMLACNR0x19
Reduction0x1B

6.1.12.4.6.3 N_NP_T0_T1_ADDR

Address offset: 0x84

This register defines the N, Np, T0, and T1 virtual register index.

Bit number313029282726252423222120191817161514131211109876543210
IDD
Reset 0x000FF82000000000000011111111100000100000
IDR/WFieldValue IDValueDescription
ARWN_VIRTUAL_ADDRRegister N virtual register index. Default is R0.
BRWNP_VIRTUAL_ADDRRegister Np virtual register index. Default is R1.
CRWT0_VIRTUAL_ADDRTemporary register 0 virtual register index. Default is R30.
DRWT1_VIRTUAL_ADDRTemporary register 1 virtual register index. Default is R31.

6.1.12.4.6.4 PKA_STATUS

Address offset: 0x88

This register holds the status for the PKA pipeline.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00001000000000000000000000010000000000000
IDR/WFieldValue IDValue
ARALU_MSB_4BITS
BRALU_LSB_4BITS
CRALU_SIGN_OUT
DRALU_CARRY
ERALU_CARRY_MOD
FRALU_SUB_IS_ZERO
GRALU_OUT_ZERO
HRALU_MODOVRFLW
IRDIV_BY_ZERO
JRMODINV_OF_ZERO
KROPCODE

6.1.12.4.6.5 PKA_SW_RESET

Address offset: 0x8C

Reset the PKA engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWRESETWriting any value to this address resets the PKA engine. The reset takes 4 CPU clock cycles to complete.
Reset PKA engine.

6.1.12.4.6.6 PKA_L[n] (n=0..7)

Address offset: 0x90 + (n × 0x4)

This register holds the operands bit size.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOpSize

6.1.12.4.6.7 PKA_PIPE

Address offset: 0xB0

Status register indicating if the PKA pipeline is ready to receive a new OPCODE.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARSTATUSPKA pipeline status.
NotReady0PKA pipeline is not ready for a new OPCODE
Ready1PKA pipeline is ready for a new OPCODE

6.1.12.4.6.8 PKA_DONE

Address offset: 0xB4

Status register indicating if the PKA operation has been completed.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARSTATUSPKA operation status.
Processing0PKA operation is processing
Completed1PKA operation is completed and pipeline is empty

6.1.12.4.6.9 PKA_VERSION

Address offset: 0xC4

PKA engine HW version. Reset value holds the version.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x1611021500010110000100010000001000010101
IDR/WFieldValue IDValue
ABPKA VERSION

6.1.12.4.6.10 PKA_SRAM_WADDR

Address offset: 0xD4

Start address in PKA SRAM for subsequent write transactions.

6.1.12.4.6.11 PKA_SRAM_WDATA

Address offset: 0xD8

Write data to PKA SRAM. Writing to this register triggers a DMA transaction writing data into PKA SRAM. The DMA address offset is automatically incremented during write.

6.1.12.4.6.12 PKA_SRAM_RDATA

Address offset: 0xDC

Read data from PKA SRAM. Reading from this register triggers a DMA transaction read data from PKA SRAM. The DMA address offset is automatically incremented during read.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARDATA

6.1.12.4.6.13 PKA_SRAM_WCLEAR

Address offset: 0xE0

Register for clearing PKA SRAM write buffer.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
AWCLEARClear the PKA SRAM write buffer.

6.1.12.4.6.14 PKA_SRAM_RADDR

Address offset: 0xE4

Start address in PKA SRAM for subsequent read transactions.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWADDR

6.1.12.5 RNG engine

CRYPTOCELL implements a Random Number Generator (RNG) engine which uses a True Random Number Generator (TRNG) for its entropy collection.

The TRNG is a full entropy design compliant with:

• FIPS 140-2: Security requirements for Cryptographic Modules

• BSI AIS-31: Functionality Classes and Evaluation Methodology for True Random Number Generators

• NIST SP 800-90B: Recommendation for the Entropy Sources Used for Random Bit Generation

where a ring-oscillator is used as the noise source.

The entropy collected using the RNG engine can in turn be used for seeding a Pseudo Random Number Generator (PRNG) as defined in NIST SP 800-90A: Recommendation for Random Number Generation Using Deterministic Random Bit Generators.

NIST SP 800-90A define three Deterministic Random Bit Generator (DRBG) that are considered cryptographically secure pseudorandom number generators for use in cryptography: Hash DRBG, HMAC DRBG, and CTR DRBG.

The CRYPTOCELL DRBG implementation is a combination of hardware and software, where CTR DRBG is implemented using the the AES engine running AES encryption in counter (CTR) mode as the underlying cipher. This DRBG instance is seeded with random entropy from the RNG engine.

6.1.12.5.1 Ring oscillator length configuration

The RNG engine must be configured with specific parameters to ensure correct operation in order to output random bits with sufficient entropy.

The noise source used for collecting entropy is based on inverter timing jitter that is collected from a dedicated on-chip free-running ring oscillator. The ring oscillator length, i.e. the number of inverters in the chain, can be configured using register TRNG_CONFIG on page 127.

In total there are four different ring oscillator lengths that can be selected, referred to as ROSC1 through ROSC4. For each of these four configurable lengths a corresponding sample count value is provided in register TRNG90B.ROSC1 on page 41 through register TRNG90B.ROSC4 on page 42.

The sampling frequency is configured using register SAMPLE_CNT on page 128, and the programmed value defines the number of CPU clock cycles between two consecutive ring oscillator samples. The configured sample count value is the minimum number of clock cycles that is enough to get independent outputs from the ring oscillator and must match that of the configured ROSC length.

The following steps describe how to set the RNG engine parameters described above:

  1. Enable RNG engine clock using register RNG_CLK on page 130.

  2. Reset the RNG engine using register RNG_SW_RESET on page 129.

  3. Re-enable RNG engine clock and select a device-specific sample count from registers TRNG90B.ROSC1 on page 41 through TRNG90B.ROSC4 on page 42 starting with the smallest one, and program the value into register SAMPLE_CNT on page 128.

  4. Perform a readback of the selected sample count value.

  5. Set the corresponding ROSC length in register TRNG_CONFIG on page 127 to match the selected sample count selection.

  6. Enable the noise source using register NOISE_SOURCE on page 127.

  7. Wait until event EHR_VALID_INT in register RNG_ISR on page 126 trigger to indicate successful collection of 192 bits of random data. The result can be read from registers EHR_DATA[n] (n=0..5) on page 127.

  8. If events , , or in register RNG_ISR on page 126 trigger, the RNG engine must be re-configured starting from step 2 above. Increase the ROSC length by a factor of one, and pick the corresponding sample count value from FICR. This step must be repeated until the collection of 192 bits of random data can be collected without an error event being triggered.

It is recommended to always try the shortest ROSC length first, allowing the RNG engine to complete the entropy collection in a shorter time and keep the ring oscillator turned off for longer periods in order to save power.

6.1.12.5.2 RNG SRAM

The 2 kB SRAM memory connected to the RNG engine can be used for storing a large pool of random entropy.

The RNG SRAM memory is not directly mapped to the device memory map. Instead, any read or write operation using word granularity to this memory region must be done using RNG SRAM interface on page 149. Larger payloads than word granularity can be processed using the DIN DMA engine on page 135 and DOUT DMA engine on page 139.

Before any RNG SRAM read or write transaction can be performed, the CRYPTOCELL must be enabled.

Writing data to the RNG SRAM involves the following steps:

  1. Set the Address Offset: Specify the starting byte address for writing by setting register SRAM_ADDR on page 149. An offset value of 0x0 points to the first 32-bits word in the RNG SRAM memory. An offset value of 0x10 points to the fourth 32-bits word in the RNG SRAM memory.

  2. Write Data: When register SRAM_DATA_READY on page 150 indicates DMA engine is idle, data is written to register SRAM_DATA on page 149. The address will automatically increment after each write, allowing writes to the next word without needing to set the offset again.

Reading data from the RNG SRAM involves the following steps:

  1. Set the Read Address: Specify the starting byte address for reading by setting register SRAM_ADDR on page 149

  2. Discard first read: Read and discard the first value from register SRAM_DATA on page 149, as it will contain the previous value pointed to by register SRAM_ADDR on page 149.

  3. Read Data: When register SRAM_DATA_READY on page 150 indicates DMA engine is idle, retrieve the data from register SRAM_DATA on page 149. Similar to the write address, the read address will auto-increment with each read, setting it to the next word.

Note: Once the address register reaches the last RNG SRAM address, the automatic address incrementation halts. Any subsequent read or write transaction will cause the DMA engine to continue operating on the last 32-bits word in the RNG SRAM memory.

6.1.12.5.3 TRNG hardware tests

The RNG engine has a number of built-in hardware tests for making sure the collected entropy from the TRNG is of sufficient quality.


Figure 17: CRYPTOCELL True Random Number Generator

The TRNG collects random bits from the noise source according to the programmed sample counter value in register SAMPLE_CNT on page 128. The sampled bits are post-processed in a von Neumann corrector (VNC) before being subjected to a continuous random number generation test (CRNGT) and autocorrelation test.

192 bits of random data can be read from the entropy holding registers EHR_DATA[n] (n=0..5) on page 127 once interrupt EHR_VALID_INT in register RNG_ISR on page 126 trigger. If this interrupt is masked away in register RNG_IMR on page 125, the status register TRNG_VALID on page 127 contains field EHR_DATA which can be polled when the random data is valid. Reading the most significant word from EHR_DATA registers will reset register TRNG_VALID and a new 192 bits collection period wil start.

Note:

To ensure proper operation when reading 192 bits of random data from the EHR_DATA registers of the RNG engine the data must be read in ascending order, starting with:

• EHR_DATA[0]

• EHR_DATA[1]

• EHR_DATA[2]

• EHR_DATA[3]

• EHR_DATA[4]

• EHR_DATA[5]

6.1.12.5.3.1 von Neumann Corrector

The von Neumann Corrector (VNC) is designed to balance the succession of '1' and '0' bits being output by the TRNG noise source.

The input bits to the VNC is tested for bit equality, meaning a sequence of 32 consequtive bits with the same bit value will trigger event VNC_ERR_INT in register RNG_ISR on page 126.

If no error event is triggered, the input bits will be balanced using the VNC as shown in the figure below, and the resulting output bits will be subjected to additional TRNG tests. The VNC produce output only if the noise source is active, see register NOISE_SOURCE on page 127.


Figure 18: CRYPTOCELL von Neumann corrector

The VNC statistically output one bit for each 4 input bits sampled, meaning the average output rate of the TRNG is 1/(SAMPLE_CNT * 4) bits per CPU clock cycle.

6.1.12.5.3.2 Continuous random number generation test

The Continuous random number generation test (CRNGT) process the balanced output of random data from the von Neumann corrector.

In the event that two consecutive blocks of 16 collected bits are equal, the CRNGT will trigger event CRNGT_ERR_INT in register RNG_ISR on page 126.

6.1.12.5.3.3 Autocorrelation test

The Autocorrelation test determine if there over time is a bias in the random bit sequences towards certain values or patterns, or if the bits in the sequence are truly independent.

If a bias in the collected bit stream is detected, the output will be discarded and the error flagged in register AUTOCORR_STATISTIC on page 128. If a bias is detected four consecutive times in a row, the autocorrelation test will trigger event AUTOCORR_ERR_INT in register RNG_ISR on page 126. In this situation the TRNG will cease to function until manually reset using register RNG_SW_RESET on page 129.

6.1.12.5.4 Cryptographic flow

The following section describe a simple cryptographic flow for this engine.

/* Enable CRYPTOCELL subsystem */
NRF_CRYPTOCELL->ENABLE = CRYPTOCELL_ENABLE_ENABLE_Enabled;

/* Enable engine clock */
NRF_CC_RNG->RNG_CLK = CC_RNG_RNG_CLK_ENABLE_Enable;

/* Reset engine */
NRF_CC_RNG->RNG_SW_RESET = CC_RNG_RNG_SW_RESET_RESET_Enable;

/* Configure sampling rate between consecutive bits */
do {
    NRF_CC_RNG->RNG_CLK = CC_RNG_RNG_CLK_ENABLE_Enable;
    NRF_CC_RNG->SAMPLE_CNT = NRF_FICR->TRNG90B.ROSC1;
} while ( NRF_CC_RNG->SAMPLE_CNT != NRF_FICR->TRNG90B.ROSC1 );

/* Configure ROSC length */
NRF_CC_RNG->TRNG_CONFIG = CC_RNG_TRNG_CONFIG_ROSC_LEN_ROSC1;

/* Enable noise source */
NRF_CC_RNG->NOISE_SOURCE = CC_RNG_NOISE_SOURCE_ENABLE_Enabled;

/* Wait for random data to be sampled */
while ((NRF_CC_RNG->RNG_ISR & CC_RNG_RNG_ISR_EHR_VALID_INT_Msk) == 0) {}

/* 192 bits of random data now available in
    NRF_CC_RNG->EHR_DATA[0] to NRF_CC_RNG->EHR_DATA[5] */

6.1.12.5.5 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_RNG0x50841000HFSNSANoCRYPTOCELL RNG engine

Register overview

RegisterOffsetTZDescription
RNG_IMR0x100Interrupt mask register. Each bit of this register holds the mask of a single interrupt source.
RNG_ISR0x104Interrupt status register. Each bit of this register holds the interrupt status of a single interrupt source. If corresponding RNG_IMR bit is unmasked, an interrupt is generated.
RNG_ICR0x108Interrupt clear register. Writing a 1 bit into a field in this register will clear the corresponding bit in RNG_ISR.
TRNG_CONFIG0x10CTRNG ring oscillator length configuration
TRNG_VALID0x110This register indicates if TRNG entropy collection is valid.
EHR_DATA[n]0x114The entropy holding registers (EHR) hold 192-bits random data collected by the TRNG.The initial EHR_DATA[0] register holds the least significant bits [31:0] of the random data value.
NOISE_SOURCE0x12CThis register controls the ring oscillator circuit used as a noise source.
SAMPLE_CNT0x130Sample count defining the number of CPU clock cycles between two consecutive noise source samples.
AUTOCORR_STATISTIC0x134Statistics counter for autocorrelation test activations. Statistics collection is stopped if one of the counters reach its limit of all ones.
TRNG_DEBUG0x138Debug register for the TRNG. This register is used to bypass TRNG tests in hardware.
RNG_SW_RESET0x140Reset the RNG engine.
RNG_BUSY0x1B8Status register for RNG engine activity.
TRNG_RESET0x1BCReset the TRNG, including internal counter of collected bits and registers EHR_DATA and TRNG_VALID.
RNG_HW_FLAGS0x1C0Hardware configuration of RNG engine. Reset value holds the supported features.
RNG_CLK0x1C4Control clock for the RNG engine.
RNG_DMA0x1C8Writing to this register enables the RNG DMA engine.
RNG_DMA_ROSC_LEN0x1CCThis register defines which ring oscillator length configuration should be used when using the RNG DMA engine.
RNG_DMA_SRAM_ADDR0x1D0This register defines the start address in TRNG SRAM for the TRNG data to be collected by the RNG DMA engine.
RNG_DMA_SAMPLES_NUM0x1D4This register defines the number of 192-bits samples that the RNG DMA engine collects per run.
RNG_WATCHDOG_VAL0x1D8This register defines the maximum number of CPU clock cycles per TRNG collection of 192-bits samples. If the number of cycles for a collection exceeds this threshold the WATCHDOG interrupt is triggered.
RNG_DMA_BUSY0x1DCStatus register for RNG DMA engine activity.

6.1.12.5.5.1 RNG_IMR

Address offset: 0x100

Interrupt mask register. Each bit of this register holds the mask of a single interrupt source.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000003F000000000000000000000000000111111
IDR/WFieldValue IDValue
ARWEHR_VALID_MASK
IRQEnable0
IRQDisable1
BRWAUTOCORR_ERR_MASK
IRQEnable0
IRQDisable1Mask autocorrelation interrupt i.e. no interrupt is generated
CRWCRNGT_ERR_MASK
IRQEnable0
IRQDisable1Mask the CRNGT error interrupt i.e. no interrupt is generated
DRWVNC_ERR_MASK
IDFEDCBA
Reset 0x0000003F000000000000000000000000000111111
IDR/WFieldValue IDValue
IRQEnable0
IRQDisable1
ERWWATCHDOG_MASK
IRQEnable0
IRQDisable1
FRWDMA_DONE_MASK
IRQEnable0
IRQDisable1

6.1.12.5.5.2 RNG_ISR

Address offset: 0x104

Interrupt status register. Each bit of this register holds the interrupt status of a single interrupt source. If corresponding RNG_IMR bit is unmasked, an interrupt is generated.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
AREHR_VALID_INT192-bits have been collected and are ready to be read.
BRAUTOCORR_ERR_INTAutocorrelation error. Failure occurs when autocorrelation test has failed four times in a row. Once set, the TRNG ceases to function until next reset.
CRCRNGT_ERR_INTContinuous random number generator test error. Failure occurs when two consecutive blocks of 16 collected bits are equal.
DRVNC_ERR_INTvon Neumann corrector error. Failure occurs if 32 consecutive collected bits are identical, ZERO, or ONE.
ERWATCHDOG_INTMaximum number of CPU clock cycles per sample have been exceeded. See RNG_WATCHDOG_VAL for more information.
FRDMA_DONE_INTRNG DMA to SRAM is completed.

6.1.12.5.5.3 RNG_ICR

Address offset: 0x108

Interrupt clear register. Writing a 1 bit into a field in this register will clear the corresponding bit in RNG_ISR.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWEHR_VALID_CLEAR
BWAUTOCORR_ERR_CLEAR
CWCRNGT_ERR_CLEAR
DWVNC_ERR_CLEAR
EWWATCHDOG_CLEAR
FWDMA_DONE_CLEAR

6.1.12.5.5.4 TRNG_CONFIG

Address offset: 0x10C

TRNG ring oscillator length configuration

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
-ARWROSC_LEN
ROSC10
ROSC21
ROSC32
ROSC43

6.1.12.5.5.5 TRNG_VALID

Address offset: 0x110

This register indicates if TRNG entropy collection is valid.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AREHR_DATA
NotValid0
Valid1

6.1.12.5.5.6 EHR_DATA[n] (n=0..5)

Address offset: 0x114 + (n × 0x4)

The entropy holding registers (EHR) hold 192-bits random data collected by the TRNG.

The initial EHR_DATA[0] register holds the least significant bits [31:0] of the random data value.

These registers are readable if register TRNG_VALID on page 127 is . Reading register EHR_DATA[5] will clear the content, reset TRNG_VALID, and start a new 192 bits collection period.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARVALUE

6.1.12.5.5.7 NOISE_SOURCE

Address offset: 0x12C

This register controls the ring oscillator circuit used as a noise source.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLEEnable or disable the noise source.
Disabled0Noise source is disabled
Enabled1Noise source is enabled

6.1.12.5.5.8 SAMPLE_CNT

Address offset: 0x130

Sample count defining the number of CPU clock cycles between two consecutive noise source samples. After selecting the desired ring oscillator length configuration in TRNG_CONFIG on page 127 this register must be set to the corresponding value from FICR.TRNG90B.ROSC1-4.

6.1.12.5.5.9 AUTOCORR_STATISTIC

Address offset: 0x134

Statistics counter for autocorrelation test activations. Statistics collection is stopped if one of the counters reach its limit of all ones.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWAUTOCORR_TRYSCount each time an autocorrelation test starts. Any write to the field resets the counter.
BRWAUTOCORR_FAILSCount each time an autocorrelation test fails. Any write to the field resets the counter.

6.1.12.5.5.10 TRNG_DEBUG

Address offset: 0x138

Debug register for the TRNG. This register is used to bypass TRNG tests in hardware.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWVNC_BYPASS
Disabled0
Enabled1
BRWCRNGT_BYPASS
Disabled0
Enabled1
CRWAUTOCORR_BYPASS
Disabled0
Enabled1

6.1.12.5.5.11 RNG_SW_RESET

Address offset: 0x140

Reset the RNG engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWRESETWriting any value to this address resets the RNG engine. The reset takes 4 CPU clock cycles to complete.
Reset RNG engine.

6.1.12.5.5.12 RNG_BUSY

Address offset: 0x1B8

Status register for RNG engine activity.

Bit number313029282726252423222120191817161514131211109876543210
IDB
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RSTATUSRNG engine status.
Idle0RNG engine is idle
Busy1RNG engine is busy
BRTRNG_STATUSTRNG status.
Idle0TRNG is idle
Busy1TRNG is busy

6.1.12.5.5.13 TRNG_RESET

Address offset: 0x1BC

Reset the TRNG, including internal counter of collected bits and registers EHR_DATA and TRNG_VALID.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWRESET
Enable1

6.1.12.5.5.14 RNG_HW_FLAGS

Address offset: 0x1C0

Hardware configuration of RNG engine. Reset value holds the supported features.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000F0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
AREHR_WIDTHData width supported by the entropy collector
128Bits0128 bits EHR width
192Bits1192 bits EHR width
BRCRNGT_EXISTSIf this flag is set, the engine include support for continuous random number generator test.
CRAUTOCORR_EXISTSIf this flag is set, the engine include support for autocorrelation test.
DRBYPASS_EXISTSIf this flag is set, the engine include support for bypassing TRNG tests.
ERPRNG_EXISTSIf this flag is set, the engine include a pseudo-random number generator.
FRKAT_EXISTSIf this flag is set, the engine include support for known answer tests.
GRRESEEDING_EXISTSIf this flag is set, the engine include support for automatic reseeding.
HRRNG_USE_5_SBOXES
Disable020 SBOX AES
Enable15 SBOX AES

6.1.12.5.5.15 RNG_CLK

Address offset: 0x1C4

Control clock for the RNG engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWENABLEEnables clock for the RNG engine.
Disable0Disable clock for RNG engine.
Enable1Enable clock for RNG engine.

6.1.12.5.5.16 RNG_DMA

Address offset: 0x1C8

Writing to this register enables the RNG DMA engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLE
Disable0Disable RNG DMA engine
Enable1Enable RNG DMA engine

This value is cleared when the RNG DMA engine completes its operation.

6.1.12.5.5.17 RNG_DMA_ROSC_LEN

Address offset: 0x1CC

This register defines which ring oscillator length configuration should be used when using the RNG DMA engine.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWROSC1Use shortest ROSC1 ring oscillator configuration.
Disable0Disable ROSC1
Enable1Enable ROSC1
BRWROSC2Use ROSC2 ring oscillator configuration.
Disable0Disable ROSC2
Enable1Enable ROSC2
CRWROSC3Use ROSC3 ring oscillator configuration.
Disable0Disable ROSC3
Enable1Enable ROSC3
DRWROSC4Use longest ROSC4 ring oscillator configuration.
Disable0Disable ROSC4
Enable1Enable ROSC4

6.1.12.5.5.18 RNG_DMA_SRAM_ADDR

Address offset: 0x1D0

This register defines the start address in TRNG SRAM for the TRNG data to be collected by the RNG DMA engine.

6.1.12.5.5.19 RNG_DMA_SAMPLES_NUM

Address offset: 0x1D4

This register defines the number of 192-bits samples that the RNG DMA engine collects per run.

6.1.12.5.5.20 RNG_WATCHDOG_VAL

Address offset: 0x1D8

This register defines the maximum number of CPU clock cycles per TRNG collection of 192-bits samples. If the number of cycles for a collection exceeds this threshold the WATCHDOG interrupt is triggered.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRNG_WATCHDOG_VAL

6.1.12.5.5.21 RNG_DMA_BUSY

Address offset: 0x1DC

Status register for RNG DMA engine activity.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCCBBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSTATUS
Idle0
Busy1
BRROSC_LEN
ROSC10
ROSC21
ROSC32
ROSC43
CRNUM_OF_SAMPLES

6.1.13 Host integration

This chapter describes host registers used to control CRYPTOCELL behavior.

6.1.13.1 AHB interface

The AHB interface controls CRYPTOCELL bus master behavior.

6.1.13.1.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_AHB0x50841000HFSNSANoCRYPTOCELL AHB interface

Register overview

RegisterOffsetTZDescription
AHBM_SINGLE0xB00This register forces the AHB transactions from CRYPTOCELL master to be always singles.
AHBM_HPROT0xB04This register holds the AHB HPROT value
AHBM_HMASTLOCK0xB08This register holds AHB HMASTLOCK value
AHBM_HNONSEC0xB0CThis register holds AHB HNONSEC value

6.1.13.1.1.1 AHBM_SINGLES

Address offset: 0xB00

This register forces the AHB transactions from CRYPTOCELL master to be always singles.

6.1.13.1.1.2 AHBM_HPROT

Address offset: 0xB04

This register holds the AHB HPROT value

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWAHB_HPROT

6.1.13.1.1.3 AHBM_HMASTLOCK

Address offset: 0xB08

This register holds AHB HMASTLOCK value

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWAHB_HMASTLOCKThe AHB HMASTLOCK value.

6.1.13.1.1.4 AHBM_HNONSEC

Address offset: 0xB0C

This register holds AHB HNONSEC value

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWAHB_WRITE_HNONSEC
BRWAHB_READ_HNONSEC

6.1.13.2 CTL interface

The CTL interface controls the cryptographic flow and provide busy status for individual components in the CRYPTOCELL subsystem.

6.1.13.2.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_CTL0x50841000HFSNSANoCRYPTOCELL CTL interface

Register overview

RegisterOffsetTZDescription
CRYPTO_CTL0x900Defines the cryptographic flow.
CRYPTO_BUSY0x910Status register for cryptographic cores engine activity.
HASH_BUSY0x91CStatus register for HASH engine activity.
CONTEXT_ID0x930A general-purpose read/write register.

6.1.13.2.1.1 CRYPTO_CTL

Address offset: 0x900

Defines the cryptographic flow.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWMODE
Bypass0
AESActive1
AESToHashActive2
AESAndHashActive3
HashActive7
AESMACAndBypassActive
AESToHashAndDOUTActive
ChaChaActive16

6.1.13.2.1.2 CRYPTO_BUSY

Address offset: 0x910

Status register for cryptographic cores engine activity.

This register will be asserted whenever register AES_BUSY on page 94 or register HASH_BUSY on page 135 is asserted or when register DIN_FIFO_EMPTY on page 139 indicate that the DIN FIFO is not empty.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSTATUS
Idle0
Busy1

6.1.13.2.1.3 HASH_BUSY

Address offset: 0x91C

Status register for HASH engine activity.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSHash engine status.
Idle0HASH engine is idle
Busy1HASH engine is busy

6.1.13.2.1.4 CONTEXT_ID

Address offset: 0x930

A general-purpose read/write register.

6.1.13.3 DIN DMA engine

The Data IN (DIN) DMA engine transfers data into the CRYPTOCELL subsystem and its various cryptographic engines.

The DIN DMA engine provides a comprehensive interface for to facilitate the transfer of data from the CPU or memory to the cryptographic engines. It includes a variety of registers that control direct data buffering, DMA operations, and data flow management.

Maximum DMA transaction size is limited to $2 ^ { 1 6 } – 1$ bytes. If a DMA transaction is configured with a payload size above the maximum DMA transaction size limit, the DMA engine must be reset before being functional again using register DIN_SW_RESET on page 138.

The flow demonstrated in Cryptographic flow on page 92 shows how the DIN DMA engine is configured to provide data to the AES engine using registers SRC_MEM_ADDR on page 137 and

SRC_MEM_SIZE on page 137 to define the input source address and number of input bytes, respectively.

6.1.13.3.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_DIN0x50841000HFSNSANoCRYPTOCELL DIN DMA engine

Register overview

RegisterOffsetTZDescription
DIN_BUFFER0xC00Used by CPU to write data directly to the DIN buffer, which is then sent to the cryptographic engines for processing.
DIN_DMA_MEM_BUSY0xC20Status register for DIN DMA engine activity when accessing memory.
SRC_MEM_ADDR0xC28Data source address in memory.
SRC_MEM_SIZE0xC2CThe number of bytes to be read from memory. Writing to this register triggers the DMA operation.
SRC_SRAM_ADDR0xC30Data source address in RNG SRAM.
SRC_SRAM_SIZE0xC34The number of bytes to be read from RNG SRAM. Writing to this register triggers the DMA operation.
DIN_DMA_SRAM_BUSY0xC38Status register for DIN DMA engine activity when accessing RNG SRAM.
DIN_DMA_SRAM_ENDIANNESS0xC3CConfigure the endianness of DIN DMA transactions towards RNG SRAM.
DIN_SW_RESET0xC44Reset the DIN DMA engine.
DIN_CPU_DATA0xC48Specifies the number of bytes the CPU will write to the DIN_BUFFER, ensuring the cryptographic engine processes the correct amount of data.
DIN_WRITE_ALIGN0xC4CIndicates that the next CPU write to the DIN_BUFFER is the last in the sequence. This is needed only when the data size is NOT modulo 4 (e.g. HASH padding).
DIN_FIFO_EMPTY0xC50Register indicating if DIN FIFO is empty and if more data can be accepted.
DIN_FIFO_RESET0xC58Reset the DIN FIFO, effectively clearing the FIFO for new data.

6.1.13.3.1.1 DIN_BUFFER

Address offset: 0xC00

Used by CPU to write data directly to the DIN buffer, which is then sent to the cryptographic engines for processing.

The number of bytes to write is defined in DIN_CPU_DATA on page 138.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValue
AWDATA

6.1.13.3.1.2 DIN_DMA_MEM_BUSY

Address offset: 0xC20

Status register for DIN DMA engine activity when accessing memory.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSDIN memory DMA engine status.
Idle0DIN memory DMA engine is idle
Busy1DIN memory DMA engine is busy

6.1.13.3.1.3 SRC_MEM_ADDR

Address offset: 0xC28

Data source address in memory.

Bit number
ID
Reset 0x000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWADDRSource address in memory.

6.1.13.3.1.4 SRC_MEM_SIZE

Address offset: 0xC2C

The number of bytes to be read from memory. Writing to this register triggers the DMA operation.

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWSIZETotal number of bytes to read from memory.
BWFIRSTThis field is reserved
CWLASTThis field is reserved

6.1.13.3.1.5 SRC_SRAM_ADDR

Address offset: 0xC30

Data source address in RNG SRAM.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWADDR

6.1.13.3.1.6 SRC_SRAM_SIZE

Address offset: 0xC34

The number of bytes to be read from RNG SRAM. Writing to this register triggers the DMA operation.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValue
AWSIZE
Total number of bytes to read from RNG SRAM.

6.1.13.3.1.7 DIN_DMA_SRAM_BUSY

Address offset: 0xC38

Status register for DIN DMA engine activity when accessing RNG SRAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSDIN RNG SRAM DMA engine status.
Idle0DIN RNG SRAM DMA engine is idle
Busy1DIN RNG SRAM DMA engine is busy

6.1.13.3.1.8 DIN_DMA_SRAM_ENDIANNESS

Address offset: 0xC3C

Configure the endianness of DIN DMA transactions towards RNG SRAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENDIAN
LittleEndian0
BigEndian1

6.1.13.3.1.9 DIN_SW_RESET

Address offset: 0xC44

Reset the DIN DMA engine.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
AWRESETWriting any value to this address resets the DIN DMA engine. The reset takes 4 CPU clock cycles to complete.
Enable1Reset DIN DMA engine.

6.1.13.3.1.10 DIN_CPU_DATA

Address offset: 0xC48

Specifies the number of bytes the CPU will write to the DIN_BUFFER, ensuring the cryptographic engine processes the correct amount of data.

6.1.13.3.1.11 DIN_WRITE_ALIGN

Address offset: 0xC4C

Indicates that the next CPU write to the DIN_BUFFER is the last in the sequence. This is needed only when the data size is NOT modulo 4 (e.g. HASH padding).

6.1.13.3.1.12 DIN_FIFO_EMPTY

Address offset: 0xC50

Register indicating if DIN FIFO is empty and if more data can be accepted.

6.1.13.3.1.13 DIN_FIFO_RESET

Address offset: 0xC58

Reset the DIN FIFO, effectively clearing the FIFO for new data.

6.1.13.4 DOUT DMA engine

The Data OUT (DOUT) DMA engine transfers data from the CRYPTOCELL subsystem and its various cryptographic engines.

The DOUT DMA engine provides a comprehensive interface for to facilitate the transfer of data to the CPU or memory from the cryptographic engines. It includes a variety of registers that control direct data buffering, DMA operations, and data flow management.

Maximum DMA transaction size is limited to $2 ^ { 1 6 } – 1$ bytes. If a DMA transaction is configured with a payload size above the maximum DMA transaction size limit, the DMA engine must be reset before being functional again using register DOUT_SW_RESET on page 143.

The flow demonstrated in Cryptographic flow on page 92 shows how the DOUT DMA engine is configured to output data from the AES engine using registers DST_MEM_ADDR on page 141 and DST_MEM_SIZE on page 141 to define the output source address and number of output bytes, respectively.

6.1.13.4.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_DOUT0x50841000HFSNSANoCRYPTOCELL DOUT DMA engine

Register overview

RegisterOffsetTZDescription
DOUT_BUFFER0xC00Cryptographic results directly accessible by the CPU.
DOUT_DMA_MEM_BUSY0xD20Status register for DOUT DMA engine activity when accessing memory.
DST_MEM_ADDR0xD28Data destination address in memory.
DST_MEM_SIZE0xD2CThe number of bytes to be written to memory.
DST_SRAM_ADDR0xD30Data destination address in RNG SRAM.
DST_SRAM_SIZE0xD34The number of bytes to be written to RNG SRAM.
DOUT_DMA_SRAM_BUSY0xD38Status register for DOUT DMA engine activity when accessing RNG SRAM.
DOUT_DMA_SRAM_ENDIANNESS0xD3CConfigure the endianness of DOUT DMA transactions towards RNG SRAM.
DOUT_READ_ALIGN0xD44Indication that the next CPU read from the DOUT_BUFFER is the last in the sequence. This is needed only when the data size is NOT modulo 4 (e.g. HASH padding).
DOUT_FIFO_EMPTY0xD50Register indicating if DOUT FIFO is empty or if more data will come.
DOUT_SW_RESET0xD58Reset the DOUT DMA engine.

6.1.13.4.1.1 DOUT_BUFFER

Address offset: 0xC00

Cryptographic results directly accessible by the CPU.

6.1.13.4.1.2 DOUT_DMA_MEM_BUSY

Address offset: 0xD20

Status register for DOUT DMA engine activity when accessing memory.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSDOUT memory DMA engine status.
Idle0DOUT memory DMA engine is idle
Busy1DOUT memory DMA engine is busy

6.1.13.4.1.3 DST_MEM_ADDR

Address offset: 0xD28

Data destination address in memory.

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWADDRDestination address in memory.

6.1.13.4.1.4 DST_MEM_SIZE

Address offset: 0xD2C

The number of bytes to be written to memory.

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWSIZETotal number of bytes to write to memory.
BWFIRSTThis field is reserved
CWLASTThis field is reserved

6.1.13.4.1.5 DST_SRAM_ADDR

Address offset: 0xD30

Data destination address in RNG SRAM.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValue
ARWADDR
Destination address in RNG SRAM.

6.1.13.4.1.6 DST_SRAM_SIZE

Address offset: 0xD34

The number of bytes to be written to RNG SRAM.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValue
AWSIZE
Total number of bytes to write to RNG SRAM.

6.1.13.4.1.7 DOUT_DMA_SRAM_BUSY

Address offset: 0xD38

Status register for DOUT DMA engine activity when accessing RNG SRAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSDOUT RNG SRAM DMA engine status.
Idle0DOUT RNG SRAM DMA engine is idle
Busy1DOUT RNG SRAM DMA engine is busy

6.1.13.4.1.8 DOUT_DMA_SRAM_ENDIANNESS

Address offset: 0xD3C

Configure the endianness of DOUT DMA transactions towards RNG SRAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENDIAN
LittleEndian0
BigEndian1

6.1.13.4.1.9 DOUT_READ_ALIGN

Address offset: 0xD44

Indication that the next CPU read from the DOUT_BUFFER is the last in the sequence. This is needed only when the data size is NOT modulo 4 (e.g. HASH padding).

6.1.13.4.1.10 DOUT_FIFO_EMPTY

Address offset: 0xD50

Register indicating if DOUT FIFO is empty or if more data will come.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARSTATUSDOUT FIFO status
NotEmpty0DOUT FIFO is not empty, and more data will come
Empty1DOUT FIFO is empty

6.1.13.4.1.11 DOUT_SW_RESET

Address offset: 0xD58

Reset the DOUT DMA engine.

6.1.13.5 HOST register interface

The HOST_RGF interface contains registers for CRYPTOCELL interrupt handling, configuring CRYPTOCELL lifecycle state and CRYPTOCELL key management where different cryptographic key inputs can be connected to the AES engine.

Use of the CRYPTOCELL $\mathsf { K } _ { \mathsf { P R T L } }$ key or the device root key $K _ { \mathsf { D R } }$ is selected using this interface. Availability and configuration of these two key types are typically controlled from an immutable bootloader. Once CRYPTOCELL has been correctly configured it will be possible for an application to either use session keys directly or perform cryptographic operations with the device root key key $K _ { \mathsf { D R } }$ without having access to the key value.

6.1.13.5.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_HOST_RGF0x50841000HFSNSANoCRYPTOCELL HOST register interface

Register overview

RegisterOffsetTZDescription
IRR0xA00Interrupt request register. Each bit of this register holds the interrupt status of a single interrupt source. If corresponding IMR bit is unmasked, an interrupt is generated.
IMR0xA04Interrupt mask register. Each bit of this register holds the mask of a single interrupt source.
ICR0xA08Interrupt clear register. Writing a 1 bit into a field in this register will clear the corresponding bit in IRR.
ENDIANNES0xA0CThis register defines the endianness of the Host-accessible registers, and can only be written once.
HOST_SIGNATURE0xA24This register holds the CRYPTOCELL subsystem signature. See reset value.
HOST_BOOT0xA28Hardware configuration of the CRYPTOCELL subsystem. Reset value holds the supported features.
HOST_CRYPTOKEY_SEL0xA38AES hardware key select.
HOST_IOT_KPRTL_LOCK0xA4CThis write-once register is the K_PRTL lock register. When this register is set, K_PRTL cannot be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain.
HOST_IOT_KDR00xA50This register holds bits 31:0 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. Reading from this address returns the K_DR valid status indicating if K_DR is successfully retained.
HOST_IOT_KDR10xA54This register holds bits 63:32 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.
HOST_IOT_KDR20xA58This register holds bits 95:64 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.
HOST_IOT_KDR30xA5CThis register holds bits 127:96 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.
HOST_IOT_LCS0xA60Controls life-cycle state (LCS) for CRYPTOCELL subsystem

6.1.13.5.1.1 IRR

Address offset: 0xA00

Interrupt request register. Each bit of this register holds the interrupt status of a single interrupt source. If corresponding IMR bit is unmasked, an interrupt is generated.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000GFEDCBA
IDR/WFieldValue IDValueDescription
ARSRAM_TO_DIN_INTThe RNG SRAM to DIN DMA done interrupt status. This interrupt is asserted when all data was delivered from RNG SRAM to DIN buffer.
BRDOUT_TO_SRAM_INTThe DOUT to RNG SRAM DMA done interrupt status. This interrupt is asserted when all data was delivered from DOUT buffer to RNG SRAM.
CRMEM_TO_DIN_INTThe memory to DIN DMA done interrupt status. This interrupt is asserted when all data was delivered from memory to DIN buffer.
DRDOUT_TO_MEM_INT

6.1.13.5.1.2 IMR

Address offset: 0xA04

Interrupt mask register. Each bit of this register holds the mask of a single interrupt source.

Bit number313029282726252423222120191817161514131211109876543210
IDG
Reset 0x01FFFFFF00000001111111111111111111111111
IDR/WFieldValue IDValue
ARWSRAM_TO_DIN_MASK
IRQEnable0
IRQDisable1
IDG F E D C B A
Reset 0x01FFFFFF00000001111111111111111111111111
IDR/WFieldValue IDValue
BRWDOUT_TO_SRAM_MASK
IRQEnable0
IRQDisable1
CRWMEM_TO_DIN_MASK
IRQEnable0
IRQDisable1Mask DOUT to RNG SRAM DMA done interrupt i.e. no interrupt is generated
DRWDOUT_TO_MEM_MASK
IRQEnable0
IRQDisable1
ERWAHB_ERR_MASK
IRQEnable0
IRQDisable1
FRWPKA_MASK
IRQEnable0
IRQDisable1Mask PKA end of operation interrupt i.e. no interrupt is generated
GRWRNG_MASK
IRQEnable0
IRQDisable1

6.1.13.5.1.3 ICR

Address offset: 0xA08

Interrupt clear register. Writing a 1 bit into a field in this register will clear the corresponding bit in IRR.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDG F E D C B A
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
AWSRAM_TO_DIN_CLEARThe RNG SRAM to DIN DMA done interrupt clear.
BWDOUT_TO_SRAM_CLEARThe DOUT to RNG SRAM DMA done interrupt clear.
CWMEM_TO_DIN_CLEARThe memory to DIN DMA done interrupt clear.
DWDOUT_TO_MEM_CLEARThe DOUT to memory DMA done interrupt clear.
EWAHB_ERR_CLEARThe AHB error interrupt clear.
FWPKA_CLEARThe PKA end of operation interrupt clear.
GWRNG_CLEARThe RNG interrupt clear. Register RNG_ISR in the RNG engine must be cleared before this interrupt can be cleared.

6.1.13.5.1.4 ENDIANNESS

Address offset: 0xA0C

This register defines the endianness of the Host-accessible registers, and can only be written once.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDOUT_WR_BGDOUT write endianness.
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
LittleEndian0Configure DOUT write as little-endian
BigEndian1Configure DOUT write as big-endian
BRWDIN_RD_BGDIN read endianness.
LittleEndian0Configure DIN read as little-endian
BigEndian1Configure DIN read as big-endian
CRWDOUT_WR_WBGDOUT write word endianness.
LittleEndian0Configure DOUT write word as little-endian
BigEndian1Configure DOUT write word as big-endian
DRWDIN_RD_WBGDIN read word endianness.
LittleEndian0Configure DIN read word as little-endian
BigEndian1Configure DIN read word as big-endian

6.1.13.5.1.5 HOST_SIGNATURE

Address offset: 0xA24

This register holds the CRYPTOCELL subsystem signature. See reset value.

Bit number
ID
Reset 0x20E00000
IDR/WFieldValue IDValueDescription
ARVALUEFixed-value identification signature used by host driver to verify

Fixed-value identification signature used by host driver to verify CRYPTOCELL presence at this address.

6.1.13.5.1.6 HOST_BOOT

Address offset: 0xA28

Hardware configuration of the CRYPTOCELL subsystem. Reset value holds the supported features.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDb a Z Y X W V U T S R Q P O N M L K J I H G F F F E D C B A
Reset 0x4622982C0 1 0 0 0 1 1 0 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 1 1 0 0
IDR/WFieldValue IDValueDescription
ARPOWER_GATING_EXISTS_LOCALIf this flag is set, full power gating is implemented
BRLARGE_RKEK_LOCALIf this flag is set, large RKEK is supported
CRHASH_IN_FUSES_LOCALIf this flag is set, HASH in fuses is supported
DREXT_MEM_SECURED_LOCALIf this flag is set, external secure memory is supported
ERRKEK_ECC_EXISTS_LOCAL_NIf this flag is set, RKEK ECC is supported
FRSRAM_SIZE_LOCALSRAM size
GRDSCRPTR_EXISTS_LOCALIf this flag is set, Descriptors are supported
HRPAU_EXISTS_LOCALIf this flag is set, PAU is supported
IRRNG_EXISTS_LOCALIf this flag is set, the RNG engine is present
JRPKA_EXISTS_LOCALIf this flag is set, the PKA engine is present
KRRC4_EXISTS_LOCALIf this flag is set, the RC4 engine is present
LRSHA_512_PRSNT_LOCALIf this flag is set, the HASH engine supports SHA512
MRSHA_256_PRSNT_LOCALIf this flag is set, the HASH engine supports SHA256
NRMD5_PRSNT_LOCALIf this flag is set, the HASH engine supports MD5
ORHASH_EXISTS_LOCALIf this flag is set, the HASH engine is present
PRC2_EXISTS_LOCALIf this flag is set, the C2 engine is present
Bit number313029282726252423222120191817161514131211109876543210
IDbaZYXWVUTSRQPONMLKJIHGFFFEDCBA
Reset 0x4622982C01000110001000101001100000101100
IDR/WFieldValue IDValueDescription
QRDES_EXISTS_LOCALIf this flag is set, the DES engine is present
RRAES_XCBC_MAC_EXISTS_LOCALIf this flag is set, AES XCBC-MAC mode is supported
SRAES_CMAC_EXISTS_LOCALIf this flag is set, AES CMAC mode is supported
TRAES_CCM_EXISTS_LOCALIf this flag is set, AES CCM mode is supported
URAES_XEX_HW_T_CALC_LOCALIf this flag is set, AES XEX mode T-value calculation in HW is supported
VRAES_XEX_EXISTS_LOCALIf this flag is set, AES XEX mode is supported
WRCTR_EXISTS_LOCALIf this flag is set, AES CTR mode is supported
XRAES_DIN_BYTE_RESOLUTION_LOCALIf this flag is set, the AES engine data input support byte size resolution
YRTUNNELING_ENB_LOCALIf this flag is set, the AES engine supports tunneling operations
ZRSUPPORT_256_192_KEY_LOCALIf this flag is set, the AES engine supports 192/256 bits key sizes
aRONLY_ENCRYPT_LOCALIf this flag is set, the AES engine only support encryption
bRAES_EXISTS_LOCALIf this flag is set, the AES engine is present

6.1.13.5.1.7 HOST_CRYPTOKEY_SEL

Address offset: 0xA38

AES hardware key select.

If the HOST_IOT_KPRTL_LOCK register is set, and the HOST_CRYPTOKEY_SEL register set to 1, then the HW key that is connected to the AES engine is zero

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWHOST_CRYPTOKEY_SEL
K_DR0
K_PRTL1
Session2

6.1.13.5.1.8 HOST_IOT_KPRTL_LOCK

Address offset: 0xA4C

This write-once register is the K_PRTL lock register. When this register is set, K_PRTL cannot be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARW1HOST_IOT_KPRTL_LOCK
Disabled0
Enabled1

6.1.13.5.1.9 HOST_IOT_KDR0

Address offset: 0xA50

This register holds bits 31:0 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. Reading from this address returns the K_DR valid status indicating if K_DR is successfully retained.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARW1HOST_IOT_KDR0

6.1.13.5.1.10 HOST_IOT_KDR1

Address offset: 0xA54

This register holds bits 63:32 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AW1HOST_IOT_KDR1

6.1.13.5.1.11 HOST_IOT_KDR2

Address offset: 0xA58

This register holds bits 95:64 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AW1HOST_IOT_KDR2

6.1.13.5.1.12 HOST_IOT_KDR3

Address offset: 0xA5C

This register holds bits 127:96 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AW1HOST_IOT_KDR3

6.1.13.5.1.13 HOST_IOT_LCS

Address offset: 0xA60

Controls life-cycle state (LCS) for CRYPTOCELL subsystem

Bit number313029282726252423222120191817161514131211109876543210
IDBAAA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValue
ARW1LCS
DebugEnable0
Secure2
BRLCS_IS_VALID
Invalid0
Valid1

6.1.13.6 RNG SRAM interface

The RNG_SRAM interface enable reading and writing data to RNG SRAM.

6.1.13.6.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_RNG_SRAM0x50841000HFSNSANoCRYPTOCELL RNG SRAM interface

Register overview

RegisterOffsetTZDescription
SRAM_DATA0xF00Read/Write data from RNG SRAM
SRAM_ADDR0xF04First address given to RNG SRAM DMA for read/write transactions from/to RNG SRAM.
SRAM_DATA_READY0xF08RNG SRAM DMA engine is ready to read/write from/to RNG SRAM.

6.1.13.6.1.1 SRAM_DATA

Address offset: 0xF00

Read/Write data from RNG SRAM

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSRAM_DATA

32 bits DMA read/write from/to RNG SRAM. A 'read' or 'write' operation to this register will trigger the DMA address to be automatically incremented

6.1.13.6.1.2 SRAM_ADDR

Address offset: 0xF04

First address given to RNG SRAM DMA for read/write transactions from/to RNG SRAM.

6.1.13.6.1.3 SRAM_DATA_READY

Address offset: 0xF08

RNG SRAM DMA engine is ready to read/write from/to RNG SRAM.

6.1.13.7 MISC interface

The MISC interface controls clocks for the individual engines within the CRYPTOCELL subsystem. Each cryptographic engine has an individual register for performing clock gating. Engine clock status is displayed in register CLK_STATUS on page 151.

Note: Clock control for the RNG engine on page 121 is handled by register RNG_CLK on page 130 and not through the MISC interface.

6.1.13.7.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CC_MISC0x50841000HFSNSANoCRYPTOCELL MISC interface

Register overview

RegisterOffsetTZDescription
AES_CLK0x810Clock control for the AES engine.
HASH_CLK0x818Clock control for the HASH engine.
PKA_CLK0x81CClock control for the PKA engine.
DMA_CLK0x820Clock control for the DMA engines.
CLK_STATUS0x824CRYPTOCELL clocks status register.
CHACHA_CLK0x858Clock control for the CHACHA engine.

6.1.13.7.1.1 AES_CLK

Address offset: 0x810

Clock control for the AES engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWENABLEEnables clock for the AES engine.
Disable0Disable clock for the AES engine.
Enable1Enable clock for the AES engine.

6.1.13.7.1.2 HASH_CLK

Address offset: 0x818

Clock control for the HASH engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWENABLE
Disable0
Enable1

6.1.13.7.1.3 PKA_CLK

Address offset: 0x81C

Clock control for the PKA engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWENABLE
Disable0
Enable1

6.1.13.7.1.4 DMA_CLK

Address offset: 0x820

Clock control for the DMA engines.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWENABLE
Disable0
Enable1

6.1.13.7.1.5 CLK_STATUS

Address offset: 0x824

CRYPTOCELL clocks status register.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000010000000000000000000000000100000000
IDR/WFieldValue IDValue
ARAES_CLK
Disabled0
Enabled1
BRHASH_CLK
Disabled0
Enabled1Clock for AES engine is disabled
CRPKA_CLK
Disabled0
Enabled1
DRCHACHA_CLK
Disabled0
Enabled1
ERDMA_CLK
Disabled0
Enabled1Clocks for DMA engines are enabled

6.1.13.7.1.6 CHACHA_CLK

Address offset: 0x858

Clock control for the CHACHA engine.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWENABLE
Disable0
Enable1

6.2 DPPI - Distributed programmable peripheral interconnect

The distributed programmable peripheral interconnect (DPPI) enables peripherals to interact autonomously with each other by using tasks and events, without any intervention from the CPU. DPPI allows precise synchronization between peripherals when real-time application constraints exist and eliminates the need for CPU involvement to implement behavior which can be predefined using the DPPI.

Note: For more information on tasks, events, publish/subscribe, interrupts, and other concepts, see Peripheral interface on page 15.

The DPPI has the following features:

• Peripheral tasks can subscribe to channels

• Peripheral events can be published on channels

• Publish/subscribe pattern enabling multiple connection options that include the following:

• One-to-one

• One-to-many

• Many-to-one

• Many-to-many

The DPPI consists of several PPIBus modules, which are connected to a fixed number of DPPI channels and a DPPI configuration (DPPIC).


Figure 19: DPPI overview

6.2.1 Subscribing to and publishing on channels

The PPIBus can route peripheral events onto the channels (publishing), or route events from the channels into peripheral tasks (subscribing).

All peripherals include the following:

• One subscribe register per task

• One publish register per event

Publish and subscribe registers use a channel index field to determine the channel to which the event is published or tasks subscribed. In addition, there is an enable bit for the subscribe and publish registers that needs to be enabled before the subscription or publishing takes effect.

Writing non-existing channel index (CHIDX) numbers into a peripheral's publish or subscribe registers will yield unexpected results.

One event can trigger multiple tasks by subscribing different tasks to the same channel. Similarly, one task can be triggered by multiple events by publishing different events to the same channel. For advanced use cases, multiple events and multiple tasks can connect to the same channel forming a many-to-many connection. If multiple events are published on the same channel at the same time, the events are merged and only one event is routed through the DPPI.

How peripheral events are routed onto different channels based on publish registers is illustrated in the following figure.


Figure 20: DPPI events flow
The following figure illustrates how peripheral tasks are triggered from different channels based on subscribe registers.


Figure 21: DPPI tasks flow

6.2.2 DPPI configuration (DPPIC)

Enabling and disabling of channels globally is handled through the DPPI configuration (DPPIC). Connection (connect/disconnect) between a channel and a peripheral is handled locally by the PPIBus.

There are two ways of enabling and disabling global channels using the DPPI configuration:

• Enable or disable channels individually using registers CHEN, CHENSET, and CHENCLR.

• Enable or disable channels in channel groups using the groups' tasks ENABLE and DISABLE. It needs to be defined which channels belong to which channel groups before these tasks are triggered.

Note: ENABLE tasks are prioritized over DISABLE tasks. When a channel belongs to two or more groups, for example group m and n, and the tasks CHG[m].EN and CHG[n].DIS occur simultaneously (m and n can be equal or different), the CHG[m].EN task on that channel is prioritized.

The DPPI configuration tasks (for example CHG[0].EN) can be triggered through DPPI like any other task, which means they can be linked to a DPPI channel through the subscribe registers.

In order to write to CHG[x], the corresponding CHG[x].EN and CHG[x].DIS subscribe registers must be disabled. Writes to CHG[x] are ignored if any of the two subscribe registers are enabled.

6.2.3 Connection examples

DPPI offers several connection options. Examples are given for how to create one-to-one and many-tomany connections.

One-to-one connection

This example shows how to create a one-to-one connection between TIMER compare register and SAADC start task.

The channel configuration is set up first. TIMER0 will publish its COMPARE0 event on channel 0, and SAADC will subscribe its START task to events on the same channel. After that, the channel is enabled through the DPPIC.

NRF_TIMER0->PUBLISH_COMPARE0 = (DPPI_PUB_CHIDX_Ch0) |
(DPPI_PUB_EN_Msk);
NRF_SAADC->SUBSCRIBE_START = (DPPI_SUB_CHIDX_Ch0) |
(DPPI_SUB_EN_Msk);
NRF_DPPIC->CHENSET = (DPPI_CHENSET_CH0_Set << DPPI_CHENSET_CH0_Pos);

Many-to-many connection

The example shows how to create a many-to-many connection, showcasing the DPPIC's channel group functionality.

A channel group that includes only channel 0 is set up first. Then the GPIOTE and TIMER0 configure their IN0 and COMPARE0 events respectively to be published on channel 0, while the SAADC configures its START task to subscribe to events on channel 0. Through DPPIC, the CHG0 DISABLE task is configured to subscribe to events on channel 0. After an event is received on channel 0 it will be disabled. Finally, channel 0 is enabled using the DPPIC task to enable a channel group.

NRF_DPPIC->CHG[0] = (DPPI_CHG_CH0_Included << PPI_CHG_CH0_Pos);
NRF_GPIOTE->PUBLISH_INO    = (DPPI_PUB_CHIDX_Ch0) |
    (DPPI_PUB_EN_Msk);
NRF_TIMER0->PUBLISH_COMPARE0    = (DPPI_PUB_CHIDX_Ch0) |
    (DPPI_PUB_EN_Msk);
NRF_SAADC->SUBSCRIBE_START    = (DPPI_SUB_CHIDX_Ch0) |
    (DPPI_SUB_EN_Msk);
NRF_DPPIC->SUBSCRIBE_CHG[0].DIS    = (DPPI_SUB_CHIDX_Ch0) |
    (DPPI_SUB_EN_Msk);
NRF_DPPIC->TASK_CHG[0].EN = 1;

6.2.4 Special considerations for a system implementing TrustZone for Cortex-M processors

DPPI is implemented with split security, meaning it handles both secure and non-secure accesses. In a system implementing the TrustZone for Cortex-M technology, DPPI channels can be defined as secure or non-secure using the SPU.

A peripheral configured as non-secure will only be able to subscribe to or publish on non-secure DPPI channels. A peripheral configured as secure will be able to access all DPPI channels. DPPI handles both secure and non-secure accesses, but behaves differently depending on the access type:

• A non-secure peripheral access can only configure and control the DPPI channels defined as non-secure in the SPU.DPPI.PERM[] register(s)

• A secure peripheral access can control all the DPPI channels, independently of the SPU.DPPI.PERM[] register(s)

A group of channels can be created, making it possible to simultaneously enable or disable all channels within the group. The security attribute of a group of channels (secure or non-secure) is defined as follows:

• If all channels (enabled or not) within a group are non-secure, then the group is considered non-secure

• If at least one of the channels (enabled or not) within the group is secure, then the group is considered secure

A non-secure access to a DPPI register, or a bit field, controlling a channel marked as secure in SPU.DPPI[].PERM register(s) will be ignored. Write accesses will have no effect, and read accesses will always return a zero value.

No exceptions are triggered when non-secure accesses target a register or a bit field controlling a secure channel. For example, if the bit i is set in the SPU.DPPI[0].PERM register (declaring DPPI channel i as secure), then:

• Non-secure write accesses to registers CHEN, CHENSET, and CHENCLR cannot write bit i of these registers

• Non-secure write accesses to TASK_CHG[j].EN and TASK_CHG[j].DIS registers are ignored if the channel group j contains at least one channel defined as secure (it can be the channel i itself or any channel declared as secure)

• Non-secure read accesses to registers CHEN, CHENSET, and CHENCLR always read 0 for the bit at position i

For the channel configuration registers (CHG[]), access from non-secure code is only possible if the included channels are all non-secure, whether the channels are enabled or not. If a CHG[g] register included one or more secure channel(s), then the group g is considered as secure, and only secure transfers can read to or write from CHG[g]. A non-secure write access is ignored, and a non-secure read access returns 0.

The DPPI can subscribe to secure and non-secure channels through the SUBSCRIBE_CHG[] registers, in order to trigger the task for enabling or disabling groups of channels. An event from a secure channel wil be ignored if the group subscribing to this channel is non-secure. A secure group can subscribe to a nonsecure channel or a secure channel.

6.2.5 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
DPPIC : S0x50017000HFNSNAYesDPPI configuration
DPPIC : NS0x40017000

Register overview

RegisterOffsetTZDescription
TASKS_CHG[n].EN0x000Enable channel group n
TASKS_CHG[n].DIS0x004Disable channel group n
SUBSCRIBE_CHG[n].EN0x080Subscribe configuration for task CHG[n].EN
SUBSCRIBE_CHG[n].DIS0x084Subscribe configuration for task CHG[n].DIS
CHEN0x500Channel enable register
ChENSET0x504Channel enable set register
CHENCLR0x508Channel enable clear register
CHG[n]0x800Channel group n
Note: Writes to this register are ignored if either SUBSCRIBE_CHG[n].EN or SUBSCRIBE_CHG[n].DIS is enabled

6.2.5.1 TASKS_CHG[n] (n=0..5)

Channel group tasks

6.2.5.1.1 TASKS_CHG[n].EN (n=0..5)

Address offset: 0x000 + (n × 0x8)

Enable channel group n

6.2.5.1.2 TASKS_CHG[n].DIS (n=0..5)

Address offset: 0x004 + (n × 0x8)

Disable channel group n

6.2.5.2 SUBSCRIBE_CHG[n] (n=0..5)

Subscribe configuration for tasks

6.2.5.2.1 SUBSCRIBE_CHG[n].EN (n=0..5)

Address offset: 0x080 + (n × 0x8)

Subscribe configuration for task CHG[n].EN

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.2.5.2.2 SUBSCRIBE_CHG[n].DIS (n=0..5)

Address offset: 0x084 + (n × 0x8)

Subscribe configuration for task CHG[n].DIS

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task CHG[n].DIS will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.2.5.3 CHEN

Address offset: 0x500

Channel enable register

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWCH[i] (i=0..15)Enable or disable channel i
Disabled0Disable channel
Enabled1Enable channel

6.2.5.4 CHENSET

Address offset: 0x504

Channel enable set register

Note: Read: Reads value of CHi field in CHEN register

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWCH[i] (i=0..15)Channel i enable set register. Writing 0 has no effect.
W1S
Disabled0Read: Channel disabled
Enabled1Read: Channel enabled
Set1Write: Enable channel

6.2.5.5 CHENCLR

Address offset: 0x508

Channel enable clear register

Note: Read: Reads value of CHi field in CHEN register

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWCH[i] (i=0..15)Channel i enable clear register. Writing 0 has no effect.
W1C
Disabled0Read: Channel disabled
Enabled1Read: Channel enabled
Clear1Write: Disable channel

6.2.5.6 CHG[n] (n=0..5)

Address offset: 0x800 + (n × 0x4)

Channel group n

Note: Writes to this register are ignored if either SUBSCRIBE_CHG[n].EN or SUBSCRIBE_CHG[n].DIS is enabled

6.3 EGU — Event generator unit

Event generator unit (EGU) provides support for interlayer signaling. This means providing support for atomic triggering of both CPU execution and hardware tasks, from both firmware (by CPU) and hardware (by PPI). This feature can, for instance, be used for triggering CPU execution at a lower priority execution from a higher priority execution, or to handle a peripheral's interrupt service routine (ISR) execution at a lower priority for some of its events. However, triggering any priority from any priority is possible.

Listed here are the main EGU features:

• Software-enabled interrupt triggering

• Separate interrupt vectors for every EGU instance

• Up to 16 separate event flags per interrupt for multiplexing

Each instance of EGU implements a set of tasks which can individually be triggered to generate the corresponding event, for example, the corresponding event for TASKS_TRIGGER[n] is EVENTS_TRIGGERED[n]. See Instances on page 161 for a list of EGU instances.

6.3.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
EGU0 : S0x5001B000USNSNANoEvent generator unit 0
EGU0 : NS0x4001B000
EGU1 : S0x5001C000USNSNANoEvent generator unit 1
EGU1 : NS0x4001C000
EGU2 : S0x5001D000USNSNANoEvent generator unit 2
EGU2 : NS0x4001D000
EGU3 : S0x5001E000USNSNANoEvent generator unit 3
EGU3 : NS0x4001E000
EGU4 : S0x5001F000USNSNANoEvent generator unit 4
EGU4 : NS0x4001F000
EGU5 : S0x50020000USNSNANoEvent generator unit 5
EGU5 : NS0x40020000

Register overview

RegisterOffsetTZDescription
TASKS_TRIGGER[n]0x000Trigger n for triggering the corresponding TRIGGERED[n] event
SUBSCRIBE_TRIGGER[n]0x080Subscribe configuration for task TRIGGER[n]
EVENTS_TRIGGERED[n]0x100Event number n generated by triggering the corresponding TRIGGER[n] task
PUBLISH_TRIGGERED[n]0x180Publish configuration for event TRIGGERED[n]
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt

6.3.1.1 TASKS_TRIGGER[n] (n=0..15)

Address offset: 0x000 + (n × 0x4)

Trigger n for triggering the corresponding TRIGGERED[n] event

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_TRIGGER
Trigger1

6.3.1.2 SUBSCRIBE_TRIGGER[n] (n=0..15)

Address offset: 0x080 + (n × 0x4)

Subscribe configuration for task TRIGGER[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.3.1.3 EVENTS_TRIGGERED[n] (n=0..15)

Address offset: 0x100 + (n × 0x4)

Event number n generated by triggering the corresponding TRIGGER[n] task

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TRIGGERED
NotGenerated0
Generated1

6.3.1.4 PUBLISH_TRIGGERED[n] (n=0..15)

Address offset: 0x180 + (n × 0x4)

Publish configuration for event TRIGGERED[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.3.1.5 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWTRIGGERED[i] (i=0..15)Enable or disable interrupt for event TRIGGERED[i]
DisabledDisable
EnabledEnable

6.3.1.6 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWTRIGGERED[i] (i=0..15)
Set1
Disabled0
Enabled1

6.3.1.7 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-PRWTRIGGERED[i] (i=0..15)
Read: Disabled
Read: Enabled

6.3.2 Electrical specification

6.3.2.1 EGU Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
$t_{EGU,EVT}$ Latency between setting an EGU event flag and the system setting an interrupt1cycles

6.4 GPIO — General purpose input/output

The general purpose input/output pins (GPIOs) are grouped as one or more ports with each port having up to 32 GPIOs.

The number of ports and GPIOs per port may vary with product variant and package. Refer to Registers on page 168 and Pin assignments on page 516 for more information about the number of GPIOs that are supported.

GPIO has the following user-configurable features:

• Up to 32 GPIO pins per GPIO port

• Configurable output drive strength

• Internal pull-up and pull-down resistors

• Wake-up from high or low level triggers on all pins

• Trigger interrupt on state changes on any pin

• All pins can be used by the PPI task/event system

• One or more GPIO outputs can be controlled through PPI and GPIOTE channels

• All pins can be individually mapped to interface blocks for layout flexibility

• GPIO state changes captured on SENSE signal can be stored by LATCH register

• Support for secure and non-secure attributes for pins in conjunction with the system protection unit (SPU — System protection unit on page 323)

GPIO port and the GPIO pin details on page 164 illustrates the GPIO port containing 32 individual pins, where PIN0 is illustrated in more detail as a reference. All signals on the left side in the illustration are used by other peripherals in the system and therefore not directly available to the CPU.


Figure 22: GPIO port and the GPIO pin details

6.4.1 Pin configuration

The GPIO port peripheral implements up to 32 pins, PIN0 through PIN31. Each of these pins can be individually configured in the PIN_CNF[n] registers (n=0..31).

The following parameters can be configured through these registers:

• Direction

• Drive strength

• Enabling of pull-up and pull-down resistors

• Pin sensing

• Input buffer disconnect

• Analog input (for selected pins)

Note: All write-capable registers are retained registers, see POWER — Power control on page 68 for more information.

The input buffer of a GPIO pin can be disconnected from the pin to enable power savings when the pin is not used as an input, see GPIO port and the GPIO pin details on page 164. Inputs must be connected to get a valid input value in the IN register, and for the sense mechanism to get access to the pin.

Other peripherals in the system can connect to GPIO pins and override their output value and configuration, or read their analog or digital input value. See GPIO port and the GPIO pin details on page 164.

Selected pins also support analog input signals, see ANAIN in GPIO port and the GPIO pin details on page 164. The assignment of the analog pins can be found in Pin assignments on page 516.

The following delays should be taken into considerations:

• There is a delay of 2 CPU clock cycles from the GPIO pad to the IN register.

• The GPIO pad must be low (or high depending on the SENSE polarity) for 3 CPU clock cycles after DETECT has gone high to generate a new DETECT signal.

Note: When a pin is configured as digital input, care has been taken to minimize increased current consumption when the input voltage is between $\mathsf { V } _ { \mathsf { I } \mathsf { L } }$ and $\mathsf { V } _ { \mathsf { I H } } .$ However, it is a good practice to ensure that the external circuitry does not drive that pin to levels between $\mathsf { V } _ { \mathrm { I L } }$ and $\mathsf { V } _ { \mathsf { I H } }$ for a long period of time.

6.4.2 Pin sense mechanism

Pins sensitivity can be individually configured, through the SENSE field in the PIN_CNF[n] register, to detect either a high level or a low level on their input.

When the correct level is detected on any such configured pin, the sense mechanism will set the DETECT signal high. Each pin has a separate DETECT signal. Default behavior, defined by the DETECTMODE register, is that the DETECT signals from all pins in the GPIO port are combined into one common DETECT signal that is routed throughout the system, which then can be utilized by other peripherals. This mechanism is functional in both System ON and System OFF modes.

DETECTMODE and DETECTMODE_SEC are provided to handle secure and non-secure pins.

DETECTMODE_SEC register is available to control the behavior associated to pin marked as secure, while the DETECTMODE register is restricted to pin marked as non-secure. Please refer to GPIO security on page 166 for more details.

Make sure that a pin is in a level that cannot trigger the sense mechanism before enabling it. The DETECT signal will go high immediately if the SENSE condition configured in the PIN_CNF registers is met when the sense mechanism is enabled. This will trigger a PORT event if the DETECT signal was low before enabling the sense mechanism.

The DETECT signal is also used by power and clock management system to exit from System OFF mode, and by GPIOTE to generate the PORT event. In addition GPIOTE_SEC is used for PORT event related to secure pins). See POWER — Power control on page 68 and GPIOTE — GPIO tasks and events on page 173 for more information about how the DETECT signal is used.

When a pin's PINx.DETECT signal goes high, a flag will be set in the LATCH register. For example, when the PIN0.DETECT signal goes high, bit 0 in the LATCH register will be set to '1'. If the CPU performs a clear operation on a bit in the LATCH register when the associated PINx.DETECT signal is high, the bit in the LATCH register will not be cleared. The LATCH register will only be cleared if the CPU explicitly clears it by writing a '1' to the bit that shall be cleared, i.e. the LATCH register will not be affected by a PINx.DETECT signal being set low.

The LDETECT signal will be set high when one or more bits in the LATCH register are '1'. The LDETECT signal will be set low when all bits in the LATCH register are successfully cleared to '0'.

If one or more bits in the LATCH register are '1' after the CPU has performed a clear operation on the LATCH registers, a rising edge will be generated on the LDETECT signal. This is illustrated in DETECT signal behavior on page 166.

Note: The CPU can read the LATCH register at any time to check if a SENSE condition has been met on one or more of the GPIO pins, even if that condition is no longer met at the time the CPU queries the LATCH register. This mechanism will work even if the LDETECT signal is not used as the DETECT signal.

The LDETECT signal is by default not connected to the GPIO port's DETECT signal, but via the DETECTMODE register it is possible to change from default behavior to DETECT signal being derived directly from the LDETECT signal instead. See GPIO port and the GPIO pin details on page 164. DETECT signal behavior on page 166 illustrates the DETECT signal behavior for these two alternatives.


Figure 23: DETECT signal behavior

6.4.3 GPIO security

The general purpose input/output (GPIO) peripheral is implemented as a split-security peripheral. If marked as non-secure, it can be accessed by both secure and non-secure accesses but will behave differently depending on the access type.

A non-secure peripheral access will only be able to configure and control pins defined as non-secure in the system protection unit (SPU) GPIOPORT.PERM[] register(s).

A non-secure access to a register or a bitfield controlling a pin marked as secure in GPIO.PERM[] register(s) will be ignored. Write access will have no effect and read access will return a zero value.

No exception is triggered when a non-secure access targets a register or bitfield controlling a secure pin. For example, if the bit i is set in the SPU.GPIO.PERM[0] register (declaring Pin P0.i as secure), then

• non-secure write accesses to OUT, OUTSET, OUTCLR, DIR, DIRSET, DIRCLR and LATCH registers will not be able to write to bit i of those registers

• non-secure write accesses to registers PIN[ ].OUT and PIN_CNF[ ] will be ignored • non-secure read accesses to registers OUT, OUTSET, OUTCLR, IN, DIR, DIRSET, DIRCLR and LATCH will always read a '0' for the bit at position i

• non-secure read accesses to registers PIN[i].OUT, PIN[i].OUT and PIN_CNF[i] will always return 0

The GPIO.DETECTMODE and GPIO.DETECTMODE_SEC registers are handled differently than the other registers mentioned before. When accessed by a secure access, the DETECTMODE_SEC register control the source for the DETECT_SEC signal for the pins marked as secure. When accessed by a non-secure access, the DETECTMODE_SEC is read as zero and write accesses are ignored. The GPIO.DETECTMODE register controls the source for the DETECT_NSEC signal for the pins defined as non-secure.

The DETECT_NSEC signal is routed to the GPIOTE peripheral, allowing generation of events and interrupts from pins marked as non-secure. The DETECT_SEC signal is routed to the GPIOTESEC peripheral, allowing generation of events and interrupts from pins marked as secure. Principle of direct pin access on page 167 illustrates how the DETECT_NSEC and DETECT_SEC signals are generated from the GPIO PIN[].DETECT signals.


Figure 24: Principle of direct pin access

6.4.4 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
P0 : S0x50842500HFNSNAYesGeneral purpose input and output
P0 : NS0x40842500

Register overview

RegisterOffsetTZDescription
OUT0x004Write GPIO port
This register is retained.
OUTSET0x008Set individual bits in GPIO port
OUTCLR0x00CClear individual bits in GPIO port
IN0x010Read GPIO port
DIR0x014Direction of GPIO pins
This register is retained.
DIRSET0x018DIR set register
DIRCLR0x01CDIR clear register
LATCH0x020Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers
This register is retained.
DETECTMODE0x024Select between default DETECT signal behavior and LDETECT mode (For non-secure pin only)
This register is retained.
DETECTMODE_SEC0x028Select between default DETECT signal behavior and LDETECT mode (For secure pin only)
This register is retained.
PIN_CNF[n]0x200Configuration of GPIO pins
This register is retained.

6.4.4.1 OUT (Retained)

Address offset: 0x004

Write GPIO port

This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Pin i
Low0Pin driver is low
High1Pin driver is high

6.4.4.2 OUTSET

Address offset: 0x008

Set individual bits in GPIO port

Read: reads value of OUT register.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Pin i
W1S
Low0Read: pin driver is low
High1Read: pin driver is high
Set1Write: writing a &#x27;1&#x27; sets the pin high; writing a &#x27;0&#x27; has no effect

6.4.4.3 OUTCLR

Address offset: 0x00C Clear individual bits in GPIO port Read: reads value of OUT register.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Pin i
W1C
Low0Read: pin driver is low
High1Read: pin driver is high
Clear1Write: writing a &#x27;1&#x27; sets the pin low; writing a &#x27;0&#x27; has no effect

6.4.4.4 IN

Address offset: 0x010

Read GPIO port

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRPIN[i] (i=0..31)Pin i
Low0Pin input is low
High1Pin input is high

6.4.4.5 DIR (Retained)

Address offset: 0x014 Direction of GPIO pins This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Pin i
Input0Pin set as input
Output1Pin set as output

6.4.4.6 DIRSET

Address offset: 0x018

DIR set register

Read: reads value of DIR register.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Set as output pin i
W1S
Input0Read: pin set as input
Output1Read: pin set as output
Set1Write: writing a &#x27;1&#x27; sets pin to output; writing a &#x27;0&#x27; has no effect

6.4.4.7 DIRCLR

Address offset: 0x01C

DIR clear register

Read: reads value of DIR register.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Set as input pin i
W1C
Input0Read: pin set as input
Output1Read: pin set as output
Clear1Write: writing a &#x27;1&#x27; sets pin to input; writing a &#x27;0&#x27; has no effect

6.4.4.8 LATCH (Retained)

Address offset: 0x020

Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Status on whether PIN[i] has met criteria set in PIN_CNF[i].SENSE register.Write &#x27;1&#x27; to clear.
NotLatched0Criteria has not been met
Latched1Criteria has been met

6.4.4.9 DETECTMODE (Retained)

Address offset: 0x024

Select between default DETECT signal behavior and LDETECT mode (For non-secure pin only) This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWDETECTMODE
Default0
LDETECT1

6.4.4.10 DETECTMODE_SEC (Retained)

Address offset: 0x028

Select between default DETECT signal behavior and LDETECT mode (For secure pin only) This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDETECTMODESelect between default DETECT signal behavior and LDETECT mode
Default0DETECT directly connected to PIN DETECT signals
LDETECT1Use the latched LDETECT behavior

6.4.4.11 PIN_CNF[n] (n=0..31) (Retained)

Address offset: 0x200 + (n × 0x4)

Configuration of GPIO pins

This register is retained.

Bit number
ID00000000000000000000000000000000000000000000000000DDD
Reset 0x00000002CCB0000000000000000000000000000000000000000000000000O0000000000000000000000000000000000000000000000000U0000000000000000000000000000000000000000000000000uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuU000000000000000000000000000000000000000000000000uUuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii---------------|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|i|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|iii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|i|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|iii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|ii|iii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|ivii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii|iviii| |RW | DIR | Value ID | Description | | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register asDIR (1) | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register as DIR register / 0 | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction. Same physical register asDir (1) | Pin direction . ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction .ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction.ii | Pin direction ii | Pin direction ii | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction. II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.III | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.II | Pin direction.Ⅱ | Pin direction.Ⅲ | Pin direction.Ⅳ | Pin direction.Ⅴ | Pin direction.Ⅵ | Pin direction.Ⅶ | Pin direction.Ⅷ | Pin direction.Ⅸ | Pin direction.Ⅹ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅰ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.ⅴ | Pin direction.ⅵ | Pin direction.ⅶ | Pin direction.ⅷ | Pin direction.ⅸ | Pin direction.ⅹ | Pin direction.ⅺ | Pin direction.ⅺ | Pin direction.ⅼ | Pin direction.ⅺ | Pin direction.ⅼ | Pin direction.ⅼ | Pin direction.ⅽ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.ⅳ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction Ⅰ | Pin direction Ⅱ | Pin direction Ⅲ | Pin direction Ⅳ | Pin direction Ⅴ | Pin direction Ⅵ | Pin direction Ⅶ | Pin direction Ⅷ | Pin direction Ⅸ | Pin direction Ⅹ | Pin direction Ⅺ | Pin direction Ⅻ | Pin direction Ⅼ | Pin direction Ⅽ | Pin direction Ⅾ | Pin direction Ⅿ | Pin direction ⅱ | Pin direction ⅱ | Pin direction ⅲ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction ⅳ | Pin direction.Ⅰ | Pin direction.Ⅱ | Pin direction.Ⅲ | Pin direction.Ⅳ | Pin direction.Ⅴ | Pin direction.Ⅵ | Pin direction.Ⅶ | Pin direction.Ⅷ | Pin direction.Ⅸ | Pin direction.Ⅹ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction Ⅰ | Pin direction.Ⅱ | Pin direction.Ⅲ | Pin direction.Ⅳ | Pin direction.Ⅴ | Pin direction.Ⅵ | Pin direction.Ⅶ | Pin direction.Ⅷ | Pin direction.Ⅸ | Pin direction.Ⅹ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction.Ⅽ | Pin direction,Ⅰ | Pin direction,Ⅱ | Pin direction,Ⅲ | Pin direction,Ⅳ | Pin direction,Ⅴ | Pin direction,Ⅵ | Pin direction,Ⅶ | Pin direction,Ⅷ | Pin direction,Ⅸ | Pin direction,Ⅹ | Pin direction,Ⅺ | Pin direction,Ⅻ | Pin direction,Ⅼ | Pin direction,Ⅽ | Pin direction,Ⅾ | Pin direction,Ⅿ | Pin direction,ⅰ | Pin direction,ⅱ | Pin direction,ⅲ | Pin direction,ⅳ | Pin direction,ⅴ | Pin direction,Ⅴ | Pin direction,Ⅵ | Pin direction,Ⅶ | Pin direction,Ⅷ | Pin direction,Ⅸ | Pin direction,Ⅹ | Pin direction,Ⅺ | Pin direction,Ⅻ | Pin direction,Ⅼ | Pin direction,Ⅽ | Pin direction,Ⅾ | Pin direction,Ⅿ | Pin direction,ⅰ | Pin direction,ⅱ | Pin direction,ⅲ | Pin direction,ⅳ | Pin direction.Ⅰ | Pin direction.Ⅱ | Pin direction.Ⅲ | Pin direction.Ⅳ | Pin direction.Ⅴ | Pin direction.Ⅵ | Pin direction.Ⅶ | Pin direction.Ⅷ | Pin direction.Ⅸ | Pin direction.Ⅹ | Pin direction.Ⅺ | Pin direction.Ⅸ | Pin direction.Ⅹ | Pin direction.Ⅺ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction Ⅰ | Pin direction Ⅱ | Pin direction Ⅲ | Pin direction Ⅳ | Pin direction Ⅴ | Pin direction Ⅵ | Pin direction Ⅶ | Pin direction Ⅷ | Pin direction Ⅸ | Pin direction Ⅹ | Pin direction Ⅺ | Pin direction Ⅻ | Pin direction Ⅼ | Pin direction Ⅽ | Pin direction Ⅾ | Pin direction Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.Ⅺ | Pin direction.Ⅻ | Pin direction.Ⅼ | Pin direction.Ⅽ | Pin direction.Ⅾ | Pin direction.Ⅿ | Pin direction.ⅱ | Pin direction.ⅱ | Pin direction.ⅲ | Pin direction.ⅳ | Pin direction.Ⅺ | Pin direction.Ⅻ |Pin direction Ⅰ |Pin direction Ⅱ |Pin direction Ⅲ |Pin direction Ⅳ |Pin direction Ⅴ |Pin direction Ⅵ |Pin direction Ⅶ |Pin direction Ⅷ |Pin direction Ⅸ |Pin direction Ⅹ |Pin direction Ⅺ |Pin direction Ⅻ |Pin direction Ⅸ |Pin direction Ⅹ |Pin direction Ⅺ |Pin direction Ⅼ |Pin direction Ⅽ |Pin direction Ⅾ |Pin direction Ⅿ |Pin direction ⅱ |Pin direction ⅱ |Pin direction ⅲ |Pin direction ⅳ |Pin direction Ⅺ |Pin direction Ⅻ |Pin direction Ⅸ |Pin direction Ⅹ |Pin direction Ⅺ |Pin direction Ⅸ |Pin direction Ⅹ |Pin direction Ⅺ |Pin direction Ⅼ |Pin direction Ⅽ |Pin direction Ⅾ |Pin direction ⅱ |Pin direction ⅱ |Pin direction ⅲ |Pin direction ⅳ |Pin direction Ⅺ |Pin direction Ⅻ |Pin direction Ⅸ |Pin direction Ⅹ |Pin direction Ⅺ |Pin direction Ⅼ |Pin direction Ⅽ |Pin direction Ⅾ |Pin direction Ⅿ |Pin direction ⅱ |Pin direction ⅱ |Pin direction ⅲ |Pin direction ⅳ |Pin direction Ⅺ |Pin direction Ⅻ |Pin direction Ⅸ |Pin direction2π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π :π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π;π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π::π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:π:A#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#o#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e##e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#c##e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e#e
Bit number313029282726252423222120191817161514131211109876543210
IDE ED D D
Reset 0x00000002000000000000000000000000000000010
IDR/WFieldValue IDValue
BRWINPUT
Connect0
Disconnect1
CRWPULL
Disabled0
Pulldown1
Pullup3
D-RWDRIVE
SOS10
HOS11
SOH12
HOH13
DOS14
DOH15
SOD16
HOD17
ERWSENSE
Disabled0
High2
Low3

6.4.5 Electrical specification

6.4.5.1 GPIO Electrical Specification

Note: VDD in the following table refers to VDD_GPIO.

SymbolDescriptionMin.Typ.Max.Units
$V_{IH}$ Input high voltage0.7 x VDDVDDV
$V_{IL}$ Input low voltageVSS0.3 x VDDV
$V_{OH,SD}$ Output high voltage, standard drive, 0.5 mA, VDD ≥ 1.7 VVDD-0.4VDDV
$V_{OH,HDH}$ Output high voltage, high drive, 5 mA, VDD ≥ 2.7 VVDD-0.4VDDV
$V_{OH,HDL}$ Output high voltage, high drive, 3 mA, VDD ≥ 1.7 VVDD-0.4VDDV
$V_{OL,SD}$ Output low voltage, standard drive, 0.5 mA, VDD ≥ 1.7 VVSSVSS+0.4V
$V_{OL,HDH}$ Output low voltage, high drive, 5 mA, VDD ≥ 2.7 VVSSVSS+0.4V
$V_{OL,HDL}$ Output low voltage, high drive, 3 mA, VDD ≥ 1.7 VVSSVSS+0.4V
$I_{OL,SD}$ Current at VSS + 0.4 V, output set low, standard drive, VDD ≥ 1.7 V124mA
$I_{OL,HDH}$ Current at VSS + 0.4 V, output set low, high drive, VDD ≥ 2.7 V61015mA
$I_{OL,HDL}$ Current at VSS + 0.4 V, output set low, high drive, VDD ≥ 1.7 V3mA
$I_{OH,SD}$ Current at VDD - 0.4 V, output set high, standard drive, VDD ≥1.7124mA
$I_{OH,HDH}$ Current at VDD - 0.4 V, output set high, high drive, VDD ≥ 2.7 V6914mA
$I_{OH,HDL}$ Current at VDD - 0.4 V, output set high, high drive, VDD ≥ 1.7 V3mA
$t_{RF,15pF}$ Rise/fall time, standard drive mode, 10 to 90%, 15 pF load $^{1}$ 6919ns
$t_{RF,25pF}$ Rise/fall time, standard drive mode, 10 to 90%, 25 pF load $^{1}$ 101330ns
$t_{RF,50pF}$ Rise/fall time, standard drive mode, 10 to 90%, 50 pF load $^{1}$ 182561ns
$t_{HRF,15pF}$ Rise/Fall time, high drive mode, 10 to 90%, 15 pF load $^{1}$ 248ns
$t_{HRF,25pF}$ Rise/Fall time, high drive mode, 10 to 90%, 25 pF $load^1$ 3511ns
$t_{HRF,50pF}$ Rise/Fall time, high drive mode, 10 to 90%, 50 pF $load^1$ 5819ns
$R_{PU}$ Pull-up resistance111316kΩ
$R_{PD}$ Pull-down resistance111316kΩ
$C_{PAD}$ Pad capacitance3pF

6.5 GPIOTE — GPIO tasks and events

The GPIO tasks and events (GPIOTE) module provides functionality for accessing GPIO pins using tasks and events. Each GPIOTE channel can be assigned to one pin.

A GPIOTE block enables GPIOs to generate events on pin state change which can be used to carry out tasks through the PPI system. A GPIO can also be driven to change state on system events using the PPI system. Tasks and events are briefly introduced in Peripheral interface on page 15, and GPIO is described in more detail in GPIO — General purpose input/output on page 163.

Low power detection of pin state changes is possible when in System ON or System OFF.

InstanceNumber of GPIOTE channels
GPIOTE8

Table 18: GPIOTE properties

Up to three tasks can be used in each GPIOTE channel for performing write operations to a pin. Two tasks are fixed (SET and CLR), and one (OUT) is configurable to perform following operations:

• Set

• Clear

• Toggle

An event can be generated in each GPIOTE channel from one of the following input conditions:

• Rising edge

• Falling edge

• Any change

6.5.1 Pin events and tasks

The GPIOTE module has a number of tasks and events that can be configured to operate on individual GPIO pins.

The tasks SET[n], CLR[n], and OUT[n] can write to individual pins, and events IN[n] can be generated from input changes of individual pins.

The SET task will set the pin selected in GPIOTE.CONFIG[n].PSEL to high. The CLR task will set the pin low.

The effect of the OUT task on the pin is configurable in CONFIG[n].POLARITY. It can set the pin high, set it low, or toggle it.

Tasks and events are configured using the CONFIG[n] registers. One CONFIG[n] register is associated with a set of SET[n], CLR[n], and OUT[n] tasks and IN[n] events.

As long as a SET[n], CLR[n], and OUT[n] task or an IN[n] event is configured to control pin n, the pin's output value will only be updated by the GPIOTE module. The pin's output value, as specified in the GPIO, will be ignored as long as the pin is controlled by GPIOTE. Attempting to write to the pin as a normal GPIO pin will have no effect. When the GPIOTE is disconnected from a pin, the associated pin gets the output and configuration values specified in the GPIO module, see MODE field in CONFIG[n] register.

When conflicting tasks are triggered simultaneously (i.e. during the same clock cycle) in one channel, the priority of the tasks is as described in the following table.

PriorityTask
1OUT
2CLR
3SET

Table 19: Task priorities

When setting the CONFIG[n] registers, MODE=Disabled does not have the same effect as MODE=Task and POLARITY=None. In the latter case, a CLR or SET task occurring at the exact same time as OUT will end up with no change on the pin, based on the priorities described in the table above.

When a GPIOTE channel is configured to operate on a pin as a task, the initial value of that pin is configured in the OUTINIT field of CONFIG[n].

6.5.2 Port event

PORT is an event that can be generated from multiple input pins using the GPIO DETECT signal.

The event will be generated on the rising edge of the DETECT signal. See GPIO — General purpose input/ output on page 163 for more information about the DETECT signal.

The GPIO DETECT signal will not wake the system up again if the system is put into System ON IDLE while the DETECT signal is high. Clear all DETECT sources before entering sleep. If the LATCH register is used as a source, a new rising edge will be generated on DETECT if any bit in LATCH is still high after clearing all or part of the register. This could occur if one of the PINx.DETECT signals is still high, for example. See Pin sense mechanism on page 165 for more information.

Setting the system to System OFF while DETECT is high will cause a wakeup from System OFF reset.

This feature can be used to wake up the CPU from a WFI or WFE type sleep in System ON when al peripherals and the CPU are idle, meaning the lowest power consumption in System ON mode.

To prevent spurious interrupts from the PORT event while configuring the sources, the following steps must be performed:

  1. Disable interrupts on the PORT event (through INTENCLR.PORT).

  2. Configure the sources (PIN_CNF[n].SENSE).

  3. Clear any potential event that could have occurred during configuration (write 0 to EVENTS_PORT).

  4. Enable interrupts (through INTENSET.PORT).

6.5.3 Tasks and events pin configuration

Each GPIOTE channel is associated with one physical GPIO pin through the CONFIG.PSEL field.

When Event mode is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will be configured as an input, overriding the DIR setting in GPIO. Similarly, when Task mode is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will be configured as an output overriding the DIR setting and OUT value in GPIO. When Disabled is selected in CONFIG.MODE, the pin specified by CONFIG.PSEL will use its configuration from the PIN[n].CNF registers in GPIO. CONFIG.MODE must be disabled in order to be able to change the value of the PSEL field.

Note: A pin can only be assigned to one GPIOTE channel at a time. Failing to do so may result in unpredictable behavior.

6.5.4 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
GPIOTE00x5000D000HFSNANoSecure GPIO tasks and events
GPIOTE10x40031000HFNSNANoNon Secure GPIO tasks and events

Register overview

RegisterOffsetTZDescription
TASKS_OUT[n]0x000Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY.
TASKS_SET[n]0x030Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it high.
TASKS_CLR[n]0x060Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it low.
SUBSCRIBE_OUT[n]0x080Subscribe configuration for task OUT[n]
SUBSCRIBE_SET[n]0x0B0Subscribe configuration for task SET[n]
SUBSCRIBE_CLR[n]0x0E0Subscribe configuration for task CLR[n]
EVENTS_IN[n]0x100Event generated from pin specified in CONFIG[n].PSEL
EVENTS_PORT0x17CEvent generated from multiple input GPIO pins with SENSE mechanism enabled
PUBLISH_IN[n]0x180Publish configuration for event IN[n]
PUBLISH_PORT0x1FCPublish configuration for event PORT
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
CONFIG[n]0x510Configuration for OUT[n], SET[n], and CLR[n] tasks and IN[n] event

6.5.4.1 TASKS_OUT[n] (n=0..7)

Address offset: 0x000 + (n × 0x4)

Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY.

6.5.4.2 TASKS_SET[n] (n=0..7)

Address offset: 0x030 + (n × 0x4)

Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it high.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_SET
Trigger1

6.5.4.3 TASKS_CLR[n] (n=0..7)

Address offset: 0x060 + (n × 0x4)

Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it low.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_CLR
Trigger1

6.5.4.4 SUBSCRIBE_OUT[n] (n=0..7)

Address offset: 0x080 + (n × 0x4)

Subscribe configuration for task OUT[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task OUT[n] will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.5.4.5 SUBSCRIBE_SET[n] (n=0..7)

Address offset: 0x0B0 + (n × 0x4)

Subscribe configuration for task SET[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.5.4.6 SUBSCRIBE_CLR[n] (n=0..7)

Address offset: 0x0E0 + (n × 0x4)

Subscribe configuration for task CLR[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.5.4.7 EVENTS_IN[n] (n=0..7)

Address offset: 0x100 + (n × 0x4)

Event generated from pin specified in CONFIG[n].PSEL

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_IN
NotGenerated0
Generated1

6.5.4.8 EVENTS_PORT

Address offset: 0x17C

Event generated from multiple input GPIO pins with SENSE mechanism enabled

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_PORT
NotGenerated0
Generated1

6.5.4.9 PUBLISH_IN[n] (n=0..7)

Address offset: 0x180 + (n × 0x4)

Publish configuration for event IN[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event IN[n] will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.5.4.10 PUBLISH_PORT

Address offset: 0x1FC

Publish configuration for event PORT

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.5.4.11 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWIN[i] (i=0..7)Write &#x27;1&#x27; to enable interrupt for event IN[i]
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWPORTWrite &#x27;1&#x27; to enable interrupt for event PORT
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.5.4.12 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWIN[i] (i=0..7)Write &#x27;1&#x27; to disable interrupt for event IN[i]
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWPORTWrite &#x27;1&#x27; to disable interrupt for event PORT
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.5.4.13 CONFIG[n] (n=0..7)

Address offset: 0x510 + (n × 0x4)

Configuration for OUT[n], SET[n], and CLR[n] tasks and IN[n] event

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000AA
IDR/WFieldValue IDValueDescriptionAA
ARWMODEMode
Disabled0Event mode

6.6 IPC — Interprocessor communication

The interprocessor communication (IPC) peripheral is used to send and receive events between MCUs in the system.


Figure 25: IPC block diagram

Functional description

IPC block diagram on page 180 illustrates the interprocessor communication (IPC) peripheral. In a multi-MCU system, each MCU has one dedicated IPC peripheral. The IPC peripheral can be used to send and receive events to and from other IPC peripherals. An instance of the IPC peripheral can have multiple SEND tasks and RECEIVE events. A single SEND task can be configured to signal an event on one or more IPC channels, and a RECEIVE event can be configured to listen on one or more IPC channels. The IPC channels that are triggered in a SEND task can be configured through the SEND_CNF registers, and the IPC channels that trigger a RECEIVE event are configured through the RECEIVE_CNF registers. The figure below illustrates how the SEND_CNF and RECEIVE_CNF registers work. Both the SEND task and the RECEIVE event can be connected to all IPC channels.


Figure 26: IPC registers SEND_CNF and RECEIVE_CNF

A SEND task can be viewed as broadcasting events onto one or more IPC channels, and a RECEIVE event can be seen as subscribing to a subset of IPC channels. It is possible for multiple IPCs to trigger events onto the same channel at the same time. When two or more events on the same channel occur within t , the events may be merged into a single event seen from the IPC receiver. One of the events can therefore be lost. To prevent this, the user must ensure that events on the same IPC channel do not occur within t of each other. When implementing firmware data structures, such as queues or mailboxes, this can be done by using one channel for acknowledgements.

An IPC event often does not contain any data itself, it is used to signal other MCUs that something has occurred. Data can be shared through shared memory, for example in the form of a software implemented mailbox, or command/event queues. It is up to software to assign a logical functionality to an IPC channel. For instance, one IPC channel can be used to signal that a command is ready to be executed, and any processor in the system can subscribe to that particular channel and decode/execute the command.

General purpose memory

The GPMEM registers can be used freely to store information. These registers are accessed like any other of the IPC peripheral's registers.

6.6.1 IPC and PPI connections

The IPC SEND tasks and RECEIVE events can be connected through PPI channels. This makes it possible to relay events from peripherals in one MCU to another, without CPU involvement.

Figure below illustrates a timer COMPARE event that is relayed from one MCU to IPC using PPI, then back into a timer CAPTURE event in another MCU.


Figure 27: Example of PPI and IPC connections

6.6.2 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
IPC : S0x5002A000USNSNANoInterprocessor communication
IPC : NS0x4002A000

Register overview

RegisterOffsetTZDescription
TASKS_SEND[n]0x000Trigger events on IPC channel enabled in SEND_CNF[n]
SUBSCRIBE_SEND[n]0x080Subscribe configuration for task SEND[n]
EVENTS_RECEIVE[n]0x100Event received on one or more of the enabled IPC channels in RECEIVE_CNF[n]
PUBLISH_RECEIVE[n]0x180Publish configuration for event RECEIVE[n]
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
SEND_CNF[n]0x510Send event configuration for TASKS_SEND[n]
RECEIVE_CNF[n]0x590Receive event configuration for EVENTS_RECEIVE[n]
GPMEM[n]0x610General purpose memory

6.6.2.1 TASKS_SEND[n] (n=0..7)

Address offset: 0x000 + (n × 0x4)

Trigger events on IPC channel enabled in SEND_CNF[n]

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_SEND
Trigger1

6.6.2.2 SUBSCRIBE_SEND[n] (n=0..7)

Address offset: 0x080 + (n × 0x4)

Subscribe configuration for task SEND[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.6.2.3 EVENTS_RECEIVE[n] (n=0..7)

Address offset: 0x100 + (n × 0x4)

Event received on one or more of the enabled IPC channels in RECEIVE_CNF[n]

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RECEIVE
NotGenerated0
Generated1

6.6.2.4 PUBLISH_RECEIVE[n] (n=0..7)

Address offset: 0x180 + (n × 0x4)

Publish configuration for event RECEIVE[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RECEIVE[n] will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.6.2.5 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWRECEIVE[i] (i=0..7)Enable or disable interrupt for event RECEIVE[i]
Disabled0Disable
Enabled1Enable

6.6.2.6 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWRECEIVE[i] (i=0..7)Write &#x27;1&#x27; to enable interrupt for event RECEIVE[i]
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.6.2.7 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWRECEIVE[i] (i=0..7)Write &#x27;1&#x27; to disable interrupt for event RECEIVE[i]
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.6.2.8 INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRRECEIVE[i] (i=0..7)
NotPending0
Pending1

6.6.2.9 SEND_CNF[n] (n=0..7)

Address offset: 0x510 + (n × 0x4)

Send event configuration for TASKS_SEND[n]

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWCHEN[i] (i=0..7)
Disable0
Enable1

6.6.2.10 RECEIVE_CNF[n] (n=0..7)

Address offset: 0x590 + (n × 0x4)

Receive event configuration for EVENTS_RECEIVE[n]

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWCHEN[i] (i=0..7)
Disable0
Enable1

6.6.2.11 GPMEM[n] (n=0..3)

Address offset: 0x610 + (n × 0x4)

General purpose memory

Retained only in System ON mode

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWGPMEM

6.6.3 Electrical specification

6.6.3.1 IPC Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
$t_{IPC}$ Time window during which IPC events can be merged165μs

6.7 I2S — Inter-IC sound interface

The I2S (Inter-IC Sound) module, supports the original two-channel I2S format, and left or right-aligned formats. It implements EasyDMA for sample transfer directly to and from RAM without CPU intervention.

The I2S peripheral has the following main features:

• Master and Slave mode

• Simultaneous bi-directional (TX and RX) audio streaming

• Original I2S and left- or right-aligned format

• 8, 16 and 24-bit sample width

• Low-jitter Master Clock generator

• Various sample rates


Figure 28: I2S master

6.7.1 Mode

The I2S protocol specification defines two modes of operation, Master and Slave.

The I2S mode decides which of the two sides (Master or Slave) shall provide the clock signals LRCK and SCK, and these signals are always supplied by the Master to the Slave.

6.7.2 Transmitting and receiving

The I2S module supports both transmission (TX) and reception (RX) of serial data. In both cases the serial data is shifted synchronously to the clock signals SCK and LRCK.

TX data is written to the SDOUT pin on the falling edge of SCK, and RX data is read from the SDIN pin on the rising edge of SCK. The most significant bit (MSB) is always transmitted first.

Note: When starting a transmission in master mode, two frames (two left-and-right sample pairs) of value zero will be transmitted after triggering the START task, prior to the RXTXD.MAXCNT samples specified by the TXD.PTR pointer.

TX and RX are available in both Master and Slave modes and can be enabled/disabled independently in the CONFIG.TXEN on page 200 and CONFIG.RXEN on page 200.

Transmission and/or reception is started by triggering the START task. When started and transmission is enabled (in CONFIG.TXEN on page 200), the TXPTRUPD event will be generated for every

RXTXD.MAXCNT on page 203 number of transmitted data words (containing one or more samples). Similarly, when started and reception is enabled (in CONFIG.RXEN on page 200), the RXPTRUPD event will be generated for every RXTXD.MAXCNT on page 203 received data words.


Figure 29: Transmitting and receiving. CONFIG.FORMAT = Aligned, CONFIG.SWIDTH = 8Bit, CONFIG.CHANNELS = Stereo, RXTXD.MAXCNT = 1.

6.7.3 Left right clock (LRCK)

The Left Right Clock (LRCK), often referred to as "word clock", "sample clock" or "word select" in I2S context, is the clock defining the frames in the serial bit streams sent and received on SDOUT and SDIN, respectively.

In I2S mode, each frame contains one left and right sample pair, with the left sample being transferred during the low half period of LRCK followed by the right sample being transferred during the high period of LRCK.

In Aligned mode, each frame contains one left and right sample pair, with the left sample being transferred during the high half period of LRCK followed by the right sample being transferred during the low period of LRCK.

Consequently, the LRCK frequency is equivalent to the audio sample rate.

When operating in Master mode, the LRCK is generated from the MCK, and the frequency of LRCK is then given as:

LRCK = MCK / CONFIG.RATIO

LRCK always toggles around the falling edge of the serial clock SCK.

6.7.4 Serial clock (SCK)

The serial clock (SCK), often referred to as the serial bit clock, pulses once for each data bit being transferred on the serial data lines SDIN and SDOUT.

When operating in Master mode the SCK is generated from the MCK, and the frequency of SCK is then given as:

SCK = 2 * LRCK * CONFIG.SWIDTH

The falling edge of the SCK falls on the toggling edge of LRCK.

When operating in Slave mode SCK is provided by the external I2S master.

6.7.5 Master clock (MCK)

The master clock (MCK) is the clock from which LRCK and SCK are derived when operating in Master mode.

The MCK is generated by an internal MCK generator. This generator always needs to be enabled when in Master mode, but the generator can also be enabled when in Slave mode. Enabling the generator when in slave mode can be useful in the case where the external Master is not able to generate its own master clock.

The MCK generator is enabled/disabled in the register CONFIG.MCKEN on page 200, and the generator is started or stopped by the START or STOP tasks.

In Master mode the LRCK and the SCK frequencies are closely related, as both are derived from MCK and set indirectly through CONFIG.RATIO on page 201 and CONFIG.SWIDTH on page 202.

When configuring these registers, the user is responsible for fulfilling the following requirements:

  1. SCK frequency can never exceed the MCK frequency, which can be formulated as:
CONFIG.RATIO >= 2 * CONFIG.SWIDTH
  1. The MCK/LRCK ratio shall be a multiple of 2 * CONFIG.SWIDTH, which can be formulated as:
Integer = (CONFIG.RATIO / (2 * CONFIG.SWIDTH))

The MCK signal can be routed to an output pin (specified in PSEL.MCK) to supply external I2S devices that require the MCK to be supplied from the outside.

When operating in Slave mode, the I2S module does not use the MCK and the MCK generator does not need to be enabled.

Figure 30: Relation between RATIO, MCK and LRCK.

Desired LRCK [Hz]CONFIG.SWID*CONFIG.RATIOCONFIG.MCKFMCK [Hz]LRCK [Hz]LRCK error [%]
1600016Bit32X32MDIV63507936.515873.0-0.8
1600016Bit64X32MDIV311032258.116129.00.8
1600016Bit256X32MDIV84000000.015625.0-2.3
3200016Bit32X32MDIV311032258.132258.10.8
3200016Bit64X32MDIV162000000.031250.0-2.3
4410016Bit32X32MDIV231391304.343478.3-1.4
4410016Bit64X32MDIV112909090.945454.53.1

Table 20: Configuration examples

6.7.6 Width, alignment, and format

The CONFIG.SWIDTH register primarily defines the sample width of the data written to memory. In master mode, it then also sets the amount of bits per frame. In Slave mode it controls padding/trimming if required. Left, right, transmitted, and received samples always have the same width. The CONFIG.FORMAT register specifies the position of the data frames with respect to the LRCK edges in both Master and Slave modes.

When using I2S format, the first bit in a half-frame (containing one left or right sample) gets sampled on the second rising edge of the SCK after a LRCK edge. When using Aligned mode, the first bit in a half-frame gets sampled on the first rising edge of SCK following a LRCK edge.

For data being received on SDIN the sample value can be either right or left-aligned inside a half-frame, as specified in CONFIG.ALIGN on page 202. CONFIG.ALIGN on page 202 affects only the decoding of the incoming samples (SDIN), while the outgoing samples (SDOUT) are always left-aligned (or justified).

When using left-alignment, each half-frame starts with the MSB of the sample value (both for data being sent on SDOUT and received on SDIN).

When using right-alignment, each half-frame of data being received on SDIN ends with the LSB of the sample value, while each half-frame of data being sent on SDOUT starts with the MSB of the sample value (same as for left-alignment).

In Master mode, the size of a half-frame (in number of SCK periods) equals the sample width (in number of bits), and in this case the alignment setting does not care as each half-frame in any case will start with the MSB and end with the LSB of the sample value.

In slave mode, however, the sample width does not need to equal the frame size. This means you might have extra or fewer SCK pulses per half-frame than what the sample width specified in CONFIG.SWIDTH requires.

In the case where we use left-alignment and the number of SCK pulses per half-frame is higher than the sample width, the following will apply:

• For data received on SDIN, all bits after the LSB of the sample value will be discarded.

• For data sent on SDOUT, all bits after the LSB of the sample value will be 0.

In the case where we use left-alignment and the number of SCK pulses per frame is lower than the sample width, the following will apply:

• Data sent and received on SDOUT and SDIN will be truncated with the LSBs being removed first.

In the case where we use right-alignment and the number of SCK pulses per frame is higher than the sample width, the following will apply:

• For data received on SDIN, all bits before the MSB of the sample value will be discarded.

• For data sent on SDOUT, all bits after the LSB of the sample value will be 0 (same behavior as for leftalignment).

In the case where we use right-alignment and the number of SCK pulses per frame is lower than the sample width, the following will apply:

• Data received on SDIN will be sign-extended to "sample width" number of bits before being written to memory.

• Data sent on SDOUT will be truncated with the LSBs being removed first (same behavior as for leftalignment).


Figure 31: I2S format. CONFIG.SWIDTH equaling half-frame size.


Figure 32: Aligned format. CONFIG.SWIDTH equaling half-frame size.

6.7.7 EasyDMA

The I2S module implements EasyDMA for accessing internal Data RAM without CPU intervention.

The source and destination pointers for the TX and RX data are configured in TXD.PTR on page 203 and RXD.PTR on page 203. The memory pointed to by these pointers will only be read or written when TX or RX are enabled in CONFIG.TXEN on page 200 and CONFIG.RXEN on page 200.

The addresses written to the pointer registers TXD.PTR on page 203 and RXD.PTR on page 203 are double-buffered in hardware, and these double buffers are updated for every RXTXD.MAXCNT on page 203 words (containing one or more samples) read/written from/to memory. The events TXPTRUPD and RXPTRUPD are generated whenever the TXD.PTR and RXD.PTR are transferred to these double buffers.

If TXD.PTR on page 203 is not pointing to the Data RAM region when transmission is enabled, or RXD.PTR on page 203 is not pointing to the Data RAM region when reception is enabled, an EasyDMA transfer may result in a HardFault and/or memory corruption. See Memory on page 21 for more information about the different memory regions.

Due to the nature of I2S, where the number of transmitted samples always equals the number of received samples (at least when both TX and RX are enabled), one common register RXTXD.MAXCNT on page 203 is used for specifying the sizes of these two memory buffers. The size of the buffers is specified in a number of 32-bit words. Such a 32-bit memory word can either contain four 8-bit samples, two 16-bit samples or one right-aligned 24-bit sample sign extended to 32 bit.

In stereo mode (CONFIG.CHANNELS=Stereo), the samples are stored as "left and right sample pairs" in memory. Figure Memory mapping for 8 bit stereo. CONFIG.SWIDTH = 8Bit, CONFIG.CHANNELS = Stereo. on page 190, Memory mapping for 16 bit stereo. CONFIG.SWIDTH = 16Bit, CONFIG.CHANNELS = Stereo. on page 191 and Memory mapping for 24 bit stereo. CONFIG.SWIDTH = 24Bit, CONFIG.CHANNELS = Stereo. on page 191 show how the samples are mapped to memory in this mode. The mapping is valid for both RX and TX.

In mono mode (CONFIG.CHANNELS=Left or Right), RX sample from only one channel in the frame is stored in memory, the other channel sample is ignored. Illustrations Memory mapping for 8 bit mono. CONFIG.SWIDTH = 8Bit, CONFIG.CHANNELS = Left. on page 191, Memory mapping for 16 bit mono, left channel only. CONFIG.SWIDTH = 16Bit, CONFIG.CHANNELS = Left. on page 191 and Memory mapping for 24 bit mono, left channel only. CONFIG.SWIDTH = 24Bit, CONFIG.CHANNELS = Left. on page 192 show how RX samples are mapped to memory in this mode.

For TX, the same outgoing sample read from memory is transmitted on both left and right in a frame, resulting in a mono output stream.

3124 2316 158 70
x.PTRRight sample 1Left sample 1Right sample 0Left sample 0
x.PTR + 4Right sample 3Left sample 3Right sample 2Left sample 2
x.PTR + (n*2) - 4Right samplen-1Left samplen-1Right samplen-2Left samplen-2

Figure 33: Memory mapping for 8 bit stereo. CONFIG.SWIDTH = 8Bit, CONFIG.CHANNELS = Stereo.

3124231615870
x.PTRLeft sample 3Left sample 2Left sample 1Left sample 0
x.PTR + 4Left sample 7Left sample 6Left sample 5Left sample 4
x.PTR + n - 4
Left samplen-1Left samplen-2Left samplen-3Left samplen-4

Figure 34: Memory mapping for 8 bit mono. CONFIG.SWIDTH = 8Bit, CONFIG.CHANNELS = Left.

3116150
x.PTRRight sample 0Left sample 0
x.PTR + 4Right sample 1Left sample 1
x.PTR + (n*4) - 4Right sample n - 1Left sample n - 1

Figure 35: Memory mapping for 16 bit stereo. CONFIG.SWIDTH = 16Bit, CONFIG.CHANNELS = Stereo.

3116150
x.PTRLeft sample 1Left sample 0
x.PTR + 4Left sample 3Left sample 2
x.PTR + (n*2) - 4Left sample n - 1Left sample n - 2

Figure 36: Memory mapping for 16 bit mono, left channel only. CONFIG.SWIDTH = 16Bit, CONFIG.CHANNELS = Left.

31230
x.PTRSign ext.Left sample 0
x.PTR + 4Sign ext.Right sample 0
x.PTR + (n*8) - 8Sign ext.Left sample n - 1
x.PTR + (n*8) - 4Sign ext.Right sample n - 1
x.PTR + 4Sign ext.Left sample 1
x.PTR + (n*4) - 4Sign ext.Left sample n - 1

Figure 37: Memory mapping for 24 bit stereo. CONFIG.SWIDTH = 24Bit, CONFIG.CHANNELS = Stereo.

Figure 38: Memory mapping for 24 bit mono, left channel only. CONFIG.SWIDTH = 24Bit, CONFIG.CHANNELS = Left.

6.7.8 Module operation

Described here is a typical operating procedure for the I2S module.

  1. Configure the I2S module using the CONFIG register
// Enable reception
NRF_I2S->CONFIG.RXEN = (I2S_CONFIG_RXEN_RXEN_Enabled << I2S_CONFIG_RXEN_RXEN_Pos);
// Enable transmission
NRF_I2S->CONFIG.TXEN = (I2S_CONFIG_TXEN_TXEN_Enabled << I2S_CONFIG_TXEN_TXEN_Pos);
// Enable MCK generator
NRF_I2S->CONFIG.MCKEN = (I2S_CONFIG_MCKEN_MCKEN_Enabled << I2S_CONFIG_MCKEN_MCKEN_Pos);
// MCKFREQ = 4 MHz
NRF_I2S->CONFIG.MCKFREQ = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV8 << I2S_CONFIG_MCKFREQ_MCKFREQ_Pos;
// Ratio = 256
NRF_I2S->CONFIG.RATIO = I2S_CONFIG_RATIO_RATIO_256X << I2S_CONFIG_RATIO_RATIO_Pos;
// MCKFREQ = 4 MHz and Ratio = 256 gives sample rate = 15.625 ks/s
// Sample width = 16 bit
NRF_I2S->CONFIG.SWIDTH = I2S_CONFIG_SWIDTH_SWIDTH_16Bit << I2S_CONFIG_SWIDTH_SWIDTH_Pos;
// Alignment = Left
NRF_I2S->CONFIG.ALIGN = I2S_CONFIG_ALIGN_ALIGN_Left << I2S_CONFIG_ALIGN_ALIGN_Pos;
// Format = I2S
NRF_I2S->CONFIG.FORMAT = I2S_CONFIG_FORMAT_FORMAT_I2S << I2S_CONFIG_FORMAT_FORMAT_Pos;
// Use stereo
NRF_I2S->CONFIG.CHANNELS = I2S_CONFIG_CHANNELS_CHANNELS_Stereo << I2S_CONFIG_CHANNELS_CHANNELS_Pos;

2. Map IO pins using the PINSEL registers

// MCK routed to pin 0
NRF_I2S->PSEL.MCK = (0 << I2S_PSEL_MCK_PIN_Pos) |
(I2S_PSEL_MCK_CONNECT_Connected <<
I2S_PSEL_MCK_CONNECT_Pos);
// SCK routed to pin 1
NRF_I2S->PSEL.SCK = (1 << I2S_PSEL_SCK_PIN_Pos) |
(I2S_PSEL_SCK_CONNECT_Connected <<
I2S_PSEL_SCK_CONNECT_Pos);
// LRCK routed to pin 2
NRF_I2S->PSEL.LRCK = (2 << I2S_PSEL_LRCK_PIN_Pos) |
(I2S_PSEL_LRCK_CONNECT_Connected <<
I2S_PSEL_LRCK_CONNECT_Pos);
// SDOUT routed to pin 3
NRF_I2S->PSEL.SDOUT = (3 << I2S_PSEL_SDOUT_PIN_Pos) |
(I2S_PSEL_SDOUT_CONNECT_Connected <<
I2S_PSEL_SDOUT_CONNECT_Pos);
// SDIN routed on pin 4
NRF_I2S->PSEL.SDIN = (4 << I2S_PSEL_SDIN_PIN_Pos) |
(I2S_PSEL_SDIN_CONNECT_Connected <<
I2S_PSEL_SDIN_CONNECT_Pos);

3. Configure TX and RX data pointers using the TXD, RXD and RXTXD registers

NRF_I2S->TXD.PTR = my_tx_buf;
NRF_I2S->RXD.PTR = my_rx_buf;
NRF_I2S->TXD.MAXCNT = MY_BUF_SIZE;

4. Enable the I2S module using the ENABLE register

NRF_I2S->ENABLE = 1;

5. Start audio streaming using the START task

NRF_I2S->TASKS_START = 1;
  1. Handle received and transmitted data when receiving the TXPTRUPD and RXPTRUPD events
if(NRF_I2S->EVENTS_TXPTRUPD != 0)
{
    NRF_I2S->TXD.PTR = my_next_tx_buf;
    NRF_I2S->EVENTS_TXPTRUPD = 0;
}
if(NRF_I2S->EVENTS_RXPTRUPD != 0)
{
    NRF_I2S->RXD.PTR = my_next_rx_buf;
    NRF_I2S->EVENTS_RXPTRUPD = 0;
}

6.7.9 Pin configuration

The MCK, SCK, LRCK, SDIN and SDOUT signals associated with the I2S module are mapped to physical pins according to the pin numbers specified in the PSEL.x registers.

These pins are acquired whenever the I2S module is enabled through the register ENABLE on page 199.

When a pin is acquired by the I2S module, the direction of the pin (input or output) will be configured automatically, and any pin direction setting done in the GPIO module will be overridden. The directions for the various I2S pins are shown below in GPIO configuration before enabling peripheral (master mode) on page 194 and GPIO configuration before enabling peripheral (slave mode) on page 194.

To secure correct signal levels on the pins when the system is in OFF mode, and when the I2S module is disabled, these pins must be configured in the GPIO peripheral directly.

I2S signalI2S pinDirectionOutput valueComment
MCKAs specified in PSEL.MCKOutput0
LRCKAs specified in PSEL.LRCKOutput0
SCKAs specified in PSEL.SCKOutput0
SDINAs specified in PSEL.SDINInputNot applicable
SDOUTAs specified in PSEL.SDOUTOutput0

Table 21: GPIO configuration before enabling peripheral (master mode)

I2S signalI2S pinDirectionOutput valueComment
MCKAs specified in PSEL.MCKOutput0
LRCKAs specified in PSEL.LRCKInputNot applicable
SCKAs specified in PSEL.SCKInputNot applicable
SDINAs specified in PSEL.SDINInputNot applicable
SDOUTAs specified in PSEL.SDOUTOutput0

Table 22: GPIO configuration before enabling peripheral (slave mode)

6.7.10 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
I2S : S0x50028000USNSSANoInter-IC Sound
I2S : NS0x40028000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Starts continuous I2S transfer. Also starts MCK generator when this is enabled.
TASKS_STOP0x004Stops I2S transfer. Also stops MCK generator. Triggering this task will cause the STOPPED event to be generated.
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
EVENTS_RXPTRUPD0x104The RXD.PTR register has been copied to internal double-buffers. When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words that are received on the SDIN pin.
EVENTS_STOPPED0x108I2S transfer stopped.
EVENTS_TXPTRUPD0x114The TDX.PTR register has been copied to internal double-buffers. When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin.
PUBLISH_RXPTRUPD0x184Publish configuration for event RXPTRUPD
PUBLISH_STOPPED0x188Publish configuration for event STOPPED
PUBLISH_TXPTRUPD0x194Publish configuration for event TXPTRUPD
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ENABLE0x500Enable I2S module.
CONFIG.MODE0x504I2S mode.
CONFIG.RXEN0x508Reception (RX) enable.
CONFIG.TXEN0x50CTransmission (TX) enable.
CONFIG.MCKEN0x510Master clock generator enable.
CONFIG.MCKFREQ0x514Master clock generator frequency.
CONFIG.RATIO0x518MCK / LRCK ratio.
CONFIG.SWIDTH0x51CSample width.
CONFIG.ALIGN0x520Alignment of sample within a frame.
CONFIG.FORMAT0x524Frame format.
CONFIG.CHANNELS0x528Enable channels.
RXD.PTR0x538Receive buffer RAM start address.
TXD.PTR0x540Transmit buffer RAM start address.
RXTXD.MAXCNT0x550Size of RXD and TXD buffers.
PSEL.MCK0x560Pin select for MCK signal.
PSEL.SCK0x564Pin select for SCK signal.
PSEL.LRCK0x568Pin select for LRCK signal.
PSEL.SDIN0x56CPin select for SDIN signal.
PSEL.SDOUT0x570Pin select for SDOUT signal.

6.7.10.1 TASKS_START

Address offset: 0x000

Starts continuous I2S transfer. Also starts MCK generator when this is enabled.

6.7.10.2 TASKS_STOP

Address offset: 0x004

Stops I2S transfer. Also stops MCK generator. Triggering this task will cause the STOPPED event to be generated.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOP
Trigger1

6.7.10.3 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task START will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.7.10.4 SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.7.10.5 EVENTS_RXPTRUPD

Address offset: 0x104

The RXD.PTR register has been copied to internal double-buffers. When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words that are received on the SDIN pin.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RXPTRUPD
NotGenerated0
Generated1

6.7.10.6 EVENTS_STOPPED

Address offset: 0x108

I2S transfer stopped.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STOPPED
NotGenerated0
Generated1

6.7.10.7 EVENTS_TXPTRUPD

Address offset: 0x114

The TDX.PTR register has been copied to internal double-buffers. When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TXPTRUPD
NotGenerated0
Generated1

6.7.10.8 PUBLISH_RXPTRUPD

Address offset: 0x184

Publish configuration for event RXPTRUPD

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.7.10.9 PUBLISH_STOPPED

Address offset: 0x188

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.7.10.10 PUBLISH_TXPTRUPD

Address offset: 0x194

Publish configuration for event TXPTRUPD

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXPTRUPD will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.7.10.11 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDFCB
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
BRWRXPTRUPD
Disabled0
Enabled1
CRWSTOPPED
Disabled0
Enabled1
FRWTXPTRUPD
Disabled0
Enabled1

6.7.10.12 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDFCB
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
BRWRXPTRUPD
Bit number313029282726252423222120191817161514131211109876543210
IDFCB
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Set1
Disabled0
Enabled1
CRWSTOPPED
Set1
Disabled0
Enabled1
FRWTXPTRUPD
Set1
Disabled0
Enabled1

6.7.10.13 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDFCB
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
BRWRXPTRUPD
Clear1
Disabled0
Enabled1
CRWSTOPPED
Clear1
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWTXPTRUPD
Clear1Write &#x27;1&#x27; to disable interrupt for event TXPTRUPD
Disabled0Read: Disabled
Enabled1Read: EnabledFCB

6.7.10.14 ENABLE

Address offset: 0x500

Enable I2S module.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled1

6.7.10.15 CONFIG.MODE

Address offset: 0x504

I2S mode.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMODE
Master0
Slave1

6.7.10.16 CONFIG.RXEN

Address offset: 0x508

Reception (RX) enable.

Bit number
IDA
Reset 0x00000000
IDR/WFieldValue IDValue
ARWRXEN
Disabled0
Enabled1

6.7.10.17 CONFIG.TXEN

Address offset: 0x50C

Transmission (TX) enable.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARWTXEN
Disabled0
Enabled1

6.7.10.18 CONFIG.MCKEN

Address offset: 0x510

Master clock generator enable.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
ARWMCKEN
Disabled0
Enabled1

6.7.10.19 CONFIG.MCKFREQ

Address offset: 0x514

Master clock generator frequency.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x2000000000100000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMCKFREQMaster clock generator frequency.
32MDIV80x2000000032 MHz / 8 = 4.0 MHz
32MDIV100x1800000032 MHz / 10 = 3.2 MHz
32MDIV110x1600000032 MHz / 11 = 2.9090909 MHz
32MDIV150x1100000032 MHz / 15 = 2.1333333 MHz
32MDIV160x1000000032 MHz / 16 = 2.0 MHz
32MDIV210x0C00000032 MHz / 21 = 1.5238095
32MDIV230x0B00000032 MHz / 23 = 1.3913043 MHz
32MDIV300x0880000032 MHz / 30 = 1.0666667 MHz
32MDIV310x0840000032 MHz / 31 = 1.0322581 MHz
32MDIV320x0800000032 MHz / 32 = 1.0 MHz
32MDIV420x0600000032 MHz / 42 = 0.7619048 MHz
32MDIV630x0410000032 MHz / 63 = 0.5079365 MHz
32MDIV1250x020C000032 MHz / 125 = 0.256 MHz

6.7.10.20 CONFIG.RATIO

Address offset: 0x518

MCK / LRCK ratio.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000006000000000000000000000000000000110
IDR/WFieldValue IDValueDescription
ARWRATIOMCK / LRCK ratio.
32X0LRCK = MCK / 32
48X1LRCK = MCK / 48
64X2LRCK = MCK / 64
96X3LRCK = MCK / 96
128X4LRCK = MCK / 128
192X5LRCK = MCK / 192
256X6LRCK = MCK / 256
384X7LRCK = MCK / 384
512X8LRCK = MCK / 512

6.7.10.21 CONFIG.SWIDTH

Address offset: 0x51C

Sample width.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARWSWIDTHSample width.
8Bit08 bit.
16Bit116 bit.
24Bit224 bit.

6.7.10.22 CONFIG.ALIGN

Address offset: 0x520

Alignment of sample within a frame.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWALIGNAlignment of sample within a frame.
Left0Left-aligned.
Right1Right-aligned.

6.7.10.23 CONFIG.FORMAT

Address offset: 0x524

Frame format.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWFORMAT
I2S0
Aligned1

6.7.10.24 CONFIG.CHANNELS

Address offset: 0x528

Enable channels.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHANNELS
Stereo0
Left1
Right2

6.7.10.25 RXD.PTR

Address offset: 0x538

Receive buffer RAM start address.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTRReceive buffer Data RAM start address. When receiving, words containing samples will be written to this address. This address is a word aligned Data RAM address.

6.7.10.26 TXD.PTR

Address offset: 0x540

Transmit buffer RAM start address.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValue
ARWPTR

6.7.10.27 RXTXD.MAXCNT

Address offset: 0x550

Size of RXD and TXD buffers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT

6.7.10.28 PSEL.MCK

Address offset: 0x560

Pin select for MCK signal.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.7.10.29 PSEL.SCK

Address offset: 0x564

Pin select for SCK signal.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.7.10.30 PSEL.LRCK

Address offset: 0x568

Pin select for LRCK signal.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.7.10.31 PSEL.SDIN

Address offset: 0x56C

Pin select for SDIN signal.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.7.10.32 PSEL.SDOUT

Address offset: 0x570

Pin select for SDOUT signal.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.7.11 Electrical specification

6.7.11.1 I2S timing specification

SymbolDescriptionMin.Typ.Max.Units
$t_{S\_SDIN}$ SDIN setup time before SCK rising20ns
$t_{H\_SDIN}$ SDIN hold time after SCK rising15ns
$t_{S\_SDOUT}$ SCK falling edge to SDOUT valid40ns
$t_{H\_SDOUT}$ SDOUT hold time after SCK falling6ns
$t_{SCK\_LRCK}$ SCLK falling to LRCK edge-505ns
$f_{MCK}$ MCK frequency4000kHz
$f_{LRCK}$ LRCK frequency48kHz
$f_{SCK}$ SCK frequency2000kHz
$DC_{CK}$ Clock duty cycle (MCK, LRCK, SCK)4555%


Figure 39: I2S timing diagram

6.8 KMU — Key management unit

The key management unit (KMU) enforces access policies to a subset region of user information configuration register (UICR). This subset region is used for storing cryptographic key values inside the key slots, which the CPU has no access to.

In total there are 128 key slots available, where each key slot can store one 128-bit key value together with an access policy and a destination address for the key value. Multiple key slots can be combined in order to support key sizes larger than 128 bits. The access policy of a key slot governs if and how a key value can be used, while the destination address determines where in the memory map the KMU pushes the key value upon a request from the CPU.

Key slots can be configured to be pushed directly into write-only key registers in cryptographic accelerators, like e.g. CryptoCell, without exposing the key value itself to the CPU. This enables the CPU to use the key values stored inside the key slots for cryptographic operations without being exposed to the key value.

Access to the KMU, and the key slots in the UICR, is only allowed from secure mode.

6.8.1 Functional view

From a functional view the UICR is divided into two different regions, one-time programmable (OTP) memory and key storage.


Figure 40: Memory map overview

OTP

One-time programmable (OTP) memory is typically used for holding values that are written once, and then never to be changed again throughout the product lifetime. The OTP region of UICR is emulated by placing a write-once per halfword limitation on registers defined here.

Key storage

The key storage region contains multiple key slots, where each slot consists of a key header and an associated key value. The key value is limited to 128 bits. Any key size greater than 128 bits must be divided and distributed over multiple key slot instances.

Key headers are allocated an address range of 0x400 in the UICR memory map, allowing a total of 128 keys to be addressable inside the key storage region.

Note: The use of the key storage region in UICR should be limited to keys with a certain life span, and not per-session derived keys where the CPU is involved in the key exchange.

6.8.2 Access control

Access control to the underlying UICR infopage in flash is enforced by a hardware finite-state machine (FSM). The FSM can allow or block transactions, depending both on the security of the transaction (secure or non-secure) and on the type of register being written and/or read.

Access typeKey headersKey values
ReadAllowedRestricted
WriteRestrictedRestricted

Table 23: Access control

Any restricted access requires an explicit key slot selection through the KMU register interface. Any illegal access to restricted key slot registers will be blocked and word 0xDEADDEAD will be returned on the AHB.

The OTP region has individual access control behavior, while access control to the key storage region is configured on a per key slot basis. The KMU FSM operates on only one key slot instance at a time, and the permissions and the usage restriction for a key value associated with a key slot can be configured individually.

Note: Even if the KMU can be configured as non-secure, all non-secure transactions will be blocked.

6.8.3 Protecting the UICR content

The UICR content can be protected against device-internal NVMC.ERASEALL requests, in addition to device-external ERASEALL requests, through the CTRL-AP interface. This feature is useful if the firmware designers want to prevent the OTP region from being erased.

Since enabling this step will permanently disable erase for the UICR, the procedure requires an implementation defined 32-bit word to be written into the UICR's ERASEPROTECT register.

In case of a field return handling, it is still possible to erase the UICR even if the ERASEPROTECT is set. If this functionality is desired, the secure boot code must implement a secure communication channel over the CTRL-AP mailbox interface. Upon successful authentication of the external party, the secure boot code can temporarily re-enable the CTRL-AP ERASEALL functionality.

6.8.4 Usage

This section describes the specific KMU and UICR behavior in more detail, to help the reader get a better overview of KMU's features and the intended usage.

6.8.4.1 OTP

The OTP region of the UICR contains a user-defined static configuration of the device. The KMU emulates the OTP functionality by placing a write-once per halfword limitation of registers defined in this region, i.e. only halfwords containing all '1's can be written.

An OTP write transaction must consist of a full 32-bit word. Both halfwords can either be written simultaneously or one at a time. The KMU FSM will block any write to a halfword in the OTP region, if the initial value of this halfword is not 0xFFFF. When writing halfwords one at a time, the non-active halfword must be masked as 0xFFFF, otherwise the request will be blocked. For example, writing 0x1234XXXX to an OTP destination address which already contains the value 0xFFFFAABB, must be configured as 0x1234FFFF. The OTP destination address will contain the value 0x1234AABB after both write transactions have been processed.

The KMU will also only allow secure AHB write transactions into the OTP region of the UICR. Any AHB write transaction to this region that does not satisfy the above requirements will be ignored, and the STATUS.BLOCKED register will be set to '1'.

6.8.4.2 Key storage

The key storage region of the UICR can contain multiple keys of different type, including symmetrical keys, hashes, public/private key pairs and other device secrets. One of the key features of the KMU, is that these device secrets can be installed and made available for use in cryptographic operations without revealing the actual secret values.

Keys in this region will typically have a certain life span. The region is not designed to be used for persession derived keys where the non-secure side (i.e. application) is participating in the key exchange.

All key storage is done through the concept of multiple key slots, where each key slot instance consists of one key header and an associated key value. Each key header supports the configuration of usage permissions and an optional secure destination address.

The key header secure destination address option enables the KMU to push the associated key value over a dedicated secure APB to a pre-configured secure location within the memory map. Such locations typically include a write-only key register of the hardware cryptographic accelerator, allowing the KMU to distribute keys within the system without compromising the key values.

One key slot instance can store a key value of maximum 128 bits. If a key size exceeds this limit, the key value itself must be split over multiple key slot instances.

The following usage and read permissions scheme is applicable for each key slot:

StatePushReadWriteDescription
Active (1)Enabled(1)Enabled(1)Enabled(1)Default flash erase value. Key slot cannot be pushed, write is enabled.
Active (1)Enabled(1)Enabled(1)Disabled(0)Key slot is active, push is enabled. Key slot VALUE registers can be read, but write is disabled.
Active (1)Enabled(1)Disabled(0)Disabled(0)Key slot is active, push is enabled. Read and write to key slot VALUE registers are disabled.
Active (1)Disabled(0)Enabled(1)Disabled(0)Key slot is active, push is disabled. Key slot VALUE registers can be read, but write is disabled.
Revoked---Key slot is revoked. Cannot be read or pushed over secure APB regardless of the permission settings.

Table 24: Valid key slot permission schemes

6.8.4.2.1 Selecting a key slot

The KMU FSM is designed to process only one key slot at a time, effectively operating as a memory protection unit for the key storage region. Whenever a key slot is selected, the KMU will allow access to writing, reading, and/or pushing the associated key value according to the selected slot configuration.

A key slot must be selected prior to use, by writing the key slot ID into the KMU SELECTKEYSLOT register. Because the reset value of this register is 0x00000000, there is no key slot associated with ID=0 and no slot is selected by default. All key slots are addressed using IDs from 1 to 128.

SELECTED status is set when a key slot is selected, and a read or write access to that keyslot occurs.

BLOCKED status is set when any illegal access to key slot registers is detected.

When the use of the particular key slot is stopped, the key slot selection in SELECTKEYSLOT must be set back to '0'.

By default, all KMU key slots will consist of a 128-bit key value of '1's, where the key headers have no secure destination address, or any usage and read restrictions.

6.8.4.2.2 Writing to a key slot

Writing a key slot into UICR is a five-step process.

  1. Select which key slot the KMU shall operate on by writing the desired key slot ID into KMU->SELECTKEYSLOT. The selected key slot must be empty in order to add a new entry to UICR.

  2. If the key value shall be pushable over secure APB, the destination address of the recipient must be configured in register KEYSLOT.CONFIG[ID-1].DEST.

  3. Write the 128-bit key value into KEYSLOT.KEY[ID-1].VALUE[0-3].

  4. Write the desired key slot permissions into KEYSLOT.CONFIG[ID-1].PERM, including any applicable usage restrictions.

  5. Select key slot 0.

In case the total key size is greater than 128 bits, the key value itself must be split into 128-bit segments and written to multiple key slot instances. Steps 1 through 5 above must be repeated for the entire key size.

Note: If a key slot is configured as readable, and KEYSLOT.CONFIG[ID-1].DEST is not to be used, it is recommended to disable the push bit in KEYSLOT.CONFIG[ID-1].PERM when configuring key slot permissions.

Note: A key value distributed over multiple key slots should use the same key slot configuration in its key headers, but the secure destination address for each key slot instance must be incremented by 4 words (128 bits) for each key slot instance spanned.

Note: Write to flash must be enabled in NVMC->CONFIG prior to writing keys to flash, and subsequently disabled once writing is complete.

Steps 1 through 5 above will be blocked if any of the following violations are detected:

• No key slot selected

• Non-empty key slot selected

• NVM destination address not empty

• AHB write to KEYSLOT.KEY[ID-1].VALUE[0-3] registers not belonging to selected key slot

6.8.4.2.3 Reading a key value

Key slots that are configured as readable can have their key value read directly from the UICR memory map by the CPU.

Readable keys are typically used during the secure boot sequence, where the CPU is involved in falsifying or verifying the integrity of the system. Since the CPU is involved in this decision process, it makes little sense not to trust the CPU having access to the actual key value but ultimately trust the decision of the integrity check. Another use-case for readable keys is if the key type in question does not have a HW peripheral in the platform that is able to accept such keys over secure APB.

Reading a key value from the UICR is a three-step process:

  1. Select the key slot which the KMU shall operate on by writing the desired key slot ID into KMU->SELECTKEYSLOT.

  2. If STATE and READ permission requirements are fulfilled as defined in KEYSLOT.CONFIG[ID-1].PERM, the key value can be read from region KEYSLOT.KEY[ID-1].VALUE[0-3] for selected key slot.

  3. Select key slot 0.

Step 2 will be blocked and word 0xDEADDEAD will be returned on AHB if any of the following violations are detected:

• No key slot selected

• Key slot not configured as readable

• Key slot is revoked

• AHB read to KEYSLOT.KEY[ID-1].VALUE[0-3] registers not belonging to selected key slot

6.8.4.2.4 Push over secure APB

Key slots that are configured as non-readable cannot be read by the CPU regardless of the mode the system is in and must be pushed over secure APB in order to use the key value for cryptographic operations.

The secure APB destination address is set in the key slot configuration DEST register. Such destination addresses are typically write-only key registers in a hardware cryptographic accelerators memory map. The secure APB allows key slots to be utilized by the software side, without exposing the key value itself.


Figure 41: Tasks and events pattern for key slots

Pushing a key slot over secure APB is a four-step process:

  1. Select the key slot on which the KMU shall operate by writing the desired key slot ID into KMU->SELECTKEYSLOT.

  2. Start TASKS_PUSH_KEYSLOT to initiate a secure APB transaction, writing the 128-bit key value associated with the selected key slot into address defined in KEYSLOT.CONFIG[ID-1].DEST.

  3. After completing the secure APB transaction, the 128-bit key value is ready for use by the periphera and EVENTS_KEYSLOT_PUSHED is triggered.

  4. Select key slot 0.

Note: If a key value is distributed over multiple key slots due to its key size, exceeding the maximum 128-bit key value limitation, then each distributed key slot must be pushed individually in order to transfer the entire key value over secure APB.

Step 3 will trigger other events than EVENTS_KEYSLOT_PUSHED if the following violations are detected:

• EVENTS_KEYSLOT_ERROR:

• If no key slot is selected

• If a key slot has no destination address configured

• If when pushing a key slot, flash, or peripheral returns an error

• If pushing a key slot when push permissions are disabled

• If attempting to push a key slot with default permissions

• EVENTS_KEYSLOT_REVOKED if a key slot is marked as revoked in its key header configuration

6.8.4.2.5 Revoking the key slots

All key slots within the key storage area can be marked as revoked.

To revoke any key slots, write to the STATE field in the KEYSLOT.CONFIG[ID-1].PERM register. The following rules apply to keys that have been revoked:

  1. Key slots that have the PUSH field enabled in PERM register can no longer be pushed. If a revoked key slot is selected and task TASKS_PUSH_KEYSLOT is started, the event EVENTS_KEYSLOT_REVOKED is triggered.

  2. Key slots that have the READ field enabled in PERM register can no longer be read. Any read operation to a revoked key value will return word 0xDEADDEAD.

  3. Previously pushed key values stored in a peripheral write-only key register are not affected by key revocation. If secure code wants to enforce that a revoked key is no longer usable by a peripheral for cryptographic operations, the secure code should disable or reset the peripheral in question.

6.8.4.3 STATUS register

The KMU uses a STATUS register to indicate its status of operation. The SELECTED bit will be asserted whenever the currently selected key slot is successfully read from or written to.

All read or write operations to other key slots than what is currently selected in KMU->SELECTKEYSLOT will assert the BLOCKED bit. The BLOCKED bit will also be asserted if the KMU fails to select a key slot, or if a request has been blocked due to an access violation. Normal operation using the KMU should never trigger the BLOCKED bit. If this bit is triggered during the development phase, it indicates that the code is using the KMU incorrectly.

The STATUS register is reset every time register SELECTKEYSLOT is written.

6.8.5 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
KMU : S0x50039000HFNSNAYesKey management unit
KMU : NS0x40039000

Register overview

RegisterOffsetTZDescription
TASKS_PUSH_KEYSLOT0x0000Push a key slot over secure APB
EVENTS_KEYSLOT_PUSHED0x100Key slot successfully pushed over secure APB
EVENTS_KEYSLOT_REVOKED0x104Key slot has been revoked and cannot be tasked for selection
EVENTS_KEYSLOT_ERROR0x108No key slot selected, no destination address defined, or error during push operation
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
STATUS0x40CStatus bits for KMU operation
SELECTKEYSLOT0x500Select key slot to be read over AHB or pushed over secure APB when TASKS_PUSH_KEYSLOT is started

6.8.5.1 TASKS_PUSH_KEYSLOT

Address offset: 0x0000

Push a key slot over secure APB

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_PUSH_KEYSLOTPush a key slot over secure APB
Trigger1Trigger task

6.8.5.2 EVENTS_KEYSLOT_PUSHED

Address offset: 0x100

Key slot successfully pushed over secure APB

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_KEYSLOT_PUSHED
Event not generated
Event generated

6.8.5.3 EVENTS_KEYSLOT_REVOKED

Address offset: 0x104

Key slot has been revoked and cannot be tasked for selection

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_KEYSLOT_REVOKEDKey slot has been revoked and cannot be tasked for selection
NotGeneratedEvent not generated
GeneratedEvent generated

6.8.5.4 EVENTS_KEYSLOT_ERROR

Address offset: 0x108

No key slot selected, no destination address defined, or error during push operation

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_KEYSLOT_ERRORNo key slot selected, no destination address defined, or error during push operation
NotGeneratedEvent not generated
GeneratedEvent generated

6.8.5.5 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWKEYSLOT_PUSHED
Disabled0
Enabled1
BRWKEYSLOT_REVOKED
Disabled0
Enabled1
CRWKEYSLOT_ERROR
Disabled0
Enabled1

6.8.5.6 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWKEYSLOT_PUSHED
Set1
Disabled0
Enabled1
BRWKEYSLOT_REVOKED
Set1
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWKEYSLOT_ERROR
Set1Write &#x27;1&#x27; to enable interrupt for event KEYSLOT_ERROR
Disabled0Read: Disabled
Enabled1Read: Enabled

6.8.5.7 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWKEYSLOT_PUSHED
Clear1
IDR/WFieldValue IDValueDescription
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWKEYSLOT_REVOKEDWrite '1' to disable interrupt for event KEYSLOT_REVOKED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWKEYSLOT_ERRORWrite '1' to disable interrupt for event KEYSLOT_ERROR
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.8.5.8 INTPEND

Address offset: 0x30C Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARKEYSLOT_PUSHED
NotPending0
Pending1
BRKEYSLOT_REVOKED
NotPending0
Pending1Read: Pending
CRKEYSLOT_ERROR
NotPending0Read: Pending
Pending1Read: Pending

6.8.5.9 STATUS

Address offset: 0x40C

Status bits for KMU operation

This register is reset and re-written by the KMU whenever SELECTKEYSLOT is written

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSELECTED
Disabled0
Enabled1
BRBLOCKED
Disabled0
Enabled1

6.8.5.10 SELECTKEYSLOT

Address offset: 0x500

Select key slot to be read over AHB or pushed over secure APB when TASKS_PUSH_KEYSLOT is started

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWID

6.9 PDM — Pulse density modulation interface

The pulse density modulation (PDM) module enables input of pulse density modulated signals from external audio frontends, for example, digital microphones. The PDM module generates the PDM clock and supports single-channel or dual-channel (left and right) data input. Data is transferred directly to RAM buffers using EasyDMA.

Listed here are the main features for PDM:

• Up to two PDM microphones configured as a left/right pair using the same data input

• 16 kHz output sample rate, 16-bit samples

• EasyDMA support for sample buffering

• HW decimation filters

• Selectable ratio of 64 or 80 between PDM_CLK and output sample rate

The PDM module illustrated below is interfacing up to two digital microphones with the PDM interface. EasyDMA is implemented to relieve the real-time requirements associated with controlling of the PDM slave from a low priority CPU execution context. It also includes all the necessary digital filter elements to produce pulse code modulation (PCM) samples. The PDM module allows continuous audio streaming.


Figure 42: PDM module

6.9.1 Master clock generator

The master clock generator's PDMCLKCTRL register allows adjusting the PDM clock's frequency.

The master clock generator does not add any jitter to the HFCLK source chosen. It is recommended (but not mandatory) to use the Xtal as HFCLK source.

6.9.2 Module operation

By default, bits from the left PDM microphone are sampled on PDM_CLK falling edge, and bits for the right are sampled on the rising edge of PDM_CLK, resulting in two bitstreams. Each bitstream is fed into a digital filter which converts the PDM stream into 16-bit PCM samples, then filters and down-samples them to reach the appropriate sample rate.

The EDGE field in the MODE register allows swapping left and right, so that left will be sampled on rising edge, and right on falling.

The PDM module uses EasyDMA to store the samples coming out from the filters into one buffer in RAM. Depending on the mode chosen in the OPERATION field in the MODE register, memory either contains alternating left and right 16-bit samples (Stereo), or only left 16-bit samples (Mono). To ensure continuous PDM sampling, it is up to the application to update the EasyDMA destination address pointer as the previous buffer is filled.

The continuous transfer can be started or stopped by sending the START and STOP tasks. STOP becomes effective after the current frame has finished transferring, which will generate the STOPPED event. The STOPPED event indicates that all activity in the module is finished, and that the data is available in RAM (EasyDMA has finished transferring as well). Attempting to restart before receiving the STOPPED event may result in unpredictable behavior.

6.9.3 Decimation filter

In order to convert the incoming data stream into PCM audio samples, a decimation filter is included in the PDM interface module.

The input of the filter is the two-channel PDM serial stream (with left channel on clock high, right channel on clock low). Depending on the RATIO selected, its output is 2 × 16-bit PCM samples at a sample rate either 64 times or 80 times (depending on the RATIO register) lower than the PDM clock rate.

The filter stage of each channel is followed by a digital volume control, to attenuate or amplify the output samples in a range of -20 dB to +20 dB around the default (reset) setting, defined by $\mathsf { G } _ { \mathsf { P D M } , \mathsf { d e f a u l t } }$ . The gain is controlled by the GAINL and GAINR registers.

As an example, if the goal is to achieve 2500 RMS output samples (16-bit) with a 1 kHz 90 dBA signal into a -26 dBFS sensitivity PDM microphone, do the following:

• Sum the PDM module's default gain $( \mathsf { G } _ { \mathsf { P D M } , \mathsf { d e f a u l t } } )$ and the gain introduced by the microphone and acoustic path of his implementation (an attenuation would translate into a negative gain)

• Adjust GAINL and GAINR by the above summed amount. Assuming that only the PDM module influences the gain, GAINL and GAINR must be set to $- G _ { \mathsf { P D M } , \mathsf { d e f a u l t } }$ dB to achieve the requirement.

With $\mathsf { G } _ { \mathsf { P D M , d e f a u l t } } = 3 . 2 ~ \mathsf { d B } ,$ , and as GAINL and GAINR are expressed in 0.5 dB steps, the closest value to program would be 3.0 dB, which can be calculated as:

GAINL = GAINR = (DefaultGain - (2 * 3))

Remember to check that the resulting values programmed into GAINL and GAINR fall within MinGain and MaxGain.

6.9.4 EasyDMA

Samples will be written directly to RAM, and EasyDMA must be configured accordingly.

The address pointer for the EasyDMA channel is set in SAMPLE.PTR register. If the destination address set in SAMPLE.PTR is not pointing to the Data RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory on page 21 for more information about the different memory regions.

DMA supports Stereo (Left+Right 16-bit samples) and Mono (Left only) data transfer, depending on the setting in the OPERATION field in the MODE register. The samples are stored little endian.

MODE.OPERATIONBits per sampleResult stored per RAM wordPhysical RAM allocated (32-bit words)Result boundary indexes in RAMNote
Stereo32 (2x16)L+Rceil(SAMPLE.MAXCNT/2)R0=[31:16]; L0=[15:0]Default
Mono162xLceil(SAMPLE.MAXCNT/2)L1=[31:16]; L0=[15:0]

Table 25: DMA sample storage

The destination buffer in RAM consists of one block, the size of which is set in SAMPLE.MAXCNT register. Format is number of 16-bit samples. The physical RAM allocated is always:

(RAM allocation, in bytes) = SAMPLE.MAXCNT * 2;

(but the mapping of the samples depends on MODE.OPERATION).

If OPERATION=Stereo, RAM will contain a succession of left and right samples.

If OPERATION=Mono, RAM will contain a succession of left only samples.

For a given value of SAMPLE.MAXCNT, the buffer in RAM can contain half the stereo sampling time as compared to the mono sampling time.

The PDM acquisition can be started by the START task, after the SAMPLE.PTR and SAMPLE.MAXCNT registers have been written. When starting the module, it will take some time for the filters to start outputting valid data. Transients from the PDM microphone itself may also occur. The first few samples (typically around 50) might hence contain invalid values or transients. It is therefore advised to discard the first few samples after a PDM start.

As soon as the STARTED event is received, the firmware can write the next SAMPLE.PTR value (this register is double-buffered), to ensure continuous operation.

When the buffer in RAM is filled with samples, an END event is triggered. The firmware can start processing the data in the buffer. Meanwhile, the PDM module starts acquiring data into the new buffer pointed to by SAMPLE.PTR, and sends a new STARTED event, so that the firmware can update SAMPLE.PTR to the next buffer address.

6.9.5 Hardware example

PDM can be configured with a single microphone (mono), or with two microphones.

When a single microphone is used, connect the microphone clock to CLK, and data to DIN.

Figure 43: Example of a single PDM microphone, wired as left


Figure 44: Example of a single PDM microphone, wired as right

Note that in a single-microphone (mono) configuration, depending on the microphone’s implementation, either the left or the right channel (sampled at falling or rising CLK edge respectively) will contain reliable data.

If two microphones are used, one of them must be set as left, the other as right (L/R pin tied high or to GND on the respective microphone). It is strongly recommended to use two microphones of exactly the same brand and type so that their timings in left and right operation match.


Figure 45: Example of two PDM microphones

6.9.6 Pin configuration

The CLK and DIN signals associated to the PDM module are mapped to physical pins according to the configuration specified in the PSEL.CLK and PSEL.DIN registers respectively. If the CONNECT field in any PSEL register is set to Disconnected, the associated PDM module signal will not be connected to the required physical pins and will not operate properly.

The PSEL.CLK and PSEL.DIN registers and their configurations are only used as long as the PDM module is enabled, and retained only as long as the device is in System ON mode. See POWER — Power control on page 68 for more information about power modes. When the peripheral is disabled, the pins will behave as regular GPIOs, and use the configuration in their respective OUT bit field and PIN_CNF[n] register.

To ensure correct behavior in the PDM module, the pins used by the PDM module must be configured in the GPIO peripheral as described in GPIO configuration before enabling peripheral on page 218 before enabling the PDM module. This is to ensure that the pins used by the PDM module are driven correctly if the PDM module itself is temporarily disabled or the device temporarily enters System OFF. This configuration must be retained in the GPIO for the selected I/Os as long as the PDM module is supposed to be connected to an external PDM circuit.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

PDM signalPDM pinDirectionOutput valueComment
CLKAs specified in PSEL.CLKOutput0
DINAs specified in PSEL.DINInputNot applicable

Table 26: GPIO configuration before enabling peripheral

6.9.7 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
PDM : S0x50026000USNSSANoPulse density modulation (digital microphone) interface
PDM : NS0x40026000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Starts continuous PDM transfer
TASKS_STOP0x004Stops PDM transfer
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
EVENTS_STARTED0x100PDM transfer has started
EVENTS_STOPPED0x104PDM transfer has finished
EVENTS_END0x108The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM
PUBLISH_STARTED0x180Publish configuration for event STARTED
PUBLISH_STOPPED0x184Publish configuration for event STOPPED
PUBLISH_END0x188Publish configuration for event END
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ENABLE0x500PDM module enable register
PDMCLKCTRL0x504PDM clock generator control
MODE0x508Defines the routing of the connected PDM microphones&#x27; signals
GAINL0x518Left output gain adjustment
GAINR0x51CRight output gain adjustment
RATIO0x520Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly.
PSEL.CLK0x540Pin number configuration for PDM CLK signal
PSEL.DIN0x544Pin number configuration for PDM DIN signal
SAMPLE.PTR0x560RAM address pointer to write samples to with EasyDMA
SAMPLE.MAXCNT0x564Number of samples to allocate memory for in EasyDMA mode

6.9.7.1 TASKS_START

Address offset: 0x000

Starts continuous PDM transfer

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_START
Trigger1

6.9.7.2 TASKS_STOP

Address offset: 0x004

Stops PDM transfer

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_STOP
Trigger1

6.9.7.3 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.9.7.4 SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.9.7.5 EVENTS_STARTED

Address offset: 0x100

PDM transfer has started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STARTED
NotGenerated0
Generated1

6.9.7.6 EVENTS_STOPPED

Address offset: 0x104

PDM transfer has finished

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_STOPPEDPDM transfer has finished
NotGenerated0Event not generated
Generated1Event generated

6.9.7.7 EVENTS_END

Address offset: 0x108

The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_END
NotGenerated0
Generated1

6.9.7.8 PUBLISH_STARTED

Address offset: 0x180

Publish configuration for event STARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.9.7.9 PUBLISH_STOPPED

Address offset: 0x184

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event STOPPED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.9.7.10 PUBLISH_END

Address offset: 0x188

Publish configuration for event END

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.9.7.11 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTARTED
Disabled0
Enabled1
BRWSTOPPED
Disabled0
Enabled1
CRWEND
Disabled0
Enabled1

6.9.7.12 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTARTED
Set1
Disabled0
Enabled1
BRWSTOPPED
Set1
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWEND
Set1Write &#x27;1&#x27; to enable interrupt for event STOPPED
Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Disabled0
Enabled1

6.9.7.13 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTARTED
Clear1
Disabled0
Enabled1
BRWSTOPPED
Clear1
Disabled0
Enabled1
CRWEND
Clear1
Disabled0
Enabled1

6.9.7.14 ENABLE

Address offset: 0x500

PDM module enable register

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled1

6.9.7.15 PDMCLKCTRL

Address offset: 0x504

PDM clock generator control

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0840000000001000010000000000000000000000
IDR/WFieldValue IDValue
ARWFREQ
1000K0x08000000
Default0x08400000
1067K0x08800000
1231K0x09800000
1280K0x0A000000
1333K0x0A800000

6.9.7.16 MODE

Address offset: 0x508

Defines the routing of the connected PDM microphones' signals

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOPERATION
Stereo0
Mono1
BRWEDGE
LeftFalling0
LeftRising1

6.9.7.17 GAINL

Address offset: 0x518

Left output gain adjustment

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x00000028000000000000000000000000000101000
IDR/WFieldValue IDValue
ARWGAINL
Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters)
0x00 -20 dB gain adjust
0x01 -19.5 dB gain adjust
(...)
0x27 -0.5 dB gain adjust
0x28 0 dB gain adjust
0x29 +0.5 dB gain adjust
(...)
0x4F +19.5 dB gain adjust
0x50 +20 dB gain adjust
MinGain0x00-20 dB gain adjustment (minimum)
DefaultGain0x280 dB gain adjustment
MaxGain0x50+20 dB gain adjustment (maximum)

6.9.7.18 GAINR

Address offset: 0x51C

Right output gain adjustment

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x00000028000000000000000000000000000101000
IDR/WFieldValue IDValue
ARWGAINR
MinGain
DefaultGain
MaxGain

6.9.7.19 RATIO

Address offset: 0x520

Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWRATIO
Ratio640
Ratio801

6.9.7.20 PSEL.CLK

Address offset: 0x540

Pin number configuration for PDM CLK signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.9.7.21 PSEL.DIN

Address offset: 0x544

Pin number configuration for PDM DIN signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.9.7.22 SAMPLE.PTR

Address offset: 0x560

RAM address pointer to write samples to with EasyDMA

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSAMPLEPTR

Note: See the memory chapter for details about which memories are available for EasyDMA.

6.9.7.23 SAMPLE.MAXCNT

Address offset: 0x564

Number of samples to allocate memory for in EasyDMA mode

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWBUFFSIZE[0..32767]

6.9.8 Electrical specification

6.9.8.1 PDM Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
$f_{PDM,CLK,64}$ PDM clock speed. PDMCLKCTRL = Default (Setting needed for 16 MHz sample frequency @ RATIO = Ratio64)1.032MHz
$f_{PDM,CLK,80}$ PDM clock speed. PDMCLKCTRL = 1280K (Setting needed for 16 MHz sample frequency @ RATIO = Ratio80)1.28MHz
$t_{PDM,JITTER}$ Jitter in PDM clock output20ns
$T_{dPDM,CLK}$ PDM clock duty cycle405060%
$t_{PDM,DATA}$ Decimation filter delay5ms
$t_{PDM,cv}$ Allowed clock edge to data valid125ns
$t_{PDM,ci}$ Allowed (other) clock edge to data invalid0ns
$t_{PDM,s}$ Data setup time at $f_{PDM,CLK}=1.024$ MHz or 1.280 MHz65ns
$t_{PDM,h}$ Data hold time at $f_{PDM,CLK}=1.024$ MHz or 1.280 MHz0ns
$G_{PDM,default}$ Default (reset) absolute gain of the PDM module3.2dB


Figure 46: PDM timing diagram

6.10 PWM — Pulse width modulation

The pulse width modulation (PWM) module enables the generation of pulse width modulated signals on GPIO. The module implements an up or up-and-down counter with four PWM channels that drive assigned GPIOs.

The following are the main features of a PWM module:

• Programmable PWM frequency

• Up to four PWM channels with individual polarity and duty cycle values

• Edge or center-aligned pulses across PWM channels

• Multiple duty cycle arrays (sequences) defined in RAM

• Autonomous and glitch-free update of duty cycle values directly from memory through EasyDMA (no CPU involvement)

• Change of polarity, duty cycle, and base frequency possibly on every PWM period

• RAM sequences can be repeated or connected into loops


Figure 47: PWM module

6.10.1 Wave counter

The wave counter is responsible for generating the pulses, at a duty cycle that depends on the compare values and at a frequency that depends on COUNTERTOP.

There is one common 15-bit counter with four compare channels. Thus, all four channels will share the same period (PWM frequency) but can have individual duty cycle and polarity. The polarity is set by the most significant bit (MSB) of the value read from RAM (see figure Decoder memory access modes on page 231). When the MSB bit is high (FallingEdge polarity), OUT[n] starts high to become low during the given PWM cycle, whereas the inverse occurs for RisingEdge polarity. Whether the counter counts up, or up and down, is controlled by the MODE register.

The timer top value is controlled by the COUNTERTOP register. This register value, in conjunction with the selected PRESCALER of the PWM_CLK, will result in a given PWM period. A COUNTERTOP value smaller than the compare setting will result in a state where no PWM edges are generated. OUT[n] is held high, given that the polarity is set to FallingEdge. All compare registers are internal and can only be configured through decoder presented later. COUNTERTOP can be safely written at any time.

Sampling follows the START task. If DECODER.LOAD=WaveForm, the register value is ignored and taken from RAM instead (see section Decoder with EasyDMA on page 231 for more details). If DECODER.LOAD is anything else than the WaveForm, it is sampled following a STARTSEQ[n] task and when loading a new value from RAM during a sequence playback.

The following figure shows the counter operating in up mode (MODE=PWM_MODE_Up), with two PWM channels with the same frequency but different duty cycle:


Figure 48: PWM counter in up mode example - RisingEdge polarity

The counter is automatically reset to zero when COUNTERTOP is reached and OUT[n] will invert. OUT[n] is held low if the compare value is 0 and held high if set to COUNTERTOP, given that the polarity is set to FallingEdge. Counter running in up mode results in pulse widths that are edge-aligned. The following is the code for the counter in up mode example:

uint16_t pwm_seq[4] = {PWM_CH0_DUTY, PWM_CH1_DUTY, PWM_CH2_DUTY, PWM_CH3_DUTY};
NRF_PWM0->PSEL.OUT[0] = (first_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->PSEL.OUT[1] = (second_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
NRF_PWM0->MODE = (PWM_MODE_UPDOWN_Up << PWM_MODE_UPDOWN_Pos);
NRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);
NRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); //1 msec
NRF_PWM0->LOOP = (PWM_LOOP_CNT_Disabled << PWM_LOOP_CNT_Pos);
NRF_PWM0->DECODER = (PWM_DECODER_LOAD_Individual << PWM_DECODER_LOAD_Pos) |
(PWM_DECODER_MODE_RefreshCount << PWM_DECODER_MODE_Pos);
NRF_PWM0->SEQ[0].PTR = ((uint32_t)(pwm_seq) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[0].CNT = ((sizeof(pwm_seq) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[0].REFRESH = 0;
NRF_PWM0->SEQ[0].ENDDDELAY = 0;
NRF_PWM0->TASKS_SEQSTART[0] = 1;

When the counter is running in up mode, the following formula can be used to compute the PWM period and the step size:

PWM period: TPWM(Up)= TPWM_CLK * COUNTERTOP

Step width/Resolution: $\mathrm { \Delta T _ { s t e p s } = \Delta T _ { P W M _ C L K } }$

The following figure shows the counter operating in up-and-down mode (MODE=PWM_MODE_UpAndDown), with two PWM channels with the same frequency but different duty cycle and output polarity:


Figure 49: PWM counter in up-and-down mode example

The counter starts decrementing to zero when COUNTERTOP is reached and will invert the OUT[n] when compare value is hit for the second time. This results in a set of pulses that are center-aligned. The following is the code for the counter in up-and-down mode example:

uint16_t pwm_seq[4] = {PWM_CH0_DUTY, PWM_CH1_DUTY, PWM_CH2_DUTY, PWM_CH3_DUTY};
NRF_PWM0->PSEL.OUT[0] = (first_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->PSEL.OUT[1] = (second_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
NRF_PWM0->MODE = (PWM_MODE_UPDOWN_UpAndDown << PWM_MODE_UPDOWN_Pos);
NRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);
NRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); //1 msec
NRF_PWM0->LOOP = (PWM_LOOP_CNT_Disabled << PWM_LOOP_CNT_Pos);
NRF_PWM0->DECODER = (PWM_DECODER_LOAD_Individual << PWM_DECODER_LOAD_Pos) |
(PWM_DECODER_MODE_RefreshCount << PWM_DECODER_MODE_Pos);
NRF_PWM0->SEQ[0].PTR = ((uint32_t)(pwm_seq) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[0].CNT = ((sizeof(pwm_seq) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[0].REFRESH = 0;
NRF_PWM0->SEQ[0].ENDDDELAY = 0;
NRF_PWM0->TASKS_SEQSTART[0] = 1;

When the counter is running in up-and-down mode, the following formula can be used to compute the PWM period and the step size:

<div class="mineru-algorithm" style="white-space: pre-wrap; font-family:monospace;"> $T_{PWM(Up And Down)} = T_{PWM\_CLK} * 2 * COUNTERTOP$ </div>

Step width/Resolution: Tsteps = TPWM_CLK * 2

6.10.2 Decoder with EasyDMA

The decoder uses EasyDMA to take PWM parameters stored in RAM and update the internal compare registers of the wave counter, based on the mode of operation.

PWM parameters are organized into a sequence containing at least one half word (16 bit). Its most significant bit[15] denotes the polarity of the OUT[n] while bit[14:0] is the 15-bit compare value.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Id
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IdRWFieldValue IdValueDescription
ARWCOMPAREDuty cycle setting - value loaded to internal compare register
BRWPOLARITYEdge polarity of GPIO.
RisingEdge0First edge within the PWM period is rising
FallingEdge1First edge within the PWM period is falling

The DECODER register controls how the RAM content is interpreted and loaded into the internal compare registers. The LOAD field controls if the RAM values are loaded to all compare channels, or to update a group or all channels with individual values. The following figure illustrates how parameters stored in RAM are organized and routed to various compare channels in different modes:


Figure 50: Decoder memory access modes

A special mode of operation is available when DECODER.LOAD is set to WaveForm. In this mode, up to three PWM channels can be enabled - OUT[0] to OUT[2]. In RAM, four values are loaded at a time: the first, second and third location are used to load the values, and the fourth RAM location is used to load the COUNTERTOP register. This way one can have up to three PWM channels with a frequency base that changes on a per PWM period basis. This mode of operation is useful for arbitrary wave form generation in applications, such as LED lighting.

The register SEQ[n].REFRESH=N (one per sequence n=0 or 1) will instruct a new RAM stored pulse width value on every (N+1)th PWM period. Setting the register to zero will result in a new duty cycle update every PWM period, as long as the minimum PWM period is observed.

Note that registers SEQ[n].REFRESH and SEQ[n].ENDDELAY are ignored when DECODER.MODE=NextStep. The next value is loaded upon every received NEXTSTEP task.

SEQ[n].PTR is the pointer used to fetch COMPARE values from RAM. If the SEQ[n].PTR is not pointing to a RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory on page 21 for more information about the different memory regions. After the SEQ[n].PTR is set to the desired RAM location, the SEQ[n].CNT register must be set to the number of 16-bit half words in the sequence. It is important to observe that the Grouped mode requires one half word per group, while the Single mode requires one half word per channel, thus increasing the RAM size occupation. If PWM generation is not running when the SEQSTART[n] task is triggered, the task will load the first value from RAM and then start the PWM generation. A SEQSTARTED[n] event is generated as soon as the EasyDMA has read the first PWM parameter from RAM and the wave counter has started executing it. When LOOP.CNT=0, sequence n=0 or 1 is played back once. After the last value in the sequence has been loaded and started executing, a SEQEND[n] event is generated. The PWM generation will then continue with the last loaded value. The following figure illustrates an example of a simple playback.


Figure 51: Simple sequence example

The following source code is used for configuration and timing details in a sequence where only sequence 0 is used and only run once with a new PWM duty cycle for each period.

NRF_PWM0->PSEL.OUT[0] = (first_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
NRF_PWM0->MODE = (PWM_MODE_UPDOWN_Up << PWM_MODE_UPDOWN_Pos);
NRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);
NRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); //1 msec
NRF_PWM0->LOOP = (PWM_LOOP_CNT_Disabled << PWM_LOOP_CNT_Pos);
NRF_PWM0->DECODER = (PWM_DECODER_LOAD_Common << PWM_DECODER_LOAD_Pos) |
(PWM_DECODER_MODE_RefreshCount << PWM_DECODER_MODE_Pos);
NRF_PWM0->SEQ[0].PTR = ((uint32_t)(seq0_ram) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[0].CNT = ((sizeof(seq0_ram) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[0].REFRESH = 0;
NRF_PWM0->SEQ[0].ENDDDELAY = 0;
NRF_PWM0->TASKS_SEQSTART[0] = 1;

To completely stop the PWM generation and force the associated pins to a defined state, a STOP task can be triggered at any time. A STOPPED event is generated when the PWM generation has stopped at the end of the currently running PWM period, and the pins go into their idle state as defined in GPIO OUT register. PWM generation can then only be restarted through a SEQSTART[n] task. SEQSTART[n] will resume PWM generation after having loaded the first value from the RAM buffer defined in the SEQ[n].PTR register.

The following table indicates when specific registers get sampled by the hardware. Care should be taken when updating these registers to avoid that values are applied earlier than expected.

RegisterTaken into account by hardwareRecommended (safe) update
SEQ[n].PTRWhen sending the SEQSTART[n] taskAfter having received the SEQSTARTED[n] event
SEQ[n].CNTWhen sending the SEQSTART[n] taskAfter having received the SEQSTARTED[n] event
SEQ[0].ENDDELAYWhen sending the SEQSTART[0] taskEvery time a new value from sequence [0] has been loaded from RAM and gets applied to the Wave Counter (indicated by the PWMPERIODEND event)Before starting sequence [0] through a SEQSTART[0] taskWhen no more value from sequence [0] gets loaded from RAM (indicated by the SEQEND[0] event)At any time during sequence [1] (which starts when the SEQSTARTED[1] event is generated)
SEQ[1].ENDDELAYWhen sending the SEQSTART[1] taskEvery time a new value from sequence [1] has been loaded from RAM and gets applied to the Wave Counter (indicated by the PWMPERIODEND event)Before starting sequence [1] through a SEQSTART[1] taskWhen no more value from sequence [1] gets loaded from RAM (indicated by the SEQEND[1] event)At any time during sequence [0] (which starts when the SEQSTARTED[0] event is generated)
SEQ[0].REFRESHWhen sending the SEQSTART[0] taskEvery time a new value from sequence [0] has been loaded from RAM and gets applied to the Wave Counter (indicated by the PWMPERIODEND event)Before starting sequence [0] through a SEQSTART[0] taskAt any time during sequence [1] (which starts when the SEQSTARTED[1] event is generated)
SEQ[1].REFRESHWhen sending the SEQSTART[1] taskEvery time a new value from sequence [1] has been loaded from RAM and gets applied to the Wave Counter (indicated by the PWMPERIODEND event)Before starting sequence [1] through a SEQSTART[1] taskAt any time during sequence [0] (which starts when the SEQSTARTED[0] event is generated)
COUNTERTOPIn DECODER.LOAD=WaveForm: this register is ignored.In all other LOAD modes: at the end of current PWM period (indicated by the PWMPERIODEND event)Before starting PWM generation through a SEQSTART[n] taskAfter a STOP task has been triggered, and the STOPPED event has been received.
MODEImmediatelyBefore starting PWM generation through a SEQSTART[n] taskAfter a STOP task has been triggered, and the STOPPED event has been received.
DECODERImmediatelyBefore starting PWM generation through a SEQSTART[n] taskAfter a STOP task has been triggered, and the STOPPED event has been received.
PRESCALERImmediatelyBefore starting PWM generation through a SEQSTART[n] taskAfter a STOP task has been triggered, and the STOPPED event has been received.
LOOPImmediatelyBefore starting PWM generation through a SEQSTART[n] taskAfter a STOP task has been triggered, and the STOPPED event has been received.
PSEL.OUT[n]ImmediatelyBefore enabling the PWM instance through the ENABLE register

Table 27: When to safely update PWM registers

Note: SEQ[n].REFRESH and SEQ[n].ENDDELAY are ignored at the end of a complex sequence, indicated by a LOOPSDONE event. The reason for this is that the last value loaded from RAM is maintained until further action from software (restarting a new sequence or stopping PWM generation).

The following figure shows a more complex example using the register LOOP on page 249.

SEQ[0].CNT=2, SEQ[1].CNT=3, SEQ[0].REFRESH=1, SEQ[1].REFRESH=0, SEQ[0].ENDDELAY=1, SEQ[1].ENDDELAY=0, LOOP.CNT=


Figure 52: Example using two sequences

In this case, an automated playback takes place, consisting of SEQ[0], delay 0, SEQ[1], delay 1, then again SEQ[0], etc. The user can choose to start a complex playback with SEQ[0] or SEQ[1] through sending the SEQSTART[0] or SEQSTART[1] task. The complex playback always ends with delay 1.

The two sequences 0 and 1 are defined by the addresses of value tables in RAM (pointed to by SEQ[n].PTR) and the buffer size (SEQ[n].CNT). The rate at which a new value is loaded is defined individually for each sequence by SEQ[n].REFRESH. The chaining of sequence 1 following the sequence 0 is implicit, the LOOP.CNT register allows the chaining of sequence 1 to sequence 0 for a determined number of times. In other words, it allows to repeat a complex sequence a number of times in a fully automated way.

In the following code example, sequence 0 is defined with SEQ[0].REFRESH set to 1, meaning that a new PWM duty cycle is pushed every second PWM period. This complex sequence is started with the SEQSTART[0] task, so SEQ[0] is played first. Since SEQ[0].ENDDELAY=1 there will be one PWM period delay between last period on sequence 0 and the first period on sequence 1. Since SEQ[1].ENDDELAY=0 there is no delay 1, so SEQ[0] would be started immediately after the end of SEQ[1]. However, as LOOP.CNT is

1, the playback stops after having played SEQ[1] only once, and both SEQEND[1] and LOOPSDONE are generated (their order is not guaranteed in this case).

NRF_PWM0->PSEL.OUT[0] = (first_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
NRF_PWM0->MODE = (PWM_MODE_UPDOWN_Up << PWM_MODE_UPDOWN_Pos);
NRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);
NRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); //1 msec
NRF_PWM0->LOOP = (1 << PWM_LOOP_CNT_Pos);
NRF_PWM0->DECODER = (PWM_DECODER_LOAD_Common << PWM_DECODER_LOAD_Pos) |
(PWM_DECODER_MODE_RefreshCount << PWM_DECODER_MODE_Pos);
NRF_PWM0->SEQ[0].PTR = ((uint32_t)(seq0_ram) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[0].CNT = ((sizeof(seq0_ram) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[0].REFRESH = 1;
NRF_PWM0->SEQ[0].ENDDDELAY = 1;
NRF_PWM0->SEQ[1].PTR = ((uint32_t)(seq1_ram) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[1].CNT = ((sizeof(seq1_ram) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[1].REFRESH = 0;
NRF_PWM0->SEQ[1].ENDDDELAY = 0;
NRF_PWM0->TASKS_SEQSTART[0] = 1;

The decoder can also be configured to asynchronously load new PWM duty cycle. If the DECODER.MODE register is set to NextStep, then the NEXTSTEP task will cause an update of internal compare registers on the next PWM period.

The following figures provide an overview of each part of an arbitrary sequence, in various modes (LOOP.CNT=0 and LOOP.CNT>0). In particular, the following are represented:

• Initial and final duty cycle on the PWM output(s)

• Chaining of SEQ[0] and SEQ[1] if LOOP.CNT>0

• Influence of registers on the sequence

• Events generated during a sequence

• DMA activity (loading of next value and applying it to the output(s))


Figure 53: Single shot (LOOP.CNT=0)

Note: The single-shot example also applies to SEQ[1]. Only SEQ[0] is represented for simplicity.

Figure 54: Complex sequence (LOOP.CNT>0) starting with SEQ[0]


Figure 55: Complex sequence (LOOP.CNT>0) starting with SEQ[1]

Note: If a sequence is in use in a simple or complex sequence, it must have a length of SEQ[n].CNT > 0.

This example shows how the PWM module can be configured to repeat a single sequence until stopped.

NRF_PWM0->PSEL.OUT[0] = (first_pin << PWM_PSEL_OUT_PIN_Pos) |
(PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);
NRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
NRF_PWM0->MODE = (PWM_MODE_UPDOWN_Up << PWM_MODE_UPDOWN_Pos);
NRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);
NRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); // 1 msec
// Enable the shortcut from LOOPSDONE event to SEQSTART1 task for infinite loop
NRF_PWM0->SHORTS = (PWM_SHORTS_LOOPSDONE_SEQSTART1_Enabled << PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos);
// LOOP_CNT must be greater than 0 for the LOOPSDONE event to trigger and enable looping
NRF_PWM0->LOOP = (1 << PWM_LOOP_CNT_Pos);
NRF_PWM0->DECODER = (PWM_DECODER_LOAD_Common << PWM_DECODER_LOAD_Pos) |
(PWM_DECODER_MODE_RefreshCount << PWM_DECODER_MODE_Pos);
// To repeat a single sequence until stopped, it must be configured in SEQ[1]
NRF_PWM0->SEQ[1].PTR = ((uint32_t)(seq0_ram) << PWM_SEQ_PTR_PTR_Pos);
NRF_PWM0->SEQ[1].CNT = ((sizeof(seq0_ram) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);
NRF_PWM0->SEQ[1].REFRESH = 0;
NRF_PWM0->SEQ[1].ENDDDELAY = 0;
NRF_PWM0->TASKS_SEQSTART[1] = 1;

6.10.3 Limitations

The previous compare value is repeated if the PWM period is shorter than the time it takes for the EasyDMA to retrieve from RAM and update the internal compare registers. This is to ensure a glitch-free operation even for very short PWM periods.

Only SEQ[1] can trigger the LOOPSDONE event upon completion, not SEQ[0]. This requires looping to be enabled (LOOP > 0) and SEQ[1].CNT > 0 when sequence playback starts.

6.10.4 Pin configuration

The OUT[n] (n=0..3) signals associated with each PWM channel are mapped to physical pins according to the configuration of PSEL.OUT[n] registers. If PSEL.OUT[n].CONNECT is set to Disconnected, the associated PWM module signal will not be connected to any physical pins.

The PSEL.OUT[n] registers and their configurations are used as long as the PWM module is enabled and the PWM generation active (wave counter started). They are retained only as long as the device is in System ON mode (see the POWER section for more information about power modes).

To ensure correct behavior in the PWM module, the pins that are used must be configured in the GPIO peripheral in the following way before the PWM module is enabled:

PWM signalPWM pinDirectionOutput valueComment
OUT[n]As specified in PSEL.OUT[n](n=0..3)Output0Idle state defined in GPIO OUT register

Table 28: Recommended GPIO configuration before starting PWM generation

The idle state of a pin is defined by the OUT register in the GPIO module, to ensure that the pins used by the PWM module are driven correctly. If PWM generation is stopped by triggering a STOP task, the PWM module itself is temporarily disabled or the device temporarily enters System OFF. This configuration must be retained in the GPIO for the selected pins (I/Os) for as long as the PWM module is supposed to be connected to an external PWM circuit.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

6.10.5 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
PWM0 : S0x50021000USNSSANoPulse width modulation unit 0
PWM0 : NS0x40021000
PWM1 : S0x50022000USNSSANoPulse width modulation unit 1
PWM1 : NS0x40022000
PWM2 : S0x50023000USNSSANoPulse width modulation unit 2
PWM2 : NS0x40023000
PWM3 : S0x50024000USNSSANoPulse width modulation unit 3
PWM3 : NS0x40024000

Register overview

RegisterOffsetTZDescription
TASKS_STOP0x004Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback
TASKS_SEQSTART[n]0x008Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.
TASKS_NEXTSTEP0x010Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
SUBSCRIBE_SEQSTART[n]0x088Subscribe configuration for task SEQSTART[n]
SUBSCRIBE_NEXTSTEP0x090Subscribe configuration for task NEXTSTEP
EVENTS_STOPPED0x104Response to STOP task, emitted when PWM pulses are no longer generated
EVENTS_SEQSTARTED[n]0x108First PWM period started on sequence n
EVENTS_SEQEND[n]0x110Emitted at end of every sequence n, when last value from RAM has been applied to wave counter
EVENTS_PWMPERIODEND0x118Emitted at the end of each PWM period
EVENTS_LOOPSDONE0x11CConcatenated sequences have been played the amount of times defined in LOOP.CNT
PUBLISH_STOPPED0x184Publish configuration for event STOPPED
PUBLISH_SEQSTARTED[n]0x188Publish configuration for event SEQSTARTED[n]
PUBLISH_SEQEND[n]0x190Publish configuration for event SEQEND[n]
PUBLISH_PWMPERIODEND0x198Publish configuration for event PWMPERIODEND
PUBLISH_LOOPSDONE0x19CPublish configuration for event LOOPSDONE
SHORTS0x200Shortcuts between local events and tasks
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ENABLE0x500PWM module enable register
MODE0x504Selects operating mode of the wave counter
COUNTERTOP0x508Value up to which the pulse generator counter counts
PRESCALER0x50CConfiguration for PWM_CLK
DECODER0x510Configuration of the decoder
LOOP0x514Number of playbacks of a loop
SEQ[n].PTR0x520Beginning address in RAM of this sequence
SEQ[n].CNT0x524Number of values (duty cycles) in this sequence
SEQ[n].REFRESH0x528Number of additional PWM periods between samples loaded into compare register
SEQ[n].ENDDELAY0x52CTime added after the sequence
PSEL.OUT[n]0x560Output pin select for PWM channel n

6.10.5.1 TASKS_STOP

Address offset: 0x004

Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_STOP
Trigger1

6.10.5.2 TASKS_SEQSTART[n] (n=0..1)

Address offset: 0x008 + (n × 0x4)

Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_SEQSTART
Trigger1

6.10.5.3 TASKS_NEXTSTEP

Address offset: 0x010

Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_NEXTSTEP
Trigger1

6.10.5.4 SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.10.5.5 SUBSCRIBE_SEQSTART[n] (n=0..1)

Address offset: 0x088 + (n × 0x4)

Subscribe configuration for task SEQSTART[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.10.5.6 SUBSCRIBE_NEXTSTEP

Address offset: 0x090

Subscribe configuration for task NEXTSTEP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.10.5.7 EVENTS_STOPPED

Address offset: 0x104

Response to STOP task, emitted when PWM pulses are no longer generated

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STOPPED
NotGenerated0
Generated1

6.10.5.8 EVENTS_SEQSTARTED[n] (n=0..1)

Address offset: 0x108 + (n × 0x4)

First PWM period started on sequence n

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_SEQSTARTED
NotGenerated0
Generated1

6.10.5.9 EVENTS_SEQEND[n] (n=0..1)

Address offset: 0x110 + (n × 0x4)

Emitted at end of every sequence n, when last value from RAM has been applied to wave counter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_SEQEND
NotGenerated0
Generated1

6.10.5.10 EVENTS_PWMPERIODEND

Address offset: 0x118

Emitted at the end of each PWM period

6.10.5.11 EVENTS_LOOPSDONE

Address offset: 0x11C

Concatenated sequences have been played the amount of times defined in LOOP.CNT

This event triggers after the last SEQ[1] completion of the loop, and only if looping was enabled (LOOP > 0) when the sequence playback was started.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_LOOPSDONE
0
1

6.10.5.12 PUBLISH_STOPPED

Address offset: 0x184

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event STOPPED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.10.5.13 PUBLISH_SEQSTARTED[n] (n=0..1)

Address offset: 0x188 + (n × 0x4)

Publish configuration for event SEQSTARTED[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.10.5.14 PUBLISH_SEQEND[n] (n=0..1)

Address offset: 0x190 + (n × 0x4)

Publish configuration for event SEQEND[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event SEQEND[n] will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.10.5.15 PUBLISH_PWMPERIODEND

Address offset: 0x198

Publish configuration for event PWMPERIODEND

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event PWMPERIODEND will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.10.5.16 PUBLISH_LOOPSDONE

Address offset: 0x19C

Publish configuration for event LOOPSDONE

This event triggers after the last SEQ[1] completion of the loop, and only if looping was enabled (LOOP > 0) when the sequence playback was started.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event LOOPSDONE will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.10.5.17 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSEQEND0_STOP
Disabled0
Enabled1
BRWSEQEND1_STOP
Disabled0
Enabled1Enable shortcut
CRWLOOPSDONE_SEQSTART0
Disabled0Disable shortcut
Enabled1Enable shortcut
DRWLOOPSDONE_SEQSTART1Shortcut between event LOOPSDONE and task SEQSTART[0]
Disabled0Disable shortcut
Enabled1Enable shortcut
ERWLOOPSDONE_STOPShortcut between event LOOPSDONE and task STOP
Disabled0Disable shortcut
Enabled1Enable shortcut

6.10.5.18 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCB
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
BRWSTOPPED
Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCB
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Disabled0
Enabled1
C-DRWSEQSTARTED[i] (i=0..1)
Disabled0
Enabled1
E-FRWSEQEND[i] (i=0..1)
Disabled0
Enabled1
GRWPWMPERIODEND
Disabled0
Enabled1
HRWLOOPSDONE
Disabled0
Enabled1Enable

6.10.5.19 INTENSET

Address offset: 0x304

Enable interrupt

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000HGFEDCB
IDR/WFieldValue IDValueDescriptionDescriptionDescription
BRWSTOPPED
Set1Enable

6.10.5.20 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000HGFEDCB
IDR/WFieldValue IDValueDescription0
BRWSTOPPEDWrite &#x27;1&#x27; to disable interrupt for event STOPPED

6.10.5.21 ENABLE

Address offset: 0x500

PWM module enable register

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled1

6.10.5.22 MODE

Address offset: 0x504

Selects operating mode of the wave counter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWUPDOWNSelects up mode or up-and-down mode for the counter
Up0Up counter, edge-aligned PWM duty cycle
UpDownDown1Up and down counter, center-aligned PWM duty cycle

6.10.5.23 COUNTERTOP

Address offset: 0x508

Value up to which the pulse generator counter counts

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAA
Reset 0x000003FF00000000000000000000000111111111
IDR/WFieldValue IDValueDescription
ARWCOUNTERTOP[3..32767]Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM are used.

6.10.5.24 PRESCALER

Address offset: 0x50C

Configuration for PWM_CLK

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPRESCALER
DIV_10
DIV_21
DIV_42
DIV_83
DIV_164
DIV_325
DIV_646
DIV_1287

6.10.5.25 DECODER

Address offset: 0x510

Configuration of the decoder

Bit number313029282726252423222120191817161514131211109876543210
IDBAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLOAD
Common0
Grouped1
Individual2
WaveForm3
BRWMODE
RefreshCount0
NextStep1

6.10.5.26 LOOP

Address offset: 0x514

Number of playbacks of a loop

Bit number
ID00000000000000000000000000000000000000000000000000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR/WFieldValue IDValueDescription
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWCNT
Disabled0Looping disabled (stop at the end of the sequence)

6.10.5.27 SEQ[n].PTR (n=0..1)

Address offset: 0x520 + (n × 0x20)

Beginning address in RAM of this sequence

6.10.5.28 SEQ[n].CNT (n=0..1)

Address offset: 0x524 + (n × 0x20)

Number of values (duty cycles) in this sequence

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNTNumber of values (duty cycles) in this sequence
Disabled0Sequence is disabled, and shall not be started as it is empty

6.10.5.29 SEQ[n].REFRESH (n=0..1)

Address offset: 0x528 + (n × 0x20)

Number of additional PWM periods between samples loaded into compare register

Bit number
ID
Reset 0x00000001

6.10.5.30 SEQ[n].ENDDELAY (n=0..1)

Address offset: 0x52C + (n × 0x20)

Time added after the sequence

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWCNTTime added after the sequence in PWM periods

6.10.5.31 PSEL.OUT[n] (n=0..3)

Address offset: 0x560 + (n × 0x4)

Output pin select for PWM channel n

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.11 RTC — Real-time counter

The real-time counter (RTC) module provides a generic, low-power timer on the low frequency clock source (LFCLK).


Figure 56: RTC block diagram

The RTC module features a 24-bit COUNTER, a 12-bit (1/X) prescaler, compare registers, and a tick event generator.

6.11.1 Clock source

The RTC will run off the LFCLK.

When started, the RTC will automatically request the LFCLK source with RC oscillator if the LFCLK is not already running.

See CLOCK — Clock control on page 74 for more information about clock sources.

6.11.2 Resolution versus overflow and the prescaler

The relationship between the prescaler, counter resolution, and overflow is summarized in the following table.

PrescalerCounter resolutionOverflow
030.517 μs512 seconds
$2^{8}$ -17812.5 μs131072 seconds
$2^{12}$ -1125 ms582.542 hours

Table 29: RTC resolution versus overflow

The counter increment frequency is given by the following equation:

<div class="mineru-algorithm" style="white-space: pre-wrap; font-family:monospace;"> $f_{RTC}$ [kHz] = 32.768 / (PRESCALER + 1 ) </div>

The PRESCALER register can only be written when the RTC is stopped.

The prescaler is restarted on tasks START, CLEAR and TRIGOVRFLW. That is, the prescaler value is latched to an internal register (<<PRESC>>) on these tasks.

Examples:

  1. Desired COUNTER frequency 100 Hz (10 ms counter period)

$$
\text { PRESCALER } = \text { round } (3 2. 7 6 8 \mathrm{kHz} / 1 0 0 \mathrm{Hz}) - 1 = 3 2 7
$$

$$
f _ {R T C} = 9 9. 9 \mathrm{Hz}
$$

10009.576 μs counter period

  1. Desired COUNTER frequency 8 Hz (125 ms counter period)

PRESCALER = round(32.768 kHz / 8 Hz) – 1 = 4095

fRTC = 8 Hz

125 ms counter period

6.11.3 Counter register

The internal <<COUNTER>> register increments on LFCLK when the internal PRESCALER register (<<PRESC>>) is 0x00. <<PRESC>> is reloaded from the PRESCALER register. If enabled, the TICK event occurs on each increment of the COUNTER.


Figure 58: Timing diagram - COUNTER_PRESCALER_1

6.11.3.1 Reading the counter register

To read the COUNTER register, the internal <<COUNTER>> value is sampled.

To ensure that the <<COUNTER>> is safely sampled (considering that an LFCLK transition may occur during a read), the CPU and core memory bus are halted for PCLK16M cycles. In addition, the read takes the CPU two PCLK16M cycles, resulting in the COUNTER register read taking maximum six PCLK16M clock cycles.

6.11.4 Overflow

An OVRFLW event is generated on COUNTER register overflow (overflowing from 0xFFFFFF to 0). The TRIGOVRFLW task will set the COUNTER value to 0xFFFFF0, to allow software test of the overflow condition.

Note: The OVRFLW event is disabled by default.

6.11.5 Tick event

The TICK event enables low-power tickless RTOS implementation, as it optionally provides a regular interrupt source for an RTOS with no need for use of the ARM SysTick feature.

Using the TICK event, rather than the SysTick, allows the CPU to be powered down while keeping RTOS scheduling active.

Note: The TICK event is disabled by default.

6.11.6 Event control

To optimize the RTC power consumption, events in the RTC can be individually disabled to prevent PCLK16M and HFCLK from being requested when those events are triggered. This is managed using the EVTEN register.

This means that the RTC implements a slightly different task and event system compared to the standard system described in Peripheral interface on page 15. The RTC task and event system is illustrated in the following figure.


Figure 59: Tasks, events, and interrupts in the RTC

6.11.7 Compare

The RTC implements one COMPARE event for every available compare register.

When the COUNTER is incremented and then becomes equal to the value specified in the register CC[n], the corresponding compare event COMPARE[n] is generated.

When writing a CC[n] register, the RTC COMPARE event exhibits several behaviors. See the following figures for more information.

If a CC value is 0 when a CLEAR task is set, this will not trigger a COMPARE event.


Figure 60: Timing diagram - COMPARE_CLEAR

If a CC value is N and the COUNTER value is N when the START task is set, this will not trigger a COMPARE event.


Figure 61: Timing diagram - COMPARE_START

A COMPARE event occurs when a CC value is N, and the COUNTER value transitions from N-1 to N.


Figure 62: Timing diagram - COMPARE
If the COUNTER value is N, writing N+2 to a CC register is guaranteed to trigger a COMPARE event at N+2.


Figure 63: Timing diagram - COMPARE_N+2

If the COUNTER value is N, writing N or N+1 to a CC register may not trigger a COMPARE event.


Figure 64: Timing diagram - COMPARE_N+1

If the COUNTER value is N, and the current CC value is N+1 or N+2 when a new CC value is written, a match may trigger on the previous CC value before the new value takes effect. If the current CC value is greater than N+2 when the new value is written, there will be no event due to the old value.


Figure 65: Timing diagram - COMPARE_N-1

6.11.8 Task and event jitter/delay

Jitter or delay in the RTC is due to the peripheral clock being a low frequency clock (LFCLK), which is not synchronous to the faster PCLK16M.

Registers in the peripheral interface that are part of the PCLK16M domain, have a set of mirrored registers in the LFCLK domain. For example, the COUNTER value accessible from the CPU is in the PCLK16M domain and is latched on a read from an internal COUNTER register in the LFCLK domain. The COUNTER register

is modified each time the RTC ticks. The registers are synchronised between the two clock domains (PCLK16M and LFCLK).

CLEAR and STOP (and TRIGOVRFLW, which is not shown) will be delayed as long as it takes for the peripheral to clock a falling edge and a rising edge of the LFCLK. This is between 15.2585 μs and 45.7755 μs – rounded to 15 μs and 46 μs for the remainder of the section.


Figure 66: Timing diagram - DELAY_CLEAR

When a STOP task is triggered, the PCLK16M domain will immediately prevent the generation of any EVENTS from the RTC. However, as seen in the following figure, the COUNTER value can still increment one final time.


Figure 67: Timing diagram - DELAY_STOP

The START task will start the RTC. Assuming that the LFCLK was previously running and stable, the first increment of COUNTER (and instance of TICK event) will be typically after 30.5 μs +/-15 μs. Additional delay will occur if the RTC is started before the LFCLK is running, see CLOCK — Clock control on page 74 for LFLK startup times. The software should therefore wait for the first TICK if it has to make sure that the RTC is running. Sending a TRIGOVRFLW task sets the COUNTER to a value close to overflow. However, since the update of COUNTER relies on a stable LFCLK, sending this task while LFCLK is not running will also add additional delay as previously described. The figures show the smallest and largest delays on the START task, appearing as a +/-15 μs jitter on the first COUNTER increment.


Figure 68: Timing diagram - JITTER_START-


Figure 69: Timing diagram - JITTER_START+

The following tables summarize jitter introduced for tasks and events. Any 32.768 kHz clock jitter will come in addition to these numbers.

TaskDelay
CLEAR, START, STOP, TRIGOVRFLOW+15 to 46 μs

Table 30: RTC jitter magnitudes on tasks

Operation/FunctionJitter
START to COUNTER increment± 15 μs
COMPARE to COMPARE $^{18}$ ± 62.5 ns

Table 31: RTC jitter magnitudes on events

6.11.9 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
RTC0 : S0x50014000USNSNANoReal time counter 0
RTC0 : NS0x40014000
RTC1 : S0x50015000USNSNANoReal time counter 1
RTC1 : NS0x40015000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start RTC counter
TASKS_STOP0x004Stop RTC counter
TASKS_CLEAR0x008Clear RTC counter
TASKS_TRIGOVRFLW0x00CSet counter to 0xFFFFF0
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
SUBSCRIBE_CLEAR0x088Subscribe configuration for task CLEAR
SUBSCRIBE_TRIGOVRFLW0x08CSubscribe configuration for task TRIGOVRFLW
EVENTS_TICK0x100Event on counter increment
EVENTS_OVRFLW0x104Event on counter overflow
EVENTS_COMPARE[n]0x140Compare event on CC[n] match
PUBLISH_TICK0x180Publish configuration for event TICK
PUBLISH_OVRFLW0x184Publish configuration for event OVRFLW
PUBLISH_COMPARE[n]0x1C0Publish configuration for event COMPARE[n]
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
EVTEN0x340Enable or disable event routing
EVTENSET0x344Enable event routing
EVTENCLR0x348Disable event routing
COUNTER0x504Current counter value
PRESCALER0x50812-bit prescaler for counter frequency (32768/(PRESCALER+1)). Must be written when RTC is stopped.
CC[n]0x540Compare register n

6.11.9.1 TASKS_START

Address offset: 0x000

Start RTC counter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_START
Trigger1

6.11.9.2 TASKS_STOP

Address offset: 0x004

Stop RTC counter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_STOP
Trigger1

6.11.9.3 TASKS_CLEAR

Address offset: 0x008

Clear RTC counter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_CLEAR
Trigger1

6.11.9.4 TASKS_TRIGOVRFLW

Address offset: 0x00C

Set counter to 0xFFFFF0

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_TRIGOVRFLW
Trigger1

6.11.9.5 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task START will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.11.9.6 SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.11.9.7 SUBSCRIBE_CLEAR

Address offset: 0x088

Subscribe configuration for task CLEAR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.11.9.8 SUBSCRIBE_TRIGOVRFLW

Address offset: 0x08C

Subscribe configuration for task TRIGOVRFLW

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task TRIGOVRFLW will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.11.9.9 EVENTS_TICK

Address offset: 0x100

Event on counter increment

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TICK
NotGenerated0
Generated1

6.11.9.10 EVENTS_OVRFLW

Address offset: 0x104

Event on counter overflow

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_OVRFLWEvent on counter overflow
NotGenerated0Event not generated
Generated1Event generated

6.11.9.11 EVENTS_COMPARE[n] (n=0..3)

Address offset: 0x140 + (n × 0x4)

Compare event on CC[n] match

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_COMPARE
NotGenerated0
Generated1

6.11.9.12 PUBLISH_TICK

Address offset: 0x180

Publish configuration for event TICK

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that eventTICKwill publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.11.9.13 PUBLISH_OVRFLW

Address offset: 0x184

Publish configuration for event OVRFLW

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event OVRFLW will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.11.9.14 PUBLISH_COMPARE[n] (n=0..3)

Address offset: 0x1C0 + (n × 0x4)

Publish configuration for event COMPARE[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.11.9.15 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDFBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTICKWrite &#x27;1&#x27; to enable interrupt for event TICK
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWOVRFLWWrite &#x27;1&#x27; to enable interrupt for event OVRFLW
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
C-FRWCOMPARE[i] (i=0..3)Write &#x27;1&#x27; to enable interrupt for event COMPARE[i]
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.11.9.16 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDFBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTICK
Clear1
Disabled0
Enabled1
BRWOVRFLW
Clear1
Disabled0
Enabled1
C-FRWCOMPARE[i] (i=0..3)
Clear1
Bit number313029282726252423222120191817161514131211109876543210
IDFBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
Disabled0Read: Disabled
Enabled1Read: Enabled

6.11.9.17 EVTEN

Address offset: 0x340

Enable or disable event routing

Bit number313029282726252423222120191817161514131211109876543210
IDFBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTICK
Disabled0
Enabled1
BRWOVRFLW
Disabled0
Enabled1
C-FRWCOMPARE[i] (i=0..3)
Disabled0
Enabled1

6.11.9.18 EVTENSET

Address offset: 0x344

Enable event routing

Bit number313029282726252423222120191817161514131211109876543210
IDFBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTICKWrite &#x27;1&#x27; to enable event routing for event TICK
Disabled0Read: Disabled
Enabled1Read: Enabled
Set1Enable
BRWOVRFLWWrite &#x27;1&#x27; to enable event routing for event OVRFLW
Disabled0Read: Disabled
Enabled1Read: Enabled
Set1Enable
C-FRWCOMPARE[i] (i=0..3)Write &#x27;1&#x27; to enable event routing for event COMPARE[i]
Disabled0Read: Disabled
Enabled1Read: Enabled
Set1Enable

6.11.9.19 EVTENCLR

Address offset: 0x348

Disable event routing

Bit number313029282726252423222120191817161514131211109876543210
IDF E D CBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTICK
Disabled0
Enabled1
Clear1
BRWOVRFLW
Disabled0
Enabled1
Clear1
C-FRWCOMPARE[i] (i=0..3)
Disabled0
Enabled1Read: Enabled
Clear1Disable

6.11.9.20 COUNTER

Address offset: 0x504

Current counter value

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARCOUNTER

6.11.9.21 PRESCALER

Address offset: 0x508

12-bit prescaler for counter frequency (32768/(PRESCALER+1)). Must be written when RTC is stopped.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPRESCALERPrescaler value

6.11.9.22 CC[n] (n=0..3)

Address offset: 0x540 + (n × 0x4)

Compare register n

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWCOMPARECompare value

6.12 SAADC — Successive approximation analog-todigital converter

The SAADC is a differential successive approximation register (SAR) analog-to-digital converter.

Listed here are the main features of SAADC:

• 8/10/12-bit resolution, 14-bit resolution with oversampling

• Multiple analog inputs:

• AIN0 to AIN7 pins

• VDD_GPIO pin

• Up to eight input channels:

• One channel per single-ended input and two channels per differential input

• Scan mode can be configured with both single-ended channels and differential channels

• Each channel can be configured to select any of the above analog inputs

• Full scale input range (0 to VDD_GPIO)

• Sampling triggered via a task from software or a PPI channel for full flexibility on sample frequency source from low-power 32.768 kHz RTC or more accurate 1/16 MHz timers

• One-shot conversion mode to sample a single channel

• Scan mode to sample a series of channels in sequence with configurable sample delay

• Support for direct sample transfer to RAM using EasyDMA

• Interrupts on single sample and full buffer events

• Samples stored as 16-bit two’s complement values for differential and single-ended sampling

• Continuous sampling without the need of an external timer

• Internal resistor string

• On-the-fly limit checking

6.12.1 Overview

The ADC supports up to eight external analog input channels. It can be operated in One-shot mode with sampling under software control, or Continuous mode with a programmable sampling rate.

The analog inputs can be configured as eight single-ended inputs, four differential inputs or a combination of these. Each channel can be configured to select:

• AIN0 to AIN7 pins

• VDD_GPIO pin

Channels can be sampled individually in one-shot or continuous sampling modes, or, using scan mode, multiple channels can be sampled in sequence. Channels can also be oversampled to improve noise performance.


Figure 70: Simplified ADC block diagram

Internally, the ADC is always a differential analog-to-digital converter, but by default it is configured with single-ended input in the MODE field of the CH[n].CONFIG register. In single-ended mode, the negative input will be shorted to ground internally.

The assumption in single-ended mode is that the internal ground of the ADC is the same as the external ground that the measured voltage is referred to. The ADC is thus sensitive to ground bounce on the PCB in single-ended mode. If this is a concern, we recommend using differential measurement.

6.12.2 Digital output

The output result of the ADC depends on the settings in the CH[n].CONFIG and RESOLUTION registers as follows:

RESULT = [V(P) - V(N)] * GAIN/REFERENCE * 2(RESOLUTION - m)

where
V(P)
is the voltage at input P
V(N)
is the voltage at input N
GAIN
is the selected gain setting
m
is the mode setting. Use m=0 if CONFIG.MODE=SE, or m=1 if CONFIG.MODE=Diff
REFERENCE
is the selected reference voltage
The result generated by the ADC will deviate from the expected due DC errors like offset, gain, differential non-linearity (DNL), and integral non-linearity (INL). See Electrical specification for details on these parameters. The result can also vary due to AC errors like non-linearities in the GAIN block, settling errors

due to high source impedance and sampling jitter. For battery measurement, the DC errors are most noticeable.

The ADC has a wide selection of gains controlled in the GAIN field of the CH[n].CONFIG register. If CH[n].CONFIG.REFSEL=0, the input range of the ADC core is nominally ±0.6 V differential and the input must be scaled accordingly.

Calibration

The ADC has a temperature dependent offset. If the ADC is to operate over a large temperature range, we recommend running TASKS_CALIBRATEOFFSET at regular intervals.

The DONE, RESULTDONE, and CALIBRATEDONE events are fired when the calibration has been completed.

The offset calibration must be run when the SAADC is stopped. If the TASKS_CALIBRATEOFFSET is run when the SAADC is started, then RAM may contain values not related to the ADC input.

6.12.3 Analog inputs and channels

Up to eight analog input channels, CHn, can be configured.

Any one of the available channels can be enabled for the ADC to operate in one-shot mode. If more than one CH[n] is configured, the ADC enters scan mode.

An analog input is selected as a positive converter input if CH[n].PSELP is set, setting CH[n].PSELP also enables the particular channel.

An analog input is selected as a negative converter input if CH[n].PSELN is set. The CH[n].PSELN register will have no effect unless differential mode is enabled, see MODE field in CH[n].CONFIG register.

If more than one of the CH[n].PSELP registers is set, the device enters scan mode. Input selections in scan mode are controlled by the CH[n].PSELP and CH[n].PSELN registers, where CH[n].PSELN is only used if the particular scan channel is specified as differential, see MODE field in CH[n].CONFIG register.

6.12.4 Operation modes

The ADC input configuration supports one-shot mode, continuous mode, and scan mode.

Note: Scan mode and oversampling cannot be combined.

The ADC indicates a single ongoing conversion via the register STATUS on page 286. During scan mode, oversampling, or continuous modes, more than a single conversion take place in the ADC. As consequence, the value reflected in STATUS register will toggle at the end of each single conversion.

6.12.4.1 One-shot mode

One-shot operation is configured by enabling only one of the available channels defined by CH[n].PSELP, CH[n].PSELN, and CH[n].CONFIG registers.

Upon a SAMPLE task, the ADC starts to sample the input voltage. The CH[n].CONFIG.TACQ controls the acquisition time.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA. For more information, see EasyDMA on page 269.

6.12.4.2 Continuous mode

Continuous sampling can be achieved by using the internal timer in the ADC, or triggering the SAMPLE task from one of the general purpose timers through the PPI system.

Care shall be taken to ensure that the sample rate fulfils the following criteria, depending on how many channels are active:

<div class="mineru-algorithm" style="white-space: pre-wrap; font-family:monospace;"> $f_{SAMPLE} &lt; 1 / (t_{ACQ} + t_{conv})$ </div>

The SAMPLERATE register can be used as a local timer instead of triggering individual SAMPLE tasks. When SAMPLERATE.MODE is set to Timers, it is sufficient to trigger SAMPLE task only once in order to start the SAADC and triggering the STOP task will stop sampling. The SAMPLERATE.CC field controls the sample rate.

The SAMPLERATE timer mode cannot be combined with SCAN mode, and only one channel can be enabled in this mode.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA.

6.12.4.3 Oversampling

An accumulator in the ADC can be used to average noise on the analog input. In general, oversampling improves the signal-to-noise ratio (SNR). However, oversampling does not improve the integral nonlinearity (INL) nor the differential non-linearity (DNL).

Oversampling and scan should not be combined, since oversampling and scan will average over input channels.

The accumulator is controlled in the OVERSAMPLE register. The SAMPLE task must be set 2OVERSAMPLE number of times before the result is written to RAM. This can be achieved by:

• Configuring a fixed sampling rate using the local timer or a general purpose timer and the PPI system to trigger a SAMPLE task

• Triggering SAMPLE 2OVERSAMPLE times from software

• Enabling BURST mode

CH[n].CONFIG.BURST can be enabled to avoid setting SAMPLE task 2OVERSAMPLE times. With BURST = 1 the ADC will sample the input 2OVERSAMPLE times as fast as it can (actual timing: <(tACQ+tCONV)×2OVERSAMPLE). Thus, for the user it will just appear like the conversion took a bit longer time, but other than that, it is similar to one-shot mode.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event signals that enough conversions have taken place for an oversampled result to get transferred into RAM. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA.

6.12.4.4 Scan mode

A channel is considered enabled if CH[n].PSELP is set. If more than one channel, CH[n], is enabled, the ADC enters scan mode.

In scan mode, one SAMPLE task will trigger one conversion per enabled channel. The time it takes to sample all channels is:

Total time < Sum(CH[x].t_{ACQ} + t_{CONV}), x = 0..enabled channels

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event signals has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual values have been transferred into RAM by EasyDMA.

The following figure shows an example of results placement in Data RAM, with an even RESULT.MAXCNT. In this example, channels 1, 2, and 5 are enabled, all others are disabled.

3116150
RESULT.PTRCH[2] 1stresultCH[1] 1stresult
RESULT.PTR + 4CH[1] 2ndresultCH[5] 1stresult
RESULT.PTR + 8CH[5] 2ndresultCH[2] 2ndresult
(...)
RESULT.PTR + 2*(RESULT.MAXCNT - 2)CH[5] last resultCH[2] last result

Figure 71: Example of RAM placement (even RESULT.MAXCNT), channels 1, 2 and 5 enabled

The following figure shows an example of results placement in Data RAM, with an odd RESULT.MAXCNT. In this example, channels 1, 2, and 5 are enabled, all others are disabled. The last 32-bit word is populated only with one 16-bit result.

3116150
RESULT.PTRCH[2] 1stresultCH[1] 1stresult
RESULT.PTR + 4CH[1] 2ndresultCH[5] 1stresult
RESULT.PTR + 8CH[5] 2ndresultCH[2] 2ndresult
(...)
RESULT.PTR + 2*(RESULT.MAXCNT - 1)CH[5] last result

Figure 72: Example of RAM placement (odd RESULT.MAXCNT), channels 1, 2 and 5 enabled

6.12.5 EasyDMA

After configuring RESULT.PTR and RESULT.MAXCNT, the ADC resources are started by triggering the START task. The ADC is using EasyDMA to store results in a Result buffer in RAM.

The Result buffer is located at the address specified in the RESULT.PTR register. The RESULT.PTR register is double-buffered and it can be updated and prepared for the next START task immediately after the STARTED event is generated. The size of the Result buffer is specified in the RESULT.MAXCNT register and the ADC will generate an END event when it has filled up the Result buffer, see ADC on page 270. Results are stored in little-endian byte order in Data RAM. Every sample will be sign extended to 16 bit before stored in the Result buffer.

The ADC is stopped by triggering the STOP task. The STOP task will terminate an ongoing sampling. The ADC will generate a STOPPED event when it has stopped. If the ADC is already stopped when the STOP task is triggered, the STOPPED event will still be generated.


Figure 73: ADC

If the RESULT.PTR is not pointing to a RAM region accessible from the peripheral, an EasyDMA transfer may result in a HardFault and/or memory corruption. See Memory on page 21 for more information about the different memory regions.

The EasyDMA will have finished accessing the RAM when the END or STOPPED event has been generated.

The RESULT.AMOUNT register can be read following an END event or a STOPPED event to see how many results have been transferred to the Result buffer in RAM since the START task was triggered.

In scan mode, SAMPLE tasks can be triggered once the START task is triggered. The END event is generated when the number of samples transferred to memory reaches the value specified by RESULT.MAXCNT. After an END event, the START task needs to be triggered again before new samples can be taken. Also make sure that the size of the Result buffer is large enough to have space for minimum one result from each of the enabled channels, by specifying RESULT.MAXCNT >= number of channels enabled. For more information about the scan mode, see Scan mode on page 268.

6.12.6 Resistor ladder

The ADC has an internal resistor string for positive and negative input.

See Resistor ladder for positive input (negative input is equivalent, using RESN instead of RESP) on page 271. The resistors are controlled in the CH[n].CONFIG.RESP and CH[n].CONFIG.RESN registers.

Figure 74: Resistor ladder for positive input (negative input is equivalent, using RESN instead of RESP)

6.12.7 Reference

The ADC can use two different references, controlled in the REFSEL field of the CH[n].CONFIG register.

These are:

• Internal reference

• VDD_GPIO as reference

The internal reference results in an input range of ±0.6 V on the ADC core. VDD_GPIO as reference results in an input range of ±VDD_GPIO/4 on the ADC core. The gain block can be used to change the effective input range of the ADC.

Input range = (± 0.6 V or ±VDD_GPIO/4)/Gain

For example, choosing VDD_GPIO as reference, single ended input (grounded negative input), and a gain of 1/4 the input range will be:

Input range = (VDD_GPIO/4)/(1/4) = VDD_GPIO

With internal reference, single ended input (grounded negative input), and a gain of 1/6 the input range will be:

Input range = (0.6 V)/(1/6) = 3.6 V

The AIN0-AIN7 inputs cannot exceed VDD_GPIO, or be lower than VSS.

6.12.8 Acquisition time

To sample the input voltage, the ADC connects a capacitor to the input.

For illustration, see Simplified ADC sample network on page 272. The acquisition time indicates how long the capacitor is connected, see TACQ field in CH[n].CONFIG register. The required acquisition time depends on the source $( \mathsf { R } _ { \mathsf { s o u r c e } } )$ resistance. For high source resistance the acquisition time should be increased, see Acquisition time on page 272.


Figure 75: Simplified ADC sample network

TACQ [μs]Maximum source resistance [kOhm]
310
540
10100
15200
20400
40800

Table 32: Acquisition time

6.12.9 Limits event monitoring

A channel can be event monitored by configuring limit register CH[n].LIMIT.

If the conversion result is higher than the defined high limit, or lower than the defined low limit, the appropriate event will get fired.


Figure 76: Example of limits monitoring on channel 'n'

Note that when setting the limits, CH[n].LIMIT.HIGH shall always be higher than or equal to CH[n].LIMIT.LOW . In other words, an event can be fired only when the input signal has been sampled outside of the defined limits. It is not possible to fire an event when the input signal is inside a defined range by swapping high and low limits.

The comparison to limits always takes place, there is no need to enable it. If comparison is not required on a channel, the software shall simply ignore the related events. In that situation, the value of the limits registers is irrelevant, so it does not matter if CH[n].LIMIT.LOW is lower than CH[n].LIMIT.HIGH or not.

6.12.10 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
SAADC : S0x5000E000USNSSANoAnalog to digital converter
SAADC : NS0x4000E000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start the ADC and prepare the result buffer in RAM
TASKS_SAMPLE0x004Take one ADC sample, if scan is enabled all channels are sampled
TASKS_STOP0x008Stop the ADC and terminate any on-going conversion
TASKS_CALIBRATEOFFSET0x00CStarts offset auto-calibration
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_SAMPLE0x084Subscribe configuration for task SAMPLE
SUBSCRIBE_STOP0x088Subscribe configuration for task STOP
SUBSCRIBE_CALIBRATEOFFSET0x08CSubscribe configuration for task CALIBRATEOFFSET
EVENTS_STARTED0x100The ADC has started
EVENTS_END0x104The ADC has filled up the Result buffer
EVENTS_DONE0x108A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.
EVENTS_RESULTDONE0x10CA result is ready to get transferred to RAM.
EVENTS_CALIBRATEDONE0x110Calibration is complete
EVENTS_STOPPED0x114The ADC has stopped
EVENTS_CH[n].LIMITH0x118Last results is equal or above CH[n].LIMIT.HIGH
EVENTS_CH[n].LIMITL0x11CLast results is equal or below CH[n].LIMIT.LOW
PUBLISH_STARTED0x180Publish configuration for event STARTED
PUBLISH_END0x184Publish configuration for event END
PUBLISH_DONE0x188Publish configuration for event DONE
PUBLISH_RESULTDONE0x18CPublish configuration for event RESULTDONE
PUBLISH_CALIBRATEDONE0x190Publish configuration for event CALIBRATEDONE
PUBLISH_STOPPED0x194Publish configuration for event STOPPED
PUBLISH_CH[n].LIMITH0x198Publish configuration for event CH[n].LIMITH
PUBLISH_CH[n].LIMITL0x19CPublish configuration for event CH[n].LIMITL
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
STATUS0x400Status
ENABLE0x500Enable or disable ADC
CH[n].PSELP0x510Input positive pin selection for CH[n]
CH[n].PSELN0x514Input negative pin selection for CH[n]
CH[n].CONFIG0x518Input configuration for CH[n]
CH[n].LIMIT0x51CHigh/low limits for event monitoring a channel
RESOLUTION0x5F0Resolution configuration
OVERSAMPLE0x5F4Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.
SAMPLERATE0x5F8Controls normal or continuous sample rate
RESULT.PTR0x62CData pointer
RESULT.MAXCNT0x630Maximum number of buffer words to transfer
RESULT.AMOUNT0x634Number of buffer words transferred since last START

6.12.10.1 TASKS_START

Address offset: 0x000

Start the ADC and prepare the result buffer in RAM

6.12.10.2 TASKS_SAMPLE

Address offset: 0x004

Take one ADC sample, if scan is enabled all channels are sampled

6.12.10.3 TASKS_STOP

Address offset: 0x008

Stop the ADC and terminate any on-going conversion

6.12.10.4 TASKS_CALIBRATEOFFSET

Address offset: 0x00C

Starts offset auto-calibration

Do not trigger when the ADC has been started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_CALIBRATEOFFSETStarts offset auto-calibration
Do not trigger when the ADC has been started
Trigger1Trigger task

6.12.10.5 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task START will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.12.10.6 SUBSCRIBE_SAMPLE

Address offset: 0x084

Subscribe configuration for task SAMPLE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task SAMPLE will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.12.10.7 SUBSCRIBE_STOP

Address offset: 0x088

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.12.10.8 SUBSCRIBE_CALIBRATEOFFSET

Address offset: 0x08C

Subscribe configuration for task CALIBRATEOFFSET

Do not trigger when the ADC has been started

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task CALIBRATEOFFSET will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.12.10.9 EVENTS_STARTED

Address offset: 0x100

The ADC has started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STARTED
NotGenerated0
Generated1

6.12.10.10 EVENTS_END

Address offset: 0x104

The ADC has filled up the Result buffer

6.12.10.11 EVENTS_DONE

Address offset: 0x108

A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_DONEA conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.
NotGenerated0Event not generated
Generated1Event generated

6.12.10.12 EVENTS_RESULTDONE

Address offset: 0x10C

A result is ready to get transferred to RAM.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RESULTDONEA result is ready to get transferred to RAM.
NotGenerated0Event not generated
Generated1Event generated

6.12.10.13 EVENTS_CALIBRATEDONE

Address offset: 0x110

Calibration is complete

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_CALIBRATEDONE
NotGenerated0
Generated1

6.12.10.14 EVENTS_STOPPED

Address offset: 0x114

The ADC has stopped

6.12.10.15 EVENTS_CH[n] (n=0..7)

Peripheral events.

6.12.10.15.1 EVENTS_CH[n].LIMITH (n=0..7)

Address offset: 0x118 + (n × 0x8)

Last results is equal or above CH[n].LIMIT.HIGH

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIMITH
NotGenerated0
Generated1

6.12.10.15.2 EVENTS_CH[n].LIMITL (n=0..7)

Address offset: 0x11C + (n × 0x8)

Last results is equal or below CH[n].LIMIT.LOW

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLIMITLLast results is equal or below CH[n].LIMIT.LOW
NotGenerated0Event not generated
Generated1Event generated

6.12.10.16 PUBLISH_STARTED

Address offset: 0x180

Publish configuration for event STARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.12.10.17 PUBLISH_END

Address offset: 0x184

Publish configuration for event END

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event END will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.12.10.18 PUBLISH_DONE

Address offset: 0x188

Publish configuration for event DONE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that eventDONEwill publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.12.10.19 PUBLISH_RESULTDONE

Address offset: 0x18C

Publish configuration for event RESULTDONE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RESULTDONE will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.12.10.20 PUBLISH_CALIBRATEDONE

Address offset: 0x190

Publish configuration for event CALIBRATEDONE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event CALIBRATEDONE will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.12.10.21 PUBLISH_STOPPED

Address offset: 0x194

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.12.10.22 PUBLISH_CH[n] (n=0..7)

Publish configuration for events

6.12.10.22.1 PUBLISH_CH[n].LIMITH (n=0..7)

Address offset: 0x198 + (n × 0x8)

Publish configuration for event CH[n].LIMITH

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.12.10.22.2 PUBLISH_CH[n].LIMITL (n=0..7)

Address offset: 0x19C + (n × 0x8)

Publish configuration for event CH[n].LIMITL

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event CH[n].LIMITL will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.12.10.23 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDV U T S R Q P O N M L K J I H G F E D C B A
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARWSTARTED
Disabled0
Enabled1
BRWEND
Disabled0
Enabled1Enable or disable interrupt for event DONE
CRWDONE
Disabled0Disable
Enabled1Enable or disable interrupt for event RESULTDONE
DRWRESULTDONE
Disabled0Disable
Enabled1Enable or disable interrupt for event STOPPED
ERWCALIBRATEDONE
Disabled0.Disable
Enabled1Enable or disable interrupt for event CHOLIMITH
FRWSTOPPED
Disabled0DisableEnable or disable interrupt for event CHOLIMITH
GRWCHOLIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CHOLIMITL
HRWCHOLIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CHOLIMITL
IRWCH1LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH1LIMITL
JRWCH1LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH1LIMITL
KRWCH2LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH2LIMITL
LRWCH2LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH2LIMITL
MRWCH3LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH3LIMITL
NRWCH3LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH3LIMITL
ORWCH4LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH4LIMITL
PRWCH4LIMITLDisabled0Disable
Enabled1Enable or disable interrupt for event CH4LIMITL
QRWCH5LIMITLDisabled0Disable
Bit number313029282726252423222120191817161514131211109876543210
IDVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Enabled1
RRWCH5LIMITL
Disabled0
Enabled1
SRWCH6LIMITH
Disabled0
Enabled1
TRWCH6LIMITL
Disabled0
Enabled1
URWCH7LIMITH
Disabled0
Enabled1
VRWCH7LIMITL
Disabled0
Enabled1Enable or disable interrupt for event CH7LIMITL

6.12.10.24 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTARTED
Set1
Disabled0
Enabled1
BRWEND
Set1
Disabled0
Enabled1
CRWDONE
Set1
Disabled0Enable
Enabled1Read: Disabled
DRWRESULTDONEWrite &#x27;1&#x27; to enable interrupt for event DONE
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWCALIBRATEDONEWrite &#x27;1&#x27; to enable interrupt for event CALIBRATEDONE
Set1Enable
Disabled0Read: Disabled
FRWSTOPPEDWrite &#x27;1&#x27; to enable interrupt for event STOPPED
Set1Enable
Disabled0Read: Disabled
Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDV U T S R Q P O N M L K J I H G F E D C B A
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
Enabled1Read: Enabled
GRWCHOLIMITHWrite &#x27;1&#x27; to enable interrupt for event CHOLIMITH
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWCHOLIMITLWrite &#x27;1&#x27; to enable interrupt for event CHOLIMITL
Set1Enable
Disabled0Read: Disabled
IRWCH1LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH1LIMITH
Set1Enable
Disabled0Read: Disabled
JRWCH1LIMITLWrite &#x27;1&#x27; to enable interrupt for event CH1LIMITL
Set1Enable
Disabled0Read: Disabled
KRWCH2LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH2LIMITH
Set1Enable
Disabled0Read: Disabled
LRWCH2LIMITLWrite &#x27;1&#x27; to enable interrupt for event CH2LIMITL
Set1Enable
Disabled0Read: Disabled
MRWCH3LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH3LIMITH
Set1Enable
Disabled0Read: Disabled
NRWCH3LIMITLWrite &#x27;1&#x27; to enable interrupt for event CH3LIMITL
Set1Enable
Disabled0Read: Disabled
ORWCH4LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH4LIMITH
Set1Enable
Disabled0Read: Disabled
PRWCH4LIMITLWrite &#x27;1&#x27; to enable interrupt for event CH4LIMITL
Set1Enable
Disabled0Read: Disabled
QRWCH5LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH5LIMITH
Set1Enable
Disabled0Read: Disabled
RRWCH5LIMITLWrite &#x27;1&#x27; to enable interrupt for event CH5LIMITL
Set1Enable
Disabled0Read: Disabled
SRWCH6LIMITHWrite &#x27;1&#x27; to enable interrupt for event CH6LIMITH

Write '1' to enable interrupt for event CH6LIMITH

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Set1
Disabled0
Enabled1
TRWCH6LIMITL
Set1
Disabled0
Enabled1
URWCH7LIMITH
Set1
Disabled0
Enabled1
VRWCH7LIMITL
Set1
Disabled0
Enabled1

6.12.10.25 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDV U T S R Q P O N M L K J I H G F E D C B A
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARWSTARTEDWrite '1' to disable interrupt for event STARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWENDWrite '1' to disable interrupt for event END
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWDONEWrite '1' to disable interrupt for event DONE
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWRESULTDONEWrite '1' to disable interrupt for event RESULTDONE
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWCALIBRATEDONEWrite '1' to disable interrupt for event CALIBRATEDONE
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWSTOPPEDWrite '1' to disable interrupt for event STOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
IDR/WFieldValue IDValueDescription
GRWCHOLIMITH
Clear1
Disabled0
Enabled1
HRWCHOLIMITL
Clear1
Disabled0
Enabled1
IRWCH1LIMITH
Clean1
DisabledO
EnabledI
JRWCH1LIMITL
Clear1
DisabledORead: Disabled1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Write '1' to disable interrupt for event CHOLIMITH
Clear1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Clear1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Write '1' is disable interrupt for event CHOLIMITL
KRWCH2LIMITHClear1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001Write '1' to disable interrupt for event CH2LIMITH
LRWCH2LIMITLClear1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002Write '1' to disable interrupt for event CH2LIMITL
MRWCH3LIMITHClear1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Write '1' to disableInterrupt for event CH3LIMITH
NRWCH3LIMITLClear1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Write "1" to disable interrupt for event CH3LIMITL
ORWCH4LIMITHClear1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001Write '1' to enable interrupt for event CH4LIMITH
PRWCH4LIMITLClear1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001Water '1' to disable interrupt for event CH4LIMITL
QRWCH5LIMITHClear1.00000000000000000000000000000000000000000000000000000000000001Write '1' to disable interrupt for event CH5LIMITH
RRWCH5LIMITLClear1.0000000000000000000000000000000000000000000000000000000000001Write '1' to disable interrupt for event CH5LIMITL
SRWCH6LIMITHClear1.000000000000000000000000000000000000000000001Write '1' to disable interrupt for event CH6LIMITH
Bit number313029282726252423222120191817161514131211109876543210
IDVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Disabled0
Enabled1
TRWCH6LIMITL
Clear1
Disabled0
Enabled1
URWCH7LIMITH
Clear1
Disabled0
Enabled1
VRWCH7LIMITL
Clear1
Disabled0
Enabled1

6.12.10.26 STATUS

Address offset: 0x400

Status

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSStatus
Ready0ADC is ready. No on-going conversion.
Busy1ADC is busy. Single conversion in progress.

6.12.10.27 ENABLE

Address offset: 0x500

Enable or disable ADC

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled
Enabled

When enabled, the ADC will acquire access to the analog input pins specified in the CH[n].PSELP and CH[n].PSELN registers.

6.12.10.28 CH[n].PSELP (n=0..7)

Address offset: 0x510 + (n × 0x10)

Input positive pin selection for CH[n]

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPSELP
NC0
AnalogInput01
AnalogInput12
AnalogInput23
AnalogInput34
AnalogInput45
AnalogInput56
AnalogInput67
AnalogInput78
VDDGPIO9

6.12.10.29 CH[n].PSELN (n=0..7)

Address offset: 0x514 + (n × 0x10)

Input negative pin selection for CH[n]

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPSELNAnalog negative input, enables differential channel
NC0Not connected
AnalogInput01AIN0
AnalogInput12AIN1
AnalogInput23AIN2
AnalogInput34AIN3
AnalogInput45AIN4
AnalogInput56AIN5
AnalogInput67AIN6
AnalogInput78AIN7
VDD_GPIO9VDD_GPIO

6.12.10.30 CH[n].CONFIG (n=0..7)

Address offset: 0x518 + (n × 0x10)

Input configuration for CH[n]

Bit number313029282726252423222120191817161514131211109876543210
IDGFEEEDCCCBBAA
Reset 0x00020000000000000000001000000000000000000
IDR/WFieldValue IDValueDescription
ARWRESPPositive channel resistor control
Bypass0Bypass resistor ladder
Pulldown1Pull-down to GND
Pullup2Pull-up to VDD_GPIO
VDD1_23Set input at VDD_GPIO/2
BRWRESNNegative channel resistor control
Bypass0Bypass resistor ladder
Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0002000000000000000000010000000000000000
IDR/WFieldValue IDValue
Pulldown1
Pullup2
VDD1_23
CRWGAIN
Gain1_60
Gain1_51
Gain1_42
Gain1_33
Gain1_24
Gain15
Gain26
Gain47
D-RWREFSEL
Internal0
VDD1_41
ERWTACQ
3us0
5us1
10us2
15us3
20us4
40us5
FRWMODE
SE0
Diff1
GRWBURST
Disabled0
Enabled1

6.12.10.31 CH[n].LIMIT (n=0..7)

Address offset: 0x51C + (n × 0x10)

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IDR/WFieldValue IDValue
ARWLOW[-32768 to +32767]
BRWHIGH[-32768 to +32767]

6.12.10.32 RESOLUTION

Address offset: 0x5F0

Resolution configuration

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARWVALSet the resolution
8bit08 bit
10bit110 bit
12bit212 bit
14bit314 bit

6.12.10.33 OVERSAMPLE

Address offset: 0x5F4

Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOVERSAMPLE
Bypass0
Over2x1
Over4x2
Over8x3
Over16x4
Over32x5
Over64x6
Over128x7
Over256x8

6.12.10.34 SAMPLERATE

Address offset: 0x5F8

Controls normal or continuous sample rate

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCC[80..2047]Capture and compare value. Sample rate is 16 MHz/CC
BRWMODESelect mode for sample rate control
Task0Rate is controlled from SAMPLE task
Timers1Rate is controlled from local timer (use CC to control the rate)

6.12.10.35 RESULT

RESULT EasyDMA channe

6.12.10.35.1 RESULT.PTR

Address offset: 0x62C

Data pointer

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWPTRData pointer

Note: See the memory chapter for details about which memories are available for EasyDMA.

6.12.10.35.2 RESULT.MAXCNT

Address offset: 0x630

Maximum number of buffer words to transfer

6.12.10.35.3 RESULT.AMOUNT

Address offset: 0x634

Number of buffer words transferred since last START

6.12.11 Electrical specification

6.12.11.1 SAADC Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
$DNL_{10}$ Differential non-linearity, 10-bit resolution-0.95&lt;1LSB10b
$INL_{10}$ Integral non-linearity, 10-bit resolution1LSB10b
$V_{OS}$ Differential offset error (calibrated), 10-bit $resolution {}^a$ ±2LSB10b
$C_{EG}$ Gain error temperature coefficient-0.050.020.05%/°C
$f_{SAMPLE}$ Maximum sampling rate200kHz
$t_{ACQ,10k}$ Acquisition time (configurable), source Resistance &lt;= 10 kOhm3μs
$t_{ACQ,40k}$ Acquisition time (configurable), source Resistance &lt;= 40 kOhm5μs
$t_{ACQ,100k}$ Acquisition time (configurable), source Resistance &lt;= 100 kOhm10μs
$t_{ACQ,200k}$ Acquisition time (configurable), source Resistance &lt;= 200 kOhm15μs
$t_{ACQ,400k}$ Acquisition time (configurable), source Resistance &lt;= 400 kOhm20μs
$t_{ACQ,800k}$ Acquisition time (configurable), source Resistance &lt;= 800 kOhm40μs
$t_{CONV}$ Conversion time&lt;2μs
$E_{G1/6}$ Error $^b$ for Gain = 1/6-33%
$E_{G1/4}$ Error $^b$ for Gain = 1/4-33%
$E_{G1/2}$ Error $^b$ for Gain = 1/2. Internal reference-34%
$E_{G1}$ Error $^b$ for Gain = 1. Internal reference-34%
$E_{G1/2\_VDD\_GPIO}$ Error $^b$ for Gain = 1/2. VDD_GPIO as reference-44%
$E_{G1\_VDD\_GPIO}$ Error $^b$ for Gain = 1. VDD_GPIO as reference-44%
$C_{SAMPLE}$ Sample and hold capacitance at maximum gain $^{19}$ 2.5pF
$R_{INPUT}$ Input resistance&gt;1MΩ
$E_{NOB}$ Effective number of bits, differential mode, 12-bit resolution, 1/1 gain, 3 μs acquisition time, HFXO, 200 ksps9Bit
$S_{NDR}$ Peak signal to noise and distortion ratio, differential mode, 12-bit resolution, 1/1 gain, 3 μs acquisition time, HFXO, 200 ksps56dB
$S_{FDR}$ Spurious free dynamic range, differential mode, 12-bit resolution, 1/1 gain, 3 μs acquisition time, HFXO, 200 ksps70dBc
$R_{LADDER}$ Ladder resistance160kΩ

6.12.12 Performance factors

Clock jitter, affecting sample timing accuracy, and circuit noise can affect ADC performance.

Jitter can be between START tasks or from START task to acquisition. START timer accuracy and startup times of regulators and references will contribute to variability. Sources of circuit noise may include CPU activity and the DC/DC regulator. Best ADC performance is achieved using START timing based on the TIMER module, HFXO clock source, and Constant Latency mode.

6.13 SPIM — Serial peripheral interface master with EasyDMA

The SPI master can communicate with multiple slaves using individual chip select signals for each of the slave devices attached to a bus.

Listed here are the main features for the SPIM

• SPI mode 0-3

• EasyDMA direct transfer to/from RAM for both SPI Slave and SPI Master

• Individual selection of IO pin for each SPI signal


Figure 77: SPIM — SPI master with EasyDMA

The SPIM does not implement support for chip select directly. Therefore, the CPU must use available GPIOs to select the correct slave and control this independently of the SPI master. The SPIM supports SPI modes 0 through 3. The CONFIG register allows setting CPOL and CPHA appropriately.

ModeClock polarityClock phase
CPOLCPHA
SPI_MODE00 (Active High)0 (Leading)
SPI_MODE10 (Active High)1 (Trailing)
SPI_MODE21 (Active Low)0 (Leading)
SPI_MODE31 (Active Low)1 (Trailing)

Table 33: SPI modes

6.13.1 SPI master transaction sequence

An SPI master transaction consists of a sequence started by the START task followed by a number of events, and finally the STOP task.

An SPI master transaction is started by triggering the START task. The ENDTX event will be generated when the transmitter has transmitted all bytes in the TXD buffer as specified in the TXD.MAXCNT register. The ENDRX event will be generated when the receiver has filled the RXD buffer, i.e. received the last possible byte as specified in the RXD.MAXCNT register.

Following a START task, the SPI master will generate an END event when both ENDRX and ENDTX have been generated.

The SPI master is stopped by triggering the STOP task. A STOPPED event is generated when the SPI master has stopped.

If the ENDRX event has not already been generated when the SPI master has come to a stop, the SPI master will generate the ENDRX event explicitly even though the RX buffer is not full.

If the ENDTX event has not already been generated when the SPI master has come to a stop, the SPI master will generate the ENDTX event explicitly even though all bytes in the TXD buffer, as specified in the TXD.MAXCNT register, have not been transmitted.

The SPI master is a synchronous interface, and for every byte that is sent, a different byte will be received at the same time; this is illustrated in SPI master transaction on page 293.


Figure 78: SPI master transaction

6.13.2 Master mode pin configuration

The SCK, MOSI, and MISO signals associated with the SPI master are mapped to physical pins according to the configuration specified in the PSEL.SCK, PSEL.MOSI, and PSEL.MISO registers respectively.

The PSEL.SCK, PSEL.MOSI, and PSEL.MISO registers and their configurations are only used as long as the SPI master is enabled, and retained only as long as the device is in ON mode. PSEL.SCK, PSEL.MOSI and PSEL.MISO must only be configured when the SPI master is disabled.

To secure correct behavior in the SPI, the pins used by the SPI must be configured in the GPIO peripheral as described in GPIO configuration on page 293 prior to enabling the SPI. This configuration must be retained in the GPIO for the selected IOs as long as the SPI is enabled.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

SPI master signalSPI master pinDirectionOutput value
SCKAs specified in PSEL.SCKOutputSame as CONFIG.CPOL
MOSIAs specified in PSEL.MOSIOutput0
MISOAs specified in PSEL.MISOInputNot applicable

6.13.3 Shared resources

The SPI shares registers and other resources with other peripherals that have the same ID as the SPI. Therefore, the user must disable all peripherals that have the same ID as the SPI before the SPI can be configured and used.

Disabling a peripheral that has the same ID as the SPI will not reset any of the registers that are shared with the SPI. It is therefore important to configure all relevant SPI registers explicitly to secure that it operates correctly.

See the Instantiation table in Instantiation on page 25 for details on peripherals and their IDs.

6.13.4 EasyDMA

The SPIM implements EasyDMA for accessing RAM without CPU involvement.

The SPIM peripheral implements the following EasyDMA channels:

ChannelTypeRegister Cluster
TXDREADERTXD
RXDWRITERRXD

Table 35: SPIM EasyDMA Channels

For detailed information regarding the use of EasyDMA, see EasyDMA on page 46.

The .PTR and .MAXCNT registers are double-buffered. They can be updated and prepared for the next transmission immediately after having received the STARTED event.

The SPI master will automatically stop transmitting after TXD.MAXCNT bytes have been transmitted and RXD.MAXCNT bytes have been received. If RXD.MAXCNT is larger than TXD.MAXCNT, the remaining transmitted bytes will contain the value defined in the ORC register. If TXD.MAXCNT is larger than RXD.MAXCNT, the superfluous received bytes will be discarded.

The ENDRX/ENDTX event indicate that EasyDMA has finished accessing respectively the RX/TX buffer in RAM. The END event gets generated when both RX and TX are finished accessing the buffers in RAM.

In the case of bus congestion as described in AHB multilayer interconnect on page 48, data loss may occur.

6.13.5 Low power

When putting the system in low power and the peripheral is not needed, lowest possible power consumption is achieved by stopping, and then disabling the peripheral.

The STOP task may not be always needed (the peripheral might already be stopped), but if it is sent, software shall wait until the STOPPED event was received as a response before disabling the periphera through the ENABLE register.

6.13.6 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
SPIM0 : S0x50008000USNSSANoSPI master 0
SPIM0 : NS0x40008000
SPIM1 : S0x50009000USNSSANoSPI master 1
SPIM1 : NS0x40009000
SPIM2 : S0x5000A000USNSSANoSPI master 2
SPIM2 : NS0x4000A000
SPIM3 : S0x5000B000USNSSANoSPI master 3
SPIM3 : NS0x4000B000

Register overview

RegisterOffsetTZDescription
TASKS_START0x010Start SPI transaction
TASKS_STOP0x014Stop SPI transaction
TASKS_SUSPEND0x01CSuspend SPI transaction
TASKS_RESUME0x020Resume SPI transaction
SUBSCRIBE_START0x090Subscribe configuration for task START
SUBSCRIBE_STOP0x094Subscribe configuration for task STOP
SUBSCRIBE_SUSPEND0x09CSubscribe configuration for task SUSPEND
SUBSCRIBE_RESUME0x0A0Subscribe configuration for task RESUME
EVENTS_STOPPED0x104SPI transaction has stopped
EVENTS_ENDRX0x110End of RXD buffer reached
EVENTS_END0x118End of RXD buffer and TXD buffer reached
EVENTS_ENDTX0x120End of TXD buffer reached
EVENTS_STARTED0x14CTransaction started
PUBLISH_STOPPED0x184Publish configuration for event STOPPED
PUBLISH_ENDRX0x190Publish configuration for event ENDRX
PUBLISH_END0x198Publish configuration for event END
PUBLISH_ENDTX0x1A0Publish configuration for event ENDTX
PUBLISH_STARTED0x1CCPublish configuration for event STARTED
SHORTS0x200Shortcuts between local events and tasks
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ENABLE0x500Enable SPIM
PSEL.SCK0x508Pin select for SCK
PSEL.MOSI0x50CPin select for MOSI signal
PSEL.MISO0x510Pin select for MISO signal
FREQUENCY0x524SPI frequency. Accuracy depends on the HFCLK source selected.
RXD.PTR0x534Data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last transaction
RXD.LIST0x540EasyDMA list type
TXD.PTR0x544Data pointer
TXD.MAXCNT0x548Maximum number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last transaction
TXD.LIST0x550EasyDMA list type
CONFIG0x554Configuration register
ORC0x5C0Over-read character. Character clocked out in case an over-read of the TXD buffer.

6.13.6.1 TASKS_START

Address offset: 0x010

Start SPI transaction

6.13.6.2 TASKS_STOP

Address offset: 0x014

Stop SPI transaction

6.13.6.3 TASKS_SUSPEND

Address offset: 0x01C

Suspend SPI transaction

6.13.6.4 TASKS_RESUME

Address offset: 0x020

Resume SPI transaction

6.13.6.5 SUBSCRIBE_START

Address offset: 0x090

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.13.6.6 SUBSCRIBE_STOP

Address offset: 0x094

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.13.6.7 SUBSCRIBE_SUSPEND

Address offset: 0x09C

Subscribe configuration for task SUSPEND

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that taskSUSPENDwill subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.13.6.8 SUBSCRIBE_RESUME

Address offset: 0x0A0

Subscribe configuration for task RESUME

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.13.6.9 EVENTS_STOPPED

Address offset: 0x104

SPI transaction has stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STOPPED
NotGenerated0
Generated1

6.13.6.10 EVENTS_ENDRX

Address offset: 0x110

End of RXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ENDRX
NotGenerated0
Generated1

6.13.6.11 EVENTS_END

Address offset: 0x118

End of RXD buffer and TXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_END
NotGenerated0
Generated1

6.13.6.12 EVENTS_ENDTX

Address offset: 0x120

End of TXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDTXEnd of TXD buffer reached
NotGenerated0Event not generated
Generated1Event generated

6.13.6.13 EVENTS_STARTED

Address offset: 0x14C

Transaction started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STARTED
NotGenerated0
Generated1

6.13.6.14 PUBLISH_STOPPED

Address offset: 0x184

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event STOPPED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.13.6.15 PUBLISH_ENDRX

Address offset: 0x190

Publish configuration for event ENDRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.13.6.16 PUBLISH_END

Address offset: 0x198

Publish configuration for event END

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.13.6.17 PUBLISH_ENDTX

Address offset: 0x1A0

Publish configuration for event ENDTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that eventENDTXwill publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.13.6.18 PUBLISH_STARTED

Address offset: 0x1CC

Publish configuration for event STARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.13.6.19 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEND_STARTShortcut between event END and task START
Disabled0Disable shortcut
Enabled1Enable shortcut

6.13.6.20 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTOPPED
Set1
Disabled0
Enabled1
BRWENDRX
Set1
Disabled0ENDRX
Enabled1
CRWEND
Set1
Disabled0
Enabled1
DRWENDTX
Set1
Disabled0
Enabled1
ERWSTARTEDWrite &#x27;1&#x27; to enable interrupt for event STARTED
Set1
Disabled0
Enabled1

6.13.6.21 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPEDWrite &#x27;1&#x27; to disable interrupt for event STOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWENDRXWrite &#x27;1&#x27; to disable interrupt for event ENDRX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWENDWrite &#x27;1&#x27; to disable interrupt for event END
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDTXWrite &#x27;1&#x27; to disable interrupt for event ENDTX
Clear1Disable
Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Disabled0
Enabled1
ERWSTARTED
Clear1
Disabled0
Enabled1Read: Enabled

6.13.6.22 ENABLE

Address offset: 0x500

Enable SPIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled
Enabled

6.13.6.23 PSEL.SCK

Address offset: 0x508

Pin select for SCK

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.13.6.24 PSEL.MOSI

Address offset: 0x50C

Pin select for MOSI signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.13.6.25 PSEL.MISO

Address offset: 0x510

Pin select for MISO signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.13.6.26 FREQUENCY

Address offset: 0x524

SPI frequency. Accuracy depends on the HFCLK source selected.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0400000000000100000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFREQUENCYSPI master data rate
K1250x02000000125 kbps
K2500x04000000250 kbps
K5000x08000000500 kbps
M10x100000001 Mbps
M20x200000002 Mbps
M40x400000004 Mbps
M80x800000008 Mbps

6.13.6.27 RXD

RXD EasyDMA channel

6.13.6.27.1 RXD.PTR

Address offset: 0x534

Data pointer

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTRData pointer

Note: See the memory chapter for details about which memories are available for EasyDMA.

6.13.6.27.2 RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[1..0x1FFF]Maximum number of bytes in receive buffer

6.13.6.27.3 RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.13.6.27.4 RXD.LIST

Address offset: 0x540

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.13.6.28 TXD

TXD EasyDMA channel

6.13.6.28.1 TXD.PTR

Address offset: 0x544

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPTR

6.13.6.28.2 TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in transmit buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT[1..0x1FFF]

6.13.6.28.3 TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.13.6.28.4 TXD.LIST

Address offset: 0x550

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.13.6.29 CONFIG

Address offset: 0x554

Configuration register

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWORDER
MsbFirst0
LsbFirst1
BRWCPHA
Leading0
Trailing1
CRWCPOL
ActiveHigh0
ActiveLow1

6.13.6.30 ORC

Address offset: 0x5C0

Over-read character. Character clocked out in case an over-read of the TXD buffer.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWORCOver-read character. Character clocked out in case an over-read of the TXD buffer.

6.13.7 Electrical specification

6.13.7.1 SPIM master interface electrical specifications

SymbolDescriptionMin.Typ.Max.Units
$f_{SPIM}$ Bit rates for $SPIM^{20}$ 8Mbps
$t_{SPIM,START}$ Time from START task to transmission started1μs

6.13.7.2 Serial Peripheral Interface Master (SPIM) timing specifications

SymbolDescriptionMin.Typ.Max.Units
$t_{SPIM,CSCK}$ SCK period125ns
$t_{SPIM,RSCK,LD}$ SCK rise time, standard drivea $t_{RF,25pF}$
$t_{SPIM,RSCK,HD}$ SCK rise time, high drivea $t_{HRF,25pF}$
$t_{SPIM,FSCK,LD}$ SCK fall time, standard drivea $t_{RF,25pF}$
$t_{SPIM,FSCK,HD}$ SCK fall time, high drivea $t_{HRF,25pF}$
$t_{SPIM,WHSCK}$ SCK high timea(0.5*t $_{CSCK}$ )- t $_{RSCK}$
$t_{SPIM,WLSCK}$ SCK low timea(0.5*t $_{CSCK}$ )- t $_{FSCK}$
$t_{SPIM,SUMI}$ MISO to CLK edge setup time19ns
$t_{SPIM,HMI}$ CLK edge to MISO hold time18ns
$t_{SPIM,VMO}$ CLK edge to MOSI valid59ns
$t_{SPIM,HMO}$ MOSI hold time after CLK edge20ns


Figure 79: SPIM timing diagram

6.14 SPIS — Serial peripheral interface slave with EasyDMA

SPI slave (SPIS) is implemented with EasyDMA support for ultra low power serial communication from an external SPI master. EasyDMA in conjunction with hardware-based semaphore mechanisms removes all real-time requirements associated with controlling the SPI slave from a low priority CPU execution context.


Figure 80: SPI slave

The SPIS supports SPI modes 0 through 3. The CONFIG register allows setting CPOL and CPHA appropriately.

ModeClock polarityClock phase
CPOLCPHA
SPI_MODE00 (Active High)0 (Sample on Leading)
SPI_MODE10 (Active High)1 (Sample on Trailing)
SPI_MODE21 (Active Low)0 (Sample on Leading)
SPI_MODE31 (Active Low)1 (Sample on Trailing)

Table 36: SPI modes

6.14.1 Shared resources

The SPI slave shares registers and other resources with other peripherals that have the same ID as the SPI slave. Therefore, you must disable all peripherals that have the same ID as the SPI slave before the SPI slave can be configured and used.

Disabling a peripheral that has the same ID as the SPI slave will not reset any of the registers that are shared with the SPI slave. It is important to configure all relevant SPI slave registers explicitly to secure that it operates correctly.

The Instantiation table in Instantiation on page 25 shows which peripherals have the same ID as the SPI slave.

6.14.2 EasyDMA

The SPIS implements EasyDMA for accessing RAM without CPU involvement.
The SPIS peripheral implements the following EasyDMA channels:

ChannelTypeRegister Cluster
TXDREADERTXD
RXDWRITERRXD

Table 37: SPIS EasyDMA Channels

For detailed information regarding the use of EasyDMA, see EasyDMA on page 46.

If RXD.MAXCNT is larger than TXD.MAXCNT, the remaining transmitted bytes will contain the value defined in the ORC register.

The END event indicates that EasyDMA has finished accessing the buffer in RAM.

6.14.3 SPI slave operation

SPI slave uses two memory pointers, RXD.PTR and TXD.PTR, that point to the RXD buffer (receive buffer) and TXD buffer (transmit buffer) respectively. Since these buffers are located in RAM, which can be accessed by both the SPI slave and the CPU, a hardware based semaphore mechanism is implemented to enable safe sharing.

Before the CPU can safely update the RXD.PTR and TXD.PTR pointers it must first acquire the SPI semaphore. The CPU can acquire the semaphore by triggering the ACQUIRE task and then receiving the ACQUIRED event. When the CPU has updated the RXD.PTR and TXD.PTR pointers the CPU must release the semaphore before the SPI slave will be able to acquire it.

The CPU releases the semaphore by triggering the RELEASE task, this is illustrated in SPI transaction when shortcut between END and ACQUIRE is enabled on page 309. Triggering the RELEASE task when the semaphore is not granted to the CPU will have no effect. See Semaphore operation on page 310 for more information

If the CPU is not able to reconfigure the TXD.PTR and RXD.PTR between granted transactions, the same TX data will be clocked out and the RX buffers will be overwritten. To prevent this from happening, the END_ACQUIRE shortcut can be used. With this shortcut enabled the semaphore will be handed over to the CPU automatically after the granted transaction has completed, giving the CPU the ability to update the TXPTR and RXPTR between every granted transaction.

The ENDRX event is generated when the RX buffer has been filled.

The RXD.MAXCNT register specifies the maximum number of bytes the SPI slave can receive in one granted transaction. If the SPI slave receives more than RXD.MAXCNT number of bytes, an OVERFLOW will be indicated in the STATUS register and the incoming bytes will be discarded.

The TXD.MAXCNT parameter specifies the maximum number of bytes the SPI slave can transmit in one granted transaction. If the SPI slave is forced to transmit more than TXD.MAXCNT number of bytes, an OVERREAD will be indicated in the STATUS register and the ORC character will be clocked out.

The RXD.AMOUNT and TXD.AMOUNT registers are updated when a granted transaction is completed. The TXD.AMOUNT register indicates how many bytes were read from the TX buffer in the last transaction, that is, ORC (over-read) characters are not included in this number. Similarly, the RXD.AMOUNT register indicates how many bytes were written into the RX buffer in the last transaction.


Figure 81: SPI transaction when shortcut between END and ACQUIRE is enabled

6.14.4 Semaphore operation

The semaphore is a mechanism implemented inside the SPI slave that prevents simultaneous access to the data buffers by the SPI slave and CPU.

The semaphore is by default assigned to the CPU after the SPI slave is enabled. No ACQUIRED event will be generated for this initial semaphore handover. An ACQUIRED event will be generated immediately if the ACQUIRE task is triggered while the semaphore is assigned to the CPU. The figure SPI semaphore FSM on page 310 illustrates the transitions between states in the semaphore based on the relevant tasks and events.


Figure 82: SPI semaphore FSM

Note: The semaphore mechanism does not, at any time, prevent the CPU from performing read or write access to the RXD.PTR register, the TXD.PTR registers, or the RAM that these pointers are pointing to. The semaphore is only telling when these can be updated by the CPU so that safe sharing is achieved.

The SPI slave will try to acquire the semaphore when STARTED event is detected, the event also indicates that CSN is currently low. If the SPI slave does not manage to acquire the semaphore at this point (i.e., it is under CPU's control), the transaction will be ignored. This means that all incoming data on MOSI will be discarded, and the DEF (default) character will be clocked out on the MISO line throughout the whole transaction. This will also be the case even if the semaphore is released by the CPU during the transaction. In case of a race condition where the CPU and the SPI slave try to acquire the semaphore at the same time, as illustrated in lifeline item 2 in figure SPI transaction when shortcut between END and ACQUIRE is enabled on page 309, the semaphore will be granted to the CPU.

If the SPI slave acquires the semaphore, the transaction will be granted. The incoming data on MOSI will be stored in the RXD buffer and the data in the TXD buffer will be clocked out on MISO.

When a granted transaction is completed and CSN goes high, the SPI slave will automatically release the semaphore and generate the END event.

As long as the semaphore is available, the SPI slave can be granted multiple transactions one after the other.

If the CPU tries to acquire the semaphore while it is assigned to the SPI slave, an immediate handover will not be granted. However, the semaphore will be handed over to the CPU as soon as the SPI slave has released the semaphore after the granted transaction is completed. If the END_ACQUIRE shortcut is enabled and the CPU has triggered the ACQUIRE task during a granted transaction, only one ACQUIRE request will be served following the END event.

6.14.5 Pin configuration

The CSN, SCK, MOSI, and MISO signals associated with the SPI slave are mapped to physical pins according to the configuration specified in the PSEL.CSN, PSEL.SCK, PSEL.MOSI, and PSEL.MISO registers respectively. If the CONNECT field of any of these registers is set to Disconnected, the associated SPI slave signal will not be connected to any physical pins.

The PSEL.CSN, PSEL.SCK, PSEL.MOSI, and PSEL.MISO registers and their configurations are only used as long as the SPI slave is enabled, and retained only as long as the device is in System ON mode, see POWER — Power control on page 68 chapter for more information about power modes. When the peripheral is disabled, the pins will behave as regular GPIOs, and use the configuration in their respective OUT bit field and PIN_CNF[n] register. PSEL.CSN, PSEL.SCK, PSEL.MOSI, and PSEL.MISO must only be configured when the SPI slave is disabled.

To secure correct behavior in the SPI slave, the pins used by the SPI slave must be configured in the GPIO peripheral as described in GPIO configuration before enabling peripheral on page 311 before enabling the SPI slave. This is to secure that the pins used by the SPI slave are driven correctly if the SPI slave itself is temporarily disabled, or if the device temporarily enters System OFF. This configuration must be retained in the GPIO for the selected I/Os as long as the SPI slave is to be recognized by an external SPI master.

The MISO line is set in high impedance as long as the SPI slave is not selected with CSN.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

SPI signalSPI pinDirectionOutput valueComment
CSNAs specified in PSEL.CSNInputNot applicable
SCKAs specified in PSEL.SCKInputNot applicable
MOSIAs specified in PSEL.MOSIInputNot applicable
MISOAs specified in PSEL.MISOInputNot applicableEmulates that the SPI slave is not selected.

Table 38: GPIO configuration before enabling peripheral

6.14.6 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
SPISO : S0x50008000USNSSANoSPI slave 0
SPISO : NS0x40008000
SPIS1 : S0x50009000USNSSANoSPI slave 1
SPIS1 : NS0x40009000
SPIS2 : S0x5000A000USNSSANoSPI slave 2
SPIS2 : NS0x4000A000
SPIS3 : S0x5000B000USNSSANoSPI slave 3
SPIS3 : NS0x4000B000

Register overview

RegisterOffsetTZDescription
TASKS_ACQUIRE0x024Acquire SPI semaphore
TASKS_RELEASE0x028Release SPI semaphore, enabling the SPI slave to acquire it
SUBSCRIBE_ACQUIRE0x0A4Subscribe configuration for task ACQUIRE
SUBSCRIBE_RELEASE0x0A8Subscribe configuration for task RELEASE
EVENTS_END0x104Granted transaction completed
EVENTS_ENDRX0x110End of RXD buffer reached
EVENTS_ACQUIRED0x128Semaphore acquired
PUBLISH_END0x184Publish configuration for event END
PUBLISH_ENDRX0x190Publish configuration for event ENDRX
PUBLISH_ACQUIRED0x1A8Publish configuration for event ACQUIRED
SHORTS0x200Shortcuts between local events and tasks
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
SEMSTAT0x400Semaphore status register
STATUS0x440Status from last transaction
ENABLE0x500Enable SPI slave
PSEL.SCK0x508Pin select for SCK
PSEL.MISO0x50CPin select for MISO signal
PSEL.MOSI0x510Pin select for MOSI signal
PSEL.CSN0x514Pin select for CSN signal
RXD.PTR0x534RXD data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes received in last granted transaction
RXD.LIST0x540EasyDMA list type
TXD.PTR0x544TXD data pointer
TXD.MAXCNT0x548Maximum number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transmitted in last granted transaction
TXD.LIST0x550EasyDMA list type
CONFIG0x554Configuration register
DEF0x55CDefault character. Character clocked out in case of an ignored transaction.
ORC0x5C0Over-read character

6.14.6.1 TASKS_ACQUIRE

Address offset: 0x024

Acquire SPI semaphore

6.14.6.2 TASKS_RELEASE

Address offset: 0x028

Release SPI semaphore, enabling the SPI slave to acquire it

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_RELEASE
Trigger1

6.14.6.3 SUBSCRIBE_ACQUIRE

Address offset: 0x0A4

Subscribe configuration for task ACQUIRE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.14.6.4 SUBSCRIBE_RELEASE

Address offset: 0x0A8

Subscribe configuration for task RELEASE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task RELEASE will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.14.6.5 EVENTS_END

Address offset: 0x104

Granted transaction completed

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_END
NotGenerated0
Generated1

6.14.6.6 EVENTS_ENDRX

Address offset: 0x110

End of RXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDRXEnd of RXD buffer reached
NotGenerated0Event not generated
Generated1Event generated

6.14.6.7 EVENTS_ACQUIRED

Address offset: 0x128

Semaphore acquired

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ACQUIRED
NotGenerated0
Generated1

6.14.6.8 PUBLISH_END

Address offset: 0x184

Publish configuration for event END

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event END will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.14.6.9 PUBLISH_ENDRX

Address offset: 0x190

Publish configuration for event ENDRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.14.6.10 PUBLISH_ACQUIRED

Address offset: 0x1A8

Publish configuration for event ACQUIRED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.14.6.11 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEND_ACQUIREShortcut between event END and task ACQUIRE
Disabled0Disable shortcut
Enabled1Enable shortcut

6.14.6.12 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEND
Set1
Disabled0
Enabled1
BRWENDRX
Set1
Disabled0
Enabled1
CRWACQUIRED
Set1
Disabled0
Enabled1

6.14.6.13 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENDWrite &#x27;1&#x27; to disable interrupt for event END
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWENDRXWrite &#x27;1&#x27; to disable interrupt for event ENDRX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWACQUIREDWrite &#x27;1&#x27; to disable interrupt for event ACQUIRED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.14.6.14 SEMSTAT

Address offset: 0x400

Semaphore status register

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARSEMSTATSemaphore status
Free0Semaphore is free
CPU1Semaphore is assigned to CPU
SPIS2Semaphore is assigned to SPI slave
CPUPending3Semaphore is assigned to SPI but a handover to the CPU is pending

6.14.6.15 STATUS

Address offset: 0x440

Status from last transaction

Note: Individual bits are cleared by writing a '1' to the bits that shall be cleared

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOVERREAD
NotPresent0
Present1
Clear1
BRWOVERFLOW
NotPresent0
Present1Read: error not present
Clear1Read: error present

6.14.6.16 ENABLE

Address offset: 0x500

Enable SPI slave

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled2

6.14.6.17 PSEL.SCK

Address offset: 0x508

Pin select for SCK

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.14.6.18 PSEL.MISO

Address offset: 0x50C

Pin select for MISO signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.14.6.19 PSEL.MOSI

Address offset: 0x510

Pin select for MOSI signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.14.6.20 PSEL.CSN

Address offset: 0x514

Pin select for CSN signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.14.6.21 RXD.PTR

Address offset: 0x534

RXD data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPTR

6.14.6.22 RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT[1..0x1FFF]

6.14.6.23 RXD.AMOUNT

Address offset: 0x53C

Number of bytes received in last granted transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.14.6.24 RXD.LIST

Address offset: 0x540

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.14.6.25 TXD.PTR

Address offset: 0x544

TXD data pointer

See the Memory chapter for details about which memories are available for EasyDMA.

6.14.6.26 TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in transmit buffer

6.14.6.27 TXD.AMOUNT

Address offset: 0x54C

Number of bytes transmitted in last granted transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.14.6.28 TXD.LIST

Address offset: 0x550

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.14.6.29 CONFIG

Address offset: 0x554

Configuration register

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWORDER
MsbFirst0
LsbFirst1
BRWCPHA
Leading0
Trailing1
CRWCPOL
ActiveHigh0
ActiveLow1

6.14.6.30 DEF

Address offset: 0x55C

Default character. Character clocked out in case of an ignored transaction.

Bit number
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

6.14.6.31 ORC

Address offset: 0x5C0

Over-read character

Bit number
ID

6.14.7 Electrical specification

6.14.7.1 SPIS slave interface electrical specifications

SymbolDescriptionMin.Typ.Max.Units
$f_{SPIS}$ Bit rates for $SPIS^{21}$ $8^{22}$ Mbps
$t_{SPIS,START}$ Time from RELEASE task to receive/transmit (CSN active)0.125μs

6.14.7.2 Serial Peripheral Interface Slave (SPIS) timing specifications

SymbolDescriptionMin.Typ.Max.Units
$t_{\text{SPIS,CSCKIN}}$ SCK input period125ns
$t_{\text{SPIS,RFSCKIN}}$ SCK input rise/fall time30ns
$t_{\text{SPIS,WHSCKIN}}$ SCK input high time30ns
$t_{\text{SPIS,WLSCKIN}}$ SCK input low time30ns
$t_{\text{SPIS,SUCSN}}$ CSN to CLK setup time1000ns
$t_{\text{SPIS,HCSN}}$ CLK to CSN hold time2000ns
$t_{\text{SPIS,ASA}}$ CSN to MISO driven0ns
$t_{\text{SPIS,ASO}}$ CSN to MISO $valid^a$ 1000ns
$t_{\text{SPIS,DISSO}}$ CSN to MISO $disabled^a$ 68ns
$t_{\text{SPIS,CWH}}$ CSN inactive time300ns
$t_{\text{SPIS,VSO}}$ CLK edge to MISO valid59ns
$t_{\text{SPIS,HSO}}$ MISO hold time after CLK edge $20^{23}$ ns
$t_{\text{SPIS,SUSI}}$ MOSI to CLK edge setup time19ns
$t_{\text{SPIS,HSI}}$ CLK edge to MOSI hold time18ns


Figure 83: SPIS timing diagram


Figure 84: Common SPIM and SPIS timing diagram

6.15 SPU — System protection unit

SPU is the central point in the system to control access to memories, peripherals and other resources. Listed here are the main features of the SPU:

• ARM TrustZone support, allowing definition of secure, non-secure and non-secure callable memory regions

• Extended ARMTrustZone, protecting memory regions and peripherals from non-CPU devices like EasyDMA transfer

• Pin access protection, preventing non-secure code and peripherals from accessing secure pin resources

• DPPI access protection, realized by preventing non-secure code and peripherals to publish from or subscribe to secured DPPI channels

• External domain access protection, controlling access rights from other MCUs

6.15.1 General concepts

SPU provides a register interface to control the various internal logic blocks that monitor access to memory-mapped slave devices (RAM, flash, peripherals, etc) and other resources (device pins, DPPI channels, etc).

For memory-mapped devices like RAM, flash and peripherals, the internal logic checks the address and attributes (e.g. read, write, execute, secure) of the incoming transfer to block it if necessary. Whether a secure resource can be accessed by a given master is defined:

For a CPU-type master

By the security state of the CPU and the security state reported by the SPU, for the address in the bus transfer

For a non-CPU master

By the security attribute of the master that initiates the transfer, defined by a SPU register The Simplified view of the protection of RAM, flash and peripherals using SPU on page 323 shows a simplified view of the SPU registers controlling several internal modules.


Figure 85: Simplified view of the protection of RAM, flash and peripherals using SPU

The protection logic implements a read-as-zero/write-ignore (RAZ/WI) policy:

• A blocked read operation will always return a zero value on the bus, preventing information leak

• A write operation to a forbidden region or peripheral will be ignored

An error is reported through dedicated error signals. For security state violations from an M33 master this will be a SecureFault exception, for other violations this will be an SPU event. The SPU event can be configured to generate an interrupt towards the CPU.

Other resources like pins and DPPI channels are protected by comparing the security attributes of the protected resource with the security attribute of the peripheral that wants to access it. The SPU is the only place where those security attributes can be configured.

6.15.1.1 Special considerations for ARM TrustZone for Cortex-M enabled system

For a ARM TrustZone for Cortex-M enabled CPU, the SPU also controls custom logic.

Custom logic is shown as the implementation defined attribution unit (IDAU) in figure Simplified view of the protection of RAM, flash and peripherals using SPU on page 323. Full support is provided for:

• ARM TrustZone for Cortex-M related instructions, like test target (TT) for reporting the security attributes of a region

• Non-secure callable (NSC) regions, to implement secure entry points from non-secure code

The SPU provides the necessary registers to configure the security attributes for memory regions and peripherals. However, as a requirement to use the SPU, the secure attribution unit (SAU) needs to be disabled and all memory set as non-secure in the ARM core. This will allow the SPU to control the IDAU and set the security attribution of all addresses as originally intended.

6.15.2 Flash access control

The flash memory space is divided in regions, each of them with configurable permissions settings.

The flash memory space is divided into 32 regions of 32 KiB .

For each region, four different types of permissions can be configured:

Read

Allows data read access to the region. Note that code fetch from this region is not controlled by the read permission but by the execute permission described below.

Write

Allows write or page erase access to the region

Execute

Allows code fetch from this region, even if data read is disabled

Secure

Allows only bus accesses with the security attribute set to access the region

Permissions can be set independently. For example, it is possible to configure a flash region to be accessible only through secure transfer, being read-only (no write allowed) and non-executable (no code fetch allowed). For each region, permissions can be set and then locked by using the FLASHREGION[n].PERM.LOCK bit, to prevent subsequent modifications.

Note that the debugger is able to step through execute-protected memory regions.

The following figure shows the flash memory space and the divided regions:


Figure 86: Definition of the N=32 regions, each of 32 KiB, in the flash memory space

6.15.2.1 Non-secure callable (NSC) region definition in flash

The SPU provides support for the definition of non-secure callable (NSC) sub-regions to allow non-secure to secure function calls.

A non-secure callable sub-region can only exist within an existing secure region and its definition is done using two registers:

• FLASHNSC[n].REGION, used to select the secure region that will contain the NSC sub-region

• FLASHNSC[n].SIZE, used to define the size of the NSC sub-region within the secure region

The NSC sub-region will be defined from the highest address in that region, going downwards. Figure below illustrates the NSC sub-regions and the registers used for their definition:


Figure 87: Non-secure callable region definition in the flash memory space

The NSC sub-region will only be defined if:

• FLASHNSC[i].SIZE value is non zero

• FLASHNSC[i].REGION defines a secure region

If FLASHNSC[i].REGION and FLASHNSC[j].REGION have the same value, there is only one sub-region defined as NSC, with the size given by the maximum of FLASHNSC[i].SIZE and FLASHNSC[j].SIZE.

If FLASHNSC[i].REGION defines a non-secure region, then there is no non-secure callable region defined and the selected region stays non-secure.

6.15.2.2 Flash access error reporting

The SPU and the logic controlled by it will respond with a certain behavior once an access violation is detected.

The following will happen once the logic controlled by the SPU detects an access violation on one of the flash ports:

• The faulty transfer will be blocked

• In case of a read transfer, the bus will be driven to zero

• Feedback will be sent to the master through specific bus error signals, if this is supported by the master. Moreover, the SPU will receive an event that can optionally trigger an interrupt towards the CPU.

• SecureFault exception will be triggered if security violation is detected for access from Cortex-M33

• BusFault exception will be triggered when read/write/execute protection violation is detected for Cortex-M33

• FLASHACCERR event will be triggered if any access violations are detected for all master types except for Cortex-M33 security violation

The following table summarizes the SPU behavior based on the type of initiator and access violation:

Master typeSecurity violationRead/Write/Execute protection violation
Cortex-M33SecureFault exceptionBusFault exception, FLASHACCERR event
EasyDMARAZ/WI, FLASHACCERR eventRAZ/WI, FLASHACCERR event
Other mastersRAZ/WI, FLASHACCERR eventRAZ/WI, FLASHACCERR event

Table 39: Error reporting for flash access errors

For a Cortex-M33 master, the SecureFault exception will take precedence over the BusFault exception if a security violation occurs simultaneously with another type of violation.

6.15.2.3 UICR and FICR protections

The user information configuration registers (UICR) and factory information configuration registers (FICR) are always considered as secure. FICR registers are read-only. UICR registers can be read and written by secure code only.

Writing new values to user information configuration registers must follow the procedure described in NVMC — Non-volatile memory controller on page 29. Code execution from FICR and UICR address spaces will always be reported as access violation, an exception to this rule applies during a debug session.

6.15.3 RAM access control

The RAM memory space is divided in regions, each of them with configurable permissions settings.

The RAM memory space is divided into 32 regions of 8 KiB.

For each region, four different types of permissions can be configured:

Read

Allows data read access to the region. Code fetch from this region is not controlled by the read permission but by the execute permission described below.

Write

Allows write access to the region

Execute

Allows code fetch from this region

Secure

Allows only bus accesses with the security attribute set to access the region

Permissions can be set independently. For example, it is possible to configure a RAM region to be accessible only through secure transfer, being read-only (no write allowed) and non-executable (no code fetch allowed). For each region, permissions can be set and then locked to prevent subsequent modifications by using the RAMREGION[n].PERM.LOCK bit.

The following figure shows the RAM memory space and the devided regions:


Figure 88: Definition of the N=32 regions, each of 8 KiB, in the RAM memory space

6.15.3.1 Non-secure callable (NSC) region definition in RAM

The SPU provides support for the definition of non-secure callable (NSC) sub-regions to allow non-secure to secure function calls.

A non-secure callable sub-region can only exist within an existing secure region and its definition is done using two registers:

• RAMNSC[n].REGION, used to select the secure region that will contain the NSC sub-region

• RAMNSC[n].SIZE, used to define the size of the NSC sub-region within the secure region

The NSC sub-region will be defined from the highest address in that region, going downwards. Figure below illustrates the NSC sub-regions and the registers used for their definition:


Figure 89: Non-secure callable region definition in the RAM memory space

The NSC sub-region will only be defined if:

• RAMNSC[i].SIZE value is non zero

• RAMNSC[i].REGION defines a secure region

If RAMNSC[i].REGION and RAMNSC[j].REGION have the same value, there is only one sub-region defined as NSC, with the size given by the maximum of RAMNSC[i].SIZE and RAMNSC[j].SIZE.

If RAMNSC[i].REGION defines a non-secure region, then there is no non-secure callable region defined and the selected region stays non-secure.

6.15.3.2 RAM access error reporting

The SPU and the logic controlled by it will respond with a certain behavior once an access violation is detected.

The following will happen once the logic controlled by the SPU detects an access violation on one of the RAM ports:

• The faulty transfer will be blocked

• In case of a read transfer, the bus will be driven to zero

• Feedback will be sent to the master through specific bus error signals, if this is supported by the master

• SecureFault exception will be triggered if security violation is detected for access from Cortex-M33

• BusFault exception will be triggered when read/write/execute protection violation is detected for Cortex-M33. The SPU will also generate an event that can optionally trigger an interrupt towards the CPU.

• RAMACCERR event will be triggered if any access violations are detected for all master types but for Cortex-M33 security violation

The following table summarizes the SPU behavior based on the type of initiator and access violation:

Master typeSecurity violationRead/Write/Execute protection violation
Cortex-M33SecureFault exceptionBusFault exception, RAMACCERR event
EasyDMARAZ/WI, RAMACCERR eventRAZ/WI, RAMACCERR event
Other mastersRAZ/WI, RAMACCERR eventRAZ/WI, RAMACCERR event

Table 40: Error reporting for RAM access errors

For a Cortex-M33 master, the SecureFault exception will take precedence over the BusFault exception if a security violation occurs simultaneously with another type of violation.

6.15.4 Peripheral access control

Access controls are defined by the characteristics of the peripheral.

Peripherals can have their security attribute set as:

Always secure

For a peripheral related to system control

Always non-secure

For some general-purpose peripherals

Configurable

For general-purpose peripherals that may be configured for secure only access

The full list of peripherals and their corresponding security attributes can be found in Memory map on page 23. For each peripheral with ID n, PERIPHID[n]. PERM will show whether the security attribute for this peripheral is configurable or not.

If not hardcoded, the security attribute can configured using the PERIPHID[id].PERM

At reset, all user-selectable and split security peripherals are set to be secure, with secure DMA where present.

Secure code can access both secure peripherals and non-secure peripherals.

6.15.4.1 Peripherals with split security

Peripherals with split security are defined to handle use-cases when both secure and non-secure code needs to control the same resource.

When peripherals with split security have their security attribute set to non-secure, access to specific registers and bitfields within some registers is dependent on the security attribute of the bus transfer. For example, some registers will not be accessible for a non-secure transfer.

When peripherals with split security have their security attribute set to secure, then only secure transfers can access their registers.

See Instantiation on page 25 for an overview of split security peripherals. Respective peripheral chapters explain the specific security behavior of each peripheral.

6.15.4.2 Peripheral address mapping

Peripherals that have non-secure security mapping have their address starting with 0x4XXX_XXXX. Peripherals that have secure security mapping have their address starting with 0x5XXX_XXXX.

Peripherals with a user-selectable security mapping are available at an address starting with:

• 0x4XXX_XXXX, if the peripheral security attribute is set to non-secure

• 0x5XXX_XXXX, if the peripheral security attribute is set to secure

Note: Accesses to the 0x4XXX_XXXX address range from secure or non-secure code for a peripheral marked as secure will result in a bus-error.

Secure code accessing the 0x5XXX_XXXX address range of a peripheral marked as non-secure will also result in a bus-error.

Peripherals with a split security mapping are available at an address starting with:

• 0x4XXX_XXXX for non-secure access and 0x5XXX_XXXX for secure access, if the peripheral security attribute is set to non-secure

• Secure registers in the 0x4XXX_XXXX range are not visible for secure or non-secure code, and an attempt to access such a register will result in write-ignore, read-as-zero behavior

• Secure code can access both non-secure and secure registers in the 0x5XXX_XXXX range

• 0x5XXX_XXXX, if the peripheral security attribute is set to secure

Any attempt to access the 0x5000_0000-0x5FFF_FFFF address range from non-secure code will be ignored and generate a SecureFault exception.

The table below illustrates the address mapping for the three peripheral types, in all possible configurations

Security-features and configurationIs mapped at 0x4XXX_XXXX?Is mapped at 0x5XXX_XXXX?
Secure peripheralNoYes
Non-secure peripheralYesNo
Split-security peripheral, with attribute=secureNoYes
Split-security peripheral, with attribute=non-secureYes, restricted functionalityYes

Table 41: Peripheral's address mapping in relation to its security-features and configuration

6.15.4.3 Special considerations for peripherals with DMA master

Peripherals containing a DMA master can be configured so the security attribute of the DMA transfers is different from the security attribute of the peripheral itself. This allows a secure peripheral to do nonsecure data transfers to or from the system memories.

The following conditions must be met:

• The DMA field of PERIPHID[n].PERM.SECURITYMAPPING should read as "SeparateAttribute"

• The peripheral itself should be secure (PERIPHID[n].PERM.SECATTR == 1)

Then it is possible to select the security attribute of the DMA transfers using the field DMASEC (PERIPHID[n].PERM.DMASEC == Secure and PERIPHID[n].PERM.DMASEC == NonSecure) in PERIPHID[n].PERM.

6.15.4.4 Peripheral access error reporting

Peripherals send error reports once access violation is detected.

The following will happen if the logic controlled by the SPU detects an access violation on one of the peripherals:

• The faulty transfer will be blocked

• In case of a read transfer, the bus will be driven to zero

• Feedback is sent to the master through specific bus error signals, if this is supported by the master. If the master is a processor supporting ARM TrustZone for Cortex-M, a SecureFault exception will be generated for security related errors.

• The PERIPHACCERR event will be triggered

6.15.5 Pin access control

Access to device pins can be controlled by the SPU. A pin can be declared as secure so that only secure peripherals or secure code can access it. Pins declared as non-secure can be accessed by both secure and non-secure peripherals or code.

The security attribute of each pin can be individually configured in SPU's GPIOPORT[n].PERM register. When the secure attribute is set for a pin, only peripherals that have the secure attribute set will be able to read the value of the pin or change it.

Peripherals can select the pin(s) they need access to through their PSEL register(s). If a peripheral has its attribute set to non-secure, but one of its PSEL registers selects a pin with the attribute set to secure, the SPU controlled logic will ensure that the pin selection is not propagated. In addition, the pin value will always be read as zero, to prevent a non-secure peripheral from obtaining a value from a secure pin. Whereas access to other pins with attribute set as non-secure will not be blocked.

Pins can be assigned to other domains than the application domain by changing the MCUSEL value in the GPIO PIN_CNF[n] register. Domains that do not have a pin assigned to them can neither control that pin nor read its status. Any pin configuration set in a domain that doesn't have ownership of that pin will not take effect until the MCUSEL is updated to assign that pin to the domain. Within each domain, pin access is controlled by that domain's local security configuration and peripheral PSEL registers. This is illustrated in the following figure:

Note: The SPU setting will still count when the APP domain accesses its local GPIO peripheral, as local registers are still writable even though MCUSEL is set to a different domain. Any changes in the APP GPIO peripheral done to a GPIO controlled by another domain will not affect the GPIO pad until MCUSEL is changed to APP.


Figure 90: Pin access for domains other than the application domain

6.15.6 DPPI access control

Access to DPPI channels can be restricted. A channel can be declared as secure so that only secure peripherals can access it.

The security attribute of a DPPI channel is configured in DPPI[n].PERM (n=0..0) on page 340. When the secure attribute is set for a channel, only peripherals that have the secure attribute set will be able to publish events to this channel or subscribe to this channel to receive tasks.

The DPPI controller peripheral (DPPIC) is a split security peripheral, i.e., its security behavior depends on the security attributes of both the DPPIC and the accessing party. See Special considerations regarding the DPPIC configuration registers on page 333 for more information about the DPPIC security behavior.

If a non-secure peripheral wants to publish an event on a secure DPPI channel, the channel will ignore the event. If a non-secure peripheral subscribes to a secure DPPI channel, it will not receive any events from this channel. The following figure illustrates the principle of operation of the security logic for a subscribed channel:


Figure 91: Subscribed channel security concept

No error reporting mechanism is associated with the DPPI access control logic.

6.15.6.1 Special considerations regarding the DPPIC configuration registers

DPPI channels can be enabled, disabled and grouped through the DPPI controller (DPPIC). The DPPIC is a split-security peripheral, and handles both secure and non-secure accesses.

A non-secure peripheral access will only be able to configure and control DPPI channels defined as non-secure in SPU's DPPI[n].PERM register(s). A secure peripheral access can control all DPPI channels, independently of the configuration in the DPPI[n].PERM register(s).

The DPPIC allows the creation of group of channels to be able to enable or disable all channels within a group simultaneously. The security attribute of a group of channels (secure or non-secure) is defined as follows:

• If all channels (enabled or not) in the group are non-secure, then the group is considered non-secure

• If at least one of the channels (enabled or not) in the group is secure, then the group is considered secure

A non-secure access to a DPPIC register, or a bitfield controlling a channel marked as secure in DPPI[n].PERM register(s), will be ignored:

• Write accesses will have no effect

• Read will always return a zero value

No exceptions are thrown when a non-secure access targets a register or bitfield controlling a secure channel. For example, if the bit i is set in the DPPI[n].PERM register (declaring the DPPI channel i as secure), then:

• Non-secure write accesses to registers CHEN, CHENSET and CHENCLR will not be able to write to bit i of those registers

• Non-secure write accesses to registers TASK_CHG[j].EN and TASK_CHG[j].DIS will be ignored if the channel group j contains at least one channel defined as secure (it can be the channel i itself or any channel declared as secured)

• Non-secure read accesses to registers CHEN, CHENSET and CHENCLR will always read zero for the bit at position i

For the channel configuration registers (DPPIC.CHG[n]), access from non-secure code is only possible if the included channels are all non-secure, whether the channels are enabled or not. If a DPPIC.CHG[g] register included one or more secure channels, then the group gis considered as secure and only a secure transfer can read or write DPPIC.CHG[g]. A non-secure write will be ignored and a non-secure read will return zero.

The DPPIC can subscribe to secure or non-secure channels through SUBSCRIBE_CHG[n] registers in order to trigger task for enabling or disabling groups of channels. But an event from a non-secure channel will be ignored if the group subscribing to this channel is secure. An event from a secure channel can trigger both secure and non-secure tasks.

6.15.7 External domain access control

Other domains with their own CPUs can access peripherals, flash, and RAM memories. The SPU allows controlling accesses from those bus masters.

The external domains can access application MCU memories and peripherals. External domains are assigned security attributes as described in register EXTDOMAIN[n].PERM.

DomainCapability registerPermission register
LTE modemModem is always a non-secure domainNot applicable

Table 42: Register mapping for external domains

The figure below illustrates how the security control units are used to assign security attributes to transfers initiated by the external domains:


Figure 92: Access control from external domains

6.15.8 TrustZone for Cortex-M ID allocation

Flash and RAM regions, as well as non-secure and secure peripherals, are assigned unique TrustZone IDs.

Note: TrustZone ID should not be confounded with the peripheral ID used to identify peripherals. The table below shows the TrustZone ID allocation:

RegionsTrustZone Cortex-M ID
Flash regions 0..310..31
RAM regions 0..1564..79
Non-secure peripherals253
Secure peripherals254

Table 43: TrustZone ID allocation

6.15.9 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
SPU0x50003000HFSNANoSystem Protection Unit

Register overview

RegisterOffsetTZDescription
EVENTS_RAMACCERR0x100A security violation has been detected for the RAM memory space
EVENTS_FLASHACCERR0x104A security violation has been detected for the flash memory space
EVENTS_PERIPHACCERR0x108A security violation has been detected on one or several peripherals
PUBLISH_RAMACCERR0x180Publish configuration for event RAMACCERR
PUBLISH_FLASHACCERR0x184Publish configuration for event FLASHACCERR
PUBLISH_PERIPHACCERR0x188Publish configuration for event PERIPHACCERR
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
CAP0x400Show implemented features for the current device
EXTDOMAIN[n].PERM0x440Access for bus access generated from the external domain n
List capabilities of the external domain n
DPPI[n].PERM0x480Select between secure and non-secure attribute for the DPPI channels.
DPPI[n].LOCK0x484Prevent further modification of the corresponding PERM register
GPIOPORT[n].PERM0x4C0Select between secure and non-secure attribute for pins 0 to 31 of port n.
This register is retained.
GPIOPORT[n].LOCK0x4C4Prevent further modification of the corresponding PERM register
FLASHNSC[n].REGION0x500Define which flash region can contain the non-secure callable (NSC) region n
FLASHNSC[n].SIZE0x504Define the size of the non-secure callable (NSC) region n
RAMNSC[n].REGION0x540Define which RAM region can contain the non-secure callable (NSC) region n
RAMNSC[n].SIZE0x544Define the size of the non-secure callable (NSC) region n
FLASHREGION[n].PERM0x600Access permissions for flash region n
RAMREGION[n].PERM0x700Access permissions for RAM region n
PERIPHID[n].PERM0x800List capabilities and access permissions for the peripheral with ID n

6.15.9.1 EVENTS_RAMACCERR

Address offset: 0x100

A security violation has been detected for the RAM memory space

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RAMACCERR
NotGenerated0
Generated1

6.15.9.2 EVENTS_FLASHACCERR

Address offset: 0x104

A security violation has been detected for the flash memory space

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_FLASHACCERR
NotGenerated0
Generated1

6.15.9.3 EVENTS_PERIPHACCERR

Address offset: 0x108

A security violation has been detected on one or several peripherals

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_PERIPHACCERRA security violation has been detected on one or several peripherals
NotGenerated0Event not generated
Generated1Event generated

6.15.9.4 PUBLISH_RAMACCERR

Address offset: 0x180

Publish configuration for event RAMACCERR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RAMACCERR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.15.9.5 PUBLISH_FLASHACCERR

Address offset: 0x184

Publish configuration for event FLASHACCERR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event FLASHACCERR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.15.9.6 PUBLISH_PERIPHACCERR

Address offset: 0x188

Publish configuration for event PERIPHACCERR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event PERIPHACCERR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.15.9.7 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRAMACCERR
Disabled0
Enabled1
BRWFLASHACCERR
Disabled0
Enabled1
CRWPERIPHACCERR
Disabled0
Enabled1Enable or disable interrupt for event PERIPHACCERR

6.15.9.8 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRAMACCERRWrite &#x27;1&#x27; to enable interrupt for event RAMACCERR
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWFLASHACCERRWrite &#x27;1&#x27; to enable interrupt for event FLASHACCERR
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWPERIPHACCERRWrite &#x27;1&#x27; to enable interrupt for event PERIPHACCERR
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.15.9.9 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRAMACCERR
Clear1
Disabled0
Enabled1
BRWFLASHACCERR
Clear1
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWPERIPHACCERR
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.15.9.10 CAP

Address offset: 0x400

Show implemented features for the current device

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
ARTZMShow ARM TrustZone status
NotAvailable0ARM TrustZone support not available
Enabled1ARM TrustZone support is available

6.15.9.11 EXTDOMAIN[n].PERM (n=0..0)

Address offset: 0x440 + (n × 0x4)

Access for bus access generated from the external domain n

List capabilities of the external domain n

Bit number313029282726252423222120191817161514131211109876543210
IDCBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARSECUREMAPPING
BRWSECATTRPeripheral security mapping
Note: This bit has effect only ifEXTDOMAIN[n].PERM.SECUREMAPPING reads as UserSelectable
Bus accesses from this domain have the non-secure attribute set
Bus accesses from this domain have secure attribute set
CRWLOCK
This register can be updated
The content of this register can&#x27;t be changed until the next reset

6.15.9.12 DPPI[n].PERM (n=0..0)

Address offset: 0x480 + (n × 0x8)

Select between secure and non-secure attribute for the DPPI channels.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000FFFF000000000000000001111111111111111
IDR/WFieldValue IDValueDescription
A-PRWCHANNEL[i] (i=0..15)Select secure attribute.
Secure1Channeli has its secure attribute set
NonSecure0Channeli has its non-secure attribute set

6.15.9.13 DPPI[n].LOCK (n=0..0)

Address offset: 0x484 + (n × 0x8)

Prevent further modification of the corresponding PERM register

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLOCK
Locked1DPPI[n].PERM register can&#x27;t be changed until next reset
Unlocked0DPPI[n].PERM register content can be changed

6.15.9.14 GPIOPORT[n].PERM (n=0..0) (Retained)

Address offset: 0x4C0 + (n × 0x8)

Select between secure and non-secure attribute for pins 0 to 31 of port n.

This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)Select secure attribute attribute for PIN i.
Secure1Pin i has its secure attribute set
NonSecure0Pin i has its non-secure attribute set

6.15.9.15 GPIOPORT[n].LOCK (n=0..0)

Address offset: 0x4C4 + (n × 0x8)

Prevent further modification of the corresponding PERM register

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLOCK
Locked1
Unlocked0

6.15.9.16 FLASHNSC[n].REGION (n=0..1)

Address offset: 0x500 + (n × 0x8)

Define which flash region can contain the non-secure callable (NSC) region n

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-RWREGIONRegion number
BRWLOCK
Unlocked0This register can be updated
Locked1The content of this register can&#x27;t be changed until the next reset

6.15.9.17 FLASHNSC[n].SIZE (n=0..1)

Address offset: 0x504 + (n × 0x8)

Define the size of the non-secure callable (NSC) region n

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValue
ARWSIZE
Disabled0
The region n is not defined as a non-secure callable region. Normal security attributes (secure or non-secure) are enforced.
321
642

6.15.9.18 RAMNSC[n].REGION (n=0..1)

Address offset: 0x540 + (n × 0x8)

Define which RAM region can contain the non-secure callable (NSC) region n

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-RWREGIONRegion number
BRWLOCK
Unlocked0This register can be updated
Locked1The content of this register can&#x27;t be changed until the next reset

6.15.9.19 RAMNSC[n].SIZE (n=0..1)

Address offset: 0x544 + (n × 0x8)

Define the size of the non-secure callable (NSC) region n

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSIZE
Disabled
32
64
128
256
512
Bit number313029282726252423222120191817161514131211109876543210
IDBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
10246The region n is defined as non-secure callable with a 1024-byte size
20487The region n is defined as non-secure callable with a 2048-byte size
40968The region n is defined as non-secure callable with a 4096-byte size
BRWLOCK
Unlocked0This register can be updated
Locked1The content of this register can&#x27;t be changed until the next reset

6.15.9.20 FLASHREGION[n].PERM (n=0..31)

Address offset: 0x600 + (n × 0x4)

Access permissions for flash region n

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000017000000000000000000000000000010111
IDR/WFieldValue IDValue
ARWEXECUTE
Enable1
Disable0
BRWWRITE
Enable1
Disable0Block write operation to region n
CRWREAD
Enable1
Disable0
DRWSECATTR
Non_Secure0
Secure1
ERWLOCK
Unlocked0
Locked1

6.15.9.21 RAMREGION[n].PERM (n=0..31)

Address offset: 0x700 + (n × 0x4)

Access permissions for RAM region n

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000017000000000000000000000000000010111
IDR/WFieldValue IDValue
ARWEXECUTE
Enable1
Disable0
BRWWRITE
Enable1
Disable0
CRWREAD
Enable1
Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000001700000000000000000000000000010111
IDR/WFieldValue IDValue
Disable0
DRWSECATTR
Non_Secure0
Secure1
ERWLOCK
Unlocked0
Locked1

6.15.9.22 PERIPHID[n].PERM (n=0..66)

Address offset: 0x800 + (n × 0x4)

List capabilities and access permissions for the peripheral with ID n

Note: Reset values are unique per peripheral instantiation. Please refer to the peripheral instantiation table. Entries not listed in the instantiation table are undefined.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBBAA
Reset 0x0000001200000000000000000000000000010010
IDR/WFieldValue IDValue
ARSECUREMAPPING
NonSecure0
Secure1
UserSelectable2
Split3
BRDMA
NoDMA0
NoSeparateAttribute1
SeparateAttribute2
CRWSECATTR
Secure1
NonSecure0
Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBBAA
Reset 0x00000012000000000000000000000000000010010
IDR/WFieldValue IDValue
DRWDMASEC
Secure1
NonSecure0
ERWLOCK
Unlocked0
Locked1
FRPRESENT
NotPresent0
IsPresent1

6.16 TIMER — Timer/counter

This peripheral is a general purpose timer designed to keep track of time in user-selective time intervals, it can operate in two modes: timer and counter.


Figure 93: Block schematic for timer/counter

The timer/counter runs on the high-frequency clock source (HFCLK) and includes a four-bit (1/2X) prescaler that can divide the timer input clock from the HFCLK controller. Clock source selection between PCLK16M and PCLK1M is automatic according to TIMER base frequency set by the prescaler. The TIMER base frequency is always given as 16 MHz divided by the prescaler value.

The PPI system allows a TIMER event to trigger a task of any other system peripheral of the device. The PPI system also enables the TIMER task/event features to generate periodic output and PWM signals to any GPIO. The number of input/outputs used at the same time is limited by the number of GPIOTE channels.

TIMER can operate in two modes: Timer mode and Counter mode. In both modes, TIMER is started by triggering the START task, and stopped by triggering the STOP task. After the timer is stopped the timer can resume timing/counting by triggering the START task again. When timing/counting is resumed, the timer will continue from the value it had prior to being stopped.

In Timer mode, the TIMER's internal Counter register is incremented by one for every tick of the timer frequency fTIMER as illustrated in Block schematic for timer/counter on page 345. The timer frequency is derived from PCLK16M as shown in the following example, using the values specified in the PRESCALER register.

<div class="mineru-algorithm" style="white-space: pre-wrap; font-family:monospace;"> $f_{TIMER} = 16 MHz / (2^{PRESCALER})$ </div>

When fTIMER ≤ 1 MHz, TIMER will use PCLK1M instead of PCLK16M for reduced power consumption.

In counter mode, the TIMER's internal Counter register is incremented by one each time the COUNT task is triggered, meaning the timer frequency and the prescaler are not utilized in counter mode. Similarly, the COUNT task has no effect in Timer mode.

The TIMER's maximum value is configured by changing the bit-width of the timer in register BITMODE on page 352.

PRESCALER on page 353 and BITMODE on page 352 must only be updated when the timer is stopped. If these registers are updated while the timer is started, unpredictable behavior may occur.

When the timer is incremented beyond its maximum value, the Counter register will overflow and the timer will automatically start over from zero.

The Counter register can be cleared by triggering the CLEAR task. This will explicitly set the internal value to zero.

TIMER implements multiple capture/compare registers.

Independent of prescaler setting, the accuracy of TIMER is equivalent to one tick of the timer frequency fTIMER as illustrated in Block schematic for timer/counter on page 345.

6.16.1 Capture

TIMER implements one capture task for every available capture/compare register.

Every time the CAPTURE[n] task is triggered, the Counter value is copied to the CC[n] register.

6.16.2 Compare

TIMER implements one COMPARE event for every available capture/compare register.

A COMPARE event is generated when the Counter is incremented and then becomes equal to the value specified in one of the capture compare registers. When the Counter value becomes equal to the value specified in a capture compare register CC[n], the corresponding compare event COMPARE[n] is generated.

BITMODE on page 352 specifies how many bits of the Counter register and the capture/compare register that are used when the comparison is performed. Other bits will be ignored.

The COMPARE event can be configured to operate in one-shot mode by configuring the corresponding ONESHOTEN[n] register. COMPARE[n] event is generated the first time the Counter matches CC[n] after CC[n] has been written.

6.16.3 Task delays

After TIMER is started, the CLEAR, COUNT, and STOP tasks are guaranteed to take effect within one clock cycle of the PCLK16M.

6.16.4 Task priority

If the START task and the STOP task are triggered at the same time, meaning within the same period of PCLK16M, the STOP task will be prioritized.

If one or more of the CAPTURE tasks and the CLEAR task is triggered at the same time, that is, within the same period of PCLK16M, the CLEAR task will be prioritized. This means that the CC register for the relevant CAPTURE task will be set to 0.

6.16.5 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TIMER0 : S0x5000F000USNSNANoTimer 0
TIMER0 : NS0x4000F000
TIMER1 : S0x50010000USNSNANoTimer 1
TIMER1 : NS0x40010000
TIMER2 : S0x50011000USNSNANoTimer 2
TIMER2 : NS0x40011000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start Timer
TASKS_STOP0x004Stop Timer
TASKS_COUNT0x008Increment Timer (Counter mode only)
TASKS_CLEAR0x00CClear time
TASKS_SHUTDOWN0x010Shut down timer
This register is deprecated.
TASKS_CAPTURE[n]0x040Capture Timer value to CC[n] register
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
SUBSCRIBE_COUNT0x088Subscribe configuration for task COUNT
SUBSCRIBE_CLEAR0x08CSubscribe configuration for task CLEAR
SUBSCRIBE_SHUTDOWN0x090Subscribe configuration for task SHUTDOWN
This register is deprecated.
SUBSCRIBE_CAPTURE[n]0x0C0Subscribe configuration for task CAPTURE[n]
EVENTS_COMPARE[n]0x140Compare event on CC[n] match
PUBLISH_COMPARE[n]0x1C0Publish configuration for event COMPARE[n]
SHORTS0x200Shortcuts between local events and tasks
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
MODE0x504Timer mode selection
BITMODE0x508Configure the number of bits used by the TIMER
PRESCALER0x510Timer prescaler register
ONESHOTEN[n]0x514Enable one-shot operation for Capture/Compare channel n
CC[n]0x540Capture/Compare register n

6.16.5.1 TASKS_START

Address offset: 0x000

Start Timer

6.16.5.2 TASKS_STOP

Address offset: 0x004

Stop Timer

6.16.5.3 TASKS_COUNT

Address offset: 0x008

Increment Timer (Counter mode only)

6.16.5.4 TASKS_CLEAR

Address offset: 0x00C

Clear time

6.16.5.5 TASKS_SHUTDOWN (Deprecated)

Address offset: 0x010

Shut down timer

This register is deprecated.

6.16.5.6 TASKS_CAPTURE[n] (n=0..5)

Address offset: 0x040 + (n × 0x4)

Capture Timer value to CC[n] register

6.16.5.7 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task START will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.16.5.8 SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.16.5.9 SUBSCRIBE_COUNT

Address offset: 0x088

Subscribe configuration for task COUNT

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.16.5.10 SUBSCRIBE_CLEAR

Address offset: 0x08C

Subscribe configuration for task CLEAR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.16.5.11 SUBSCRIBE_SHUTDOWN (Deprecated)

Address offset: 0x090

Subscribe configuration for task SHUTDOWN

This register is deprecated.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.16.5.12 SUBSCRIBE_CAPTURE[n] (n=0..5)

Address offset: 0x0C0 + (n × 0x4)

Subscribe configuration for task CAPTURE[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.16.5.13 EVENTS_COMPARE[n] (n=0..5)

Address offset: 0x140 + (n × 0x4)

Compare event on CC[n] match

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_COMPARECompare event on CC[n] match
NotGenerated0Event not generated
Generated1Event generated

6.16.5.14 PUBLISH_COMPARE[n] (n=0..5)

Address offset: 0x1C0 + (n × 0x4)

Publish configuration for event COMPARE[n]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.16.5.15 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-FRWCOMPARE[i]_CLEAR (i=0..5)
Disabled0
Enabled1
G-LRWCOMPARE[i]_STOP (i=0..5)
Disabled0
Enabled1

6.16.5.16 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDF
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-FRWCOMPARE[i] (i=0..5)
Set1
Disabled0
Enabled1

6.16.5.17 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDF
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-FRWCOMPARE[i] (i=0..5)
Clear1
Disabled0
Enabled1

6.16.5.18 MODE

Address offset: 0x504

Timer mode selection

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMODE
Timer0
Counter1
LowPowerCounter2

6.16.5.19 BITMODE

Address offset: 0x508

Configure the number of bits used by the TIMER

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWBITMODE
16Bit0
08Bit1
24Bit2
32Bit3

6.16.5.20 PRESCALER

Address offset: 0x510

Timer prescaler register

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000004000000000000000000000000000000100
IDR/WFieldValue IDValue
ARWPRESCALER[0..9]

6.16.5.21 ONESHOTEN[n] (n=0..5)

Address offset: 0x514 + (n × 0x4)

Enable one-shot operation for Capture/Compare channel n

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWONESHOTEN
Disable0
Enable1
6.16.5.22 CC[n] (n=0..5)

Address offset: 0x540 + (n × 0x4)

Capture/Compare register n

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCC

Only the number of bits indicated by BITMODE will be used by the TIMER.

6.17 TWIM — I2C compatible two-wire interface master with EasyDMA

TWI master with EasyDMA (TWIM) is a two-wire half-duplex master which can communicate with multiple slave devices connected to the same bus.

Listed here are the main features for TWIM:

${ \mathsf { I } } ^ { 2 } { \mathsf { C } }$ compatible

• Supported baud rates: 100, 250, 400 kbps

• Support for clock stretching (non ${ \mathsf { I } } ^ { 2 } { \mathsf { C } }$ compliant)

• EasyDMA

The two-wire interface can communicate with a bi-directional wired-AND bus with two lines (SCL, SDA). The protocol makes it possible to interconnect up to 127 individually addressable devices. TWIM is not compatible with CBUS.

The GPIOs used for each two-wire interface line can be chosen from any GPIO on the device and are independently configurable. This enables great flexibility in device pinout and efficient use of board space and signal routing.


Figure 94: TWI master with EasyDMA

A typical TWI setup consists of one master and one or more slaves. For an example, see the following figure. This TWIM is only able to operate as a single master on the TWI bus. Multi-master bus configuration is not supported.


Figure 95: A typical TWI setup comprising one master and three slaves

This TWI master supports clock stretching performed by the slaves. The SCK pulse following a stretched clock cycle may be shorter than specified by the I2C specification.

The TWI master is started by triggering the STARTTX or STARTRX tasks and stopped by triggering the STOP task. The TWI master will generate a STOPPED event when it has stopped following a STOP task.

After the TWI master is started, the STARTTX or STARTRX tasks should not be triggered again until the TWI master has issued a LASTRX, LASTTX, or STOPPED event.

The TWI master can be suspended using the SUSPEND task, this can be used when using the TWI master in a low priority interrupt context. When the TWIM enters suspend state, will automatically issue a SUSPENDED event while performing a continuous clock stretching until it is instructed to resume operation via a RESUME task. The TWI master cannot be stopped while it is suspended, thus the STOP task must be issued after the TWI master has been resumed.

Note: Any ongoing byte transfer will be allowed to complete before the suspend is enforced. A SUSPEND task has no effect unless the TWI master is actively involved in a transfer.

If a NACK is clocked in from the slave, the TWI master will generate an ERROR event.

6.17.1 Shared resources

The TWI master shares registers and other resources with other peripherals that have the same ID as the TWI master. Therefore, you must disable all peripherals that have the same ID as the TWI master before the TWI master can be configured and used.

Disabling a peripheral that has the same ID as the TWI master will not reset any of the registers that are shared with the TWI master. It is therefore important to configure all relevant registers explicitly to secure that the TWI master operates correctly.

The Instantiation table in Instantiation on page 25 shows which peripherals have the same ID as the TWI.

6.17.2 EasyDMA

The TWIM implements EasyDMA for accessing RAM without CPU involvement.

The TWIM peripheral implements the EasyDMA channels found in the following table.

ChannelTypeRegister Cluster
TXDREADERTXD
RXDWRITERRXD

Table 44: TWIM EasyDMA Channels

For detailed information regarding the use of EasyDMA, see EasyDMA on page 46.

The .PTR and .MAXCNT registers are double-buffered. They can be updated and prepared for the next RX/ TX transmission immediately after having received the RXSTARTED/TXSTARTED event.

The STOPPED event indicates that EasyDMA has finished accessing the buffer in RAM.

6.17.3 Master write sequence

A TWI master write sequence is started by triggering the STARTTX task. After the STARTTX task has been triggered, the TWI master will generate a start condition on the TWI bus, followed by clocking out the address and the READ/WRITE bit set to 0 (WRITE=0, READ=1).

The address must match the address of the slave device that the master wants to write to. The READ/ WRITE bit is followed by an ACK/NACK bit (ACK=0 or NACK=1) generated by the slave.

After receiving the ACK bit, the TWI master will clock out the data bytes found in the transmit buffer located in RAM at the address specified in the TXD.PTR register. Each byte clocked out from the master will be followed by an ACK/NACK bit clocked in from the slave.

A typical TWI master write sequence is shown in the following figure. Occurrence 2 in the figure illustrates clock stretching performed by the TWI master following a SUSPEND task.

A SUSPENDED event indicates that the SUSPEND task has taken effect. This event can be used to synchronize the software.

The TWI master will generate a LASTTX event when it starts to transmit the last byte, this is shown in the following figure.


Figure 96: TWI master writing data to a slave

The TWI master is stopped by triggering the STOP task. This task should be triggered during the transmission of the last byte to secure that the TWI master will stop as fast as possible after sending the last byte. The shortcut between LASTTX and STOP can alternatively be used to accomplish this.

Note: The TWI master does not stop by itself when the entire RAM buffer has been sent, or when an error occurs. The STOP task must be issued, using a local or PPI shortcut, or in software as part of the error handler.

6.17.4 Master read sequence

A TWI master read sequence is started by triggering the STARTRX task. After the STARTRX task has been triggered, the TWI master will generate a start condition on the TWI bus, followed by clocking out the address and the READ/WRITE bit set to 1 (WRITE = 0, READ = 1). The address must match the address of the slave device that the master wants to read from. The READ/WRITE bit is followed by an ACK/NACK bit (ACK=0 or NACK = 1) generated by the slave.

After sending the ACK bit, the TWI slave will send data to the master using the clock generated by the master.

Data received will be stored in RAM at the address specified in the RXD.PTR register. The TWI master will generate an ACK after all but the last byte have been received from the slave. The TWI master will generate a NACK after the last byte received to indicate that the read sequence shall stop.

A typical TWI master read sequence is illustrated in The TWI master reading data from a slave on page 357. Occurrence 2 in the figure illustrates clock stretching performed by the TWI master following a SUSPEND task.

A SUSPENDED event indicates that the SUSPEND task has taken effect. This event can be used to synchronize the software.

The TWI master will generate a LASTRX event when it is ready to receive the last byte, as shown in The TWI master reading data from a slave on page 357. If RXD.MAXCNT > 1, the LASTRX event is generated after sending the ACK of the previously received byte. If RXD.MAXCNT = 1, the LASTRX event is generated after receiving the ACK following the address and READ bit.

The TWI master is stopped by triggering the STOP task. This task must be triggered before the NACK bit is supposed to be transmitted. The STOP task can be triggered at any time during the reception of the last byte. It is recommended to use the shortcut between LASTRX and STOP to accomplish this.

The TWI master does not stop by itself when the RAM buffer is full, or when an error occurs. The STOP task must be issued, using a local or PPI shortcut, or in software as part of the error handler.

The TWI master cannot be stopped while suspended, so the STOP task must be issued after the TWI master has been resumed.


Figure 97: The TWI master reading data from a slave

6.17.5 Master repeated start sequence

A typical repeated start sequence is one in which the TWI master writes two bytes to the slave followed by reading four bytes from the slave. This example uses shortcuts to perform the simplest type of repeated start sequence, i.e. one write followed by one read. The same approach can be used to perform a repeated start sequence where the sequence is read followed by write.

The following figure shows an example of a repeated start sequence where the TWI master writes two bytes followed by reading four bytes from the slave.


Figure 98: Master repeated start sequence

If a more complex repeated start sequence is needed, and the TWI firmware drive is serviced in a low priority interrupt, it may be necessary to use the SUSPEND task and SUSPENDED event to guarantee that the correct tasks are generated at the correct time. A double repeated start sequence using the SUSPEND task to secure safe operation in low priority interrupts is shown in the following figure.


Figure 99: Double repeated start sequence

6.17.6 Low power

When putting the system in low power and the peripheral is not needed, lowest possible power consumption is achieved by stopping, and then disabling the peripheral.

When the STOP task is sent, the software shall wait until the STOPPED event is received as a response before disabling the peripheral through the ENABLE register. If the peripheral is already stopped, the STOP task is not required.

6.17.7 Master mode pin configuration

The SCL and SDA signals associated with the TWI master are mapped to physical pins according to the configuration specified in the PSEL.SCL and PSEL.SDA registers respectively.

The PSEL.SCL and PSEL.SDA registers and their configurations are only used as long as the TWI master is enabled, and retained only as long as the device is in ON mode. When the peripheral is disabled, the pins will behave as regular GPIOs, and use the configuration in their respective OUT bit field and PIN_CNF[n] register. PSEL.SCL, PSEL.SDA must only be configured when the TWI master is disabled.

To secure correct signal levels on the pins used by the TWI master when the system is in OFF mode, and when the TWI master is disabled, these pins must be configured in the GPIO peripheral as described in the following table.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

TWI master signalTWI master pinDirectionOutput valueDrive strength
SCLAs specified in PSEL.SCLInputNot applicableS0D1
SDAAs specified in PSEL.SDAInputNot applicableS0D1

Table 45: GPIO configuration before enabling peripheral

6.17.8 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TWIM0 : S0x50008000USNSSANoTwo-wire interface master 0
TWIM0 : NS0x40008000
TWIM1 : S0x50009000USNSSANoTwo-wire interface master 1
TWIM1 : NS0x40009000
TWIM2 : S0x5000A000USNSSANoTwo-wire interface master 2
TWIM2 : NS0x4000A000
TWIM3 : S0x5000B000USNSSANoTwo-wire interface master 3
TWIM3 : NS0x4000B000

Register overview

RegisterOffsetTZDescription
TASKS_STARTRX0x000Start TWI receive sequence
TASKS_STARTTX0x008Start TWI transmit sequence
TASKS_STOP0x014Stop TWI transaction. Must be issued while the TWI master is not suspended.
TASKS_SUSPEND0x01CSuspend TWI transaction
TASKS_RESUME0x020Resume TWI transaction
SUBSCRIBE_STARTRX0x080Subscribe configuration for task STARTRX
SUBSCRIBE_STARTTX0x088Subscribe configuration for task STARTTX
SUBSCRIBE_STOP0x094Subscribe configuration for task STOP
SUBSCRIBE_SUSPEND0x09CSubscribe configuration for task SUSPEND
SUBSCRIBE_RESUME0x0A0Subscribe configuration for task RESUME
EVENTS_STOPPED0x104TWI stopped
EVENTS_ERROR0x124TWI error
EVENTS_SUSPENDED0x148SUSPEND task has been issued, TWI traffic is now suspended.
EVENTS_RXSTARTED0x14CReceive sequence started
EVENTS_TXSTARTED0x150Transmit sequence started
EVENTS_LASTRX0x15CByte boundary, starting to receive the last byte
EVENTS_LASTTX0x160Byte boundary, starting to transmit the last byte
PUBLISH_STOPPED0x184Publish configuration for event STOPPED
PUBLISH_ERROR0x1A4Publish configuration for event ERROR
PUBLISH_SUSPENDED0x1C8Publish configuration for event SUSPENDED
PUBLISH_RXSTARTED0x1CCPublish configuration for event RXSTARTED
PUBLISH_TXSTARTED0x1D0Publish configuration for event TXSTARTED
PUBLISH_LASTRX0x1DCPublish configuration for event LASTRX
PUBLISH_LASTTX0x1E0Publish configuration for event LASTTX
SHORTS0x200Shortcuts between local events and tasks
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ERRORSRC0x4C4Error source
ENABLE0x500Enable TWIM
PSEL.SCL0x508Pin select for SCL signal
PSEL.SDA0x50CPin select for SDA signal
FREQUENCY0x524TWI frequency. Accuracy depends on the HFCLK source selected.
RXD.PTR0x534Data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last transaction
RXD.LIST0x540EasyDMA list type
TXD.PTR0x544Data pointer
TXD.MAXCNT0x548Maximum number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last transaction
TXD.LIST0x550EasyDMA list type
ADDRESS0x588Address used in the TWI transfer

6.17.8.1 TASKS_STARTRX

Address offset: 0x000

Start TWI receive sequence

6.17.8.2 TASKS_STARTTX

Address offset: 0x008

Start TWI transmit sequence

6.17.8.3 TASKS_STOP

Address offset: 0x014

Stop TWI transaction. Must be issued while the TWI master is not suspended.

6.17.8.4 TASKS_SUSPEND

Address offset: 0x01C

Suspend TWI transaction

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_SUSPEND
Trigger1

6.17.8.5 TASKS_RESUME

Address offset: 0x020

Resume TWI transaction

6.17.8.6 SUBSCRIBE_STARTRX

Address offset: 0x080

Subscribe configuration for task STARTRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.17.8.7 SUBSCRIBE_STARTTX

Address offset: 0x088

Subscribe configuration for task STARTTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.17.8.8 SUBSCRIBE_STOP

Address offset: 0x094

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.17.8.9 SUBSCRIBE_SUSPEND

Address offset: 0x09C

Subscribe configuration for task SUSPEND

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that taskSUSPENDwill subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.17.8.10 SUBSCRIBE_RESUME

Address offset: 0x0A0

Subscribe configuration for task RESUME

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.17.8.11 EVENTS_STOPPED

Address offset: 0x104

TWI stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STOPPED
NotGenerated0
Generated1

6.17.8.12 EVENTS_ERROR

Address offset: 0x124

TWI error

6.17.8.13 EVENTS_SUSPENDED

Address offset: 0x148

SUSPEND task has been issued, TWI traffic is now suspended.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_SUSPENDEDSUSPEND task has been issued, TWI traffic is now suspended.
NotGenerated0Event not generated
Generated1Event generated

6.17.8.14 EVENTS_RXSTARTED

Address offset: 0x14C

Receive sequence started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RXSTARTED
NotGenerated0
Generated1

6.17.8.15 EVENTS_TXSTARTED

Address offset: 0x150

Transmit sequence started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TXSTARTED
NotGenerated0
Generated1

6.17.8.16 EVENTS_LASTRX

Address offset: 0x15C

Byte boundary, starting to receive the last byte

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS LASTRX
NotGenerated0
Generated1

6.17.8.17 EVENTS_LASTTX

Address offset: 0x160

Byte boundary, starting to transmit the last byte

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_LASTTXByte boundary, starting to transmit the last byte
NotGenerated0Event not generated
Generated1Event generated

6.17.8.18 PUBLISH_STOPPED

Address offset: 0x184

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event STOPPED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.17.8.19 PUBLISH_ERROR

Address offset: 0x1A4

Publish configuration for event ERROR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ERROR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.17.8.20 PUBLISH_SUSPENDED

Address offset: 0x1C8

Publish configuration for event SUSPENDED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that eventSUSPENDEDwill publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.17.8.21 PUBLISH_RXSTARTED

Address offset: 0x1CC

Publish configuration for event RXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.17.8.22 PUBLISH_TXSTARTED

Address offset: 0x1D0

Publish configuration for event TXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.17.8.23 PUBLISH_LASTRX

Address offset: 0x1DC

Publish configuration for event LASTRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event LASTRX will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.17.8.24 PUBLISH_LASTTX

Address offset: 0x1E0

Publish configuration for event LASTTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event LASTTX will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.17.8.25 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDF
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLASTTX_STARTRX
Disabled0
Enabled1
BRWLASTTX_SUSPEND
Disabled0
Enabled1Enable shortcut
CRWLASTTX_STOP
Disabled0
Enabled1
DRWLASTRX_STARTTX
Disabled0
Enabled1
FRWLASTRX_STOP
Disabled0
Enabled1

6.17.8.26 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGFDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPED
Disabled0Enable or disable interrupt for event STOPPED
Enabled1Disable
DRWERROR
Disabled0Enable or disable interrupt for event ERROR
Enabled1Disable
FRWSUSPENDED
Disabled0Enable or disable interrupt for event SUSPENDED
Enabled1Disable
GRWRXSTARTED
Disabled0Enable or disable interrupt for event RXSTARTED
Enabled1Disable
HRWTXSTARTED
Disabled0Enable or disable interrupt for event TXSTARTED
Enabled1Disable
IRWLASTRX
Disabled0Enable or disable interrupt for event LASTRX
Enabled1Disable
JRWLASTTX
Disabled0Enable or disable interrupt for event LASTTX
Enabled1Disable

6.17.8.27 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGFDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPED
Set1
Disabled0
Enabled1
DRWERROR
Set1
Disabled0Read: Disabled
Enabled1
FRWSUSPENDED
Set1
Disabled0
Enabled1
GRWRXSTARTED
Set1
Disabled0
Enabled1
HRWTXSTARTED
Set1
Disabled0Read: Disabled
Enabled1
IRWLASTRX
Set1
Disabled0Read: Disabled
Enabled1
JRWLASTTX
Set1
Disabled0Read: Disabled
Enabled1Read: Enabled

6.17.8.28 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGFDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPEDWrite '1' to disable interrupt for event STOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWERRORWrite '1' to disable interrupt for event ERROR
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWSUSPENDEDWrite '1' to disable interrupt for event SUSPENDED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
GRWRXSTARTEDWrite '1' to disable interrupt for event RXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWTXSTARTEDWrite '1' to disable interrupt for event TXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWLASTRXWrite '1' to disable interrupt for event LASTRX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
JRWLASTTXWrite '1' to disable interrupt for event LASTTX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.17.8.29 ERRORSRC

Address offset: 0x4C4

Error source

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOVERRUN
W1C
NotReceived0
Received1
BRWANACK
W1C
NotReceived0
Received1
CRWDNACK
W1C
NotReceived0
Received1

6.17.8.30 ENABLE

Address offset: 0x500

Enable TWIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled6

6.17.8.31 PSEL.SCL

Address offset: 0x508

Pin select for SCL signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.17.8.32 PSEL.SDA

Address offset: 0x50C

Pin select for SDA signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.17.8.33 FREQUENCY

Address offset: 0x524

TWI frequency. Accuracy depends on the HFCLK source selected.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0400000000000100000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFREQUENCYTWI master clock frequency
K1000x01980000100 kbps
K2500x04000000250 kbps
K4000x06400000400 kbps

6.17.8.34 RXD

RXD EasyDMA channel

6.17.8.34.1 RXD.PTR

Address offset: 0x534

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPTR

6.17.8.34.2 RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[1..0x1FFF]Maximum number of bytes in receive buffer

6.17.8.34.3 RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.17.8.34.4 RXD.LIST

Address offset: 0x540

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.17.8.35 TXD

TXD EasyDMA channel

6.17.8.35.1 TXD.PTR

Address offset: 0x544

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPTR

6.17.8.35.2 TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in transmit buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[1..0x1FFF]Maximum number of bytes in transmit buffer

6.17.8.35.3 TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.17.8.35.4 TXD.LIST

Address offset: 0x550

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.17.8.36 ADDRESS

Address offset: 0x588

Address used in the TWI transfer

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARWADDRESSAddress used in the TWI transfer

6.17.9 Electrical specification

6.17.9.1 TWIM interface electrical specifications

SymbolDescriptionMin.Typ.Max.Units
$f_{\text{TWIM,SCL}}$ Bit rates for TWIM $^{24}$ 100400kbps
$t_{\text{TWIM,START}}$ Time from STARTRX/STARTTX task to transmission started1.615μs

6.17.9.2 Two Wire Interface Master (TWIM) timing specifications

SymbolDescriptionMin.Typ.Max.Units
$t_{\text{TWIM,SU\_DAT}}$ Data setup time before positive edge on SCL – all modes300ns
$t_{\text{TWIM,HD\_DAT}}$ Data hold time after negative edge on SCL – 100, 250 and 400 kbps500ns
$t_{\text{TWIM,HD\_STA,100kbps}}$ TWIM master hold time for START and repeated START condition, 100 kbps10000ns
$t_{\text{TWIM,HD\_STA,250kbps}}$ TWIM master hold time for START and repeated START condition, 250 kbps4000ns
$t_{\text{TWIM,HD\_STA,400kbps}}$ TWIM master hold time for START and repeated START condition, 400 kbps2500ns
$t_{\text{TWIM,SU\_STO,100kbps}}$ TWIM master setup time from SCL high to STOP condition, 100 kbps5000ns
$t_{\text{TWIM,SU\_STO,250kbps}}$ TWIM master setup time from SCL high to STOP condition, 250 kbps2000ns
$t_{\text{TWIM,SU\_STO,400kbps}}$ TWIM master setup time from SCL high to STOP condition, 400 kbps1250ns
$t_{\text{TWIM,BUF,100kbps}}$ TWIM master bus free time between STOP and START conditions, 100 kbps5800ns
$t_{\text{TWIM,BUF,250kbps}}$ TWIM master bus free time between STOP and START conditions, 250 kbps2700ns
$t_{\text{TWIM,BUF,400kbps}}$ TWIM master bus free time between STOP and START conditions, 400 kbps2100ns


Figure 100: TWIM timing diagram, 1 byte transaction

6.17.10 Pullup resistor


Figure 101: Recommended TWIM pullup value vs. line capacitance

• The I2C specification allows a line capacitance of 400 pF at most.

• The value of internal pullup resistor $( \mathsf { R } _ { \mathsf { P U } } )$ for nRF9151 can be found in GPIO — General purpose input/ output on page 163.

6.18 TWIS $- 1 ^ { 2 } \mathsf C$ compatible two-wire interface slave with EasyDMA

TWI slave with EasyDMA (TWIS) is compatible with ${ \mathsf { I } } ^ { 2 } { \mathsf { C } }$ operating at 100 kHz and 400 kHz. The TWI transmitter and receiver implement EasyDMA.


Figure 102: TWI slave with EasyDMA

A typical TWI setup consists of one master and one or more slaves. For an example, see the following figure. TWIS is only able to operate with a single master on the TWI bus.


Figure 103: A typical TWI setup comprising one master and three slaves

The following figure shows the TWI slave state machine.


Figure 104: TWI slave state machine

The following table contains descriptions of the symbols used in the state machine.

SymbolTypeDescription
ENABLERegisterThe TWI slave has been enabled via the ENABLE register.
PREPARETXTaskThe TASKS_PREPARETX task has been triggered.
STOPTaskThe TASKS_STOP task has been triggered.
PREPARERXTaskThe TASKS_PREPARERX task has been triggered.
STOPPEDEventThe EVENTS_STOPPED event was generated.
RXSTARTEDEventThe EVENTS_RXSTARTED event was generated.
TXSTARTEDEventThe EVENTS_TXSTARTED event was generated.
TX preparedInternalInternal flag indicating that a TASKS_PREPARETX task has been triggered. This flag is not visible to the user.
RX preparedInternalInternal flag indicating that a TASKS_PREPARERX task has been triggered. This flag is not visible to the user.
Unprepare TXInternalClears the internal &#x27;TX prepared&#x27; flag until next TASKS_PREPARETX task.
Unprepare RXInternalClears the internal &#x27;RX prepared&#x27; flag until next TASKS_PREPARERX task.
Stop conditionTWI protocolA TWI stop condition was detected.
Restart conditionTWI protocolA TWI restart condition was detected.

Table 46: TWI slave state machine symbols
The TWI slave can perform clock stretching, with the premise that the master is able to support it.

The TWI slave operates in a low power mode while waiting for a TWI master to initiate a transfer. As long as the TWI slave is not addressed, it will remain in this low power mode.

To secure correct behavior of the TWI slave, PSEL.SCL, PSEL.SDA, CONFIG, and the ADDRESS[n] registers must be configured prior to enabling the TWI slave through the ENABLE register. Similarly, changing these settings must be performed while the TWI slave is disabled. Failing to do so may result in unpredictable behavior.

6.18.1 Shared resources

The TWI slave shares registers and other resources with other peripherals that have the same ID as the TWI slave.

Therefore, you must disable all peripherals that have the same ID as the TWI slave before the TWI slave can be configured and used. Disabling a peripheral that has the same ID as the TWI slave will not reset any of the registers that are shared with the TWI slave. It is therefore important to configure all relevant registers explicitly to secure that the TWI slave operates correctly.

The Instantiation table in Instantiation on page 25 shows which peripherals have the same ID as the TWI slave.

6.18.2 EasyDMA

The TWIS implements EasyDMA for accessing RAM without CPU involvement.
The following table shows the Easy DMA channels that the TWIS peripheral implements.

ChannelTypeRegister Cluster
TXDREADERTXD
RXDWRITERRXD

Table 47: TWIS EasyDMA Channels

For detailed information regarding the use of EasyDMA, see EasyDMA on page 46. The STOPPED event indicates that EasyDMA has finished accessing the buffer in RAM.

6.18.3 TWI slave responding to a read command

Before the TWI slave can respond to a read command, the TWI slave must be configured correctly and enabled via the ENABLE register. When enabled, the TWI slave will be in its IDLE state. .

A read command is started when the TWI master generates a start condition on the TWI bus, followed by clocking out the address and the READ/WRITE bit set to 1 (WRITE=0, READ=1). The READ/WRITE bit is followed by an ACK/NACK bit (ACK=0 or NACK=1) response from the TWI slave.

The TWI slave can listen for up to two addresses at the same time. This is configured in the ADDRESS registers and the CONFIG register.

The TWI slave will only acknowledge (ACK) the read command if the address presented by the master matches one of the addresses the slave is configured to listen for. The TWI slave will generate a READ event when it acknowledges the read command.

The TWI slave can only detect a read command from the IDLE state.

The TWI slave will set an internal 'TX prepared' flag when the PREPARETX task is triggered.

When the read command is received, the TWI slave will enter the TX state if the internal 'TX prepared' flag is set.

If the internal 'TX prepared' flag is not set when the read command is received, the TWI slave will stretch the master's clock until the PREPARETX task is triggered and the internal 'TX prepared' flag is set.

The TWI slave will generate the TXSTARTED event and clear the 'TX prepared' flag ('unprepare TX') when it enters the TX state. In this state the TWI slave will send the data bytes found in the transmit buffer to the master using the master's clock.

The TWI slave will go back to the IDLE state if the TWI slave receives a restart command when it is in the TX state.

The TWI slave is stopped when it receives the stop condition from the TWI master. A STOPPED event will be generated when the transaction has stopped. The TWI slave will clear the 'TX prepared' flag ('unprepare TX') and go back to the IDLE state when it has stopped.

The transmit buffer is located in RAM at the address specified in the TXD.PTR register. The TWI slave wil only be able to send TXD.MAXCNT bytes from the transmit buffer for each transaction. If the TWI master forces the slave to send more than TXD.MAXCNT bytes, the slave will send the byte specified in the ORC register to the master instead. If this happens, an ERROR event will be generated.

The EasyDMA configuration registers, see TXD.PTR etc., are latched when the TXSTARTED event is generated.

The TWI slave can be forced to stop by triggering the STOP task. A STOPPED event will be generated when the TWI slave has stopped. The TWI slave will clear the 'TX prepared' flag and go back to the IDLE state when it has stopped, see also Terminating an ongoing TWI transaction on page 380.

Each byte sent from the slave will be followed by an ACK/NACK bit sent from the master. The TWI master will generate a NACK following the last byte that it wants to receive to tell the slave to release the bus so that the TWI master can generate the stop condition. The TXD.AMOUNT register can be queried after a transaction to see how many bytes were sent.

A typical TWI slave read command response is shown in the following figure. Occurrence 2 in the figure illustrates clock stretching performed by the TWI slave following a SUSPEND task.


Figure 105: The TWI slave responding to a read command

6.18.4 TWI slave responding to a write command

Before the TWI slave can respond to a write command, the TWI slave must be configured correctly and enabled via the ENABLE register. When enabled, the TWI slave will be in its IDLE state.

A write command is started when the TWI master generates a start condition on the TWI bus, followed by clocking out the address and the READ/WRITE bit set to 0 (WRITE=0, READ=1). The READ/WRITE bit is followed by an ACK/NACK bit (ACK=0 or NACK=1) response from the slave.

The TWI slave can listen for up to two addresses at the same time. This is configured in the ADDRESS registers and the CONFIG register.

The TWI slave will only acknowledge (ACK) the write command if the address presented by the master matches one of the addresses the slave is configured to listen for. The TWI slave will generate a WRITE event if it acknowledges the write command.

The TWI slave can only detect a write command from the IDLE state.

The TWI slave will set an internal 'RX prepared' flag when the PREPARERX task is triggered.

When the write command is received, the TWI slave will enter the RX state if the internal 'RX prepared flag is set.

If the internal 'RX prepared' flag is not set when the write command is received, the TWI slave will stretch the master's clock until the PREPARERX task is triggered and the internal 'RX prepared' flag is set.

The TWI slave will generate the RXSTARTED event and clear the internal 'RX prepared' flag ('unprepare RX') when it enters the RX state. In this state, the TWI slave will be able to receive the bytes sent by the TWI master.

The TWI slave will go back to the IDLE state if the TWI slave receives a restart command when it is in the RX state.

The TWI slave is stopped when it receives the stop condition from the TWI master. A STOPPED event will be generated when the transaction has stopped. The TWI slave will clear the internal 'RX prepared' flag ('unprepare RX') and go back to the IDLE state when it has stopped.

The receive buffer is located in RAM at the address specified in the RXD.PTR register. The TWI slave will only be able to receive as many bytes as specified in the RXD.MAXCNT register. If the TWI master tries to send more bytes to the slave than it can receive, the extra bytes are discarded and NACKed by the slave. If this happens, an ERROR event will be generated.

The EasyDMA configuration registers, see RXD.PTR etc., are latched when the RXSTARTED event is generated.

The TWI slave can be forced to stop by triggering the STOP task. A STOPPED event will be generated when the TWI slave has stopped. The TWI slave will clear the internal 'RX prepared' flag and go back to the IDLE state when it has stopped, see also Terminating an ongoing TWI transaction on page 380.

The TWI slave will generate an ACK after every byte received from the master. The RXD.AMOUNT register can be queried after a transaction to see how many bytes were received.

A typical TWI slave write command response is show in the following figure. Occurrence 2 in the figure illustrates clock stretching performed by the TWI slave following a SUSPEND task.


Figure 106: The TWI slave responding to a write command

6.18.5 Master repeated start sequence

An example of a repeated start sequence is one in which the TWI master writes two bytes to the slave followed by reading four bytes from the slave.

This is illustrated in the following figure.

In this example, the receiver does not know what the master wants to read in advance. This information is in the first two received bytes of the write in the repeated start sequence. To guarantee that the CPU is able to process the received data before the TWI slave starts to reply to the read command, the SUSPEND task is triggered via a shortcut from the READ event generated when the read command is received. When the CPU has processed the incoming data and prepared the correct data response, the CPU will resume the transaction by triggering the RESUME task.


Figure 107: Repeated start sequence

6.18.6 Terminating an ongoing TWI transaction

In some situations, e.g. if the external TWI master is not responding correctly, it may be required to terminate an ongoing transaction.

This can be achieved by triggering the STOP task. In this situation, a STOPPED event will be generated when the TWI has stopped independent of whether or not a STOP condition has been generated on the TWI bus. The TWI slave will release the bus when it has stopped and go back to its IDLE state.

6.18.7 Low power

When putting the system in low power and the peripheral is not needed, lowest possible power consumption is achieved by stopping, and then disabling the peripheral.

The STOP task may not be always needed (the peripheral might already be stopped), but if it is sent, software shall wait until the STOPPED event was received as a response before disabling the peripheral through the ENABLE register.

6.18.8 Slave mode pin configuration

The SCL and SDA signals associated with the TWI slave are mapped to physical pins according to the configuration specified in the PSEL.SCL and PSEL.SDA registers respectively.

The PSEL.SCL and PSEL.SDA registers and their configurations are only used as long as the TWI slave is enabled, and retained only as long as the device is in ON mode. When the peripheral is disabled, the pins will behave as regular GPIOs, and use the configuration in their respective OUT bit field and PIN_CNF[n] register. PSEL.SCL and PSEL.SDA must only be configured when the TWI slave is disabled.

To secure correct signal levels on the pins used by the TWI slave when the system is in OFF mode, and when the TWI slave is disabled, these pins must be configured in the GPIO peripheral as described in the following table.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

TWI slave signalTWI slave pinDirectionOutput valueDrive strength
SCLAs specified in PSEL.SCLInputNot applicableS0D1
SDAAs specified in PSEL.SDAInputNot applicableS0D1

Table 48: GPIO configuration before enabling peripheral

6.18.9 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TWIS0 : S0x50008000USNSSANoTwo-wire interface slave 0
TWIS0 : NS0x40008000
TWIS1 : S0x50009000USNSSANoTwo-wire interface slave 1
TWIS1 : NS0x40009000
TWIS2 : S0x5000A000USNSSANoTwo-wire interface slave 2
TWIS2 : NS0x4000A000
TWIS3 : S0x5000B000USNSSANoTwo-wire interface slave 3
TWIS3 : NS0x4000B000

Register overview

RegisterOffsetTZDescription
TASKS_STOP0x014Stop TWI transaction
TASKS_SUSPEND0x01CSuspend TWI transaction
TASKS_RESUME0x020Resume TWI transaction
TASKS_PREPARERX0x030Prepare the TWI slave to respond to a write command
TASKS_PREPARETX0x034Prepare the TWI slave to respond to a read command
SUBSCRIBE_STOP0x094Subscribe configuration for task STOP
SUBSCRIBE_SUSPEND0x09CSubscribe configuration for task SUSPEND
SUBSCRIBE_RESUME0x0A0Subscribe configuration for task RESUME
SUBSCRIBE_PREPARERX0x0B0Subscribe configuration for task PREPARERX
SUBSCRIBE_PREPARETX0x0B4Subscribe configuration for task PREPARETX
EVENTS_STOPPED0x104TWI stopped
EVENTS_ERROR0x124TWI error
EVENTS_RXSTARTED0x14CReceive sequence started
EVENTS_TXSTARTED0x150Transmit sequence started
EVENTS_WRITE0x164Write command received
EVENTS_READ0x168Read command received
PUBLISH_STOPPED0x184Publish configuration for event STOPPED
PUBLISH_ERROR0x1A4Publish configuration for event ERROR
PUBLISH_RXSTARTED0x1CCPublish configuration for event RXSTARTED
PUBLISH_TXSTARTED0x1D0Publish configuration for event TXSTARTED
PUBLISH_WRITE0x1E4Publish configuration for event WRITE
PUBLISH_READ0x1E8Publish configuration for event READ
SHORTS0x200Shortcuts between local events and tasks
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ERRORSRC0x4D0Error source
MATCH0x4D4Status register indicating which address had a match
ENABLE0x500Enable TWIS
PSEL.SCL0x508Pin select for SCL signal
PSEL.SDA0x50CPin select for SDA signal
RXD.PTR0x534RXD Data pointer
RXD.MAXCNT0x538Maximum number of bytes in RXD buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last RXD transaction
RXD.LIST0x540EasyDMA list type
TXD.PTR0x544TXD Data pointer
TXD.MAXCNT0x548Maximum number of bytes in TXD buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last TXD transaction
TXD.LIST0x550EasyDMA list type
ADDRESS[n]0x588TWI slave address n
CONFIG0x594Configuration register for the address match mechanism
ORC0x5C0Over-read character. Character sent out in case of an over-read of the transmit buffer.

6.18.9.1 TASKS_STOP

Address offset: 0x014

Stop TWI transaction

6.18.9.2 TASKS_SUSPEND

Address offset: 0x01C

Suspend TWI transaction

6.18.9.3 TASKS_RESUME

Address offset: 0x020

Resume TWI transaction

6.18.9.4 TASKS_PREPARERX

Address offset: 0x030

Prepare the TWI slave to respond to a write command

6.18.9.5 TASKS_PREPARETX

Address offset: 0x034

Prepare the TWI slave to respond to a read command

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_PREPARETX
Trigger1

6.18.9.6 SUBSCRIBE_STOP

Address offset: 0x094

Subscribe configuration for task STOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.18.9.7 SUBSCRIBE_SUSPEND

Address offset: 0x09C

Subscribe configuration for task SUSPEND

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that taskSUSPENDwill subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.18.9.8 SUBSCRIBE_RESUME

Address offset: 0x0A0

Subscribe configuration for task RESUME

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.18.9.9 SUBSCRIBE_PREPARERX

Address offset: 0x0B0

Subscribe configuration for task PREPARERX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.18.9.10 SUBSCRIBE_PREPARETX

Address offset: 0x0B4

Subscribe configuration for task PREPARETX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.18.9.11 EVENTS_STOPPED

Address offset: 0x104

TWI stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_STOPPED
NotGenerated0
Generated1

6.18.9.12 EVENTS_ERROR

Address offset: 0x124

TWI error

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ERROR
NotGenerated0
Generated1

6.18.9.13 EVENTS_RXSTARTED

Address offset: 0x14C

Receive sequence started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RXSTARTED
NotGenerated0
Generated1

6.18.9.14 EVENTS_TXSTARTED

Address offset: 0x150

Transmit sequence started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TXSTARTED
NotGenerated0
Generated1

6.18.9.15 EVENTS_WRITE

Address offset: 0x164

Write command received

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_WRITE
NotGenerated0
Generated1

6.18.9.16 EVENTS_READ

Address offset: 0x168

Read command received

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_READ
NotGenerated0
Generated1

6.18.9.17 PUBLISH_STOPPED

Address offset: 0x184

Publish configuration for event STOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.18.9.18 PUBLISH_ERROR

Address offset: 0x1A4

Publish configuration for event ERROR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ERROR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.18.9.19 PUBLISH_RXSTARTED

Address offset: 0x1CC

Publish configuration for event RXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.18.9.20 PUBLISH_TXSTARTED

Address offset: 0x1D0

Publish configuration for event TXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.18.9.21 PUBLISH_WRITE

Address offset: 0x1E4

Publish configuration for event WRITE

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event WRITE will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.18.9.22 PUBLISH_READ

Address offset: 0x1E8

Publish configuration for event READ

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event READ will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.18.9.23 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDB A
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWWRITE_SUSPEND
Disabled0
Enabled1
BRWREAD_SUSPEND
Disabled0
Enabled1

6.18.9.24 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDH G
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTOPPED
Disabled0
Enabled1
BRWERROR
Disabled0
Enabled1
ERWRXSTARTED
Disabled0
Enabled1
FRWTXSTARTED
Disabled0
Enabled1
GRWWRITE
Disabled0
Enabled1
HRWREAD
Disabled0
Enabled1

6.18.9.25 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDH GF EBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPEDWrite &#x27;1&#x27; to enable interrupt for event STOPPED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWERRORWrite &#x27;1&#x27; to enable interrupt for event ERROR
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWRXSTARTEDWrite &#x27;1&#x27; to enable interrupt for event RXSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWTXSTARTEDWrite &#x27;1&#x27; to enable interrupt for event TXSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
Bit number313029282726252423222120191817161514131211109876543210
IDHGFEBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
GRWWRITE
Set1
Disabled0
Enabled1
HRWREAD
Set1
Disabled0
Enabled1

6.18.9.26 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDH G
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTOPPED
Clear1
Disabled0
Enabled1
BRWERROR
Clear1
Disabled0Disable
Enabled1
ERWRXSTARTED
Clear1
Disabled0Disable
Enabled1Read: Disabled
FRWTXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
GRWWRITE
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWREADWrite &#x27;1&#x27; to disable interrupt for event WRITE
Clear1Disable
Disabled0Read: DisabledRead: EnabledRead: Enabled

6.18.9.27 ERRORSRC

Address offset: 0x4D0

Error source

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOVERFLOW
W1C
NotDetected0
Detected1
BRWDNACK
W1C
NotReceived0
Received1
CRWOVERREAD
W1C
NotDetected0TX buffer over-read detected, and prevented
Detected1Error did not occur

6.18.9.28 MATCH

Address offset: 0x4D4

Status register indicating which address had a match

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARMATCH[0..1]

6.18.9.29 ENABLE

Address offset: 0x500

Enable TWIS

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled0
Enabled9

6.18.9.30 PSEL.SCL

Address offset: 0x508

Pin select for SCL signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.18.9.31 PSEL.SDA

Address offset: 0x50C

Pin select for SDA signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.18.9.32 RXD

RXD EasyDMA channel

6.18.9.32.1 RXD.PTR

Address offset: 0x534

RXD Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPTR

See the memory chapter for details about which memories are available fo EasyDMA.

6.18.9.32.2 RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in RXD buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT[1..0x1FFF]

6.18.9.32.3 RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last RXD transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.18.9.32.4 RXD.LIST

Address offset: 0x540

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLISTList type
Disabled0Disable EasyDMA list
ArrayList1Use array list

6.18.9.33 TXD

TXD EasyDMA channel

6.18.9.33.1 TXD.PTR

Address offset: 0x544

TXD Data pointer

Bit number
ID
Reset 0x000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTRTXD Data pointer

See the memory chapter for details about which memories are available fo EasyDMA.

6.18.9.33.2 TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in TXD buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT[1..0x1FFF]

6.18.9.33.3 TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last TXD transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAMOUNT[1..0x1FFF]

6.18.9.33.4 TXD.LIST

Address offset: 0x550

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLIST
Disabled0
ArrayList1

6.18.9.34 ADDRESS[n] (n=0..1)

Address offset: 0x588 + (n × 0x4)

TWI slave address n

6.18.9.35 CONFIG

Address offset: 0x594

Configuration register for the address match mechanism

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValueDescription
A-BRWADDRESS[i] (i=0..1)Enable or disable address matching on ADDRESS[i]
Disabled0Disabled
Enabled1Enabled

6.18.9.36 ORC

Address offset: 0x5C0

Over-read character. Character sent out in case of an over-read of the transmit buffer.

Bit number
ID

6.18.10 Electrical specification

6.18.10.1 TWIS slave timing specifications

SymbolDescriptionMin.Typ.Max.Units
$f_{\text{TWIS,SCL}}$ Bit rates for TWIS $^{25}$ 100400kbps
$t_{\text{TWIS,START}}$ Time from PREPARERX/PREPARETX task to ready to receive/transmit1.5μs
$t_{\text{TWIS,SU_DAT}}$ Data setup time before positive edge on SCL – all modes300ns
$t_{\text{TWIS,HD_DAT}}$ Data hold time after negative edge on SCL – all modes500ns
$t_{\text{TWIS,HD_STA,100kbps}}$ TWI slave hold time from for START condition (SDA low to SCL low), 100 kbps5200ns
$t_{\text{TWIS,HD_STA,400kbps}}$ TWI slave hold time from for START condition (SDA low to SCL low), 400 kbps1300ns
$t_{\text{TWIS,SU_STO,100kbps}}$ TWI slave setup time from SCL high to STOP condition, 100 kbps5200ns
$t_{\text{TWIS,SU_STO,400kbps}}$ TWI slave setup time from SCL high to STOP condition, 400 kbps1300ns
$t_{\text{TWIS,BUF,100kbps}}$ TWI slave bus free time between STOP and START conditions, 100 kbps4700ns
$t_{\text{TWIS,BUF,400kbps}}$ TWI slave bus free time between STOP and START conditions, 400 kbps1300ns


Figure 108: TWIS timing diagram, 1 byte transaction

6.19 UARTE — Universal asynchronous receiver/ transmitter with EasyDMA

The Universal asynchronous receiver/transmitter with EasyDMA (UARTE) offers fast, full-duplex, asynchronous serial communication with built-in flow control (CTS, RTS) support in hardware at a rate up to 1 Mbps, and EasyDMA data transfer from/to RAM.

Listed here are the main features for UARTE:

• Full-duplex operation

• Automatic hardware flow control

• Optional even parity bit checking and generation

• EasyDMA

• Up to 1 Mbps baudrate

• Return to IDLE between transactions supported (when using HW flow control)

• One or two stop bit

25 High bit rates or stronger pull-ups may require GPIOs to be set as High Drive, see GPIO chapter for more details.

• Least significant bit (LSB) first


Figure 109: UARTE configuration

The GPIOs used for each UART interface can be chosen from any GPIO on the device and are independently configurable. This enables great flexibility in device pinout and efficient use of board space and signal routing.

Note: The external crystal oscillator must be enabled to obtain sufficient clock accuracy for stable communication. See CLOCK — Clock control on page 74 for more information.

6.19.1 EasyDMA

The UARTE implements EasyDMA for reading and writing to and from the RAM.

If the TXD.PTR and the RXD.PTR are not pointing to the Data RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory on page 21 for more information about the different memory regions.

The .PTR and .MAXCNT registers are double-buffered. They can be updated and prepared for the next RX/ TX transmission immediately after having received the RXSTARTED/TXSTARTED event.

The ENDRX and ENDTX events indicate that the EasyDMA is finished accessing the RX or TX buffer in RAM.

6.19.2 Transmission

The first step of a DMA transmission is storing bytes in the transmit buffer and configuring EasyDMA. This is achieved by writing the initial address pointer to TXD.PTR, and the number of bytes in the RAM buffer to TXD.MAXCNT. The UARTE transmission is started by triggering the STARTTX task.

After each byte has been sent over the TXD line, a TXDRDY event will be generated.

When all bytes in the TXD buffer, as specified in the TXD.MAXCNT register, have been transmitted, the UARTE transmission will end automatically and an ENDTX event will be generated.

A UARTE transmission sequence is stopped by triggering the STOPTX task. A TXSTOPPED event will be generated when the UARTE transmitter has stopped.

If the ENDTX event has not already been generated when the UARTE transmitter has come to a stop, the UARTE will generate the ENDTX event explicitly even though all bytes in the TXD buffer, as specified in the TXD.MAXCNT register, have not been transmitted.

If flow control is enabled through the HWFC field in the CONFIG register, a transmission will be automatically suspended when CTS is deactivated and resumed when CTS is activated again, as shown in the following figure. A byte that is in transmission when CTS is deactivated will be fully transmitted before the transmission is suspended.


Figure 110: UARTE transmission

The UARTE transmitter will be in its lowest activity level, and consume the least amount of energy, when it is stopped, i.e. before it is started via STARTTX or after it has been stopped via STOPTX and the TXSTOPPED event has been generated. See POWER — Power control on page 68 for more information about power modes.

6.19.3 Reception

The UARTE receiver is started by triggering the STARTRX task. The UARTE receiver is using EasyDMA to store incoming data in an RX buffer in RAM.

The RX buffer is located at the address specified in the RXD.PTR register. The RXD.PTR register is doublebuffered and it can be updated and prepared for the next STARTRX task immediately after the RXSTARTED event is generated. The size of the RX buffer is specified in the RXD.MAXCNT register. The UARTE generates an ENDRX event when it has filled up the RX buffer, as seen in the following figure.

For each byte received over the RXD line, an RXDRDY event will be generated. This event is likely to occur before the corresponding data has been transferred to Data RAM.

The RXD.AMOUNT register can be queried following an ENDRX event to see how many new bytes have been transferred to the RX buffer in RAM since the previous ENDRX event.


Figure 111: UARTE reception

The UARTE receiver is stopped by triggering the STOPRX task. An RXTO event is generated when the UARTE has stopped. The UARTE will make sure that an impending ENDRX event will be generated before the RXTO event is generated. This means that the UARTE will guarantee that no ENDRX event will be generated after RXTO, unless the UARTE is restarted or a FLUSHRX command is issued after the RXTO event is generated.

Note: If the ENDRX event has not been generated when the UARTE receiver stops, indicating that all pending content in the RX FIFO has been moved to the RX buffer, the UARTE will generate the ENDRX event explicitly even though the RX buffer is not full. In this scenario the ENDRX event will be generated before the RXTO event is generated.

To determine the amount of bytes the RX buffer has received, the CPU can read the RXD.AMOUNT register following the ENDRX event or the RXTO event.

The UARTE is able to receive up to four bytes after the STOPRX task has been triggered, as long as these are sent in succession immediately after the RTS signal is deactivated. After the RTS is deactivated, the UART is able to receive bytes for a period of time equal to the time needed to send four bytes on the configured baud rate.

After the RXTO event is generated the internal RX FIFO may still contain data, and to move this data to RAM the FLUSHRX task must be triggered. To make sure that this data does not overwrite data in the RX buffer, the RX buffer should be emptied or the RXD.PTR should be updated before the FLUSHRX task is triggered. To make sure that all data in the RX FIFO is moved to the RX buffer, the RXD.MAXCNT register must be set to RXD.MAXCNT > 4, as seen in the following figure. The UARTE will generate the ENDRX event after completing the FLUSHRX task even if the RX FIFO was empty or if the RX buffer does not get filled up. To be able to know how many bytes have actually been received into the RX buffer in this case, the CPU can read the RXD.AMOUNT register following the ENDRX event.


Figure 112: UARTE reception with forced stop via STOPRX

If HW flow control is enabled through the HWFC field in the CONFIG register, the RTS signal will be deactivated when the receiver is stopped via the STOPRX task or when the UARTE is only able to receive four more bytes in its internal RX FIFO.

With flow control disabled, the UARTE will function in the same way as when the flow control is enabled except that the RTS line will not be used. This means that no signal will be generated when the UARTE has reached the point where it is only able to receive four more bytes in its internal RX FIFO. Data received when the internal RX FIFO is filled up, will be lost.

The UARTE receiver will be in its lowest activity level, and consume the least amount of energy, when it is stopped, i.e. before it is started via STARTRX or after it has been stopped via STOPRX and the RXTO event has been generated. See POWER — Power control on page 68 for more information about power modes.

6.19.4 Error conditions

An ERROR event, in the form of a framing error, will be generated if a valid stop bit is not detected in a frame. Another ERROR event, in the form of a break condition, will be generated if the RXD line is held active low for longer than the length of a data frame. Effectively, a framing error is always generated before a break condition occurs.

An ERROR event will not stop reception. If the error was a parity error, the received byte will still be transferred into Data RAM, and so will following incoming bytes. If there was a framing error (wrong stop bit), that specific byte will NOT be stored into Data RAM, but following incoming bytes will.

6.19.5 Using the UARTE without flow control

If flow control is not enabled, the interface will behave as if the CTS and RTS lines are kept active all the time.

6.19.6 Parity and stop bit configuration

Automatic even parity generation for both transmission and reception can be configured using the register CONFIG on page 416. See the register description for details.

The amount of stop bits can also be configured through the register CONFIG on page 416.

6.19.7 Low power

When putting the system in low power and the peripheral is not needed, lowest possible power consumption is achieved by stopping, and then disabling the peripheral.

The STOPTX and STOPRX tasks may not be always needed (the peripheral might already be stopped), but if STOPTX and/or STOPRX is sent, software shall wait until the TXSTOPPED and/or RXTO event is received in response, before disabling the peripheral through the ENABLE register.

6.19.8 Pin configuration

The different signals RXD, CTS (Clear To Send, active low), RTS (Request To Send, active low), and TXD associated with the UARTE are mapped to physical pins according to the configuration specified in the PSEL.RXD, PSEL.CTS, PSEL.RTS, and PSEL.TXD registers respectively.

The PSEL.RXD, PSEL.CTS, PSEL.RTS, and PSEL.TXD registers and their configurations are only used as long as the UARTE is enabled, and retained only for the duration the device is in ON mode. PSEL.RXD, PSEL.RTS, PSEL.RTS, and PSEL.TXD must only be configured when the UARTE is disabled.

To secure correct signal levels on the pins by the UARTE when the system is in OFF mode, the pins must be configured in the GPIO peripheral as described in the following table.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

UARTE signalUARTE pinDirectionOutput value
RXDAs specified in PSEL.RXDInputNot applicable
CTSAs specified in PSEL.CTSInputNot applicable
RTSAs specified in PSEL.RTSOutput1
TXDAs specified in PSEL.TXDOutput1

Table 49: GPIO configuration before enabling periphera

6.19.9 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
UARTE0 : S0x50008000USNSSANoUniversal asynchronous receiver/ transmitter with EasyDMA 0
UARTE0 : NS0x40008000
UARTE1 : S0x50009000USNSSANoUniversal asynchronous receiver/ transmitter with EasyDMA 1
UARTE1 : NS0x40009000
UARTE2 : S0x5000A000USNSSANoUniversal asynchronous receiver/ transmitter with EasyDMA 2
UARTE2 : NS0x4000A000
UARTE3 : S0x5000B000USNSSANoUniversal asynchronous receiver/ transmitter with EasyDMA 3
UARTE3 : NS0x4000B000

Register overview

RegisterOffsetTZDescription
TASKS_STARTRX0x000Start UART receiver
TASKS_STOPRX0x004Stop UART receiver
TASKS_STARTTX0x008Start UART transmitter
TASKS_STOPTX0x00CStop UART transmitter
TASKS_FLUSHRX0x02CFlush RX FIFO into RX buffer
SUBSCRIBE_STARTRX0x080Subscribe configuration for task STARTRX
SUBSCRIBE_STOPRX0x084Subscribe configuration for task STOPRX
SUBSCRIBE_STARTTX0x088Subscribe configuration for task STARTTX
SUBSCRIBE_STOPTX0x08CSubscribe configuration for task STOPTX
SUBSCRIBE_FLUSHRX0x0ACSubscribe configuration for task FLUSHRX
EVENTS_CTS0x100CTS is activated (set low). Clear To Send.
EVENTS_NCTS0x104CTS is deactivated (set high). Not Clear To Send.
EVENTS_RXDRDY0x108Data received in RXD (but potentially not yet transferred to Data RAM)
EVENTS_ENDRX0x110Receive buffer is filled up
EVENTS_TXDRDY0x11CData sent from TXD
EVENTS_ENDTX0x120Last TX byte transmitted
EVENTS_ERROR0x124Error detected
EVENTS_RXTO0x144Receiver timeout
EVENTS_RXSTARTED0x14CUART receiver has started
EVENTS_TXSTARTED0x150UART transmitter has started
EVENTS_TXSTOPPED0x158Transmitter stopped
PUBLISH_CTS0x180Publish configuration for event CTS
PUBLISH_NCTS0x184Publish configuration for event NCTS
PUBLISH_RXDRDY0x188Publish configuration for event RXDRDY
PUBLISH_ENDRX0x190Publish configuration for event ENDRX
PUBLISH_TXDRDY0x19CPublish configuration for event TXDRDY
PUBLISH_ENDTX0x1A0Publish configuration for event ENDTX
PUBLISH_ERROR0x1A4Publish configuration for event ERROR
PUBLISH_RXTO0x1C4Publish configuration for event RXTO
PUBLISH_RXSTARTED0x1CCPublish configuration for event RXSTARTED
PUBLISH_TXSTARTED0x1D0Publish configuration for event TXSTARTED
PUBLISH_TXSTOPPED0x1D8Publish configuration for event TXSTOPPED
SHORTS0x200Shortcuts between local events and tasks
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ERRORSRC0x480Error source
This register is read/write one to clear.
ENABLE0x500Enable UART
PSEL.RTS0x508Pin select for RTS signal
PSEL.TXD0x50CPin select for TXD signal
PSEL.CTS0x510Pin select for CTS signal
PSEL.RXD0x514Pin select for RXD signal
BAUDRATE0x524Baud rate. Accuracy depends on the HFCLK source selected.
RXD.PTR0x534Data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last transaction
TXD.PTR0x544Data pointer
TXD.MAXCNT0x548Maximum number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last transaction
CONFIG0x56CConfiguration of parity and hardware flow control

6.19.9.1 TASKS_STARTRX

Address offset: 0x000

Start UART receiver

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_STARTRX
Trigger1

6.19.9.2 TASKS_STOPRX

Address offset: 0x004

Stop UART receiver

6.19.9.3 TASKS_STARTTX

Address offset: 0x008

Start UART transmitter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_STARTTX
Trigger1

6.19.9.4 TASKS_STOPTX

Address offset: 0x00C

Stop UART transmitter

6.19.9.5 TASKS_FLUSHRX

Address offset: 0x02C

Flush RX FIFO into RX buffer

6.19.9.6 SUBSCRIBE_STARTRX

Address offset: 0x080

Subscribe configuration for task STARTRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.7 SUBSCRIBE_STOPRX

Address offset: 0x084

Subscribe configuration for task STOPRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOPRX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.19.9.8 SUBSCRIBE_STARTTX

Address offset: 0x088

Subscribe configuration for task STARTTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.9 SUBSCRIBE_STOPTX

Address offset: 0x08C

Subscribe configuration for task STOPTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.10 SUBSCRIBE_FLUSHRX

Address offset: 0x0AC

Subscribe configuration for task FLUSHRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task FLUSHRX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

6.19.9.11 EVENTS_CTS

Address offset: 0x100

CTS is activated (set low). Clear To Send.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_CTS
NotGenerated0
Generated1

6.19.9.12 EVENTS_NCTS

Address offset: 0x104

CTS is deactivated (set high). Not Clear To Send.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_NCTS
NotGenerated0
Generated1

6.19.9.13 EVENTS_RXDRDY

Address offset: 0x108

Data received in RXD (but potentially not yet transferred to Data RAM)

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RXDRDY
NotGenerated0
Generated1

6.19.9.14 EVENTS_ENDRX

Address offset: 0x110

Receive buffer is filled up

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ENDRX
NotGenerated0
Generated1

6.19.9.15 EVENTS_TXDRDY

Address offset: 0x11C

Data sent from TXD

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TXDRDY
NotGenerated0
Generated1

6.19.9.16 EVENTS_ENDTX

Address offset: 0x120

Last TX byte transmitted

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ENDTX
NotGenerated0
Generated1

6.19.9.17 EVENTS_ERROR

Address offset: 0x124

Error detected

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_ERROR
NotGenerated0
Generated1

6.19.9.18 EVENTS_RXTO

Address offset: 0x144

Receiver timeout

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_RXTO
NotGenerated0
Generated1

6.19.9.19 EVENTS_RXSTARTED

Address offset: 0x14C

UART receiver has started

6.19.9.20 EVENTS_TXSTARTED

Address offset: 0x150

UART transmitter has started

6.19.9.21 EVENTS_TXSTOPPED

Address offset: 0x158

Transmitter stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TXSTOPPED
NotGenerated0
Generated1

6.19.9.22 PUBLISH_CTS

Address offset: 0x180

Publish configuration for event CTS

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event CTS will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.23 PUBLISH_NCTS

Address offset: 0x184

Publish configuration for event NCTS

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event NCTS will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.24 PUBLISH_RXDRDY

Address offset: 0x188

Publish configuration for event RXDRDY

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.25 PUBLISH_ENDRX

Address offset: 0x190

Publish configuration for event ENDRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.26 PUBLISH_TXDRDY

Address offset: 0x19C

Publish configuration for event TXDRDY

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXDRDY will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.27 PUBLISH_ENDTX

Address offset: 0x1A0

Publish configuration for event ENDTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that eventENDTXwill publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.28 PUBLISH_ERROR

Address offset: 0x1A4

Publish configuration for event ERROR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ERROR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.29 PUBLISH_RXTO

Address offset: 0x1C4

Publish configuration for event RXTO

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXTO will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.30 PUBLISH_RXSTARTED

Address offset: 0x1CC

Publish configuration for event RXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.31 PUBLISH_TXSTARTED

Address offset: 0x1D0

Publish configuration for event TXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

6.19.9.32 PUBLISH_TXSTOPPED

Address offset: 0x1D8

Publish configuration for event TXSTOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.19.9.33 SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDDC
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
CRWENDRX_STARTRX
Disabled0
Enabled1
DRWENDRX_STOPRX
Disabled0
Enabled1

6.19.9.34 INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCTSEnable or disable interrupt for event CTS
Disabled0Disable
Enabled1Enable
BRWNCTSEnable or disable interrupt for event NCTS
Disabled0Disable
Enabled1Enable
CRWRXDRDYEnable or disable interrupt for event RXDRDY
Disabled0Disable
Enabled1Enable
DRWENDRXEnable or disable interrupt for event ENDRX
Disabled0Disable
Enabled1EnableE
ERWTXDRDYEnable or disable interrupt for event TXDRDY
IDR/WFieldValue IDValueDescription
Disabled0Disable
Enabled1Enable
FRWENDTXEnable or disable interrupt for event ENDTX
Disabled0Disable
Enabled1Enable
GRWERROREnable or disable interrupt for event ERROR
Disabled0Disable
Enabled1Enable
HRWRXTOEnable or disable interrupt for event RXTO
Disabled0Disable
Enabled1Enable
IRWRXSTARTEDEnable or disable interrupt for event RXSTARTED
Disabled0Disable
Enabled1Enable
JRWTXSTARTEDEnable or disable interrupt for event TXSTARTED
Disabled0Disable
Enabled1Enable
LRWTXSTOPPEDEnable or disable interrupt for event TXSTOPPED
Disabled0Disable
Enabled1Enable

6.19.9.35 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCTS
Set1
Disabled0
Enabled1
BRWNCTS
Set1
Disabled0
Enabled1
CRWRXDRDY
Set1
Disabled0
Enabled1
DRWENDRX
Set1
Disabled0
Enabled1
ERWTXDRDY
Set1
Disabled0
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Enabled1
FRWENDTX
Set1
Disabled0
Enabled1
GRWERROR
Set1
Disabled0
Enabled1
HRWRXTO
Set1
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWRXSTARTED
Set1Write '1' to enable interrupt for event RXSTARTED
Disabled0Read: Disabled
Enabled1Read: Enabled
JRWTXSTARTED
Set1Write '1' to enable interrupt for event TXSTARTED
Disabled0Read: Disabled
Enabled1Read: Enabled
LRWTXSTOPPED
Set1Write '1' to enable interrupt for event TXSTOPPED
Disabled0Read: Disabled
Enabled1Read: Enabled

6.19.9.36 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCTSWrite &#x27;1&#x27; to disable interrupt for event CTS
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWNCTSWrite &#x27;1&#x27; to disable interrupt for event NCTS
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWRXDRDYWrite &#x27;1&#x27; to disable interrupt for event RXDRDY
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDRXWrite &#x27;1&#x27; to disable interrupt for event ENDRX
Clear1Disable
Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWTXDRDYWrite &#x27;1&#x27; to disable interrupt for event TXDRDY
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWENDTXWrite &#x27;1&#x27; to disable interrupt for event ENDTX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
GRWERRORWrite &#x27;1&#x27; to disable interrupt for event ERROR
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWRXTOWrite &#x27;1&#x27; to disable interrupt for event RXTO
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWTXSTARTEDWrite &#x27;1&#x27; to disable interrupt for event RXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
JRWTXSTARTEDWrite &#x27;1&#x27; to disable interrupt for event TXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
LRWTXSTOPPEDWrite &#x27;1&#x27; to disable interrupt for event TXSTOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.19.9.37 ERRORSRC

Address offset: 0x480

Error source

This register is read/write one to clear.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWOVERRUN
W1C
NotPresent0
Present1
BRWPARITY
W1C
Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
NotPresent0
Present1
CRWFRAMING
W1C
NotPresent0
Present1
DRWBREAK
W1C
NotPresent0Read: error not present
Present1Read: error present

6.19.9.38 ENABLE

Address offset: 0x500

Enable UART

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWENABLE
Disabled
Enabled

6.19.9.39 PSEL.RTS

Address offset: 0x508

Pin select for RTS signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.19.9.40 PSEL.TXD

Address offset: 0x50C

Pin select for TXD signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN[0..31]
BRWCONNECT
Disconnected1
Connected0

6.19.9.41 PSEL.CTS

Address offset: 0x510

Pin select for CTS signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.19.9.42 PSEL.RXD

Address offset: 0x514

Pin select for RXD signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

6.19.9.43 BAUDRATE

Address offset: 0x524

Baud rate. Accuracy depends on the HFCLK source selected.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0400000000000100000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWBAUDRATEBaud rate
Baud12000x0004F0001200 baud (actual rate: 1205)
Baud24000x0009D0002400 baud (actual rate: 2396)
Baud48000x0013B0004800 baud (actual rate: 4808)
Baud96000x002750009600 baud (actual rate: 9598)
Baud144000x003AF00014400 baud (actual rate: 14401)
IDR/WFieldValue IDValue
Baud192000x004EA000
Baud288000x0075C000
Baud312500x00800000
Baud384000x009D0000
Baud560000x00E50000
Baud576000x00EB0000
Baud768000x013A9000
Baud1152000x01D60000
Baud2304000x03B00000
Baud2500000x04000000
Baud4608000x07400000
Baud9216000x0F000000
Baud1M0x10000000

6.19.9.44 RXD

RXD EasyDMA channel

6.19.9.44.1 RXD.PTR

Address offset: 0x534

Data pointer

6.19.9.44.2 RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWMAXCNT[1..0x1FFF]

6.19.9.44.3 RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last transaction

6.19.9.45 TXD

TXD EasyDMA channel

6.19.9.45.1 TXD.PTR

Address offset: 0x544

Data pointer

See the memory chapter for details about which memories are available fo EasyDMA.

6.19.9.45.2 TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in transmit buffer

6.19.9.45.3 TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last transaction

6.19.9.46 CONFIG

Address offset: 0x56C

Configuration of parity and hardware flow control

Bit number313029282726252423222120191817161514131211109876543210
IDCBBB
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
RWHWFC
Disabled0
Enabled1
BRWPARITY
Excluded0x0
Included0x7
CRWSTOP
One0
Two1

6.19.10 Electrical specification

6.19.10.1 UARTE electrical specification

SymbolDescriptionMin.Typ.Max.Units
$f_{UARTE}$ Baud rate for $UARTE^{26}$ .1000kbps
$t_{UARTE,CTSH}$ CTS high time1μs
$t_{UARTE,START}$ Time from STARTRX/STARTTX task to transmission started0.25μs

6.20 WDT — Watchdog timer

A countdown watchdog timer using the low-frequency clock source (LFCLK) offers configurable and robust protection against application lock-up.

The watchdog timer is started by triggering the START task.

The watchdog can be paused during long CPU sleep periods for low power applications and when the debugger has halted the CPU. The watchdog is implemented as a down-counter that generates a TIMEOUT event when it wraps over after counting down to 0. When the watchdog timer is started through the START task, the watchdog counter is loaded with the value specified in the CRV register. This counter is also reloaded with the value specified in the CRV register when a reload request is granted.

The watchdog’s timeout period is given by:

timeout [s] = ( CRV + 1 ) / 32768

When started, the watchdog will automatically force the 32.768 kHz RC oscillator on as long as no other 32.768 kHz clock source is running and generating the 32.768 kHz system clock, see chapter CLOCK — Clock control on page 74.

6.20.1 Reload criteria

The watchdog has eight separate reload request registers, which shall be used to request the watchdog to reload its counter with the value specified in the CRV register. To reload the watchdog counter, the special value 0x6E524635 needs to be written to all enabled reload registers.

One or more RR registers can be individually enabled through the RREN register.

6.20.2 Temporarily pausing the watchdog

By default, the watchdog will be active counting down the down-counter while the CPU is sleeping and when it is halted by the debugger. It is however possible to configure the watchdog to automatically pause while the CPU is sleeping as well as when it is halted by the debugger.

6.20.3 Watchdog reset

A TIMEOUT event will automatically lead to a watchdog reset.

See Reset on page 59 for more information about reset sources. If the watchdog is configured to generate an interrupt on the TIMEOUT event, the watchdog reset will be postponed with two 32.768 kHz clock cycles after the TIMEOUT event has been generated. Once the TIMEOUT event has been generated, the impending watchdog reset will always be effectuated.

The watchdog must be configured before it is started. After it is started, the watchdog’s configuration registers, which comprise registers CRV, RREN, and CONFIG, will be blocked for further configuration.

The watchdog can be reset from several reset sources, see Reset behavior on page 60.

When the device starts running again, after a reset, or waking up from OFF mode, the watchdog configuration registers will be available for configuration again.

6.20.4 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
WDT : S0x50018000USNSNANoWatchdog timer
WDT : NS0x40018000

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start the watchdog
SUBSCRIBE_START0x080Subscribe configuration for task START
EVENTS_TIMEOUT0x100Watchdog timeout
PUBLISH_TIMEOUT0x180Publish configuration for event TIMEOUT
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
RUNSTATUS0x400Run status
REQSTATUS0x404Request status
CRV0x504Counter reload value
RREN0x508Enable register for reload request registers
CONFIG0x50CConfiguration register
RR[n]0x600Reload request n

6.20.4.1 TASKS_START

Address offset: 0x000

Start the watchdog

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTASKS_START
Trigger1

6.20.4.2 SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.20.4.3 EVENTS_TIMEOUT

Address offset: 0x100

Watchdog timeout

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENTS_TIMEOUT
NotGenerated0
Generated1

6.20.4.4 PUBLISH_TIMEOUT

Address offset: 0x180

Publish configuration for event TIMEOUT

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCHIDX[0..255]
BRWEN
Disabled0
Enabled1

6.20.4.5 INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTIMEOUTWrite &#x27;1&#x27; to enable interrupt for event TIMEOUT
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.20.4.6 INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTIMEOUTWrite &#x27;1&#x27; to disable interrupt for event TIMEOUT
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

6.20.4.7 RUNSTATUS

Address offset: 0x400

Run status

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RRUNSTATUSWDTIndicates whether or not the watchdog is running
NotRunning0Watchdog not running
Running1Watchdog is running

6.20.4.8 REQSTATUS

Address offset: 0x404

Request status

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
A-HRRR[i] (i=0..7)
DisabledOrRequested0
EnabledAndUnrequested

6.20.4.9 CRV

Address offset: 0x504

Counter reload value

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARWCRV[0x0000000F..0xFFFFFFF]Counter reload value in number of cycles of the 32.768 kHz clock

6.20.4.10 RREN

Address offset: 0x508

Enable register for reload request registers

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
A-HRWRR[i] (i=0..7)
Disabled0
Enabled1

6.20.4.11 CONFIG

Address offset: 0x50C

Configuration register

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000001000000000000000000000000000000001
IDR/WFieldValue IDValue
RWSLEEP
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1

6.20.4.12 RR[n] (n=0..7)

Address offset: 0x600 + (n × 0x4)

Reload request n

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWRR
Reload0x6E524635

6.20.5 Electrical specification

6.20.5.1 Watchdog Timer Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
$t_{WDT}$ Time out interval31 μs36 h

LTE modem

The nRF9151 SiP contains a Low-Power Wide-Area (LPWA) network processor with dedicated flash/RAM, which controls the radio and baseband hardware components. LTE capabilities are provided by installing Nordic Semiconductor firmware, which complies with 3GPP LTE release 14 Cat-M1 and Cat-NB1/NB2 standards.

The following is an overview of the LTE modem, with a figure showing key components:

• RF transceiver

• Modem baseband (BB)

• Embedded flash/RAM

• LPWA network processor and peripherals

They provide functions for the LTE L1, L2, and L3 (layers 1, 2, and 3 respectively) as well as IP communication layers. Peripherals provide hardware services for the LPWA network processor operating system and secure execution environment.


Figure 113: nRF9151 LTE modem functional overview

Application and LPWA network domains interact through the interprocessor communication (IPC) mechanism. The LTE modem is accessible to users through the modem API.

The application processor is the system master and is responsible for starting and stopping the LTE modem. The LPWA network processor enables the clocks and power required for its own operation. The platform handles shared resources, such as clocks, and does not need user participation. In cases where a hard fault is detected in the modem, the application domain will perform a hard reset of the modem.

The nRF9151 LTE modem feature set depends on the modem firmware version and the application firmware. For more information on the LTE modem API, see nRF Connect SDK API documentation and nRF91 AT Commands.

The key features of the LTE modem are:

• Complete modem with baseband and RF transceiver

• 3GPP release 14 compliant LTE categories:

• Cat-M1 (eMTC - enhanced machine type communication)

• Cat-NB1 (NB-IoT - narrowband Internet of things)

• Cat-NB2 (NB-IoT)

• Power saving modes

• Supports LTE bands from 700 MHz to 2.2 GHz through a single 50 Ω antenna pin

• ANT antenna pin is DC grounded

• RX sensitivity: -108 dBm for Cat-M1 and -114 dBm for Cat-NB1 and Cat-NB2

• As defined in 3GPP conformance test specification TS 36.521-1

• 1.8 V MIPI RF Front-End (MIPI RFFE) digital control interface and MAGPIO control interface for external RF applications.

• LTE modem internal ADC that is also used for some AT command interface services, for example, for battery monitoring

• 1.8 V UICC (universal integrated circuit card) interface, based on ISO/IEC 7816-3 and compliant with:

• UICC (ETSI TS 102 221)

• eUICC (ETSI TS 103 383)

Note: The nRF9151 modem feature set depends on the modem firmware version and the application firmware.

7.1 SIM card interface

The LTE modem supports the universal integrated circuit card (UICC) interface.

Only UICCs with electrical interfaces specified in ISO/IEC 7816-3 are supported. UICCs with IC-USB, CLF or MMC interfaces are not supported.

The supported UICC/eUICC interface is compliant with:

• ETSI TS 102 221: Smart Cards; UICC-Terminal interface; Physical and logical characteristics

• ETSI TS 103 383: Smart Cards; Embedded UICC; Requirements Specification

The physical interface towards the eUICC is the same as that towards the removable UICC.

By default, only the class C (supply voltage 1.8 V nominal) operation is supported. Support for legacy class B (supply voltage 3.0 V nominal) operation must be built with external components, including an external power supply and the level shifters towards the LTE modem UICC interface.

The LTE modem supports powering down the UICC during PSM and eDRX idle mode if the UICC supports this feature as specified in 3GPP TS 24.301. To reach the lowest total power consumption of the complete cellular IoT product, only UICCs supporting power down mode during PSM and eDRX idle mode sleep intervals should be considered.

The LTE modem controls the physical interfaces towards the UICC and implements the transport protocol over the four-pin ISO/IEC 7816-3 interface:

• VCC (power supply) – LTE modem drives this

• CLK (clock signal) – LTE modem drives this

• RST (reset signal) – LTE modem drives this

• I/O (input/output serial data) – Bi-directional

The interface between the LTE modem, the UICC (SIM card) connector, and the ESD device is shown in the following figure.


Figure 114: Connections between LTE modem, card connector, and the ESD device
Only standard transmission speeds are supported as specified in ETSI TS 102 221.

Note: Before removing the UICC, the LTE modem must be stopped through the modem API.

An electrostatic discharge (ESD) protection device compatible with UICC cards must be used between the removable card and the LTE modem, to protect LTE modem against harmful ESD from the card connector.

7.2 LTE coexistence interface

The LTE modem uses a dedicated three-pin interface for RF interference avoidance towards a companion radio device such as an external positioning device or Bluetooth® Low Energy device.

The interface has the following outputs:

• COEX0 – Output from the LTE modem to the external device. When internal GPS is used, COEX0 can be used as active high control for the external LNA component.

• COEX1 – Output from the LTE modem to the external device. When internal GPS is used, COEX1 delivers the GPS 1PPS (one pulse per second) time mark pulse. The 1PPS feature must not be used when LTE is enabled.

• COEX2 – Output from the LTE modem to the external device. When active high, this indicates that the LTE modem transceiver is turned on. COEX2 can also be treated as an active low grant from the LTE modem to the external device, indicating permission to transmit and receive.

Note: Using the COEX2 pin requires an external pull-down resistor in the 100 kΩ size range.

The COEX interface timing in relation to the LTE modem state is shown in the following figure.

Modem state1-2ms
Sleep/PWROFFSleep/PWROFF
time
COEX0

Figure 115: COEX interface timing

7.3 LTE RF control external interface

The LTE modem provides dedicated 1.8 V digital interfaces for controlling external RF applications, such as antenna tuner devices.

The LTE modem supports the following pins:

• MIPI RFFE interface pins – VIO, SCLK, SDATA

• MAGPIO interface pins – MAGPIO0, MAGPIO1, MAGPIO2

The LTE modem accurately drives the timing of these outputs according to the LTE protocol, to set the correct antenna tuner settings per used frequency, for example. The LTE modem API must be used to inform the LTE modem about the external RF application, so that LTE modem knows to drive it.

Note: For details regarding the modem API and supported RF external control features, see nRF91 AT Commands.

Note: The MIPI RFFE capacitive load at SCLK or SDATA pins must not exceed 15 pF.

The MIPI RFFE interface timing in relation to modem state is shown in the following figure.


Figure 116: MIPI RFFE interface timing

The MAGPIO interface timing in relation to the LTE modem state is shown in the following figure.


Figure 117: MAGPIO interface timing

7.4 RF front-end interface

The nRF9151 has a single-ended (SE) 50 Ω antenna interface to which an antenna is directly connected.

7.5 Electrical specification

7.5.1 Key RF parameters for Cat-M1

Note: For certification status, please refer to Regulatory information on page 530.

SymbolDescriptionMin.Typ.Max.Units
Supported LTESupported LTE standardsLTE Rel-14
Cat-M1 HD-FDD
Bands supportedBands supportedB1, B2, B3,B4, B5, B8,B12, B13,B18, B19,B20, B25,B26, B28,B66, B85
Transmission bandwidthMaximum bandwidth1.4MHz

7.5.2 Key RF parameters for Cat-NB1 and Cat-NB2

Note: For certification status, please refer to Regulatory information on page 530.

Note: There is no foreseen NB-IoT network deployment for FCC bands closer than 200 kHz from band edge, hence our device will not transmit in FCC bands on channels that are closer than 200kHz to band edge.

SymbolDescriptionMin.Typ.Max.Units
Supported LTESupported LTE standardsLTE Rel-14
Cat-NB1
and Cat-
NB2 HD-
FDD
Bands supportedBands supportedB1, B2, B3,
B4, B5, B8,
B12, B13,
B17, B19,
B20, B25,
B26, B28,
B65, B66,
B85
Transmission bandwidthMaximum bandwidth200kHz

7.5.3 Receiver parameters for Cat-M1

SymbolDescriptionMin.Typ.Max.Units
Freqrange_ANT_RXRX operation frequency range at ANT pin7282200MHz
$Z_{in}$ Input impedance, single-ended50Ω
Sensitivity, low bandLTE 1.4 MHz without coverage extension-103-108dBm
Sensitivity, mid bandLTE 1.4 MHz without coverage extension-103-107dBm

7.5.4 Receiver parameters for Cat-NB1 and Cat-NB2

SymbolDescriptionMin.Typ.Max.Units
Freqrange_ANT_RXRX operation frequency range at ANT pin7282200MHz
ZinInput impedance, single-ended50Ω
Sensitivity, low bandNB 200 kHz without coverage extension-108-114dBm
Sensitivity, mid bandNB 200 kHz without coverage extension-108-113dBm

7.5.5 Transmitter parameters for Cat-M1

SymbolDescriptionMin.Typ.Max.Units
Freqrange_ANT_TXTX operation frequency range at ANT pin6981980MHz
$Z_{out}$ Output impedance, single-ended50Ω
PC3 maximum output powerPower Class 3 maximum output power23dBm
PC5 maximum output powerPower Class 5 maximum output power20dBm
Minimum output powerMinimum output power-40dBm
Pout maximum accuracyPout maximum accuracy±2dB

7.5.6 Transmitter parameters for Cat-NB1 and Cat-NB2

SymbolDescriptionMin.Typ.Max.Units
Freqrange_ANT_TXTX operation frequency range at ANT pin6982010MHz
$Z_{out}$ Output impedance, single-ended50Ω
PC3 maximum output powerPower Class 3 maximum output power23dBm
PC5 maximum output powerPower Class 5 maximum output power20dBm
Minimum output powerMinimum output power-40dBm
Pout maximum accuracyPout maximum accuracy±2dB

8

DECT NR+

The nRF9151 SiP contains a Low-Power Wide-Area (LPWA) network processor with dedicated flash/RAM, which controls the radio and baseband hardware components. DECT NR+ (NR+) capabilities are provided by installing Nordic Semiconductor firmware, that implements the physical layer (PHY) level operation of the NR+ radio protocol stack according to ETSI specifications (TS 103 636-2 and TS 103 636-3).

NR+ is a non-cellular radio standard included as part of the 5G standards by the International Telecommunication Union (ITU). It is designed for massive Machine Type Communication (mMTC) and for Ultra-Reliable Low Latency Communication (URLLC).

NR+ operates on the global and license-exempt 1.9 GHz band, which significantly cuts deployment costs by eliminating the need for frequency planning or heavy certification. The NR+ device developer can design optimal radio behavior since there is no need for third-party cellular infrastructure. Additionally, the range and dense topology properties of NR+ make it highly scalable. A square kilometer can be covered by as little as 100 devices or scaled up to over 1 million devices while maintaining the same reliable, low-latency communication.

The physical radio layer in NR+ reuses known techniques from cellular radios, reaching the same level of reliability that is proven by billions of devices already in the field.

The following are key features of NR+:

• License-exempt global band

• Built-in coexistence of multiple networks in the same location

• Flexible, low-latency system and network architectures

• High reliability, using hybrid ARQ

• Possibility of hiding the network, using AES-128 encryption and integrity protection

• Data rate up to 3.4 Mbps, depending on modulation

See ETSI TS 103 636-1 for more information.


Figure 118: nRF9151 NR+ device functional overview

Application and LPWA network domains interact through the interprocessor communication (IPC) mechanism. The application processor is the system master and is responsible for starting and stopping the NR+ device. The LPWA network processor enables the clocks and power required for its own operation. The platform handles shared resources, such as clocks, and does not need user participation.

8.1 massive Machine Type Communication (mMTC)

mMTC is used for large networks with machine-type devices, connecting tens of billions of nodes that operate for many years using small batteries and transmit small amounts of data.

Typical use cases involve collecting measurements from many sensors, such as smart metering, which requires a low-maintenance and low-cost autonomous network structure.

A key feature of NR+ is its self-healing and self-organizing properties. Each node can function as a router to an access point with a connection to the internet. Nodes can change to a routing role based on the needs of the network. Multiple access points to the internet can be supported in a single network. These properties eliminates single points of failure and resolves high-traffic situations that can occur in dense IoT networks.

8.2 Ultra-Reliable Low-Latency Communication (URLLC)

URLLC enables mission-critical wireless use cases where failure is not an option.

Examples include management of self-driving factory vehicles, high-speed robots working alongside human operators in warehouses, and critical infrastructure in buildings, cities, and utilities.

NR+ is designed to reach one-millisecond latency between devices, opening the possibility for low-latency systems to consider wireless operation, even where ranges are over a kilometer. This makes NR+ an open, standardized alternative to existing proprietary technology.

8.3 DECT NR+ on the nRF9151

Nordic Semiconductor provides NR+ firmware that implements the physical layer (PHY) level operation of the NR+ radio protocol stack according to ETSI specifications (TS 103 636-2 and TS 103 636-3).

The NR+ standard and stack are still in development, contact the Nordic Semiconductor sales department for more information on the NR+ firmware.

The nRF9151 SiP supports NR+ bands 1, 2, and 9. The antenna interface and recommendations are the same as for the LTE modem. NR+ does not require a SIM or eSIM.

Note: While running DECT NR+ firmware, the nRF9151 SiP does not support LTE modem. See the LTE modem section for more information on alternative firmware.

8.4 Key RF Parameters

NR+ RF performance parameters are shown in the following table.

DescriptionMinTypMaxUnit
Bands supported1, 2, 9, 22
Transmission Bandwidth1.728MHz
Occupied Bandwidth1.539MHz
Antenna impedance, single-ended50 $\Omega$
RX: $Sensitivity^{27}$ , modulation MCS1-103dBm
TX: Maximum output power19dBm
TX: Minimum output power-40dBm

Table 50: Common parameters

8.5 DECT NR+ coexistence interface

NR+ uses a dedicated two-pin coexistence interface to avoid RF interference to a companion radio device such as an external positioning device or a Bluetooth Low Energy device.

The user can configure COEX0 and COEX2 pin functions through the NR+ AT commands.

Note: Using the COEX2 pin requires an external pull-down resistor in the 100 kΩ range.

GPS receiver

The LPWA network processor supports GPS reception, if the onboard network protocol firmware supports it.

GPS receiver operation is time multiplexed with the LTE modem, and GPS and QZSS position can be received while the LTE modem is in RRC Idle mode, power saving mode (PSM), or completely deactivated.

The application processor is the system master and responsible for starting and stopping the GPS receiver. GPS can be run standalone or concurrently with QZSS. The GPS and QZSS reception can be configured through the GNSS interface API.

Note: For details regarding the GNSS API, refer to nRF Connect SDK API documentation.

Key features of the GPS receiver are as follows:

• GPS L1 C/A reception

• QZSS L1 C/A reception

• Optimized for low-power and low-cost IoT applications

• Modes of operation:

• Single shot

• Position fix per fixed interval, configurable to a value between 10 s to 65536 s

• Continuous tracking

• Power saving mode:

• Duty-cycled continuous tracking operation

• One pulse per second (1PPS) signal:

• A pulse repeating once per second, accurately synchronized to coordinated universal time (UTC) full seconds

• For more details on 1PPS programmability and power vs. accuracy trade-offs, see GNSS API documentation

• Available on device COEX1 pin

• For more details, see LTE modem on page 423, coexistence interface

• Antenna interface:

• External low-noise amplifier (LNA) with SAW filter recommended on the GPS antenna input

• Dedicated GPS antenna, or shared antenna with LTE

• GPS antenna pin is DC grounded

Note: There must be minimum 27dB attenuation to out of band power to avoid blocking high power RF signals to GPS receiver input. This can be achieved by using a SAW filter, for example, at the external LNA output.

9.1 Electrical specification

The following is a summary of GPS receiver performance parameters.

ConditionValue
EnvironmentOpen sky
Temperature25°C
GPS sleep clock sourceTCXO

Table 51: Common typical conditions

Note: Local and temporal conditions might lead to considerable variation in TTFF, positioning accuracy, 1PPS signal accuracy.

The figures in the following table assume the use of an external low-noise amplifier (LNA) with SAW filter.

SymbolDescriptionValueUnit
Sensitivity, coldAcquisition sensitivity, cold start-146.5dBm
Sensitivity, hotAcquisition sensitivity, hot start-152.5dBm
Sensitivity, trackingTracking sensitivity-156.5dBm
TTFF, coldTime to first fix (TTFF), cold start30.5s
TTFF, hotTTFF, hot start1.3s
TTFF, A-GPSTTFF, A-GPS start1.3s
Accuracy, 2D, periodicPositioning accuracy (CEP50), periodic tracking $^{28}$ 3.4m
Accuracy, 2D, periodic, A-GPSPositioning accuracy (CEP50), periodic tracking $^{28}$ with A-GPS $^{29}$ 3.1m
Accuracy, 2D, continuousPositioning accuracy (CEP50), continuous tracking2.0m
Accuracy, 2D, continuous, A-GPSPositioning accuracy (CEP50), continuous tracking with A-GPS $^{29}$ 1.8m
1PPS accuracy1PPS signal accuracy, continuous tracking±35ns

Table 52: GPS electrical specification

10 Debug and trace

The debug and trace system offers a flexible and powerful mechanism for non-intrusive debugging.


Figure 119: Debug and trace overview

The main features of the debug and trace system include:

• Two-pin serial wire debug (SWD) interface, protocol version 1

• Access port connection

• Breakpoint unit (BPU) supports eight hardware breakpoint comparators

• Data watchpoint and trace (DWT) unit supports four watchpoint comparators

• Instrumentation trace macrocell (ITM)

• Embedded trace macrocell (ETM)

• Access protection through APPROTECT, ERASEPROTECT and SECUREAPPROTECT

• Embedded trace buffer (ETB)

• Trace port interface unit (TPIU)

• 4-bit parallel trace of ITM and ETM trace data

Note: When a system contains multiple CPU domains, it is important to be aware that if one domain (subsystem A) has master rights on another domain (subsystem B), the master subsystem can access some data from the slave subsytem. In this example, even if subsystem B is locked by APPROTECT or ERASEPROTECT, subsystem A can access some data for subsystem B. Consequently, even if the security permissions are managed per subsystem, it is mandatory to have a global approach to the protection. Protecting a slave subsystem does not guarantee system security if the master subsystem is not protected.

10.1 DAP - Debug access port

An external debugger can access the device via the debug access port (DAP).

The DAP implements a standard Arm CoreSight serial wire debug port (SW-DP). The SW-DP implements the serial wire debug (SWD) protocol that is a two-pin serial interface, see SWDCLK and SWDIO illustrated in figure Debug and trace overview on page 434.

In addition to the default access port in the application CPU (AHB-AP), the DAP includes a custom control access port (CTRL-AP), described in more detail in CTRL-AP - Control access port on page 503.

Note:

• The SWDIO line has an internal pull-up resistor.

• The SWDCLK line has an internal pull-down resistor.

There are several access ports that connect to different parts of the system. An overview is given in the table below.

Table 54: Application core access port protection overview

AP IDTypeDescription
0AHB-APApplication subsystem access port
3APB-APCoreSight subsystem access port
4CTRL-APApplication subsystem control access port

Table 53: Access port overview

The standard Arm components are documented in Arm CoreSight SoC-400 Technical Reference Manual, revision r3p2. The control access port (CTRL-AP) is proprietary, and described in more detail in CTRL-AP - Control access port on page 503.

10.2 Access port protection

Access port protection blocks the debugger from read and write access to all CPU registers and memorymapped addresses when enabled. If needed, a debugger can be restricted to debug non-secure code only and access non-secure memory regions and peripherals using register SECUREAPPROTECT on page 44. Register APPROTECT on page 42 blocks all debugger access.

The following table gives an overview of the access port protection methods.

Debugging capabilityDescription
Non-secure codeThe application core AHB-AP DBGEN signal controls all non-secure access through the application core AHB-AP. This can be used to provide readback protection of the flash contents. See Debugger access control for non-secure debug access on page 436. For more information about the DBGEN signal, see the Arm CoreSight SoC-400 Technical Reference Manual, Revision r3p2.
Secure codeThe application core AHB-AP SPIDEN signal controls all secure access through the application core AHB-AP. This means that only the non-secure code can be debugged and accessed when secure accesses are blocked. To enable access to the secure access port, non-secure code must be unprotected. See Debugger access control for secure debug access on page 436. For more information about the SPIDEN signal, see the Arm CoreSight SoC-400 Technical Reference Manual, Revision r3p2.

If a RAM or flash region has its permission set to allow code execution, the content of this region is visible to the debugger even if the read permission is not set. This allows a debugger to display the content of the code being executed. For more information on configuring permissions, see SPU — System protection unit on page 323.

Access port protection controlled by hardware and software

By default, access port protection is enabled.

The following table describes how non-secure debugger access is controlled.

Debugging capabilityUICR.APPROTECT. PALLAPPROTECT. DISABLEAPPROTECT. FORCEPROTECTSecure debug access
Non-secure codeHwUnprotectedSwUnprotectedReset value-
No debugging possibleProtectedReset valueForce-

Table 55: Debugger access control for non-secure debug access

The following table describes how secure debugger access is controlled.

Debugging capabilityUICR. SECUREAPPROTECT. PALLSECUREAPPROTECT. DISABLESECUREAPPROTECT. FORCEPROTECTNon-secure debug access
Secure codeHwUnprotectedSwUnprotectedReset valuePermitted
No debugging possibleProtectedReset valueForcePermitted
No debugging possible---Not permitted

Table 56: Debugger access control for secure debug access

Access port protection is enabled when the hardware and software disabling conditions are not present. For additional security, it is recommended to write Protected to UICR.SECUREAPPROTECT and UICR.APPROTECT, and have firmware write to SECUREAPPROTECT.FORCEPROTECT and APPROTECT.FORCEPROTECT.

Note: Registers SECUREAPPROTECT.FORCEPROTECT and APPROTECT.FORCEPROTECT are reset in System ON IDLE or after any reset.

Access port protection is disabled by issuing an ERASEALL command through CTRL-AP. Read ERASEALLSTATUS until the ERASEALL sequence is ready. When ERASEALL is ready, trigger and then release soft reset from the RESET register. Read APPROTECT.STATUS to ensure that access port protection is disabled. If access port is not disabled, do a reset and repeat the ERASEALL command. This command erases the flash, UICR, and RAM, including UICR.SECUREAPPROTECT and UICR.APPROTECT. CTRL-AP is described in more detail in CTRL-AP - Control access port on page 503. Access port protection remains disabled until one of the following occurs:

• Pin reset

• Power or brownout reset

• Watchdog reset

• Wake from System OFF if not in Emulated System OFF

To keep access port protection disabled, the following actions must be performed:

Program UICR.SECUREAPPROTECT and UICR.APPROTECT to HwUnprotected. This disables the hardware part of the access port protection scheme after the first reset of any type. The hardware part of the access port protection stays disabled as long as UICR.SECUREAPPROTECT and UICR.APPROTECT are not overwritten.

• Firmware must write SECUREAPPROTECT.DISABLE and APPROTECT.DISABLE to SwUnprotected. This disables the software part of the access port protection scheme.

Note: Register SECUREAPPROTECT.DISABLE and APPROTECT.DISABLE are reset in System ON IDLE or after pin reset, power or brownout reset, watchdog reset, or wake from System OFF as mentioned above.

The following figure shows how a device with access port protection enabled is erased, programmed, and configured to allow debugging. Operations sent from the debugger and registers written by firmware affects the access port state.


Figure 120: Access port unlocking

10.2.2 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
APPROTECT : S0x50039000HFNSNAYesAPPROTECT control
APPROTECT : NS0x40039000

Register overview

RegisterOffsetTZDescription
SECUREAPPROTECT.DISABLE0xE00SSoftware disable SECUREAPPROTECT mechanism
SECUREAPPROTECT.FORCEPROTECT0xE00SSoftware force SECUREAPPROTECT mechanism
APPROTECT.DISABLE0xE10NSSoftware disable APPROTECT mechanism
APPROTECT.FORCEPROTECT0xE10NSSoftware force APPROTECT mechanism

10.2.2.1 SECUREAPPROTECT.DISABLE

Address offset: 0xE00

Software disable SECUREAPPROTECT mechanism

10.2.2.2 SECUREAPPROTECT.FORCEPROTECT

Address offset: 0xE00

Software force SECUREAPPROTECT mechanism

10.2.2.3 APPROTECT.DISABLE

Address offset: 0xE10

Software disable APPROTECT mechanism

10.2.2.4 APPROTECT.FORCEPROTECT

Address offset: 0xE10

Software force APPROTECT mechanism

10.3 Debug interface mode

Before the external debugger can access the CPU's access port (AHB-AP) or the control access port (CTRL AP), the debugger must first request the device to power up via CxxxPWRUPREQ in the SWJ-DP.

As long as the debugger is requesting power via CxxxPWRUPREQ, the device will be in debug interface mode. Otherwise, the device is in normal mode. When a debug session is over, the external debugger must make sure to put the device back into normal mode and then a pin reset should be performed. The reason is that the overall power consumption is higher in debug interface mode compared to norma mode.

Some peripherals behave differently in debug interface mode compared to normal mode. The differences are described in more detail in the chapters of the affected peripherals.

For details on how to use the debug capabilities, please read the debug documentation of your IDE.

If the device is in System OFF when power is requested via CxxxPWRUPREQ, the system will wake up and the DIF flag in RESETREAS on page 73 will be set.

10.4 Real-time debug

The device supports real-time debugging, which allows interrupts to execute to completion in real time when breakpoints are set in thread mode or lower priority interrupts.

Real-time debugging thus enables the developer to set a breakpoint and single-step through their code without a failure of the real-time event-driven threads running at higher priority. For example, this enables the device to continue to service the high-priority interrupts of an external controller or sensor without failure or loss of state synchronization while the developer steps through code in a low-priority thread.

10.5 Registers

Register overview

RegisterOffsetDescription
TARGETID0x042The TARGETID register provides information about the target when the host is connected to a single device.The TARGETID register is accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x2.

10.5.1 TARGETID

Address offset: 0x042

The TARGETID register provides information about the target when the host is connected to a single device.

The TARGETID register is accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x2.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDCCCCCCCCCCCCBBBBBBBBBBBA
Reset 0x1009028900010000000010010000001010001001
IDR/WFieldValue IDValue
ARUNUSED
BRTDESIGNER
NordicSemi0x144
CRTPARTNO
DRTREVISION

10.6 Electrical specification

10.6.1 Trace port

SymbolDescriptionMin.Typ.Max.Units
$T_{cyc}$ Clock period, as defined by ARM (See ARM Infocenter, Embedded Trace Macrocell Architecture Specification, Trace Port Physical Interface, Timing specifications)62.5ns

10.7 Trace

The nRF9151 supports ETM and ITM trace.

Available trace sinks:

• 2 kB internal embedded trace buffer (ETB)

• External trace port interface through TPIU

Trace data from the ETM and the ITM can be sent to an internal embedded trace buffer (ETB) or an external debugger via a 4-bit wide parallel trace port (TPIU), see TRACEDATA[0] through TRACEDATA[3], and TRACECLK in Debug and trace overview on page 434.

The following diagram shows the trace components architecture of the device's embedded Arm CoreSight subsystem.


Figure 121: Trace components architecture

The standard Arm components are documented in Arm CoreSight SoC-400 Technical Reference Manual, revision $r 3 p 2$ . For details on how to use the trace capabilities, please read the debug documentation of your IDE.

TPIU's trace pins are multiplexed with $G \mathsf { P l O s } ,$ see Pin assignments on page 516 for more information.

Note: To configure the trace data delivery to the device trace port, use the MDK system start-up file included as of MDK version 8.26.0.

Trace speed is configured in the TRACEPORTSPEED (Retained) on page 514 register. The speed of the trace pins depends on the DRIVE setting of the GPIOs that the trace pins are multiplexed with. See GPIO — General purpose input/output on page 163 for information about how to set drive settings. Only S0S1 and H0H1 drives are suitable for debugging. S0S1 is the default DRIVE at reset. If parallel or serial trace port signals are not fast enough in the debugging conditions, all GPIOs in use for tracing should be set to high drive (H0H1). The user shall make sure that DRIVE setting for these GPIOs is not overwritten by software during the debugging session.

10.7.1 ATB Funnel

The ARM® ATB Funnel funnels trace bus mesages from several sources into one output bus.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

10.7.1.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ATBFUNNEL10xE005A000HFNSNANoATBFUNNEL unit 1
ATBFUNNEL20xE005B000HFNSNANoATBFUNNEL unit 2

Register overview

RegisterOffsetTZDescription
CTRLREG0x000The IDFILTER0 register enables the programming of ID filtering for master port 0.
PRIORITYCTRLREG0x004The Priority_Ctrl_Reg register defines the order in which inputs are selected. Each 3-bit field is a priority for each particular slave interface.
ITATBDATA00xEECThe ITATBDATA0 register performs different functions depending on whether the access is a read or a write.
ITATBCTR20xEF0The ITATBCTR2 register performs different functions depending on whether the access is a read or a write.
ITATBCTR10xEF4The ITATBCTR1 register performs different functions depending on whether the access is a read or a write.
ITATBCTR00xEF8The ITATBCTR0 register performs different functions depending on whether the access is a read or a write.
ITCTRL0xF00The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

10.7.1.1.1 CTRLREG

Address offset: 0x000

The IDFILTER0 register enables the programming of ID filtering for master port 0.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
A-HRWENS[i] (i=0..7)Enable slave port i.
Disabled0Slave port disabled. This excludes the port from the priority selection scheme.
Enabled1Slave port enabled.
IRWHT[0:14]Hold Time. The formatting scheme can become inefficient when fast switching occurs, and you can use this setting to minimize switching.When a source has nothing to transmit, then another source is selected irrespective of the minimum number of transactions. The ATB funnel holds for the minimum hold time and one additional transaction. The actual hold time is the register value plus 1. The maximum value that can be entered is 0b1110 and this equates to 15 transactions. 0b1111 is reserved.

10.7.1.1.2 PRIORITYCTRLREG

Address offset: 0x004

The Priority_Ctrl_Reg register defines the order in which inputs are selected. Each 3-bit field is a priority for each particular slave interface.

Bit number313029282726252423222120191817161514131211109876543210
ID
HHHGGGFFFEEEDDDCCCBBBAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWPRIPORT[i] (i=0..7)[0:7]Priority value of port number i.

10.7.1.1.3 ITATBDATA0

Address offset: 0xEEC

The ITATBDATA0 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDQPONMLKJIHGFEDCBA
Reset 0x000000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-QRWATDATA[i] (i=0..16)A read access returns the value of a pin on atdatas_x of the enabled port. A write access writes to the corresponding atdatam pin of the enabled port.
Low0Pin is logic 0.
High1Pin is logic 1.

10.7.1.1.4 ITATBCTR2

Address offset: 0xEF0

The ITATBCTR2 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATREADY

10.7.1.1.5 ITATBCTR1

Address offset: 0xEF4

The ITATBCTR1 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDM0A read returns the value of the atids[n] signals, where the value of the Control Register at 0x000 defines n. A write outputs the value to the atidm port.
1
1
1

10.7.1.1.6 ITATBCTR0

Address offset: 0xEF8

The ITATBCTR0 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATVALID
Low0
High1
BRWAFREADY
Low0
High1
CRWATBYTES
Low0
High1

10.7.1.1.7 ITCTRL

Address offset: 0xF00

The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWIME
Disabled0
Enabled1

10.7.1.1.8 CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWBIT[i] (i=0..3)
NotImplemented0
Implemented1
Set1

10.7.1.1.9 CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWBIT[i] (i=0..3)
Cleared0
Set1
Clear1

10.7.1.1.10 LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWACCESS
UnLock0xC5ACCE55

10.7.1.1.11 LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPRESENT
NotImplemented0
Implemented1
BRWLOCKED
UnLocked0
Locked1
CRWTYPE
Bits320
Bits81

10.7.1.1.12 AUTHSTATUS

Address offset: 0xFB8

Indicates the current level of tracing permitted by the system

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWNSID
NotImplemented0
Implemented1
BRWNSNID
NotImplemented0
Implemented1The feature is not implemented.
CRWSID
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.
DRWSNIDSecure Non-Invasive Debug
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.

10.7.1.1.13 DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARPORTCOUNT[2:8]

10.7.1.1.14 DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARMAJOR
InputOutputDevice2
BRSUB
Replicator1

10.7.1.1.15 PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

10.7.1.1.16 PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

10.7.1.1.17 PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

10.7.1.1.18 PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

10.7.1.1.19 PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

10.7.1.1.20 CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

10.7.1.1.21 CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

10.7.1.1.22 CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

10.7.1.1.23 CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

10.7.2 ATB Replicator

The ARM® ATB Replicator replicates incoming trace bus mesages across its outputs.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

10.7.2.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ATBREPLICATOR0xE0058000HFNSNANoATBREPLICATOR

Register overview

RegisterOffsetTZDescription
IDFILTER00x000The IDFILTER0 register enables the programming of ID filtering for master port 0.
IDFILTER10x004The IDFILTER1 register enables the programming of ID filtering for master port 1.
ITATBCTR10xEF8The ITATBCTR1 register returns the value of the atreadym0, atreadym1, and atvalids inputs in integration mode.
ITATBCTR00xEFCThe ITATBCTR0 register controls the value of the atvalidm0, atvalidm1, and atreadys outputs in integration mode.
ITCTRL0xF00The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

10.7.2.1.1 IDFILTER0

Address offset: 0x000

The IDFILTER0 register enables the programming of ID filtering for master port 0.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWID0_[i]0_[i]F (i=0..7)
NotFiltered0
Selected1

10.7.2.1.2 IDFILTER1

Address offset: 0x004

The IDFILTER1 register enables the programming of ID filtering for master port 1.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWID1_[i]0_[i]F (i=0..7)
NotFiltered0
Selected1

10.7.2.1.3 ITATBCTR1

Address offset: 0xEF8

The ITATBCTR1 register returns the value of the atreadym0, atreadym1, and atvalids inputs in integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATREADYM0Reads the value of the atreadym0 input.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWATREADYM1Reads the value of the atreadym1 input.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATVALIDSReads the value of the atvalids input.
Low0Pin is logic 0.
High1Pin is logic 1.

10.7.2.1.4 ITATBCTR0

Address offset: 0xEFC

The ITATBCTR0 register controls the value of the atvalidm0, atvalidm1, and atreadys outputs in integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDM0Sets the value of the atvalidm0 output.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWATVALIDM1Sets the value of the atvalidm1 output.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATREADYSSets the value of the atreadys output.
Low0Pin is logic 0.
High1Pin is logic 1.

10.7.2.1.5 ITCTRL

Address offset: 0xF00

The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWIMEIntegration Mode Enable.
Disabled0Integration mode disabled.
Enabled1Integration mode enabled.

10.7.2.1.6 CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWBIT[i] (i=0..3)
NotImplemented0
Implemented1
Set1

10.7.2.1.7 CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWBIT[i] (i=0..3)
Cleared0
Set1
Clear1

10.7.2.1.8 LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWACCESSA write of 0xC5ACCE55 enables further write access to this device. Any other write removes write access.
UnLock0xC5ACCE55Unlock register interface.

10.7.2.1.9 LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPRESENT
NotImplemented0
Implemented1
BRWLOCKED
UnLocked0
Locked1
CRWTYPE
Bits320
Bits81

10.7.2.1.10 AUTHSTATUS

Address offset: 0xFB8

Indicates the current level of tracing permitted by the system

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWNSID
NotImplemented0
Implemented1
BRWNSNID
NotImplemented0
Implemented1The feature is not implemented.
CRWSID
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.
DRWSNIDSecure Non-Invasive Debug
NotImplemented0The feature is not implemented.
Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
Implemented1The feature is implemented.

10.7.2.1.11 DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARPORTNUM[0:15]

10.7.2.1.12 DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
InputOutputDevice2Indicates that this component has ATB inputs and outputs.
BRSUBThe sub-type of the component
Replicator2Indicates that this component replicates trace from a single source to multiple targets.

10.7.2.1.13 PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

10.7.2.1.14 PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

10.7.2.1.15 PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

10.7.2.1.16 PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

10.7.2.1.17 PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

10.7.2.1.18 CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

10.7.2.1.19 CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

10.7.2.1.20 CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

10.7.2.1.21 CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

10.7.3 ETB — Embedded trace buffer

The ARM embedded trace buffer captures trace and stores it in an on-chip RAM for later inspection.

This document only provides a register-level description of this ARM component. See the Arm® CoreSight SoC-400 Technical Reference Manual for more details.

10.7.3.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ETB0xE0051000HFNSNANoETB

Register overview

RegisterOffsetTZDescription
RDP0x4ETB RAM Depth Register
STS0xCETB Status Register
RRD0x10ETB RAM Read Data Register
RRP0x14ETB RAM Read Pointer Register
RWP0x18ETB RAM Write Pointer Register
TRG0x1CETB Trigger Counter Register
CTL0x20ETB Control Register
RWD0x24ETB RAM Write Data Register
FFSR0x300ETB Formatter and Flush Status Register
FFCR0x304ETB Formatter and Flush Control Register
ITMISCOP00xEE0Integration Test Miscellaneous Output Register 0
ITTRFLINACK0xEE4Integration Test Trigger In and Flush In Acknowledge Register
ITTRFLIN0xEE8Integration Test Trigger In and Flush In Register
ITATBDATA00xEECIntegration Test ATB Data Register 0
ITATBCTR20xEF0Integration Test ATB Control Register 2
ITATBCTR10xEF4Integration Test ATB Control Register 1
ITATBCTR00xEF8Integration Test ATB Control Register 0
ITCTRL0xF00Integration Mode Control Register
CLAIMSET0xFA0Claim Tag Set Register
CLAIMCLR0xFA4Claim Tag Clear Register
LAR0xFB0Lock Access Register
LSR0xFB4Lock Status Register
AUTHSTATUS0xFB8Authentication Status Register
DEVID0xFC8Device Configuration Register
DEVTYPE0xFCCDevice Type Identifier Register
PERIPHID40xFD0Peripheral ID4 Register
PERIPHID00xFE0Peripheral ID0 Register
PERIPHID10xFE4Peripheral ID1 Register
PERIPHID20xFE8Peripheral ID2 Register
PERIPHID30xFECPeripheral ID3 Register
COMPID00xFF0Component ID0 Register
COMPID10xFF4Component ID1 Register
COMPID20xFF8Component ID2 Register
COMPID30xFFCComponent ID3 Register

10.7.3.1.1 RDP

Address offset: 0x4

ETB RAM Depth Register

Defines the depth, in words, of the trace RAM. This value is configurable in the RTL, but fixed at synthesis. Supported depth in powers of 2 only.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription
ARETB_RAM_DEPTHDefines the depth, in words, of the trace RAM.

10.7.3.1.2 STS

Address offset: 0xC

ETB Status Register

This register indicates the status of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000008000000000000000000000000000001000
IDR/WFieldValue IDValue
ARFULL
BRTRIGGERED
CRACQCOMP
DRFTEMPTY

10.7.3.1.3 RRD

Address offset: 0x10

ETB RAM Read Data Register

When trace capture is disabled, the contents of the ETB Trace RAM at the location addressed by the RAM Read Pointer Registers are placed in this register. Reading this register increments the RAM Read Pointer Register and triggers a RAM access cycle. If trace capture is enabled (FtStopped=0, TraceCaptEn=1), and ETB RAM reading is attempted, a read from this register outputs 0xFFFFFFFF and the RAM Read Pointer Register does not auto-increment. A constant stream of 1s being output corresponds to a synchronization output in the formatter protocol, which is not applicable to the ETB, and so can be used to signify a read error, when formatting is enabled.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARRAM_READ_DATA

10.7.3.1.4 RRP

Address offset: 0x14

ETB RAM Read Pointer Register

The RAM Read Pointer Register sets the read pointer used to read entries from the Trace RAM over the APB interface. When this register is written to, a RAM access is initiated. The RAM Read Data Register is then updated. The register can also be read to determine the current memory location being referenced. This register must not be written to when trace capture is enabled (FtStopped=0, TraceCaptEn=1). If access is attempted, the register is not updated.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRAM_READ_POINTER

10.7.3.1.5 RWP

Address offset: 0x18

ETB RAM Write Pointer Register

The RAM Write Pointer Register sets the write pointer used to write entries from the CoreSight bus into Trace RAM. During trace capture the pointer increments when the DataValid flag is asserted by the Formatter. When this register increments from its maximum value back to zero, the Full flag is set. This register can also be written to over APB to set the pointer for write accesses carried out through the APB interface. This register must not be written to when trace capture is enabled (FtStopped=0, TraceCaptEn=1). If access is attempted, the register is not updated. The register can also be read to determine the current memory location being referenced. It is recommended that addresses are 128-bit aligned when the formatter is used in normal or continuous modes.

10.7.3.1.6 TRG

Address offset: 0x1C

ETB Trigger Counter Register

The Trigger Counter Register disables write access to the Trace RAM by stopping the Formatter after a defined number of words have been stored following the trigger event. The number of 32-bit words written into the Trace RAM following the trigger event is equal to the value stored in this register+1.

10.7.3.1.7 CTL

Address offset: 0x20

ETB Control Register

This register controls trace capture by the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTRACECAPTEN

10.7.3.1.8 RWD

Address offset: 0x24

ETB RAM Write Data Register

Data written to the ETB Trace RAM.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRAM_WRITE_DATA

10.7.3.1.9 FFSR

Address offset: 0x300

ETB Formatter and Flush Status Register

This register indicates the implemented Trigger Counter multipliers and other supported features of the trigger system.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000002000000000000000000000000000000010
IDR/WFieldValue IDValue
ARFLINPROG
BRFTSTOPPED

10.7.3.1.10 FFCR

Address offset: 0x304

ETB Formatter and Flush Control Register

This register controls the generation of stop, trigger, and flush events. To disable formatting and put the formatter into bypass mode, bits 1 and 0 must be clear. If both bits are set, then the formatter inserts triggers into the formatted stream. All three flush generating conditions can be enabled together. However, if a second or third flush event is generated then the current flush completes before the next flush is serviced. Flush from flushin takes priority over flush from Trigger, which in turn completes before a manually activated flush. All Trigger indication conditions can be enabled simultaneously although this can cause the appearance of multiple triggers if flush using trigger is also enabled. Both 'Stop On' settings can be enabled, although if flush on trigger, FOnTrig, is set up then none of the flushed data is stored. When the system stops, it returns ATREADY and does not store the accepted data packets. This is to avoid stalling of any other connected devices using a Trace Replicator. If an event in the Formatter and Flush Control Register is required, it must be enabled before the originating event starts. Because requests from flushes and triggers can originate in an asynchronous clock domain, the exact time the component acts on the request cannot be determined with respect to configuring the control. Note - To perform a stop on flush completion through a manually-generated flush request, two write operations to the register are required: one to enable the stop event, if it is not already enabled; one to generate the manual flush.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARWENFTCDo not embed Triggers into the formatted stream. Trace disable cycles and triggers are indicated by TRACECTL, where fitted. Can only be changed when FtStopped is HIGH. This bit is clear on reset.
BRWENFCONTContinuous mode in the ETB corresponds to normal mode with the embedding of triggers. Can only be changed when FtStopped is HIGH. This bit is clear on reset.
CRWFONFLINSet this bit to enable use of the flushin connection. This is clear on reset.
DRWFONTRIGGenerate flush using Trigger event. Set this bit to cause a flush of data in the system when a Trigger Event occurs. This bit is clear on reset. A Trigger Event is defined as when the Trigger counter reaches zero (where fitted) or, in the case of the trigger counter being zero (or not fitted), when trigin is HIGH.
ERWFONMANSetting this bit causes a flush to be generated. This is cleared when this flush has been serviced. This bit is clear on reset.
FRWTRIGINIndicate a trigger on trigin being asserted.
GRWTRIGEVTIndicate a trigger on a Trigger Event.
HRWTRIGFLIndicates a trigger on Flush completion (afreadys being returned).
IRWSTOPFLThis forces the FIFO to drain off any part-completed packets. Setting this bit enables this function but this is clear on reset (disabled).
JRWSTOPTRIGStop the formatter after a Trigger Event is observed. Reset to disabled (zero).

10.7.3.1.11 ITMISCOP0

Address offset: 0xEE0

Integration Test Miscellaneous Output Register 0

The Integration Test Miscellaneous Output Register 0 controls the values of some outputs from the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWACQCOMP
BWFULL

10.7.3.1.12 ITTRFLINACK

Address offset: 0xEE4

Integration Test Trigger In and Flush In Acknowledge Register

The Integration Test Trigger In and Flush In Acknowledge Register enables control of the triginack and flushinack outputs from the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWTRIGINACK
BWFLUSHINACK

10.7.3.1.13 ITTRFLIN

Address offset: 0xEE8

Integration Test Trigger In and Flush In Register

The Integration Test Trigger In and Flush In Register contains the values of the flushin and trigin inputs to the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARTRIGIN
BRFLUSHIN

10.7.3.1.14 ITATBDATA0

Address offset: 0xEEC

Integration Test ATB Data Register 0

The Integration Test ATB Data Register 0 contains the value of the atdatas inputs to the ETB. The values are only valid when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARATDATA_0
BRATDATA_7
CRATDATA_15
DRATDATA_23
ERATDATA_31

10.7.3.1.15 ITATBCTR2

Address offset: 0xEF0

Integration Test ATB Control Register 2

The Integration Test ATB Control Register 2 enables control of the atreadys and afvalids outputs of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AWATREADYS
BWAFVALIDS

10.7.3.1.16 ITATBCTR1

Address offset: 0xEF4

Integration Test ATB Control Register 1

The Integration Test ATB Control Register 1 contains the value of the atids input to the ETB. This is only valid when atvalids is HIGH.

Bit number
ID

10.7.3.1.17 ITATBCTR0

Address offset: 0xEF8

Integration Test ATB Control Register 0

The Integration Test ATB Control Register 0 captures the values of the atvalids, afreadys, and atbytess inputs to the ETB. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit [0], is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARATVALID
BRAFREADY
CRATBYTES

10.7.3.1.18 ITCTRL

Address offset: 0xF00

Integration Mode Control Register

This register is used to enable topology detection. For more information see the CoreSight Architecture Specification. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purpose of integration testing and topology solving. Note: When a device has been in integration mode, it might not function with the original behavior. After performing integration or topology detection, you must reset the system to ensure correct behavior of CoreSight and other connected system components that are affected by the integration or topology detection.

10.7.3.1.19 CLAIMSET

Address offset: 0xFA0

Claim Tag Set Register

This is used in conjunction with Claim Tag Clear Register, CLAIMCLR. This register forms one half of the Claim Tag value. This location allows individual bits to be set, write, and returns the number of bits that can be set, read.

10.7.3.1.20 CLAIMCLR

Address offset: 0xFA4

Claim Tag Clear Register

This register is used in conjunction with Claim Tag Set Register, CLAIMSET. This register forms one half of the Claim Tag value. This location enables individual bits to be cleared, write, and returns the current Claim Tag value, read.


The value present reflects the current setting of the Claim Tag.

10.7.3.1.21 LAR

Address offset: 0xFB0

Lock Access Register

This is used to enable write access to device registers. External accesses from a debugger (paddrdbg31 = 1) are not subject to the Lock Registers. A debugger does not have to unlock the component in order to write and modify the registers in the component.

10.7.3.1.22 LSR

Address offset: 0xFB4

Lock Status Register

This indicates the status of the Lock control mechanism. This lock prevents accidental writes by code under debug. When locked, write access is blocked to all registers, except the Lock Access Register. External accesses from a debugger (paddrdbg31 = 1) are not subject to the Lock Registers. This register reads as 0 when read from an external debugger (paddrdbg31 = 1).

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000003000000000000000000000000000000011
IDR/WFieldValue IDValue
ARLOCKEXIST
BRLOCKGRANT
CRLOCKTYPE

10.7.3.1.23 AUTHSTATUS

Address offset: 0xFB8

Authentication Status Register

Reports what functionality is currently permitted by the authentication interface.

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARNSID
BRNSNID
CRSID
DRSNID

10.7.3.1.24 DEVID

Address offset: 0xFC8

Device Configuration Register

This register indicates the capabilities of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
AREXTMUXNUM
BRRAMCLK

10.7.3.1.25 DEVTYPE

Address offset: 0xFCC

Device Type Identifier Register

It provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000021000000000000000000000000000100001
IDR/WFieldValue IDValue
ARMAJOR_TYPE
BRSUB_TYPE

10.7.3.1.26 PERIPHID4

Address offset: 0xFD0

Peripheral ID4 Register

Part of the set of Peripheral Identification registers. Contains part of the designer identity and the memory footprint indicator.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000400000000000000000000000000000100
IDR/WFieldValue IDValue
ARDES_2
BRSIZE

10.7.3.1.27 PERIPHID0

Address offset: 0xFE0

Peripheral ID0 Register

Part of the set of Peripheral Identification registers. Contains part of the designer specific part number.

Bit number
ID
Reset 0x00000007
IDR/WFieldValue IDValueDescription
ARPART_0Bits [7:0] of the component&#x27;s part number. This is selected by the designer of the component.

10.7.3.1.28 PERIPHID1

Address offset: 0xFE4

Peripheral ID1 Register

Part of the set of Peripheral Identification registers. Contains part of the designer specific part number and part of the designer identity.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x000000B9000000000000000000000000010111001
IDR/WFieldValue IDValue
ARPART_1
BRDES_0

10.7.3.1.29 PERIPHID2

Address offset: 0xFE8

Peripheral ID2 Register

Part of the set of Peripheral Identification registers. Contains part of the designer identity and the product revision.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBAAA
Reset 0x0000004B000000000000000000000000001001011
IDR/WFieldValue IDValue
ARDES_1
BRJEDEC
CRREVISION

10.7.3.1.30 PERIPHID3

Address offset: 0xFEC

Peripheral ID3 Register

Part of the set of Peripheral Identification registers. Contains the RevAnd and Customer Modified fields.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARCMOD
BRREVAND

10.7.3.1.31 COMPID0

Address offset: 0xFF0

Component ID0 Register

A component identification register, that indicates that the identification registers are present.

10.7.3.1.32 COMPID1

Address offset: 0xFF4

Component ID1 Register

A component identification register, that indicates that the identification registers are present. This register also indicates the component class.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000090000000000000000000000000010010000
IDR/WFieldValue IDValueDescription
ARPRMBL_1Contains bits [11:8] of the component identification
BRCLASSClass of the component. E. g. ROM table, CoreSight component etc.
Constitutes bits [15:12] of the component identification.

10.7.3.1.33 COMPID2

Address offset: 0xFF8

Component ID2 Register

A component identification register, that indicates that the identification registers are present.

10.7.3.1.34 COMPID3

Address offset: 0xFFC

Component ID3 Register

A component identification register, that indicates that the identification registers are present.

10.7.4 ETM — Embedded trace macrocell

The ARM embedded trace macorcell implements instruction, data and event tracing.

This document only provides a register-level description of this ARM component. See the Arm® Embedded Trace Macrocell Architecture Specification for more details

10.7.4.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ETM0xE0041000HFNSNANoETM

Register overview

RegisterOffsetTZDescription
TRCPRGCTLR0x004Enables the trace unit.
TRCPROCSELR0x008Controls which PE to trace.Might ignore writes when the trace unit is enabled or not idle.Before writing to this register, ensure that TRCSTATR.IDLE == 1 so that the trace unit can synchronize with the chosen PE.Implemented if TRCIDR3.NUMPROC is greater than zero.
TRCSTATR0x00CIdle status bit
TRCCONFIGR0x010Controls the tracing optionsThis register must always be programmed as part of trace unit initialization.Might ignore writes when the trace unit is enabled or not idle.
TRCEVENTCTLOR0x20Controls the tracing of arbitrary events.If the selected event occurs a trace element is generated in the trace stream according to the settings in TRCEVENTCTL1R.DATAEN and TRCEVENTCTL1R.INSTEN.
TRCEVENTCTL1R0x24Controls the behavior of the events that TRCEVENTCTLOR selects.This register must always be programmed as part of trace unit initialization.Might ignore writes when the trace unit is enabled or not idle.
TRCSTALLCTLR0x2CEnables trace unit functionality that prevents trace unit buffer overflows.Might ignore writes when the trace unit is enabled or not idle.Must be programmed if TRCIDR3.STALLCTL == 1.
TRCTSCTLR0x30Controls the insertion of global timestamps in the trace streams.When the selected event is triggered, the trace unit inserts a global timestamp into the trace streams.Might ignore writes when the trace unit is enabled or not idle.Must be programmed if TRCCONFIGR.TS == 1.
TRCSYNCPR0x34Controls how often trace synchronization requests occur.Might ignore writes when the trace unit is enabled or not idle.If writes are permitted then the register must be programmed.
TRCCCCTLR0x38Sets the threshold value for cycle counting.Might ignore writes when the trace unit is enabled or not idle.Must be programmed if TRCCONFIGR.CCI==1.
TRCBBCTLR0x3CControls which regions in the memory map are enabled to use branch broadcasting.Might ignore writes when the trace unit is enabled or not idle.Must be programmed if TRCCONFIGR.BB == 1.
TRCTRACEIDR0x40Sets the trace ID for instruction trace. If data trace is enabled then it also sets the trace ID for data trace, to (trace ID for instruction trace) + 1.This register must always be programmed as part of trace unit initialization.Might ignore writes when the trace unit is enabled or not idle.
TRCQCTLR0x44Controls when Q elements are enabled.Might ignore writes when the trace unit is enabled or not idle.This register must be programmed if it is implemented and TRCCONFIGR.QE is set to any value other than 0b00.
TRCVICTLR0x080Controls instruction trace filtering.Might ignore writes when the trace unit is enabled or not idle.Only returns stable data when TRCSTATR.PMSTABLE == 1.Must be programmed, particularly to set the value of the SSSTATUS bit, which sets the state of the start/stop logic.
TRCVIECTLR0x084ViewInst exclude control.Might ignore writes when the trace unit is enabled or not idle.This register must be programmed when one or more address comparators are implemented.
TRCVISSCTLR0x088Use this to set, or read, the single address comparators that control the ViewInst start/stop logic. The start/stop logic is active for an instruction which causes a start and remains active up to and including an instruction which causes a stop, and then the start/stop logic becomes inactive.Might ignore writes when the trace unit is enabled or not idle.If implemented then this register must be programmed.
TRCVIPCSSCTLR0x08CUse this to set, or read, which PE comparator inputs can control the ViewInst start/stop logic.Might ignore writes when the trace unit is enabled or not idle.If implemented then this register must be programmed.
TRCVDCTLR0x0A0Controls data trace filtering.Might ignore writes when the trace unit is enabled or not idle.This register must be programmed when data tracing is enabled, that is, when either TRCCONFIGR.DA == 1 or TRCCONFIGR.DV == 1.
TRCVDSACCTLR0x0A4ViewData include / exclude control.Might ignore writes when the trace unit is enabled or not idle.This register must be programmed when one or more address comparators are implemented.
TRCVDARCCTLR0x0A8ViewData include / exclude control.Might ignore writes when the trace unit is enabled or not idle.This register must be programmed when one or more address comparators are implemented.
TRCSEQEVR[n]0x100Moves the sequencer state according to programmed events.Might ignore writes when the trace unit is enabled or not idle.When the sequencer is used, all sequencer state transitions must be programmed with a valid event.
TRCSEQRSTEVR0x118Moves the sequencer to state 0 when a programmed event occurs.Might ignore writes when the trace unit is enabled or not idle.When the sequencer is used, all sequencer state transitions must be programmed with a valid event.
TRCSEQSTR0x11CUse this to set, or read, the sequencer state.Might ignore writes when the trace unit is enabled or not idle.Only returns stable data when TRCSTATR.PMSTABLE == 1.When the sequencer is used, all sequencer state transitions must be programmed with a valid event.
TRCEXTINSELR0x120Use this to set, or read, which external inputs are resources to the trace unit.Might ignore writes when the trace unit is enabled or not idle.Only returns stable data when TRCSTATR.PMSTABLE == 1.When the sequencer is used, all sequencer state transitions must be programmed with a valid event.
TRCCNTRLDVR[n]0x140This sets or returns the reload count value for counter n.Might ignore writes when the trace unit is enabled or not idle.
TRCCNTCTLR[n]0x150Controls the operation of counter n.Might ignore writes when the trace unit is enabled or not idle.
TRCCNTVR[n]0x160This sets or returns the value of counter n.The count value is only stable when TRCSTATR.PMSTABLE == 1.If software uses counter n then it must write to this register to set the initial counter value.Might ignore writes when the trace unit is enabled or not idle.
TRCRSCTLR[n]0x200Controls the selection of the resources in the trace unit.Might ignore writes when the trace unit is enabled or not idle.If software selects a non-implemented resource then CONSTRAINED UNPREDICTABLE behavior of the resource selector occurs, so the resource selector might fire unexpectedly or might not fire. Reads of the TRCRSCTLRn might return UNKNOWN.
TRCSSCCR00x280Controls the single-shot comparator.
TRCSSCSRO0x2A0Indicates the status of the single-shot comparators. TRCSSCSRO is sensitive toinstruction addresses.
TRCSSPCICRO0x2C0Selects the processor comparator inputs for Single-shot control.
TRCPDCR0x310Controls the single-shot comparator.
TRCPDSR0x314Indicates the power down status of the ETM.
TRCITATBIDR0xEE4Sets the state of output pins.
TRCITIATBINR0xEF4Reads the state of the input pins.
TRCITIATBOUTR0xEFCSets the state of the output pins.
TRCITCTRL0xF00Enables topology detection or integration testing, by putting ETM-M33 into integration mode.
TRCCLAIMSET0xFA0Sets bits in the claim tag and determines the number of claim tag bits implemented.
TRCCLAIMCLR0xFA4Clears bits in the claim tag and determines the current value of the claim tag.
TRCAUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
TRCDEVARCH0xFBCThe TRCDEVARCH identifies ETM-M33 as an ETMv4.2 component
TRCDEVTYPE0xFCCControls the single-shot comparator.
TRCPIDR[n]0xFD0Coresight peripheral identification registers.
TRCCIDR[n]0xFF0Coresight component identification registers.

10.7.4.1.1 TRCPRGCTLR

Address offset: 0x004

Enables the trace unit.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEN
Disabled0
Enabled1

10.7.4.1.2 TRCPROCSELR

Address offset: 0x008

Controls which PE to trace.

Might ignore writes when the trace unit is enabled or not idle.

Before writing to this register, ensure that TRCSTATR.IDLE == 1 so that the trace unit can synchronize with the chosen PE.

Implemented if TRCIDR3.NUMPROC is greater than zero.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPROCSEL

10.7.4.1.3 TRCSTATR

Address offset: 0x00C

Idle status bit

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWIDLE
NotIdle0
Idle1
BRWPMSTABLE
NotStable0
Stable1

10.7.4.1.4 TRCCONFIGR

Address offset: 0x010

Controls the tracing options

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDM L K J J I H G G G F E D C B A
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARWLOADASPOINSTInstruction P0 load field. This field controls whether load instructions are traced as P0 instructions.
No0Do not trace load instructions as P0 instructions.
Yes1Trace load instructions as P0 instructions.
BRWSTOREASPOINSTInstruction P0 field. This field controls whether store instructions are traced as P0 instructions.
No0Do not trace store instructions as P0 instructions.
Yes1Trace store instructions as P0 instructions.
CRWBBBranch broadcast mode bit.
Disabled0Branch broadcast mode is disabled.
Enabled1Branch broadcast mode is enabled.
DRWCCICycle counting instruction trace bit.
Disabled0Cycle counting in the instruction trace is disabled.
Enabled1Cycle counting in the instruction trace is enabled.
ERWCIDContext ID tracing bit.
Disabled0Context ID tracing is disabled.
Enabled1Context ID tracing is enabled.
FRWVMIDVirtual context identifier tracing bit.
Disabled0Virtual context identifier tracing is disabled.
Bit number313029282726252423222120191817161514131211109876543210
IDM L K J J I H G G G F E D C B A
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
Enabled1Virtual context identifier tracing is enabled.
GRWCONDConditional instruction tracing bit.
Disabled0Conditional instruction tracing is disabled.
LoadOnly1Conditional load instructions are traced.
StoreOnly2Conditional store instructions are traced.
LoadAndStore3Conditional load and store instructions are traced.
All7All conditional instructions are traced.
HRWTSGlobal timestamp tracing bit.
Disabled0Global timestamp tracing is disabled.
Enabled1Global timestamp tracing is enabled.
IRWRSReturn stack enable bit.
Disabled0Return stack is disabled.
Enabled1Return stack is enabled.
JRWQEQ element enable field.
Disabled0Q elements are disabled.
OnlyWithoutInstCou11Q elements with instruction counts are enabled. Q elements without instruction counts are disabled.
Enabled3Q elements with and without instruction counts are enabled.
KRWVMIDOPTControl bit to select the Virtual context identifier value used by the trace unit, both for trace generation and in the Virtual context identifier comparators.
VTTBR_EL20VTTBR_EL2.VMID is used. If the trace unit supports a Virtual context identifier larger than the VTTBR_EL2.VMID, the upper unused bits are always zero. If the trace unit supports a Virtual context identifier larger than 8 bits and if the VTCR_EL2.VS bit forces use of an 8-bit Virtual context identifier, bits [15:8] of the trace unit Virtual context identifier are always zero.
CONTEXTIDR_EL21CONTEXTIDR_EL2 is used.
LRWDAData address tracing bit.
Disabled0Data address tracing is disabled.
Enabled1Data address tracing is enabled.
MRWDVData value tracing bit.
Disabled0Data value tracing is disabled.
Enabled1Data value tracing is enabled.

10.7.4.1.5 TRCEVENTCTL0R

Address offset: 0x20

Controls the tracing of arbitrary events.

If the selected event occurs a trace element is generated in the trace stream according to the settings in TRCEVENTCTL1R.DATAEN and TRCEVENTCTL1R.INSTEN.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENT[0:255]

10.7.4.1.6 TRCEVENTCTL1R

Address offset: 0x24

Controls the behavior of the events that TRCEVENTCTL0R selects.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000O0000000000000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWINSTEN[i] (i=0..3)
Disabled0
Enabled1
ERWDATAEN
Disabled0
Enabled1

10.7.4.1.7 TRCSTALLCTLR

Address offset: 0x2C

Enables trace unit functionality that prevents trace unit buffer overflows.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCIDR3.STALLCTL == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWLEVEL[15:0]
Global timestamps in the instruction trace stream and the data trace stream.
Cycle counting in the instruction trace stream, although the cumulative cycle count remains correct.
Min0
Max15
Zero invasion. This setting has a greater risk of a FIFO overflow
Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
IDR/WFieldValue IDValue0
BRWISTALL
Disabled0The trace unit must not stall the PE.The trace unit can stall the PE.Data stall bit. Controls if a trace unit can stall the PE when the data trace buffer space is less than LEVEL.The trace unit must not stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.Data stall bit. Controls if a trace unit can stall the PE when the data trace buffer space is less than LEVEL.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE.The trace unit can stall the PE, or other means which ensure that the instruction trace has a higher priority than the data trace.The trace unit can monitor data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor the data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor the data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor the data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor the data trace elements on a load when the data trace buffer space is less than LEVEL.The trace unit can monitor the data trace elements (on a store when the data trace buffer space is less than LEVEL.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements (on a store when the data trace buffer space is less than LEVEL.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit can monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit may monitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor any data trace elements.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.(on a store when the data trace buffer space is less than LEVEL.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element(on a store when the data trace buffer space is less than LEVEL.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an datatrace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace elements.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor andata trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an datatrace element.The trace unit mayMonitor an data trace element.(on a store when the data trace buffer space is less than LEVEL.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitor an data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran data trace element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.(on a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.(on a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoranData Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran DataTrace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data TraceElement.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Data Trace Element(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.The trace unit mayMonitoran Data trace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space isless than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran DatatraceElement.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitor an Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoranDatatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Data Trace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitor an Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Data trace element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoranDatatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoranDatatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoranDatatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when The data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoranDatatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL。The trace unit mayMonitoran Datatrace Element.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than LEVEL.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than Level.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than Level.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than Level.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than Level.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less thanLevel.The trace unit mayMonitoran Datatrace Element.(On a Store when the data trace buffer space is less than Level.The trace unit mayMonitoran Datatrace Element.(

10.7.4.1.8 TRCTSCTLR

Address offset: 0x30

Controls the insertion of global timestamps in the trace streams.

When the selected event is triggered, the trace unit inserts a global timestamp into the trace streams.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.TS == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENT[0:255]

10.7.4.1.9 TRCSYNCPR

Address offset: 0x34

Controls how often trace synchronization requests occur.

Might ignore writes when the trace unit is enabled or not idle.

If writes are permitted then the register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPERIOD[31:0]
Disabled0

10.7.4.1.10 TRCCCCTLR

Address offset: 0x38

Sets the threshold value for cycle counting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.CCI==1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTHRESHOLD[2047:0]

10.7.4.1.11 TRCBBCTLR

Address offset: 0x3C

Controls which regions in the memory map are enabled to use branch broadcasting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.BB == 1.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWRANGE[i] (i=0..7)
Disabled0
Enabled1

10.7.4.1.12 TRCTRACEIDR

Address offset: 0x40

Sets the trace ID for instruction trace. If data trace is enabled then it also sets the trace ID for data trace, to (trace ID for instruction trace) + 1.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRACEID

Bit[0] must be zero if data trace is enabled. If data trace is enabled then a trace unit sets the trace ID for data trace, to TRACEID+1

10.7.4.1.13 TRCQCTLR

Address offset: 0x44

Controls when Q elements are enabled.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed if it is implemented and TRCCONFIGR.QE is set to any value other than 0b00.

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWRANGE[i] (i=0..7)
Disabled0
Enabled1
IRWMODE
Exclude0
Include1

10.7.4.1.14 TRCVICTLR

Address offset: 0x080

Controls instruction trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

Must be programmed, particularly to set the value of the SSSTATUS bit, which sets the state of the start/ stop logic.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEVENT_SEL
Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABRWSSSTATUS
B0
Disabled0
Enabled1

10.7.4.1.15 TRCVIIECTLR

Address offset: 0x084

ViewInst exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWINCLUDE[i] (i=0..7)
Disabled0
Enabled1
I-PRWEXCLUDE[i] (i=0..7)
Disabled0The address range that address range comparator pair i defines, is not selected for ViewInst include control.
Enabled1The address range that address range comparator pair i defines, is selected for ViewInst include control.

10.7.4.1.16 TRCVISSCTLR

Address offset: 0x088

Use this to set, or read, the single address comparators that control the ViewInst start/stop logic. The start/stop logic is active for an instruction which causes a start and remains active up to and including an instruction which causes a stop, and then the start/stop logic becomes inactive.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWSTART[i] (i=0..7)Selects which single address comparators are in use with ViewInst start/stop control, for the purpose of starting trace.
Disabled0The single address comparator i, is not selected as a start resource.
Enabled1The single address comparator i, is selected as a start resource.
I-PRWSTOP[i] (i=0..7)Selects which single address comparators are in use with ViewInst start/stop control, for the purpose of stopping trace
Disabled0The single address comparator i, is not selected as a stop resource.
Enabled1The single address comparator i, is selected as a stop resource.

10.7.4.1.17 TRCVIPCSSCTLR

Address offset: 0x08C

Use this to set, or read, which PE comparator inputs can control the ViewInst start/stop logic.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWSTART[i] (i=0..7)Selects which PE comparator inputs are in use with ViewInst start/stop control, for the purpose of starting trace
Disabled0The single PE comparator input i, is not selected as a start resource.
Enabled1The single PE comparator input i, is selected as a start resource.
I-PRWSTOP[i] (i=0..7)Selects which PE comparator inputs are in use with ViewInst start/stop control, for the purpose of stopping trace.
Disabled0The single PE comparator input i, is not selected as a stop resource.
Enabled1The single PE comparator input i, is selected as a stop resource.

10.7.4.1.18 TRCVDCTLR

Address offset: 0x0A0

Controls data trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when data tracing is enabled, that is, when either TRCCONFIGR.DA == 1 or TRCCONFIGR.DV == 1.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000O0000000000000000000000000000000000000000000000000
IDR/WFieldValue IDValue0
A-HRWEVENT[i] (i=0..7)

10.7.4.1.19 TRCVDSACCTLR

Address offset: 0x0A4

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-HRWINCLUDE[i] (i=0..7)
Disabled0
Enabled1
I-PRWEXCLUDE[i] (i=0..7)
Disabled0
Enabled1

10.7.4.1.20 TRCVDARCCTLR

Address offset: 0x0A8

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWINCLUDE[i] (i=0..7)Include range field. Selects which address range comparator pairs are in use with ViewData include control.
Disabled0The address range that address range comparator i defines, is not selected for ViewData include control.
Enabled1The address range that address range comparator i defines, is selected for ViewData include control.
I-PRWEXCLUDE[i] (i=0..7)Exclude range field. Selects which address range comparator pairs are in use with ViewData exclude control.
Disabled0The address range that address range comparator i defines, is not selected for ViewData exclude control.
Enabled1The address range that address range comparator i defines, s selected for ViewData exclude control.

10.7.4.1.21 TRCSEQEVR[n] (n=0..2)

Address offset: 0x100 + (n × 0x4)

Moves the sequencer state according to programmed events.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDP
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWF[i] (i=0..7)Forward field.
Disabled0The trace event does not affect the sequencer.
Enabled1When the event occurs then the sequencer state moves from state n to state n+1.
I-PRWB[i] (i=0..7)Backward field.
Disabled0The trace event does not affect the sequencer.
Enabled1When the event occurs then the sequancer state moves from state n+1 to state n.

10.7.4.1.22 TRCSEQRSTEVR

Address offset: 0x118

Moves the sequencer to state 0 when a programmed event occurs.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENT[0:255]Select which event should reset the sequencer.

10.7.4.1.23 TRCSEQSTR

Address offset: 0x11C

Use this to set, or read, the sequencer state.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWSTATE
State00
State11
State22
State33

10.7.4.1.24 TRCEXTINSELR

Address offset: 0x120

Use this to set, or read, which external inputs are resources to the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDDDDCCCCCCCCBBBBBBBBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWSEL[i] (i=0..3)[0:255]

10.7.4.1.25 TRCCNTRLDVR[n] (n=0..3)

Address offset: 0x140 + (n × 0x4)

This sets or returns the reload count value for counter n.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE[0:65535]Contains the reload value for counter n. When a reload event occurs for counter n then the trace unit copies the VALUEn field into counter n.

10.7.4.1.26 TRCCNTCTLR[n] (n=0..3)

Address offset: 0x150 + (n × 0x4)

Controls the operation of counter n.

Might ignore writes when the trace unit is enabled or not idle.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x00000000000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWCNTEVENT[0:255]
BRWRLDEVENT[0:255]
CRWRLDSELF
Disabled0
Enabled1
DRWCNTCHAIN
Disabled0
Enabled1

10.7.4.1.27 TRCCNTVR[n] (n=0..3)

Address offset: 0x160 + (n × 0x4)

This sets or returns the value of counter n.

The count value is only stable when TRCSTATR.PMSTABLE == 1.

If software uses counter n then it must write to this register to set the initial counter value.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWVALUE[0:65535]

10.7.4.1.28 TRCRSCTLR[n] (n=2..31)

Address offset: 0x200 + (n × 0x4)

Controls the selection of the resources in the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

If software selects a non-implemented resource then CONSTRAINED UNPREDICTABLE behavior of the resource selector occurs, so the resource selector might fire unexpectedly or might not fire. Reads of the TRCRSCTLRn might return UNKNOWN.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWEN
Disabled0
Enabled1

10.7.4.1.29 TRCSSCCR0

Address offset: 0x280

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRST
Disabled0
Enabled1

10.7.4.1.30 TRCSSCSR0

Address offset: 0x2A0

Indicates the status of the single-shot comparators. TRCSSCSR0 is sensitive toinstruction addresses.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWINST
False0
True1
BRWDA
False0
True1Data address comparator support
CRWDV
False0
True1
DRWPC
False0
True1
ERWSTATUS
NoMatch0
Match1

10.7.4.1.31 TRCSSPCICR0

Address offset: 0x2C0

Selects the processor comparator inputs for Single-shot control.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWPC[i] (i=0..3)
Disabled0
Enabled1

10.7.4.1.32 TRCPDCR

Address offset: 0x310

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPU
Disabled0
Enabled1

10.7.4.1.33 TRCPDSR

Address offset: 0x314

Indicates the power down status of the ETM.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPOWER
NotPoweredUp0
PoweredUp1
BRWSTICKYPD
NotPoweredDown0
PoweredDown1

10.7.4.1.34 TRCITATBIDR

Address offset: 0xEE4

Sets the state of output pins.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-GRWID[i] (i=0..6)

10.7.4.1.35 TRCITIATBINR

Address offset: 0xEF4

Reads the state of the input pins.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATVALID
BRWAFREADY

10.7.4.1.36 TRCITIATBOUTR

Address offset: 0xEFC

Sets the state of the output pins.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATVALID
BRWAFREADY

10.7.4.1.37 TRCITCTRL

Address offset: 0xF00

Enables topology detection or integration testing, by putting ETM-M33 into integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWIME
Disabled0
Enabled1

10.7.4.1.38 TRCCLAIMSET

Address offset: 0xFA0

Sets bits in the claim tag and determines the number of claim tag bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWSET[i] (i=0..3)
NotSet0
Set1
Claim1

10.7.4.1.39 TRCCLAIMCLR

Address offset: 0xFA4

Clears bits in the claim tag and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWCLR[i] (i=0..3)
NotSet0
Set1
Clear1

10.7.4.1.40 TRCAUTHSTATUS

Address offset: 0xFB8

Indicates the current level of tracing permitted by the system

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWNSIDNon-secure Invasive Debug
Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
NotImplemented0
Implemented1
BRWNSNID
NotImplemented0
Implemented1
CRWSID
NotImplemented0
Implemented1
DRWSNID
NotImplemented0
Implemented1

10.7.4.1.41 TRCDEVARCH

Address offset: 0xFBC

The TRCDEVARCH identifies ETM-M33 as an ETMv4.2 component

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDDDDDDDCBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARARCHIDArchitecture ID
ETMv420x4A13Component is an ETMv4 component
BRREVISIONArchitecture revision
v22Component is part of architecture 4.2
CRPRESENTThis register is implemented
Absent0The register is not implemented.
Present1The register is implemented.
DRARCHITECTDefines the architect of the component
Arm0x23BThis peripheral was architected by Arm.

10.7.4.1.42 TRCDEVTYPE

Address offset: 0xFCC

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
TraceSource3Peripheral is a trace source.
BRSUBThe sub-type of the component
ProcessorTrace1Peripheral is a processor trace source.

10.7.4.1.43 TRCPIDR[n] (n=0..7)

Address offset: 0xFD0 + (n × 0x4)

Coresight peripheral identification registers.

10.7.4.1.44 TRCCIDR[n] (n=0..3)

Address offset: 0xFF0 + (n × 0x4)

Coresight component identification registers.

10.7.5 TPIU — Trace port interface unit

The $\mathsf { A R M } ^ { \mathbb { Q } }$ CoreSight™ TPIU connects an ATB to an external trace port.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

10.7.5.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TPIU0xE0054000HFNSNANoTPIU

Register overview

RegisterOffsetTZDescription
SUPPORTEDPORTSIZES0x000Each bit location is a single port size that is supported on the device.
CURRENTPORTSIZE0x004Each bit location is a single port size. One bit can be set, and indicates the current port size.
SUPPORTEDTRIGGERMODES0x100The Supported_trigger_modes register indicates the implemented trigger counter multipliers and other supported features of the trigger system.
TRIGGERCOUNTERVALUE0x104The Trigger_counter_value register enables delaying the indication of triggers to any external connected trace capture or storage devices.
TRIGGERMULTIPLIER0x108The Trigger_multiplier register contains the selectors for the trigger counter multiplier.
SUPPORTEDTESTPATTERNMODES0x200The Supported_test_pattern_modes register provides a set of known bit sequences or patterns that can be output over the trace port and can be detected by the TPA or other associated trace capture device.
CURRENTTESTPATTERNMODES0x204Current_test_pattern_mode indicates the current test pattern or mode selected.
TPRCR0x208The TPRCR register is an 8-bit counter start value that is decremented. A write sets the initial counter value and a read returns the programmed value.
FFSR0x300The FFSR register indicates the current status of the formatter and flush features available in the TPIU.
FFCR0x304The FFCR register controls the generation of stop, trigger, and flush events.
FSCR0x308The FSCR register enables the frequency of synchronization information to be optimized to suit the Trace Port Analyzer (TPA) capture buffer size.
EXTCTLINPORT0x400Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high-speed trace port solution.
EXTCTLOUTPORT0x404Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high speed trace port solution. These ports are raw register banks that sample or export the corresponding external pins.
ITTRFLINACK0xEE4The ITTRFLINACK register enables control of the triginack and flushinack outputs from the TPIU.
ITTRFLIN0xEE8The ITTRFLIN register contains the values of the flushin and trigin inputs to the TPIU.
ITATBDATA00xEECThe ITATBDATA0 register contains the value of the atdatas inputs to the TPIU. The values are valid only when atvalids is HIGH.
ITATBCTR20xEF0Enables control of the atreadys and afvalids outputs of the TPIU.
ITATBCTR10xEF4The ITATBCTR1 register contains the value of the atids input to the TPIU. This is only valid when atvalids is HIGH.
ITATBCTR00xEF8The ITATBCTR0 register captures the values of the atvalids, afreadys, and atbytess inputs to the TPIU. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit[0], is HIGH.
ITCTRL0xF00Used to enable topology detection. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for integration testing and topology solving.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

10.7.5.1.1 SUPPORTEDPORTSIZES

Address offset: 0x000

Each bit location is a single port size that is supported on the device.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPORT_SIZE_[i+1] (i=0..31)Indicates whether the TPIU supports port size of i+1-bit.
NotSupportedPort size i+1 is not supported.
SupportedPort size i+1 is supported.

10.7.5.1.2 CURRENTPORTSIZE

Address offset: 0x004

Each bit location is a single port size. One bit can be set, and indicates the current port size.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPORT_SIZE_[i+1] (i=0..31)Indicates which port size is currently selected.
NotSelectedPort size i+1 is not selected.
SelectedPort size i+1 is selected.

10.7.5.1.3 SUPPORTEDTRIGGERMODES

Address offset: 0x100

The Supported_trigger_modes register indicates the implemented trigger counter multipliers and other supported features of the trigger system.

Bit number313029282726252423222120191817161514131211109876543210
IDH GFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-ERWMULT[i] (i=0..4)Indicates whether multiplying the trigger counter by 2^(i+1) is supported.
NotSelected0Multiplying the trigger counter by 2^(i+1) is supported.
Selected1Multiplying the trigger counter by 2^(i+1) is supported.
FRWTCOUNT8Indicates whether an 8-bit wide counter register is implemented.
NotImplemented0An 8-bit wide counter register is implemented.
Implemented1An 8-bit wide counter register is implemented.
GRWTRIGGEREDA trigger has occurred and the counter has reached 0.
NotOccurred0Trigger has not occurred.
Occurred1Trigger has occurred.
HRWTRGRUNA trigger has occurred but the counter is not at 0.
NotOccurred0Either a trigger has not occurred or the counter is at 0.
Occurred1A trigger has occurred but the counter is not at 0.

10.7.5.1.4 TRIGGERCOUNTERVALUE

Address offset: 0x104

The Trigger_counter_value register enables delaying the indication of triggers to any external connected trace capture or storage devices.

10.7.5.1.5 TRIGGERMULTIPLIER

Address offset: 0x108

The Trigger_multiplier register contains the selectors for the trigger counter multiplier.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-ERWMULT[i] (i=0..4)
Disabled0
Enabled1

10.7.5.1.6 SUPPPORTEDTESTPATTERNMODES

Address offset: 0x200

The Supported_test_pattern_modes register provides a set of known bit sequences or patterns that can be output over the trace port and can be detected by the TPA or other associated trace capture device.

Bit number313029282726252423222120191817161514131211109876543210
IDF EDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPATW1
NotSupported0
Supported1
BRWPATWO
NotSupported0Test pattern is not supported.
Supported1
CRWPATA5
NotSupported0
Supported1
DRWPATFO
NotSupported0
Supported1
ERWPTIMEEN
NotSupported0
Supported1Indicates whether timed mode is supported.
FRWPCONTEN
NotSupported0
Supported1Mode is not supported.

10.7.5.1.7 CURRENTTESTPATTERNMODES

Address offset: 0x204

Current_test_pattern_mode indicates the current test pattern or mode selected.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IDF E
Reset 0x000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IDR/WFieldValue IDValueDescription
ARWPATW1
Disabled0
Enabled1
BRWPATWO
disabled0
CRWPATA5Disabled0
Disabled0Test pattern is enabled.
DRWPATFODisabled0Test pattern is enabled.
ERWPTIMEENDisabled0Indicates whether the FF/00 pattern is supported as output over the trace port.
FRWPCONTENDisabled0Indicates whether timed mode is supported.
FRWPCONTENDisabled0Mode is disabled.
FRWPCONTENDisabled0Mode is enabled.
FRWPCONTENDisabled0Indicates whether continuous mode is supported.
FRWPCONTENDisabled0Mode is disabled.
FRWPCONTENDisabled0Mode is enabled.

10.7.5.1.8 TPRCR

Address offset: 0x208

The TPRCR register is an 8-bit counter start value that is decremented. A write sets the initial counter value and a read returns the programmed value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPATTCOUNT[0:255]

10.7.5.1.9 FFSR

Address offset: 0x300

The FFSR register indicates the current status of the formatter and flush features available in the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFLINPROGFlush in progress.
NotInProgress0A flush is not in progress.
InProgress1A flush is in progress.
BRWFTSTOPPEDThe formatter has received a stop request signal and all trace data and post-amble is sent. Any additional trace data on the ATB interface is ignored and atreadys goes HIGH.
Running0Formatter has not stopped.
Stopped1Formatter has stopped.
CRWTCPRESENTIndicates whether the TRACECTL pin is available for use.
NotPresent0TRACECTL pin is not present.
Present1TRACECTL pin is present.

10.7.5.1.10 FFCR

Address offset: 0x304

The FFCR register controls the generation of stop, trigger, and flush events.

Bit number31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ID
Reset 0x0000000000000000000000000000000000000000000000000000000000BA
IDR/WFieldValue IDValueDescriptionDescription0
ARWENFTCDo not embed triggers into the formatted stream. Trace disable cycles and triggers are indicated by tracectl, where present.
Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
Enabled1
JRWSTOPFL
Disabled0
Enabled1
KRWSTOPTRIG
Disabled0
Enabled1

10.7.5.1.11 FSCR

Address offset: 0x308

The FSCR register enables the frequency of synchronization information to be optimized to suit the Trace Port Analyzer (TPA) capture buffer size.

10.7.5.1.12 EXTCTLINPORT

Address offset: 0x400

Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high-speed trace port solution.

10.7.5.1.13 EXTCTLOUTPORT

Address offset: 0x404

Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high speed trace port solution. These ports are raw register banks that sample or export the corresponding external pins.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWEXTCTLOUT[i] (i=0..7)EXTCTL outputs.
LowOutput EXTCTLi is low.
HighOutput EXTCTLi is high.

10.7.5.1.14 ITTRFLINACK

Address offset: 0xEE4

The ITTRFLINACK register enables control of the triginack and flushinack outputs from the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTRIGINACK
Low0
High1
BRWFLUSHINACK
Low0
High1

10.7.5.1.15 ITTRFLIN

Address offset: 0xEE8

The ITTRFLIN register contains the values of the flushin and trigin inputs to the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTRIGIN
Low0
High1
BRWFLUSHIN
Low0
High1

10.7.5.1.16 ITATBDATA0

Address offset: 0xEEC

The ITATBDATA0 register contains the value of the atdatas inputs to the TPIU. The values are valid only when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-ERWATDATA[i] (i=0..4)
Low0
High1

10.7.5.1.17 ITATBCTR2

Address offset: 0xEF0

Enables control of the atreadys and afvalids outputs of the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATREADY
Low0
High1
BRWAFVALID
Low0
High1

10.7.5.1.18 ITATBCTR1

Address offset: 0xEF4

The ITATBCTR1 register contains the value of the atids input to the TPIU. This is only valid when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATID
Low0
High1

10.7.5.1.19 ITATBCTR0

Address offset: 0xEF8

The ITATBCTR0 register captures the values of the atvalids, afreadys, and atbytess inputs to the TPIU. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit[0], is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWATVALID
Low0
High1
BRWAFREADY
Low0
High1
CRWATBYTES
Low0
High1Pin is logic 1.

10.7.5.1.20 ITCTRL

Address offset: 0xF00

Used to enable topology detection. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for integration testing and topology solving.

Note: When a device has been in integration mode, it might not function with the original behavior. After performing integration or topology detection, you must reset the system to ensure correct behavior of CoreSight and other connected system components that are affected by the integration or topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWINTEGRATIONMODE
Disabled0
Enabled1

10.7.5.1.21 CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
A-DRWBIT[i] (i=0..3)
NotImplemented0
Implemented1
Set1

10.7.5.1.22 CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)
Cleared0
Set1
Clear1

10.7.5.1.23 LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWACCESSA write of 0xC5ACCE55 enables further write access to this device. Any other write removes write access.
UnLock0xC5ACCE55Unlock register interface.

10.7.5.1.24 LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWPRESENT
NotImplemented0
Implemented1
BRWLOCKED
UnLocked0
Locked1
CRWTYPE
Bits320
Bits81

10.7.5.1.25 AUTHSTATUS

Address offset: 0xFB8

Indicates the current level of tracing permitted by the system

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWNSID
NotImplemented0
Implemented1
BRWNSNID
NotImplemented0
Implemented1
CRWSID
NotImplemented0
Implemented1
DRWSNID
NotImplemented0
Implemented1The feature is not implemented.

10.7.5.1.26 DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCCCBAAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMUXNUMIndicates the hidden level of input multiplexing. When non-zero, this value indicates the type of multiplexing on the input to the ATB. Currently only 0x00 is supported, that is, no multiplexing is present. This value helps detect the ATB structure.
BRCLKRELATIndicates the relationship between atclk and traceclkin.
Synchronous0atclk and traceclkin are synchronous.
Bit number313029282726252423222120191817161514131211109876543210
IDFEDCCCBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ASynchronous1
CRFIFOSIZE
Entries42
DRTCLKDATA
Supported0
NotSupported1
ERSWOMAN
NotSupported0
Supported1
FRSWOUARTNRZ
NotSupported0
Supported1

10.7.5.1.27 DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
TraceSource1Peripheral is a trace sink.
BRSUBThe sub-type of the component
TracePort1Indicates that this component is a trace port component.

10.7.5.1.28 PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

Bit number
ID

10.7.5.1.29 PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

Bit number
ID

10.7.5.1.30 PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

Bit number
ID

10.7.5.1.31 PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

Bit number
ID
Reset 0x00000000
IDR/WFieldValue IDValueDescription

10.7.5.1.32 PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

10.7.5.1.33 CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

Bit number
ID00000000000000000000000000000000000000000000000000R/W Field Value ID Value Description
Reset 0x00000000

10.7.5.1.34 CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

Bit number
ID00000000000000000000000000000000000000000000000000R/W Field Value ID Value Description
Reset 0x00000000
IDR/WFieldValue IDValueDescription

10.7.5.1.35 CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

10.7.5.1.36 CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

10.8 CTRL-AP - Control access port

The control access port (CTRL-AP) is a custom access port that enables control of the device when other debug access ports (DAP) have been disabled by the access port protection.

For an overview of the other debug access ports, see DAP - Debug access port on page 434.


Figure 122: Control access port details

Access port protection (APPROTECT) blocks the debugger access to the AHB-AP, and prevents read and write access to all CPU registers and memory-mapped addresses. To enable port protection access for both secure and non-secure modes, use the registers SECUREAPPROTECT on page 44 and APPROTECT on page 42 respectively. The debugger can use the register APPROTECT.STATUS on page 507 to read the status of secure and non-secure access port protection.

CTRL-AP has the following features:

• Soft reset

• Erase all

• Mailbox interface

• Debug of protected devices

10.8.1 Reset request

The debugger can request the device to perform a soft reset.

Use the register RESET on page 506 to request a soft reset. Once the soft reset is performed, the reset reason is accessible on the on-chip firmware through the RESETREAS register. For more information about the soft reset, see Reset on page 59.

10.8.2 Erase all

The erase all function lets the debugger trigger an erase of flash, user information configuration registers (UICR), RAM, all peripheral settings, and also removes the access port protection.

To trigger an erase all function, the debugger writes to the register ERASEALL on page 506. The register ERASEALLSTATUS on page 506 will read as busy for the duration of the operation. After the next reset, the access port protection is removed.

If the debugger performs an erase all function on a slave MCU, the erase sequence will always erase the application MCU first, independently of how the application is protected, before erasing the slave MCU.

Erase all protection

It is possible to prevent the debugger from performing an erase all operation by writing to the UICR.ERASEPROTECT register. Once the register is configured and the device is reset, the CTRL-AP ERASEALL operation is disabled, and all flash write and erase operations are restricted to the firmware. In addition, it is still possible to write/erase from the debugger as long as the UICR.APPROTECT register is not set.

Note: Setting the UICR.ERASEPROTECT register only affects the erase all operation and not the debugger access.

The register ERASEPROTECT.STATUS on page 507 holds the status for erase protection.

10.8.3 Mailbox interface

CTRL-AP implements a mailbox interface which enables the CPU to communicate with a debugger over the SWD interface.

The mailbox interface consists of a transmit register MAILBOX.TXDATA on page 508 with its corresponding status register MAILBOX.TXSTATUS on page 508, and a receive register MAILBOX.RXDATA on page 508 with its corresponding status register MAILBOX.RXSTATUS on page 508. Status bits in the TXSTATUS/RXSTATUS registers are set and cleared automatically when the TXDATA/RXDATA registers are written to and read from, independently of the direction.


Figure 123: Mailbox register interface

Mailbox transfer sequence

  1. Sender writes TXDATA.

  2. Hardware sets sender's TXSTATUS to DataPending.

  3. Hardware sets receiver's RXSTATUS to DataPending.

  4. Receiver reads RXDATA.

  5. Hardware sets receiver's RXSTATUS to NoDataPending.

  6. Hardware sets sender's TXSTATUS to NoDataPending.

10.8.4 Disabling erase protection

The erase protection mechanism can be disabled to return a device to factory default settings on next reset.

The debugger can read the erase protection status in the register ERASEPROTECT.STATUS on page 507.

If ERASEPROTECT has been enabled, both the debugger and on-chip firmware must write the same non-zero 32-bit KEY value into their respective ERASEPROTECT.DISABLE registers to disable the erase protection. When both registers have been written with the same non-zero 32-bit KEY value, the device is automatically erased as described in Erase all on page 504. The access ports will be re-enabled on the next reset once the secure erase sequence has completed.

The write-once register ERASEPROTECT.LOCK on page 510 should be set to Locked as early as possible in the start-up sequence, preferably as soon as the on-chip firmware has determined it does not need to communicate with a debugger over the CTRL-AP mailbox interface. Once written, it will not be possible to remove the erase protection until the next reset.

10.8.5 Debugger registers

CTRL-AP has a set of registers that can only be accessed from the debugger over the SWD interface. These are not accessible from the CPU.

10.8.5.1 Debugger registers

Register overview

RegisterOffsetDescription
RESET0x000System reset request
ERASEALL0x004Perform a secure erase of the device, where flash, SRAM and UICR will be erased in sequence. The device will be returned to factory default settings upon next reset.
ERASEALLSTATUS0x008This is the status register for the ERASEALL operation.
APPROTECT.STATUS0x00CThis is the status register for the UICR access port protection.
ERASEPROTECT.STATUS0x018This is the status register for the UICR ERASEPROTECT configuration.
ERASEPROTECT.DISABLE0x01CThis register disables ERASEPROTECT and performs ERASEALL.
MAILBOX.TXDATA0x020Data sent from the debugger to the CPU.
MAILBOX.TXSTATUS0x024This register shows a status that indicates if data sent from the debugger to the CPU has been read.
MAILBOX.RXDATA0x028Data sent from the CPU to the debugger.
MAILBOX.RXSTATUS0x02CThis register shows a status that indicates if data sent from the CPU to the debugger has been read.
IDR0x0FCCTRL-AP Identification Register, IDR

10.8.5.1.1 RESET

Address offset: 0x000

System reset request

This register is automatically deactivated during an ERASEALL operation.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWRESET
NoReset0
Reset1

10.8.5.1.2 ERASEALL

Address offset: 0x004

Perform a secure erase of the device, where flash, SRAM and UICR will be erased in sequence. The device will be returned to factory default settings upon next reset.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWERASEALLReturn device to factory default settings
NoOperation0No operation
Erase1Erase flash, SRAM, and UICR in sequence

10.8.5.1.3 ERASEALLSTATUS

Address offset: 0x008

This is the status register for the ERASEALL operation.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARERASEALLSTATUSStatus bit for the ERASEALL operation
Ready0ERASEALL is ready
Busy1ERASEALL is busy (on-going)

10.8.5.1.4 APPROTECT.STATUS

Address offset: 0x00C

This is the status register for the UICR access port protection.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARAPPROTECT
Status bit for access port protection
Note: The reset value is auto read from the APPROTECT register in UICR.
Enabled0APPROTECT is enabled
Disabled1APPROTECT is disabled
BRSECUREAPPROTECTStatus bit for secure access port protection
Note: The reset value is auto read from the SECUREAPPROTECT register in UICR.
Enabled0SECUREAPPROTECT is enabled
Disabled1SECUREAPPROTECT is disabled

10.8.5.1.5 ERASEPROTECT.STATUS

Address offset: 0x018

This is the status register for the UICR ERASEPROTECT configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARPALL
Status bit for erase protection
Enabled0
Disabled1

10.8.5.1.6 ERASEPROTECT.DISABLE

Address offset: 0x01C

This register disables ERASEPROTECT and performs ERASEALL.

10.8.5.1.7 MAILBOX.TXDATA

Address offset: 0x020

Data sent from the debugger to the CPU.

Writing to this register will automatically set a DataPending value in the TXSTATUS register.

10.8.5.1.8 MAILBOX.TXSTATUS

Address offset: 0x024

This register shows a status that indicates if data sent from the debugger to the CPU has been read.

10.8.5.1.9 MAILBOX.RXDATA

Address offset: 0x028

Data sent from the CPU to the debugger.

Reading from this register will automatically set a NoDataPending value in the RXSTATUS register.

10.8.5.1.10 MAILBOX.RXSTATUS

Address offset: 0x02C

This register shows a status that indicates if data sent from the CPU to the debugger has been read.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARStatusStatus of register DATA
NoDataPending0No data pending in register RXDATA
DataPending1Data pending in register RXDATA

10.8.5.1.11 IDR

Address offset: 0x0FC

CTRL-AP Identification Register, IDR

Bit number313029282726252423222120191817161514131211109876543210
IDEEEEDDDDCCCCCCCBBBBAAAAAAAA
Reset 0x1288000000010010100010000000000000000000
IDR/WFieldValue IDValueDescription
ARAPIDAP Identification
BRCLASSAccess Port (AP) class
NotDefined0x0No defined class
MEMAP0x8Memory Access Port
CRJEP106IDJEDEC JEP106 identity code
DRJEP106CONTJEDEC JEP106 continuation code
ERREVISIONRevision

10.8.6 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
CTRL_AP_PERI0x50006000HFSNANoCTRL-AP-PERI

Register overview

RegisterOffsetTZDescription
MAILBOX.RXDATA0x400Data sent from the debugger to the CPU.
MAILBOX.RXSTATUS0x404This register shows a status that indicates if data sent from the debugger to the CPU has been read.
MAILBOX.TXDATA0x480Data sent from the CPU to the debugger.
MAILBOX.TXSTATUS0x484This register shows a status that indicates if the data sent from the CPU to the debugger has been read.
ERASEPROTECT.LOCK0x500This register locks the ERASEPROTECT.DISABLE register from being written until next reset.
ERASEPROTECT.DISABLE0x504This register disables the ERASEPROTECT register and performs an ERASEALL operation.

10.8.6.1 MAILBOX.RXDATA

Address offset: 0x400

Data sent from the debugger to the CPU.

Reading from this register will automatically set a NoDataPending value in the RXSTATUS register.

10.8.6.2 MAILBOX.RXSTATUS

Address offset: 0x404

This register shows a status that indicates if data sent from the debugger to the CPU has been read.

10.8.6.3 MAILBOX.TXDATA

Address offset: 0x480

Data sent from the CPU to the debugger.

Writing to this register will automatically set a DataPending value in the TXSTATUS register.

Bit number
ID
Reset 0x000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTXDATAData sent to debugger

10.8.6.4 MAILBOX.TXSTATUS

Address offset: 0x484

This register shows a status that indicates if the data sent from the CPU to the debugger has been read.

10.8.6.5 ERASEPROTECT.LOCK

Address offset: 0x500

This register locks the ERASEPROTECT.DISABLE register from being written until next reset.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW1LOCKLock ERASEPROTECT.DISABLE register from being written until next reset
Unlocked0Register ERASEPROTECT.DISABLE is writeable
Locked1Register ERASEPROTECT.DISABLE is read-only

10.8.6.6 ERASEPROTECT.DISABLE

Address offset: 0x504

This register disables the ERASEPROTECT register and performs an ERASEALL operation.

10.9 TAD - Trace and debug control

Configuration interface for trace and debug

Please refer to the Trace section for more information about how to configure the trace and debug interface.

Note: Although there are PSEL registers for the trace port, each function can only be mapped to a single pin due to pin speed requirements. Setting the PIN field to anything else will not have any effect. See Pin assignment chapter for more information

10.9.1 Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TAD0xE0080000HFSNANoTrace and debug control

Register overview

RegisterOffsetTZDescription
TASKS_CLOCKSTART0x000Start all trace and debug clocks.
TASKS_CLOCKSTOP0x004Stop all trace and debug clocks.
ENABLE0x500Enable debug domain and acquire selected GPIOs
PSEL.TRACECLK0x504Pin configuration for TRACECLK
PSEL.TRACEDATA00x508Pin configuration for TRACEDATA[0]
PSEL.TRACEDATA10x50CPin configuration for TRACEDATA[1]
PSEL.TRACEDATA20x510Pin configuration for TRACEDATA[2]
PSEL.TRACEDATA30x514Pin configuration for TRACEDATA[3]
TRACEPORTSPEED0x518Clocking options for the Trace Port debug interface

10.9.1.1 TASKS_CLOCKSTART

Address offset: 0x000

Start all trace and debug clocks.

Note: The TASKS_CLOCKSTART task asserts the CTRL/STAT.CSYSPWRUPACK and CTRL/ STAT.CDBGPWRUPACK (see Arm CoreSight SoC-400 Technical Reference Manual, revision r3p2).

10.9.1.2 TASKS_CLOCKSTOP

Address offset: 0x004

Stop all trace and debug clocks.

10.9.1.3 ENABLE

Address offset: 0x500

Enable debug domain and aquire selected GPIOs

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLE
DISABLED0Disable debug domain and release selected GPIOs
ENABLED1Enable debug domain and acquire selected GPIOs

10.9.1.4 PSEL.TRACECLK

Address offset: 0x504

Pin configuration for TRACECLK

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN
Traceclk21
BRWCONNECT
Disconnected1
Connected0

10.9.1.5 PSEL.TRACEDATA0

Address offset: 0x508

Pin configuration for TRACEDATA[0]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN
Tracedata022
Note: Only this pin is valid
BRWCONNECT
Disconnected1
Connected0

10.9.1.6 PSEL.TRACEDATA1

Address offset: 0x50C

Pin configuration for TRACEDATA[1]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN
Tracedata123
BRWCONNECT
Disconnected1
Connected0

10.9.1.7 PSEL.TRACEDATA2

Address offset: 0x510

Pin configuration for TRACEDATA[2]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN
Tracedata224
BRWCONNECT
Disconnected1
Connected0

10.9.1.8 PSEL.TRACEDATA3

Address offset: 0x514

Pin configuration for TRACEDATA[3]

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFF111111111111111111111111111111111
IDR/WFieldValue IDValue
ARWPIN
Tracedata325
BRWCONNECT
Disconnected1
Connected0

10.9.1.9 TRACEPORTSPEED (Retained)

Address offset: 0x518

Clocking options for the Trace Port debug interface

Reset behavior is the same as debug components

This register is retained.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x00000000000000000000000000000000000000000
IDR/WFieldValue IDValue
ARWTRACEPORTSPEED
32MHz0
16MHz1
8MHz2
4MHz3

11 Hardware and layout

The following sections describe nRF9151 hardware and layout specifications.

11.1 Pin assignments

This section describes the pin assignment and the pin functions of the nRF9151.

The device provides flexibility when it comes to routing and configuration of the GPIO pins. However, for some pins there are recommendations on pin usage and configuration. See following table for more information about this.

11.1.1 LGA pin assignments

The pin assignment table and figure describe the assignments.


Figure 124: LGA pin assignments, top view

Pin noPin nameFunctionDescription
1GNDPowerGround
2P0.20Digital I/O (SoC)General purpose I/O.
AIN7Analog inputAnalog input.
3SWDCLKDigital inputSerial wire debug clock input for debug and programming
4SWDIODigital I/OSerial wire debug I/O for debug and programming
5P0.21Digital I/O (SoC)General purpose I/O.
TRACECLKTrace clockTrace buffer clock (optional).
6P0.22Digital I/O (SoC)General purpose I/O.
TRACEDATA[0]Trace dataTrace buffer TRACEDATA[0] (optional).
7GNDPowerGround
8P0.23Digital I/O (SoC)General purpose I/O.
TRACEDATA[1]Trace dataTrace buffer TRACEDATA[1] (optional).
9nRESETDigital I/O (SoC) $SoC reset pin^{30,31}$
10ENABLEEnable for the SiP internal regulator for the nRF91 SoC.
Note: The nRF9151 will not start until this pin is enabled.
11P0.24Digital I/O (SoC)General purpose I/O.
TRACEDATA[2]Trace dataTrace buffer TRACEDATA[2] (optional).
12P0.25Digital I/O (SoC)General purpose I/O.
TRACEDATA[3]Trace dataTrace buffer TRACEDATA[3] (optional).
13GNDPowerGround
14VDDPowerSupply voltage
15GNDPowerGround
16SIM_RSTDigital I/O (SoC)SIM reset
17SIM_IODigital I/O (SoC)SIM data
18SIM_CLKDigital I/O (SoC)SIM clock
19SIM_1V8PowerSIM 1.8 V power supply output
20GNDPowerGround
21MAGPIO0Digital I/O (SoC)1.8 V general purpose I/O
22MAGPIO1Digital I/O (SoC)1.8 V general purpose I/O
23MAGPIO2Digital I/O (SoC)1.8 V general purpose I/O
24DECOPowerPower supply decoupling. Reserved for Nordic use.
25GNDPowerGround
26SIM_DETDigital I/O (SoC)SIM detect
Not used. Must be left floating.
27SDATADigital I/O (SoC)MIPI RFFE control interface
28SCLKDigital I/O (SoC)MIPI RFFE control interface
29VIOPowerMIPI RFFE control interface
30GNDPowerGround
31RESERVEDConnect thermally and mechanically to the application board but leave electrically unconnected.
32RESERVEDConnect thermally and mechanically to the application board but leave electrically unconnected.
33RESERVEDConnect thermally and mechanically to the application board but leave electrically unconnected.
34GNDPowerGround
35ANTRFSingle-ended 50 Ω LTE antenna pin
36GNDPowerGround
37AUXRFSingle-ended 50 Ω ANT loop-back pin
38GNDPowerGround
39GNDPowerGround
40GNDPowerGround
41GNDPowerGround
42GPSRFSingle-ended 50 Ω GPS input pin
43GNDPowerGround
44P0.26Digital I/O (SoC)General purpose I/O
45P0.27Digital I/O (SoC)General purpose I/O
46GNDPowerGround
47P0.28Digital I/O (SoC)General purpose I/O
48P0.29Digital I/O (SoC)General purpose I/O
49P0.30Digital I/O (SoC)General purpose I/O
50P0.31Digital I/O (SoC)General purpose I/O
51GNDPowerGround
52COEX0Digital I/O (SoC)Coexistence interface
53COEX1Digital I/O (SoC)Coexistence interface
54COEX2Digital I/O (SoC)Coexistence interface
55GNDPowerGround
56P0.00Digital I/O (SoC)General purpose I/O
57P0.01Digital I/O (SoC)General purpose I/O
58P0.02Digital I/O (SoC)General purpose I/O
59P0.03Digital I/O (SoC)General purpose I/O
60GNDPowerGround
61P0.04Digital I/O (SoC)General purpose I/O
62P0.05Digital I/O (SoC)General purpose I/O
63P0.06Digital I/O (SoC)General purpose I/O
64P0.07Digital I/O (SoC)General purpose I/O
65VDD_GPIOPowerGPIO power supply input and logic level
66GNDPowerGround
67P0.08Digital I/O (SoC)General purpose I/O
68P0.09Digital I/O (SoC)General purpose I/O
69P0.10Digital I/O (SoC)General purpose I/O
70P0.11Digital I/O (SoC)General purpose I/O
71GNDPowerGround
72P0.12Digital I/O (SoC)General purpose I/O
73P0.13Digital I/O (SoC)General purpose I/O.
AIN0Analog inputAnalog input.
74P0.14Digital I/O (SoC)General purpose I/O.
AIN1Analog inputAnalog input.
75P0.15Digital I/O (SoC)General purpose I/O.
AIN2Analog inputAnalog input.
76GNDPowerGround
77P0.16Digital I/O (SoC)General purpose I/O.
AIN3Analog inputAnalog input.
78P0.17Digital I/O (SoC)General purpose I/O.
AIN4Analog inputAnalog input.
79P0.18Digital I/O (SoC)General purpose I/O.
AIN5Analog inputAnalog input.
80P0.19Digital I/O (SoC)General purpose I/O.
AIN6Analog inputAnalog input.
81RESERVEDDo not connect/reserved for future use
82RESERVEDDo not connect/reserved for future use
83RESERVEDDo not connect/reserved for future use
84RESERVEDDo not connect/reserved for future use
85RESERVEDDo not connect/reserved for future use
86RESERVEDDo not connect/reserved for future use
87RESERVEDDo not connect/reserved for future use
88RESERVEDDo not connect/reserved for future use
89RESERVEDDo not connect/reserved for future use
90RESERVEDDo not connect/reserved for future use
91RESERVEDDo not connect/reserved for future use
92RESERVEDDo not connect/reserved for future use
93RESERVEDDo not connect/reserved for future use
94RESERVEDDo not connect/reserved for future use
95RESERVEDDo not connect/reserved for future use
96RESERVEDDo not connect/reserved for future use
97RESERVEDDo not connect/reserved for future use
98RESERVEDDo not connect/reserved for future use
99RESERVEDDo not connect/reserved for future use
100RESERVEDDo not connect/reserved for future use
101RESERVEDDo not connect/reserved for future use
102RESERVEDDo not connect/reserved for future use
103RESERVEDDo not connect/reserved for future use
104RESERVEDDo not connect/reserved for future use
105GNDPowerGround
106GNDPowerGround
107GNDPowerGround
108GNDPowerGround
109GNDPowerGround
110GNDPowerGround
111GNDPowerGround
112GNDPowerGround
113GNDPowerGround

Table 57: LGA pin assignments

11.2 Mechanical specifications

The mechanical specifications show the package dimensions in millimeters.

11.2.1 12.1 x 11.1 mm package

Dimensions in millimeters for the nRF9151 LGA 12.1 x 11.1 x 1.2 mm package.


Figure 125: LGA 12.1 x 11.1 mm package

Min.Nom.Max.
A1.0991.1561.3
b0.650.70.75
b20.250.30.35
b31.551.61.65
b41.551.61.65
b50.150.20.25
c0.650.70.75
c20.40.450.5
c31.551.61.65
c41.91.952.0
c50.150.20.25
D1212.112.2
D211.0
d0.2
d20.5
E1111.111.2
E210.0
e0.55
K5.0
K24.25
K33.575
K42.15
K52.85
K62.85
L5.50
L24.75
L34.1
L40.55
L52.85

Table 58: LGA dimensions in millimeters

11.3 Reference circuitry

To ensure good RF performance when designing PCBs, using the PCB layouts and component values provided by Nordic Semiconductor is highly recommended .

Documentation for the different package reference circuits, including Altium Designer files, PCB layout files, and PCB production files can be downloaded from the product page at www.nordicsemi.com/nRF9151.

This section contains reference circuitry showing the components to support the design of on-chip features.

Note: This is not a complete list of configurations, but all required circuitry is shown for further configurations.

11.3.1 nRF9151 reference design

Circuit configuration schematic for the nRF9151 SiP.


Figure 126: nRF9151 reference design
For Bill of Materials (BOM), PCB layout and thermal design, see the nRF9151 Hardware Design Guidelines.

11.4 Reflow conditions

The recommended reflow profile is JEDEC J-STD-020D. The maximum amount of reflows is three.

11.5 Shelf and floor life

If floor life is exceeded, see Shelf Life of Dry Packed Integrated Circuits for shelf and floor life and recommended baking (drying of parts) requirements.

12 Operating conditions

The operating conditions are the physical parameters that the chip can operate within.

SymbolParameterNotesMin.Nom.Max.Units
VDDBattery input voltageIncluding voltage drop, ripple and spikes.3.03.75.5V
VDD_GPIOGPIO input voltage1.73.6V
$GPIO_{H}$ GPIO high level voltageVDD_GPIOV
$MAGPIO_{H}$ MAGPIO high level voltageSupply from internal LDO1.71.81.9V
VIOVIO high level voltageSupply from internal LDO1.71.81.9V
TAOperating temperature-402585°C
COEXCOEX high level voltageVDD_GPIOV
SIMIFSIMIF output high level voltageSupply from internal LDO1.71.81.9V

Table 59: Operating conditions

Note: There can be excessive leakage at VDD and/or VDD_GPIO if any of these supply voltages is outside its range given in the table above.

Note: It is not recommended to use high voltage, high drive GPIO outputs $( \mathsf { V } _ { \mathsf { O H } , \mathsf { H D H } }$ and $V _ { \mathsf { O H , H D L } } )$ with high frequency, high capacitance loads unless needed, as this may increase noise level and affect radio receiver performance. High drive/high load should especially be avoided on GPIO pins close to the radio front end.

12.1 VDD_GPIO considerations

VDD_GPIO is the supply to the general purpose I/O.

The following restrictions should be taken into considerations:

• VDD_GPIO should be applied after VDD has been supplied

• VDD_GPIO should be removed before removing VDD

• If VDD is supplied and VDD_GPIO is grounded, an extra current consumption can be generated on VDD

• If ENABLE is low, VDD_GPIO should also be low

13 Absolute maximum ratings

Maximum ratings are the extreme limits to which the chip can be exposed for a limited amount of time without permanently damaging it. Exposure to absolute maximum ratings for prolonged periods of time may affect the reliability of the device.

NoteMin.Max.Unit
Supply voltages
VDD-0.35.5V
VDD_GPIO-0.33.9V
SIM_1V81.651.95V
VSS0V
I/O pin voltage
$V_{I/O}$ , VDD_GPIO ≤ 3.6 V-0.3VDD_GPIO + 0.3V
$V_{I/O}$ , VDD_GPIO &gt; 3.6 V-0.33.9V
Radio
ANT antenna input level10dBm
GPS antenna input levelLNA turned on, max gain-15dBm
RF port ruggednessMaximum deviation from 50 Ω without damaging the module10:1VSWR
Environmental (LGA package)
Storage temperature-4095°C
MSLMoisture Sensitivity Level3
ESD HBM AUXAUX pin Human Body Model32500V
ESD HBM AUX ClassAUX pin Human Body Model Class321B
ESD HBMHuman Body Model331.5kV
ESD HBM ClassHuman Body Model Class331C
ESD CDMCharged Device Model250V
Flash memory
Endurance10 000Write/erase cycles
Retention10 years at 85°C
No internal voltage boost converters

Table 60: Absolute maximum ratings

14 Ordering information

This chapter contains information on IC marking, ordering codes, and container sizes.

14.1 SiP marking

The nRF9151 package is marked as shown in the following figure.

nRF9151LACA&lt;HP&gt;
Y&gt;W&gt;L&gt;C&gt;XXXX&gt;Z&gt;

Figure 127: SiP package marking

Second line character position may vary depending on product’s certification updates.

14.2 Box labels

The following figures show the box labels used for the nRF9151.

TRACE CODE QUANTITY: <Qty1/Oty2...Qtyn>

TRACE CODE: (1T ≤YYWWLL1YYWWMLL2/.YYWWMLLp>

TOTAL QUANTITY: (Q) < Total inner box qty>


Figure 128: Inner box label


Figure 129: Outer box label

14.3 Order code

The following are the order codes and definitions for the nRF9151.

nRF9151-A&gt;A&gt;-C&gt;

Figure 130: Order code

AbbreviationDefinition and implemented codes
N91/nRF91nRF91 Series product
51Part code
Package variant code
Function variant code
Build codeH - Hardware version codeP - Production configuration code (production site, etc.)F - Firmware version code (only visible on shipping container label)
Serial numberYY - Year codeWW - Assembly week numberLL - Wafer lot codeVC - Vendor codeXXXXX - Alpha-numeric serial numberZZ - Alpha-numeric serial number checksum
Container code

Table 61: Abbreviations

14.4 Code ranges and values

The nRF9151 code ranges and values are defined here.

&lt;H&gt;Description
[A . . Z]Hardware version/revision identifier (incremental)

Table 62: Hardware version codes

Description
[0 . . 9]Production device identifier (incremental)
[A . . Z]Engineering device identifier (incremental)
[A . . N, P . . Z]Version of preprogrammed firmware
[0]Delivered without preprogrammed firmware

Table 63: Production configuration codes

Table 64: Production version codes

Description
[23 .. 99]Production year: 2023 to 2099

Table 65: Year codes

Description
[01 .. 53]Week of production

Table 66: Week codes

Description
[AA . . ZZ]Wafer production lot identifier

Table 67: Lot codes

Description
[AC]Vendor Code

Table 68: Vendor code

Description
[00000 .. ZZZZZ]Alpha-numeric serial number

Table 69: Serial Number

Description
[00 .. ZZ]Alpha-numeric serial number checksum

Table 70: Serial Number

Description
R77&quot; Reel
R13&quot; Reel

Table 71: Container codes

14.5 Ordering options

The nRF9151 SiP ordering codes and minimum ordering quantity are described in the following table.

Order codeMinimum ordering quantity (MOQ)Comment
nRF9151-LACA-R2000
nRF9151-LACA-R7100

Table 72: nRF9151 order codes

15 Regulatory information

The nRF9151 undergoes regulatory certifications, ensuring both regional compliances and compatibility with the LTE 3GPP specification.

15.1 Certified bands

The following table shows the FCC and ISED certified Cat-M1 bands for nRF9151.

BandFCC certificationISED certification
Band 2YesYes
Band 4YesYes
Band 5YesYes
Band 8Yes $Yes^{34}$
Band 12YesYes
Band 13YesYes
Band 25YesYes
Band 26YesNo
Band 66YesYes
Band 85YesYes

Table 73: FCC and ISED certified Cat-M1 bands

The following table shows the FCC and ISED certified Cat-NB1 and Cat-NB2 bands for nRF9151.

BandFCC certificationISED certification
Band 2YesYes
Band 4YesYes
Band 5YesYes
Band 8Yes $Yes^{34}$
Band 12YesYes
Band 13YesYes
Band 17YesYes
Band 25YesYes
Band 26YesNo
Band 66YesYes
Band 85YesYes

Table 74: FCC and ISED certified Cat-NB1/NB2 bands

15.2 Supported FCC/ISED rules

The nRF9151 module has been certified to comply with FCC and ISED rules.

The nRF9151 SiP has been certified to comply with the following FCC rules.

• 47 CFR Part 22

• 47 CFR Part 24

• 47 CFR Part 27

• 47 CFR Part 90

• 47 CFR Part 2.1091

The nRF9151 SiP has been certified to comply with the following ISED rules.

• RSS-132 Issue 4

• RSS-130 Issue 2

• RSS-139 Issue 4

• RSS-133 Issue 6

A host manufacturer who integrates the nRF9151 SiP to a host device, can apply the certifications to the host device, except for FCC Part 15 Subpart B which must be retested.

The host manufacturer can use nRF9151's FCC ID if the device meets the conditions of the FCC certificate. Normally, the conditions are the following:

• A minimum of 20 cm distance from the human body.

• No colocation with other transmitters. Typically, this condition needs to be reviewed by the FCC lab.

• Antenna gain below the requirements.

15.3 FCC/ISED regulatory notices

FCC/ISED regulatory notices cover modification and interference statements, wireless and FCC Class B digital device notices, permitted antennas and labeling requirements

Modification statement

Nordic Semiconductor has not approved any changes or modifications to this device by the user. Any changes or modifications could void the user's authority to operate the equipment.

Nordic Semiconductor n'approuve aucune modification apportée à l'appareil par l'utilisateur, quelle qu'en soit la nature. Tout changement ou modification peuvent annuler le droit d'utilisation de l'appareil par l'utilisateur.

Interference statement

This device complies with Part 15 of the FCC Rules and Industry Canada's licence-exempt RSS standards. Operation is subject to the following two conditions: (1) this device may not cause interference, and (2) this device must accept any interference, including interference that may cause undesired operation of the device.

Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence. L'exploitation est autorisée aux deux conditions suivantes: (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radioélectrique subi, même si le brouillage est susceptible d'en compromettre le fonctionnement.

Wireless notice

This equipment complies with FCC and ISED radiation exposure limits set forth for an uncontrolled environment. The antenna should be installed and operated with minimum distance of 20 cm between the radiator and your body. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter.

Cet appareil est conforme aux limites d'exposition aux rayonnements de l’ISDE pour un environnement non contrôlé. L'antenne doit être installée de façon à garder une distance minimale de 20 centimètres entre la source de rayonnements et votre corps. L'émetteur ne doit pas être colocalisé ni fonctionner conjointement avec à autre antenne ou autre émetteur.

Permitted antenna

This radio transmitter has been approved by FCC and ISED to operate with the antenna types listed below with the maximum permissible gain indicated. Antenna types not included in this list, having a gain greater than the maximum gain indicated for that type, are strictly prohibited for use with this device.

BandMax gain
Band 29.0 dBi
Band 46.0 dBi
Band 57.1 dBi
Band 810.78 dBi
Band 126.6 dBi
Band 136.9 dBi
Band 17 (Cat-NB1/NB2)6.6 dBi
Band 259.0 dBi
Band 267.0 dBi
Band 666.0 dBi
Band 856.6 dBi

Le présent émetteur radio a été approuvé par ISDE pour fonctionner avec les types d'antenne énumérés ci dessous et ayant un gain admissible maximal. Les types d'antenne non inclus dans cette liste, et dont le gain est supérieur au gain maximal indiqué, sont strictement interdits pour l'exploitation de l'émetteur.

BandeGain maximal
Bande 29.0 dBi
Bande 46.0 dBi
Bande 57.1 dBi
Band 810.78 dBi
Bande 126.6 dBi
Bande 136.9 dBi
Bande 17 (Cat-NB1/NB2)6.6 dBi
Bande 259.0 dBi
Bande 267.0 dBi
Bande 666.0 dBi
Bande 856.6 dBi

FCC Class B digital device notice

This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:

• Reorient or relocate the receiving antenna

• Increase the separation between the equipment and receiver

• Connect the equipment into an outlet on a circuit different from that to which the receiver is connected

• Consult the dealer or an experienced radio/TV technician for help

CAN ICES-3 (B)/NMB-3 (B)

This Class B digital apparatus complies with Canadian ICES-003.

Cet appareil numérique de classe B est conforme à la norme canadienne ICES-003.

Labeling requirements for the host device

The host device shall be properly labelled to identify the modules within the host device. The certification label of the module shall be clearly visible at all times when installed in the host device, otherwise the host device must be labelled to display the FCC ID and IC of the module, preceded by the words "Contains transmitter module", or the word "Contains", or similar wording expressing the same meaning, as shown in the following examples:

Contains FCC ID: 2ANPO00NRF9151

Contains IC: 24529-NRF9151

L'équipement hôte doit être correctement étiqueté pour identifier les modules dans l'équipement. L'étiquette de certification du module doit être clairement visible en tout temps lorsqu'il est installé dans l'hôte, l'équipement hôte doit être étiqueté pour afficher le FCC ID et IC du module, précédé des mots "Contient le module émetteur", ou le mot "Contient", ou un libellé similaire exprimant la même signification, comme suit:

Contient FCC ID: 2ANPO00NRF9151

Contient IC: 24529-NRF9151

15.4 RF exposure considerations

The nRF9151 has been tested and certified as a mobile device for use of a minimum of 20 cm distance from the human body with no colocation with other transmitters. If the device is to be used closer than 20 cm from the human body and/or with other transmiters simultaneously, the host product manufacturer is required to perform additional evaluation, testing, or testing and Class 2 permissive change. It is required to take responsibility of the module through a change in the FCC ID (new application). The host product manufacturer must also inform the end user about RF Exposure conditions.

15.5 Host device manufacturer responsibility

The nRF9151 device is only authorized for the rules listed in Supported FCC/ISED rules on page 531. The host device manufacturer is responsible for compliance to any other FCC rules that apply to the host device not covered by the nRF9151 grant of certification. It is mandatory for the host device manufacturer to assure the final device’s compliance with FCC Part 15 Subpart B even if certification has been granted to nRF9151.

15.6 Antenna interface

The nRF9151 module has a single-ended 50 Ω antenna port where the antenna solution shall be connected. nRF9151 is evaluated with a 50 Ω antenna load. To ensure good overall RF performance, antenna impedance and the characteristic impedance of the transmission line (i.e. cable) connecting the antenna and antenna port must be 50 Ω. Impedance mismatch may lead to performance degradation. Maximum antenna VSWR 2:1 is recommended but VSWR 3:1 can still be accepted in the final device. Respective minimum return loss values are 9.5 dB and 6.0 dB.

The length of the transmission line from the antenna to the nRF9151 antenna port should be kept as short as possible to minimize losses, as this loss is directly deteriorating the module’s transmitted and received power. Additionally, low-loss matching circuit between the antenna and the nRF9151 antenna port is recommended to minimize loss caused by antenna and PCB routing mismatch. Reserving space from device manufacturer's application board for matching components (e.g. π-circuit) is recommended. This is because, for example, catalog antennas are typically tuned on reference board and differences to device mechanics may impact antenna impedance. It is also possible that device mechanics change during the development phase of the final device, and these modifications may impact antenna performance. Matching components can be used to compensate the impact of mechanics change to antenna impedance, and thus it may not be mandatory to modify the antenna itself.

The nRF9151 module has an internal ESD circuit in the antenna port, but additional ESD components at device manufacturer's application board may be used. The design of the ESD circuit shall be such that the impact on RF frequencies is negligible

Note: ESD filtering may be necessary for some active components that can be used at antenna path. Such components can be, for example, RF switches and antenna tuners. For further ESD requirements, see the RF switch and antenna tuner datasheets.

15.7 Antenna port test connector

To run conductive RF tests, a test connector nearby the nRF9151 antenna port in the RF transmission line is needed. The 50 Ω impedance requirement applies also to the test connector, and VSWR and insertion loss should be minimal. Regardless of whether the nRF9151 antenna port is connected to an actual antenna or test equipment, the load at the nRF9151 antenna should remain as close to 50 Ω as possible.

For a test connector, microwave coaxial switch connectors (for example, Murata MM8130-2600) are a good choice for this purpose. For conductive tests, a test cable is plugged in which connects the nRF9151 antenna port to the test equipment instead of the antenna. When the test cable is plugged off, the nRF9151 antenna port is connected to the antenna for real use case or radiated testing. The layout for the connector must be carefully designed to fulfil the 50 Ω requirement. For detailed guidance on this, see the coaxial switch connectors datasheets.

15.8 Reference design

To ensure good RF performance when designing PCBs, it is highly recommended to use the PCB layouts and component values provided by Nordic Seminconductor. See Hardware Design Guidelines for details.

The information on layout of trace design is confidential; host manufacturer shall need to contact module’s grantee to obtain this information.

This module can only be used when installed in a host device that follows the required instructions for use of the layout of trace design. Any deviation(s) from the defined parameters of the layout of trace design, as described by the instructions, require that the host product manufacturer must notify the module grantee that they wish to change the layout of trace design. In this case, a Class II permissive change application is required to be filed by the grantee, or the host manufacturer can take responsibility through the change in FCC ID (new application).

16 Legal notices

By using this documentation you agree to our terms and conditions of use. Nordic Semiconductor may change these terms and conditions at any time without notice.

Liability disclaimer

Nordic Semiconductor ASA reserves the right to make changes without further notice to the product to improve reliability, function, or design. Nordic Semiconductor ASA does not assume any liability arising out of the application or use of any product or circuits described herein.

Nordic Semiconductor ASA does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. If there are any discrepancies, ambiguities or conflicts in Nordic Semiconductor’s documentation, the Product Specification prevails.

Nordic Semiconductor ASA reserves the right to make corrections, enhancements, and other changes to this document without notice.

Customer represents that, with respect to its applications, it has all the necessary expertise to create and implement safeguards that anticipate dangerous consequences of failures, monitor failures and their consequences, and lessen the likelihood of failures that might cause harm, and to take appropriate remedial actions.

Nordic Semiconductor ASA assumes no liability for applications assistance or the design of customers products. Customers are solely responsible for the design, validation, and testing of its applications as well as for compliance with all legal, regulatory, and safety-related requirements concerning its applications.

Nordic Semiconductor ASA’s products are not designed for use in life-critical medical equipment, support appliances, devices, or systems where malfunction of Nordic Semiconductor ASA’s products can reasonably be expected to result in personal injury. Customer may not use any Nordic Semiconductor ASA’s products in life-critical medical equipment unless adequate design and operating safeguards by customer’s authorized officers have been made. Customer agrees that prior to using or distributing any life-critical medical equipment that include Nordic Semiconductor ASA’s products, customer will thoroughly test such systems and the functionality of such products as used in such systems.

Customer will fully indemnify Nordic Semiconductor ASA and its representatives against any damages, costs, losses, and/or liabilities arising out of customer’s non-compliance with this section.

RoHS and REACH statement

Refer to www.nordicsemi.com for complete hazardous substance reports, material composition reports, and latest version of Nordic’s RoHS and REACH statements.

Trademarks

All trademarks, service marks, trade names, product names, and logos appearing in this documentation are the property of their respective owners.

Copyright notice

© 2024 Nordic Semiconductor ASA. All rights are reserved. Reproduction in whole or in part is prohibited without the prior written permission of the copyright holder.

Extracted Images

Figures and diagrams from the PDF

Preview the extracted datasheet assets and open any image in a separate tab for closer inspection.

Register A field POF and reset value

Register A field POF and reset value

Register A field EVENTS_HFCLKSTARTED

Register A field EVENTS_HFCLKSTARTED

Test conditions for modem current consumption specifications

Test conditions for modem current consumption specifications

Register A field ROSC3 with all-one reset value

Register A field ROSC3 with all-one reset value

Register fields HFCLKSTARTED and LFCLKSTARTED

Register fields HFCLKSTARTED and LFCLKSTARTED

Register A field EVENTS_LFCLKSTARTED

Register A field EVENTS_LFCLKSTARTED

Register fields for ROSC oscillator configuration

Register fields for ROSC oscillator configuration

AES engine status register field

AES engine status register field

DC/DC buck regulator enable register field

DC/DC buck regulator enable register field

DPPI channel subscription register fields

DPPI channel subscription register fields

PTR register left-sample bit-field layout

PTR register left-sample bit-field layout

PIN register bit fields

PIN register bit fields

Register bit-field definition for reset value 0x00000000

Register bit-field definition for reset value 0x00000000

Register map with offsets and descriptions

Register map with offsets and descriptions

GPIO pin input/output and detection block diagram

GPIO pin input/output and detection block diagram

Electrical specifications for system-disabled power mode

Electrical specifications for system-disabled power mode

Register bit-field definition for reset value 0xFFFFFFFF

Register bit-field definition for reset value 0xFFFFFFFF

I2S left-channel data transfer current specifications

I2S left-channel data transfer current specifications

Register bit fields for TASKS_OUT

Register bit fields for TASKS_OUT

Register bit field for SLEEPEXIT interrupt

Register bit field for SLEEPEXIT interrupt

Register fields for DPPI channel subscription

Register fields for DPPI channel subscription

Register field for AES IV value

Register field for AES IV value

Brownout and power-on reset voltage thresholds

Brownout and power-on reset voltage thresholds

Register layout for left sample entries

Register layout for left sample entries

Register bit-field table for DPPI subscription

Register bit-field table for DPPI subscription

Register bit-field table for AES sample key

Register bit-field table for AES sample key

Register bit-field table for HASH clock enable

Register bit-field table for HASH clock enable

Register bit-field table for reception enable

Register bit-field table for reception enable

Register bit-field table for PKA SRAM buffer clear

Register bit-field table for PKA SRAM buffer clear

Power-on reset and reset-to-ON timing characteristics

Power-on reset and reset-to-ON timing characteristics

I2S register summary with offsets and descriptions

I2S register summary with offsets and descriptions

Register bit-field table for autocorrelation test counters

Register bit-field table for autocorrelation test counters

Register bit-field table for LTE modem start control

Register bit-field table for LTE modem start control

Register bit-field table for RNG and TRNG status

Register bit-field table for RNG and TRNG status

Register bit-field table for key-slot revocation state

Register bit-field table for key-slot revocation state

Register bit-field table for RNG DMA status and oscillator configuration

Register bit-field table for RNG DMA status and oscillator configuration

DIN memory DMA engine status register field

DIN memory DMA engine status register field

Endian configuration register fields

Endian configuration register fields

Channel inclusion register field

Channel inclusion register field

Constant latency task control register

Constant latency task control register

TX pointer event register field

TX pointer event register field

DIN RNG SRAM DMA engine status register field

DIN RNG SRAM DMA engine status register field

GPIO pin direction register field

GPIO pin direction register field

Task trigger register field

Task trigger register field

IPC channel enable register field

IPC channel enable register field

LTE modem domain status register field

LTE modem domain status register field

IPC event receive status register field

IPC event receive status register field

GPIO input, pull, drive, and sense configuration fields

GPIO input, pull, drive, and sense configuration fields

Register bit-field table for EVENTS_PORT

Register bit-field table for EVENTS_PORT

CRYPT CELL subsystem register summary

CRYPT CELL subsystem register summary

Register bit-field table for AES CTR value

Register bit-field table for AES CTR value

Register bit-field table for hardware padding enable

Register bit-field table for hardware padding enable

Register bit-field table for digested data length

Register bit-field table for digested data length

Channel enable register bit-field table

Channel enable register bit-field table

Register bit-field table for RECEIVE interrupt control

Register bit-field table for RECEIVE interrupt control

Security and access abbreviation table

Security and access abbreviation table

Register bit-field table for DPPI subscription control

Register bit-field table for DPPI subscription control

Register bit-field table for code memory page size

Register bit-field table for code memory page size

Register bit-field table for RNG interrupt masks

Register bit-field table for RNG interrupt masks

Peripheral instance and security attributes table

Peripheral instance and security attributes table

Extracted datasheet image part_01_cd2204be6a06ebc6da77bfec42403bc787a2ad55cbaecbf83d238d83cb0d2e2d.jpg.

Extracted datasheet image part_01_cd2204be6a06ebc6da77bfec42403bc787a2ad55cbaecbf83d238d83cb0d2e2d.jpg.

Extracted datasheet image part_01_139777bdbb34f8ad6b15d31f9763904b5f536032e33f0905f275e8ffc7b4a66a.jpg.

Extracted datasheet image part_01_139777bdbb34f8ad6b15d31f9763904b5f536032e33f0905f275e8ffc7b4a66a.jpg.

Extracted datasheet image part_01_b241f471556f8ca0c12cbf22cb5e6a8d7e74d3d6caf7ccf440e10e8b06150bd4.jpg.

Extracted datasheet image part_01_b241f471556f8ca0c12cbf22cb5e6a8d7e74d3d6caf7ccf440e10e8b06150bd4.jpg.

Extracted datasheet image part_01_1c6c37bb3dabb42560d1493af2e46401b515f03a811f9891838c8e9258e612d5.jpg.

Extracted datasheet image part_01_1c6c37bb3dabb42560d1493af2e46401b515f03a811f9891838c8e9258e612d5.jpg.

Extracted datasheet image part_01_3489fb048bfb96da0571d3d451bcfc1a54f52300ec90acfab852fcaec4731c96.jpg.

Extracted datasheet image part_01_3489fb048bfb96da0571d3d451bcfc1a54f52300ec90acfab852fcaec4731c96.jpg.

Extracted datasheet image part_01_51599af0e0404ca78487e54eefd711328ea3d379a8eebe810237349d1a69a625.jpg.

Extracted datasheet image part_01_51599af0e0404ca78487e54eefd711328ea3d379a8eebe810237349d1a69a625.jpg.

Register bitfield for DPPI subscription control

Register bitfield for DPPI subscription control

Register bitfield for hardware padding control

Register bitfield for hardware padding control

Register bitfield for debugger access protection

Register bitfield for debugger access protection

Register bitfield for PKA operation status

Register bitfield for PKA operation status

Register holding the ChaCha block counter

Register holding the ChaCha block counter

Register containing the ChaCha IV value

Register containing the ChaCha IV value

Reset register RESET field description

Reset register RESET field description

Flash variant register field

Flash variant register field

PKA SRAM address register field

PKA SRAM address register field

RXTRPTRUD publishing configuration

RXTRPTRUD publishing configuration

Memory source address register field

Memory source address register field

TXTPTRUPD publishing configuration

TXTPTRUPD publishing configuration

Register field ADDR with destination address description

Register field ADDR with destination address description

Register VALUE field for noise source sample timing

Register VALUE field for noise source sample timing

Read-only register VALUE field for random data

Read-only register VALUE field for random data

Write-only DATA field for PKA SRAM

Write-only DATA field for PKA SRAM

Register OpSize field for operand bit size

Register OpSize field for operand bit size

Read-only VALUE field for Poly1305 key

Read-only VALUE field for Poly1305 key

Opcode operation descriptions and modular arithmetic formulas

Opcode operation descriptions and modular arithmetic formulas

Reset register map for AES engine reset control

Reset register map for AES engine reset control

Register map for HFCLOCK start task

Register map for HFCLOCK start task

RAM variant register definition

RAM variant register definition

DIN buffer input size register definition

DIN buffer input size register definition

ChaCha version register definition

ChaCha version register definition

Sample data layout across pointer offsets

Sample data layout across pointer offsets

Register table for CRYPTOCELL subsystem enable

Register table for CRYPTOCELL subsystem enable

HASH engine reset register field description

HASH engine reset register field description

RNG engine clock enable register field

RNG engine clock enable register field

Power warning and sleep entry interrupt fields

Power warning and sleep entry interrupt fields

CRYPTOCELL RNG SRAM interface instance table

CRYPTOCELL RNG SRAM interface instance table

Reset register fields for interrupt event control

Reset register fields for interrupt event control

Register field for RNG SRAM data access

Register field for RNG SRAM data access

Key slot permission register fields

Key slot permission register fields

Hardware revision register field

Hardware revision register field

General-purpose memory register field

General-purpose memory register field

RNG SRAM starting address register field

RNG SRAM starting address register field

Register bit field for DETECTMODE

Register bit field for DETECTMODE

Register bit field for READYNEXT

Register bit field for READYNEXT

Reset source and reset target matrix

Reset source and reset target matrix

Register bit field for RECEIVE interrupt status

Register bit field for RECEIVE interrupt status

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Register bit field for SIP variant characters

Register bit field for SIP variant characters

Peripheral instance and base address table

Peripheral instance and base address table

Register bit-field table for interrupt enable fields

Register bit-field table for interrupt enable fields

Bit transformation through VNC

Bit transformation through VNC

Register field table for TASKS_STOP

Register field table for TASKS_STOP

Register field table for APPPROTECT control

Register field table for APPPROTECT control

Register field table for TASKS_HFCLKSTOP

Register field table for TASKS_HFCLKSTOP

Register bit-field table for interrupt enable events

Register bit-field table for interrupt enable events

Register field table for RNG SRAM write size

Register field table for RNG SRAM write size

DMA security attribute abbreviation definitions

DMA security attribute abbreviation definitions

Register bit-field table for channel enable clear

Register bit-field table for channel enable clear

SPIM current consumption specifications

SPIM current consumption specifications

Register list with offsets and security attributes

Register list with offsets and security attributes

DMA clock enable register bit-field table

DMA clock enable register bit-field table

RAM power control register summary

RAM power control register summary

Cache control register bit-field table

Cache control register bit-field table

PPIBus peripheral event and producer block diagram

PPIBus peripheral event and producer block diagram

Peripheral base address and instance map

Peripheral base address and instance map

Low-power task control register bit-field table

Low-power task control register bit-field table

Cryptographic engine instance address and access table

Cryptographic engine instance address and access table

Register field table for HOST_IOT_KDR2

Register field table for HOST_IOT_KDR2

STATUS register field table

STATUS register field table

DATA register field table

DATA register field table

RNG watchdog value register field table

RNG watchdog value register field table

TXEN transmission enable register field table

TXEN transmission enable register field table

Register A ENABLE field for the PKA engine clock

Register A ENABLE field for the PKA engine clock

Register A ENABLE field for the I2S module

Register A ENABLE field for the I2S module

Register A SYSTEMOFF field

Register A SYSTEMOFF field

Register A RESET field for the DOUT DMA engine

Register A RESET field for the DOUT DMA engine

DPPI subscription register with channel index and enable fields

DPPI subscription register with channel index and enable fields

DPPI publishing register with channel index and enable fields

DPPI publishing register with channel index and enable fields

Register bit-field table for DPPI subscription configuration

Register bit-field table for DPPI subscription configuration

Register bit-field table for GPIOTE mode and polarity configuration

Register bit-field table for GPIOTE mode and polarity configuration

Register bit-field table for context ID

Register bit-field table for context ID

Register bit-field table for clock source selection

Register bit-field table for clock source selection

High-frequency internal oscillator specifications

High-frequency internal oscillator specifications

Register bit-field table for AHB security attributes

Register bit-field table for AHB security attributes

HOST_IOT_KDR1 register bit-field table

HOST_IOT_KDR1 register bit-field table

CC_DOUT instance and TrustZone configuration table

CC_DOUT instance and TrustZone configuration table

ROSC1 register bit-field table

ROSC1 register bit-field table

TASKS_LFCLKSTOP register bit-field table

TASKS_LFCLKSTOP register bit-field table

LCS field value and validity table

LCS field value and validity table

CRYPTOCELL ENABLE register bit-field table

CRYPTOCELL ENABLE register bit-field table

Core options and implemented modules table

Core options and implemented modules table

IPC timing specification table

IPC timing specification table

Peripheral instance and TrustZone access table

Peripheral instance and TrustZone access table

AHB_HPROT register bit-field definition

AHB_HPROT register bit-field definition

Register fields for DPPI subscription

Register fields for DPPI subscription

Timer running current specification table

Timer running current specification table

Register bit-field definition for NVM write protection

Register bit-field definition for NVM write protection

Memory-mapped reader and writer buffer register layout

Memory-mapped reader and writer buffer register layout

Register bit-field definition for AHB singles

Register bit-field definition for AHB singles

EGU event flag interrupt latency specification

EGU event flag interrupt latency specification

TWIM running current specifications

TWIM running current specifications

CHACHA key value register definition

CHACHA key value register definition

Document revision history

Document revision history

Event routing between task signals and IPC channels

Event routing between task signals and IPC channels

nRF91 GPIO supply and pins

nRF91 GPIO supply and pins

CHACHA FSM state register

CHACHA FSM state register

PPIBus subscription multiplexers

PPIBus subscription multiplexers

PPI subscription configuration register fields

PPI subscription configuration register fields

LFRC frequency specifications

LFRC frequency specifications

Register reset and field definitions

Register reset and field definitions

I2S data and clock timing

I2S data and clock timing

DOUT write endianness register field

DOUT write endianness register field

Bus master priority table

Bus master priority table

DIN FIFO status register

DIN FIFO status register

Peripheral instance and base address table

Peripheral instance and base address table

MODE register field and hash mode values

MODE register field and hash mode values

Input/output voltage, current, and timing specifications

Input/output voltage, current, and timing specifications

System disabled current specification

System disabled current specification

GPIO detect logic block diagram

GPIO detect logic block diagram

Interrupt enable register fields

Interrupt enable register fields

PKA opcode and memory map register interaction with PKA SRAM

PKA opcode and memory map register interaction with PKA SRAM

Example register bit-field definitions and reset value

Example register bit-field definitions and reset value

TRIGGERED interrupt control register field

TRIGGERED interrupt control register field

Pin value and internal power regulator status table

Pin value and internal power regulator status table

EHR_DATA entropy collector status field

EHR_DATA entropy collector status field

Entropy collector capability register fields

Entropy collector capability register fields

Register bit-field table with reset value and rotation settings

Register bit-field table with reset value and rotation settings

Peripheral register list with offsets and descriptions

Peripheral register list with offsets and descriptions

I2S task and event register list

I2S task and event register list

Peripheral instance base-address and access attributes

Peripheral instance base-address and access attributes

Register bit-field table for PKA SRAM address

Register bit-field table for PKA SRAM address

Register bit-field table for destination address

Register bit-field table for destination address

LFXO frequency specifications

LFXO frequency specifications

Reset source and reset target matrix

Reset source and reset target matrix

Reset register bit-field definition

Reset register bit-field definition

Register protection bit-field definition

Register protection bit-field definition

AES feature capability register

AES feature capability register

Interrupt enable register bit field

Interrupt enable register bit field

IPC connections between TIMER peripherals on MCU 0 and MCU 1

IPC connections between TIMER peripherals on MCU 0 and MCU 1

Register bit-field table for cache hits

Register bit-field table for cache hits

Register bit-field table for RNG interrupt status

Register bit-field table for RNG interrupt status

Register bit-field table for program memory access control

Register bit-field table for program memory access control

AES register map with offsets and descriptions

AES register map with offsets and descriptions

Register bit-field table for direct data output access

Register bit-field table for direct data output access

Channel enable register field CH[i]

Channel enable register field CH[i]

Register upper and lower half-word fields

Register upper and lower half-word fields

Partial erase duration register field

Partial erase duration register field

TRNG SRAM DMA address register

TRNG SRAM DMA address register

Pin direction register field DIR

Pin direction register field DIR

RNG SRAM DMA engine status register

RNG SRAM DMA engine status register

Register field FORCEOFF with reset value 0

Register field FORCEOFF with reset value 0

RNG engine RESET register field

RNG engine RESET register field

IPC channel broadcast enable fields

IPC channel broadcast enable fields

PKA operation opcode descriptions

PKA operation opcode descriptions

Interrupt enable fields for POFWARN, SLEEPENTER, and SLEEPEXIT

Interrupt enable fields for POFWARN, SLEEPENTER, and SLEEPEXIT

PKA instruction register field map and opcode values

PKA instruction register field map and opcode values

Typical active transmission, reception, and idle current specifications

Typical active transmission, reception, and idle current specifications

HOST_IOT_KDR0 register field and retention status

HOST_IOT_KDR0 register field and retention status

VALUE identification register

VALUE identification register

MCU subsystem IPC architecture

MCU subsystem IPC architecture

EVENTS_IN register field

EVENTS_IN register field

TASKS_SEND register field

TASKS_SEND register field

Register bit-field table for current digest data length

Register bit-field table for current digest data length

Register bit-field table for startup test byte count

Register bit-field table for startup test byte count

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Register bit-field table for cryptographic engine configuration

Register bit-field table for cryptographic engine configuration

Register bit-field table for clock-started interrupts

Register bit-field table for clock-started interrupts

PWM operating current specifications

PWM operating current specifications

Current consumption and PSM TAU electrical characteristics

Current consumption and PSM TAU electrical characteristics

Register bit-field layout for secure APB destination address

Register bit-field layout for secure APB destination address

Register field access type definitions

Register field access type definitions

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Hash engine feature register bit-field description

Hash engine feature register bit-field description

nRF9151 system block diagram

nRF9151 system block diagram

Register bit layout and field descriptions for SIZE, FIRST, and LAST.

Register bit layout and field descriptions for SIZE, FIRST, and LAST.

CHACHA engine status register field table.

CHACHA engine status register field table.

Clock source register field table.

Clock source register field table.

RNG interrupt routing and CPU NVIC block diagram.

RNG interrupt routing and CPU NVIC block diagram.

DPPI event publishing configuration register table.

DPPI event publishing configuration register table.

KMU key slot VALUE register field table.

KMU key slot VALUE register field table.

Extracted datasheet image part_01_2df9187f9ba5e19e80f467fe5752aec62554f40d03a6055717f952f3889ec84c.jpg.

Extracted datasheet image part_01_2df9187f9ba5e19e80f467fe5752aec62554f40d03a6055717f952f3889ec84c.jpg.

Extracted datasheet image part_01_3c7830ae2437e6f94bca537089330df4d09bf71f27cdce387551a166108433cc.jpg.

Extracted datasheet image part_01_3c7830ae2437e6f94bca537089330df4d09bf71f27cdce387551a166108433cc.jpg.

Extracted datasheet image part_01_9d52a44d15df86b8683d8b47daab0e5d5763e7a8b080e6346460ac3fd5026c83.jpg.

Extracted datasheet image part_01_9d52a44d15df86b8683d8b47daab0e5d5763e7a8b080e6346460ac3fd5026c83.jpg.

Extracted datasheet image part_01_c723696a81e03c3bfd6733e0617ee7ba0ffb95ce78e54802cd8e2ab4f8a66aeb.jpg.

Extracted datasheet image part_01_c723696a81e03c3bfd6733e0617ee7ba0ffb95ce78e54802cd8e2ab4f8a66aeb.jpg.

Extracted datasheet image part_01_a3460d995cd679a46d9d785acaaa0f64676daf228ae2e5825d2bc021f94ab04c.jpg.

Extracted datasheet image part_01_a3460d995cd679a46d9d785acaaa0f64676daf228ae2e5825d2bc021f94ab04c.jpg.

Extracted datasheet image part_01_777b9a96ad5c066b66894fd937c4e8e23d9a3fc56a6c9228bc220f1094659944.jpg.

Extracted datasheet image part_01_777b9a96ad5c066b66894fd937c4e8e23d9a3fc56a6c9228bc220f1094659944.jpg.

ALU status register bit-field table

ALU status register bit-field table

HFCLOCKSTART status register field table

HFCLOCKSTART status register field table

Ring oscillator register summary

Ring oscillator register summary

LRCK and MCK clock configuration table

LRCK and MCK clock configuration table

LFCLK source and state register fields

LFCLK source and state register fields

Cryptocell control interface instance table

Cryptocell control interface instance table

PKA register map with offsets and descriptions

PKA register map with offsets and descriptions

Memory layout showing left and right samples

Memory layout showing left and right samples

Register bit-field table for PIN status

Register bit-field table for PIN status

CHACHA clock enable register field

CHACHA clock enable register field

LFCLK task start register field

LFCLK task start register field

Task set register field for pin control

Task set register field for pin control

Current consumption and PSM TAU energy specifications

Current consumption and PSM TAU energy specifications

Peripheral base address and TrustZone access map

Peripheral base address and TrustZone access map

Frame and serial clock timing for SDIN or SDOUT

Frame and serial clock timing for SDIN or SDOUT

SPIS receiving current specifications

SPIS receiving current specifications

MCK, LRCK, and SCK timing relationship

MCK, LRCK, and SCK timing relationship

AES control register bit fields and reset values

AES control register bit fields and reset values

Register fields for left sample data

Register fields for left sample data

RECEIVE interrupt enable register field

RECEIVE interrupt enable register field

DPPI channel and publishing enable register

DPPI channel and publishing enable register

TRIGGERED interrupt enable register field

TRIGGERED interrupt enable register field

LFCLKSTART task status register

LFCLKSTART task status register

PIN output driver register

PIN output driver register

Reset register bit-field table for DIN FIFO

Reset register bit-field table for DIN FIFO

Code memory size register bit-field table

Code memory size register bit-field table

Cryptocell clock register summary

Cryptocell clock register summary

DOUT DMA and memory register summary

DOUT DMA and memory register summary

AHB HMASTLOCK register bit-field table

AHB HMASTLOCK register bit-field table

HASH engine register summary

HASH engine register summary

HASH LOAD register field table

HASH LOAD register field table

EVENTS_TRIGGERED register field table

EVENTS_TRIGGERED register field table

MISSES register field table

MISSES register field table

Document name and specification description table

Document name and specification description table

Register summary table with offsets and descriptions

Register summary table with offsets and descriptions

nRF9151 system block diagram

nRF9151 system block diagram

Register list with offsets and descriptions

Register list with offsets and descriptions

AHB multilayer interconnect and memory map block diagram

AHB multilayer interconnect and memory map block diagram

Register bit-field definition for event publishing

Register bit-field definition for event publishing

Register bit-field definitions for input data byte and word order

Register bit-field definitions for input data byte and word order

PARTNO register values for nRF devices

PARTNO register values for nRF devices

Peripheral instance base address and TrustZone access table

Peripheral instance base address and TrustZone access table

Detect and latch timing sequence

Detect and latch timing sequence

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Register bit-field table for byte and matrix ordering

Register bit-field table for byte and matrix ordering

Version register bit-field table

Version register bit-field table

Randomness test bypass control register

Randomness test bypass control register

PPI bus connections between peripherals and channels

PPI bus connections between peripherals and channels

Flash write and erase timing and endurance specifications

Flash write and erase timing and endurance specifications

Reset register bit-field table for ChaCha and Salsa support

Reset register bit-field table for ChaCha and Salsa support

TrustZone and DMA security attribute abbreviation table

TrustZone and DMA security attribute abbreviation table

Register bit-field table for RNG interrupt status clearing

Register bit-field table for RNG interrupt status clearing

Priority and task mapping table

Priority and task mapping table

Register bit-field table for PIN input states

Register bit-field table for PIN input states

Register bit-field table for reset register 0x00000000

Register bit-field table for reset register 0x00000000

CPU wait-state and CoreMark performance specifications

CPU wait-state and CoreMark performance specifications

Peripheral instance base-address and TrustZone access table

Peripheral instance base-address and TrustZone access table

Watchdog current specification

Watchdog current specification

nRF91 pin reset circuit with resistor

nRF91 pin reset circuit with resistor

HF crystal oscillator frequency specifications

HF crystal oscillator frequency specifications

Register bit-field table for ID register A

Register bit-field table for ID register A

Register bit-field table for HFC and LFC clock-start interrupts

Register bit-field table for HFC and LFC clock-start interrupts

Register bit-field table for RNG DMA endianness

Register bit-field table for RNG DMA endianness

Register bit-field table for host IOT key data

Register bit-field table for host IOT key data

Register bit-field table for RAM power and retention control

Register bit-field table for RAM power and retention control

Peripheral instance and base-address table

Peripheral instance and base-address table

I-Code cache size specification

I-Code cache size specification

CHACHA register summary

CHACHA register summary

Register bit-field definition

Register bit-field definition

RNG SRAM register summary

RNG SRAM register summary

Register bit-field definition

Register bit-field definition

Peripheral instance address and access map

Peripheral instance address and access map

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Serial audio timing diagram showing frame, LRCK, SCK, and SDATA

Serial audio timing diagram showing frame, LRCK, SCK, and SDATA

Register bit-field definition with reset value and subscription controls

Register bit-field definition with reset value and subscription controls

Peripheral instance table for the cryptographic RNG engine

Peripheral instance table for the cryptographic RNG engine

Read-only register bit-field describing entropy byte count

Read-only register bit-field describing entropy byte count

AES engine clock enable register field

AES engine clock enable register field

Reset register with TASKS_START trigger field

Reset register with TASKS_START trigger field

Clock status register for AES, HASH, PKA, CHACHA, and DMA engines

Clock status register for AES, HASH, PKA, CHACHA, and DMA engines

Register field defining the number of RNG DMA samples

Register field defining the number of RNG DMA samples

PIN input/output configuration register

PIN input/output configuration register

Interrupt enable register for RECEIVE events

Interrupt enable register for RECEIVE events

RNG DMA enable register

RNG DMA enable register

Register bit-field table for SLEEPEXIT event publishing

Register bit-field table for SLEEPEXIT event publishing

Register summary table showing DUMMY register

Register summary table showing DUMMY register

Peripheral instance base address and security access table

Peripheral instance base address and security access table

Register bit-field table for HFXO clock source selection

Register bit-field table for HFXO clock source selection

Register bit-field table for RAM power and retention control

Register bit-field table for RAM power and retention control

Register bit-field table for non-volatile memory erase control

Register bit-field table for non-volatile memory erase control

System and peripheral address map

System and peripheral address map

ChaCha block counter register field definition

ChaCha block counter register field definition

RNG SRAM-to-DIN DMA interrupt mask register

RNG SRAM-to-DIN DMA interrupt mask register

Noise source enable register field

Noise source enable register field

Clock-started interrupt enable register fields

Clock-started interrupt enable register fields

RNG interrupt mask register fields

RNG interrupt mask register fields

Memory type read/write capability table

Memory type read/write capability table

Register bit layout with reset value 0x00000000

Register bit layout with reset value 0x00000000

DEVICETYPE register field and reset value

DEVICETYPE register field and reset value

STATUS register field and reset value

STATUS register field and reset value

Electrical characteristics and timing specification table

Electrical characteristics and timing specification table

RCCUTOFF register field and reset value

RCCUTOFF register field and reset value

Event generator instance base-address and TrustZone access table

Event generator instance base-address and TrustZone access table

CRYPTOCELL block diagram showing CPU, memory, cryptographic engines, and buses

CRYPTOCELL block diagram showing CPU, memory, cryptographic engines, and buses

Channel group register summary

Channel group register summary

Register bit-field definition for EVENTS_STOPPED

Register bit-field definition for EVENTS_STOPPED

High- and low-frequency clock task and event register summary

High- and low-frequency clock task and event register summary

Register bit-field definition for cryptographic core engine status

Register bit-field definition for cryptographic core engine status

DEVICEID register definition

DEVICEID register definition

Peripheral instance base address table

Peripheral instance base address table

HFXO control register field definition

HFXO control register field definition

Buffer index grid

Buffer index grid

CC_HASH peripheral instance table

CC_HASH peripheral instance table

PIN register field definition

PIN register field definition

GPREGRET register bit fields and reset value

GPREGRET register bit fields and reset value

Cryptographic peripheral register summary

Cryptographic peripheral register summary

MCU power consumption and leakage current specifications

MCU power consumption and leakage current specifications

AES key value register bit field

AES key value register bit field

RNG interrupt status register bit fields

RNG interrupt status register bit fields

NVMC instance base address and TrustZone access table

NVMC instance base address and TrustZone access table

Register bitfield for ADDR

Register bitfield for ADDR

Register bitfield for PIN

Register bitfield for PIN

Register bitfield for ENDIAN

Register bitfield for ENDIAN

Peripheral instance and base address table

Peripheral instance and base address table

Register bitfield for TRIGGERED

Register bitfield for TRIGGERED

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Register field DATA reset and description

Register field DATA reset and description

I2S mode register field

I2S mode register field

CPU sleep event register field

CPU sleep event register field

AES-CMAC enable register field

AES-CMAC enable register field

I2S signal pin direction table

I2S signal pin direction table

GPIO register summary and offsets

GPIO register summary and offsets

Low-power operating conditions and system state

Low-power operating conditions and system state

Peripheral base address and TrustZone access map

Peripheral base address and TrustZone access map

RNG interrupt mask register summary

RNG interrupt mask register summary

UICR and NVMC protection status table

UICR and NVMC protection status table

POFWARN publishing control register bit fields

POFWARN publishing control register bit fields

Cryptographic feature capability register

Cryptographic feature capability register

AES hardware key selection register field

AES hardware key selection register field

Interrupt enable register fields

Interrupt enable register fields

AES CMAC enable register field

AES CMAC enable register field

Virtual register to memory map address table

Virtual register to memory map address table

Virtual register address selection fields

Virtual register address selection fields

RAM power and retention control fields

RAM power and retention control fields

Register bit fields for CHIDX and EN

Register bit fields for CHIDX and EN

Register field ROSC2

Register field ROSC2

DOUT memory DMA engine status register

DOUT memory DMA engine status register

Peripheral instance and base address table

Peripheral instance and base address table

Clock source and HFCLK state register fields

Clock source and HFCLK state register fields

Memory read configuration register fields

Memory read configuration register fields

Clock and oscillator control unit block diagram

Clock and oscillator control unit block diagram

RNG SRAM status register field table

RNG SRAM status register field table

Reset status register field table

Reset status register field table

Address register field table

Address register field table

CPU CoreMark current and efficiency specifications

CPU CoreMark current and efficiency specifications

NVMC ready status register field table

NVMC ready status register field table

Register field EVENTS_POFWARN and power failure warning values

Register field EVENTS_POFWARN and power failure warning values

Register RESET field and CHACHA engine reset behavior

Register RESET field and CHACHA engine reset behavior

Reset timing and internal pull-up resistor specifications

Reset timing and internal pull-up resistor specifications

Register fields CHIDX and EN for LOWPWR subscription

Register fields CHIDX and EN for LOWPWR subscription

Register LAST field for flushing remaining read-aligned content

Register LAST field for flushing remaining read-aligned content

MODE register cryptographic engine mode values

MODE register cryptographic engine mode values

Data path from noise source and sample count to EHR data outputs

Data path from noise source and sample count to EHR data outputs

Register bit-field table for TASKS_CLR

Register bit-field table for TASKS_CLR

Register bit-field table for DETECTMODE

Register bit-field table for DETECTMODE

Peripheral instance base-address and TrustZone access table

Peripheral instance base-address and TrustZone access table

Register bit-field table for channel subscription control

Register bit-field table for channel subscription control

Register bit-field table for interrupt masks

Register bit-field table for interrupt masks

GPIOE instance channel count

GPIOE instance channel count

Register reset and interrupt-clear fields

Register reset and interrupt-clear fields

Register enable field and reset value

Register enable field and reset value

UARTE current consumption specifications

UARTE current consumption specifications

PDM current consumption specifications

PDM current consumption specifications

TWIS current consumption specifications

TWIS current consumption specifications

Reset register bit-field table

Reset register bit-field table

Peripheral instance address and access table

Peripheral instance address and access table

DPPI publishing control register

DPPI publishing control register

DAC control register

DAC control register

DPPI subscription control register

DPPI subscription control register

Peripheral identification register

Peripheral identification register

AHB multilayer and peripheral EasyDMA block diagram

AHB multilayer and peripheral EasyDMA block diagram

Register bit-field table for EVENTS_SLEEPEXIT

Register bit-field table for EVENTS_SLEEPEXIT

Register layout for left and right sample pointers

Register layout for left and right sample pointers

Timing characteristics table for CPU and LTE modem operations

Timing characteristics table for CPU and LTE modem operations

Register bit-field table for interrupt event enables

Register bit-field table for interrupt event enables

Register bit-field table for DPPI subscription configuration

Register bit-field table for DPPI subscription configuration

Power-on reset and brownout reset circuit

Power-on reset and brownout reset circuit

UICR instance and memory access information

UICR instance and memory access information

FICR instance and memory access information

FICR instance and memory access information

ROS​C4 register bit-field description

ROS​C4 register bit-field description

HOST_IOT_KPRTL_LOCK register bit-field description

HOST_IOT_KPRTL_LOCK register bit-field description

DIN DMA and FIFO register list

DIN DMA and FIFO register list

SAADC sampling current specifications

SAADC sampling current specifications

VMC instance base address and TrustZone access map

VMC instance base address and TrustZone access map

LCS status register bit-field definitions

LCS status register bit-field definitions

Local security feature presence register

Local security feature presence register

Peripheral task and event channel routing diagram

Peripheral task and event channel routing diagram

Ring oscillator length control register

Ring oscillator length control register

nRF9151 power management and application core block diagram

nRF9151 power management and application core block diagram

Program memory access control register bit-field table

Program memory access control register bit-field table

RNG SRAM source address register field table

RNG SRAM source address register field table

Cryptographic algorithm standards reference table

Cryptographic algorithm standards reference table

Receive and transmit buffer error status register fields

Receive and transmit buffer error status register fields

SPU instance base address and TrustZone access table

SPU instance base address and TrustZone access table

Register bit-field table for serial clock configuration

Register bit-field table for serial clock configuration

Register bit-field table for flash-region permissions and security

Register bit-field table for flash-region permissions and security

Register bit-field table for DPP1 task subscription

Register bit-field table for DPP1 task subscription

Register bit-field table for starting a task timer

Register bit-field table for starting a task timer

Register bit-field table for key-slot revocation event

Register bit-field table for key-slot revocation event

Register bit-field table for enabling the PWM module

Register bit-field table for enabling the PWM module

Register bit-field table for DPPI subscription

Register bit-field table for DPPI subscription

Register bit-field table for key-slot push event

Register bit-field table for key-slot push event

Register bit-field table for task suspension

Register bit-field table for task suspension

Register bit-field table for NSC region size and lock

Register bit-field table for NSC region size and lock

TWI slave signal and pin configuration table

TWI slave signal and pin configuration table

Register bit-field table for DPPI calibration offset subscription

Register bit-field table for DPPI calibration offset subscription

Register bit-field definition for EVENTS_STOPPED

Register bit-field definition for EVENTS_STOPPED

Resistance versus capacitance for 100 kbps and 400 kbps

Resistance versus capacitance for 100 kbps and 400 kbps

Register bit-field definition for PRESCALER

Register bit-field definition for PRESCALER

Timer register summary with offsets and descriptions

Timer register summary with offsets and descriptions

Register bit-field definition for TASKS_STARTTX

Register bit-field definition for TASKS_STARTTX

Peripheral instance base-address and TrustZone access table

Peripheral instance base-address and TrustZone access table

Register bit-field table for COMPARE interrupt enable

Register bit-field table for COMPARE interrupt enable

Register bit-field table for RXSTARTED event publishing

Register bit-field table for RXSTARTED event publishing

Audio sampling and PDM-to-PCM processing block diagram

Audio sampling and PDM-to-PCM processing block diagram

Register summary table with offsets and descriptions

Register summary table with offsets and descriptions

Register bit-field table for EasyDMA list selection

Register bit-field table for EasyDMA list selection

Register bit-field table for sequence and loop event interrupts

Register bit-field table for sequence and loop event interrupts

Register field EVENTS_TXSTARTED and reset value

Register field EVENTS_TXSTARTED and reset value

Register field MAXCNT

Register field MAXCNT

Register fields CHIDX and EN

Register fields CHIDX and EN

Register field EVENTS_LOOPSDONE

Register field EVENTS_LOOPSDONE

CPU and SPI acquisition state transitions

CPU and SPI acquisition state transitions

Loop counter sequence timing and event loads

Loop counter sequence timing and event loads

Register bit-field table for pin and connection configuration

Register bit-field table for pin and connection configuration

TWI master connected to EEPROM, sensor, and TWIS slaves

TWI master connected to EEPROM, sensor, and TWIS slaves

COUNTER_PRESCALER_0 timing diagram

COUNTER_PRESCALER_0 timing diagram

Register bit-field table for peripheral security and DMA attributes

Register bit-field table for peripheral security and DMA attributes

SPI transfer timing diagram with MOSI and MISO data phases

SPI transfer timing diagram with MOSI and MISO data phases

Register bit-field table for the over-read character

Register bit-field table for the over-read character

Register bit-field table for DPPI subscription configuration

Register bit-field table for DPPI subscription configuration

UART task and event register map

UART task and event register map

Register bit-field table for pin connection selection

Register bit-field table for pin connection selection

Register bit-field table for DPPI event publishing

Register bit-field table for DPPI event publishing

SPI master frequency register field table

SPI master frequency register field table

Interrupt enable fields for CH6 and CH7 limit events

Interrupt enable fields for CH6 and CH7 limit events

SPI timing diagram showing CSN, SCK, MISO, and MOSI signals

SPI timing diagram showing CSN, SCK, MISO, and MOSI signals

SPI slave enable register bit-field table

SPI slave enable register bit-field table

Positive and negative channel resistor control register table

Positive and negative channel resistor control register table

Pin number and connection register table

Pin number and connection register table

Peripheral security violation event register table

Peripheral security violation event register table

Receive buffer maximum byte count register table

Receive buffer maximum byte count register table

Register field AMOUNT and reset value

Register field AMOUNT and reset value

PDM clock and data timing diagram

PDM clock and data timing diagram

Register field EVENTS_END and event values

Register field EVENTS_END and event values

RAM security and lock register fields

RAM security and lock register fields

SDIN, SDOUT, and clock timing specifications

SDIN, SDOUT, and clock timing specifications

Flash address space access-control diagram

Flash address space access-control diagram

Timing relationship between LFCLK, counter, CC[0], and COMPARE[0]

Timing relationship between LFCLK, counter, CC[0], and COMPARE[0]

Register field table for analog negative input selection

Register field table for analog negative input selection

Register field table for DPPI subscription channel and enable

Register field table for DPPI subscription channel and enable

Register field table for maximum transmit buffer count

Register field table for maximum transmit buffer count

Register table for sequence and loop interrupt events

Register table for sequence and loop interrupt events

State transition diagram for TX/RX sequence operation

State transition diagram for TX/RX sequence operation

Register field SAMPLEPTR with reset value 0x00000000

Register field SAMPLEPTR with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Register field PTR with reset value 0x00000000

Register field PTR with reset value 0x00000000

TASKS_START register with trigger value

TASKS_START register with trigger value

TASKS_STOP register with trigger value

TASKS_STOP register with trigger value

Reset register bit-field table for interrupt event controls

Reset register bit-field table for interrupt event controls

Register fields for RELEASE task subscription

Register fields for RELEASE task subscription

Register fields for STOP task subscription

Register fields for STOP task subscription

Register field for starting the ADC task

Register field for starting the ADC task

Register fields for SUSPEND task subscription

Register fields for SUSPEND task subscription

UARTE signal directions and output values

UARTE signal directions and output values

Register reset value and KEYSLOT_PUSHED field definition

Register reset value and KEYSLOT_PUSHED field definition

TWI transaction timing with suspend and restart events

TWI transaction timing with suspend and restart events

TWIS timing and bit-rate specifications

TWIS timing and bit-rate specifications

PDM clock frequency configuration register

PDM clock frequency configuration register

DPPI publishing channel and enable fields

DPPI publishing channel and enable fields

ADC sample-and-convert sequence with Data RAM results

ADC sample-and-convert sequence with Data RAM results

Register bit-field table for DPPI publishing configuration

Register bit-field table for DPPI publishing configuration

Sequence PWM timing diagram with compare events

Sequence PWM timing diagram with compare events

Register bit-field table for pin connection configuration

Register bit-field table for pin connection configuration

Register bit-field table for DPPI subscription configuration

Register bit-field table for DPPI subscription configuration

PCLK16M and LFCLK counter compare timing diagram

PCLK16M and LFCLK counter compare timing diagram

Register bit-field table for received transaction amount

Register bit-field table for received transaction amount

Register fields for DPPI DONE event publishing

Register fields for DPPI DONE event publishing

Register field for ADC offset calibration

Register field for ADC offset calibration

Register fields for DPPI END event publishing

Register fields for DPPI END event publishing

Register fields for DPPI STOPPED event publishing

Register fields for DPPI STOPPED event publishing

Register field for SPI stopped event status

Register field for SPI stopped event status

Register fields for capture and compare sample-rate control

Register fields for capture and compare sample-rate control

Register fields CHIDX and EN with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register field BUFFSIZE with reset value 0x00000000

Register field BUFFSIZE with reset value 0x00000000

Register field CNT with reset value 0x00000001

Register field CNT with reset value 0x00000001

Register field PSELP for analog input channel selection

Register field PSELP for analog input channel selection

Interrupt enable register fields STARTED, STOPPED, and END

Interrupt enable register fields STARTED, STOPPED, and END

Register fields CHIDX and EN with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register bit-field table for ADDRESS matching

Register bit-field table for ADDRESS matching

TWIM peripheral instance base-address table

TWIM peripheral instance base-address table

Register bit-field table for END_START shortcut

Register bit-field table for END_START shortcut

Register bit-field table for LIMITL

Register bit-field table for LIMITL

Register bit-field table for ERROR event publishing

Register bit-field table for ERROR event publishing

Register bit-field table for PERIPHACERR event publishing

Register bit-field table for PERIPHACERR event publishing

Register field PTR at reset address 0x00000000

Register field PTR at reset address 0x00000000

Interrupt enable register fields

Interrupt enable register fields

Serial audio timing diagram for LRCK, SCK, SDIN, and SDOUT

Serial audio timing diagram for LRCK, SCK, SDIN, and SDOUT

MAXCNT register field for transfer word count

MAXCNT register field for transfer word count

MAXCNT register field for TXD buffer byte count

MAXCNT register field for TXD buffer byte count

CHIDX and EN register fields for STOPPED event publishing

CHIDX and EN register fields for STOPPED event publishing

MAXCNT register field and reset value

MAXCNT register field and reset value

Keyslot interrupt enable register fields

Keyslot interrupt enable register fields

RAM region access control and error reporting

RAM region access control and error reporting

Channel limit interrupt enable register fields

Channel limit interrupt enable register fields

Non-secure callable region size field

Non-secure callable region size field

ADC status register field

ADC status register field

PDM electrical characteristics and timing specifications

PDM electrical characteristics and timing specifications

Register field TASKS_COUNT

Register field TASKS_COUNT

Register field TASKS_STOP

Register field TASKS_STOP

Register fields PIN and CONNECT

Register fields PIN and CONNECT

PCLK16M counter timing diagram

PCLK16M counter timing diagram

Register fields CHIDX and EN

Register fields CHIDX and EN

SPIM enable register field and reset value

SPIM enable register field and reset value

Input-output pull-up and pull-down resistor circuit

Input-output pull-up and pull-down resistor circuit

Pin connection register fields and reset value

Pin connection register fields and reset value

Compare event register field and reset value

Compare event register field and reset value

Last-byte receive event register field

Last-byte receive event register field

RX buffer end event register field

RX buffer end event register field

KMU instance and base address table

KMU instance and base address table

SPI clock mode configuration table

SPI clock mode configuration table

Interrupt enable register bit-field table

Interrupt enable register bit-field table

PCLK16M, LFCLK, TICK, PRESC, and COUNTER timing diagram

PCLK16M, LFCLK, TICK, PRESC, and COUNTER timing diagram

Register fields for DPPI subscription control

Register fields for DPPI subscription control

Register fields for pin connection control

Register fields for pin connection control

Prescaler, counter resolution, and overflow table

Prescaler, counter resolution, and overflow table

Register bit-field table for CHIDX and EN

Register bit-field table for CHIDX and EN

Register bit-field table for SPI configuration

Register bit-field table for SPI configuration

SPI timing diagram for CSN, SCK, MISO, and MOSI

SPI timing diagram for CSN, SCK, MISO, and MOSI

SPI transaction arbitration and semaphore assignment timing

SPI transaction arbitration and semaphore assignment timing

SPI timing characteristics specification table

SPI timing characteristics specification table

Register bit-field definition for PIN and CONNECT

Register bit-field definition for PIN and CONNECT

Register bit-field definition for DPPI publishing

Register bit-field definition for DPPI publishing

Register bit-field definition for DPPI CLEAR subscription

Register bit-field definition for DPPI CLEAR subscription

Register bit-field definition for EasyDMA pointer

Register bit-field definition for EasyDMA pointer

Peripheral instance base-address and security-access table

Peripheral instance base-address and security-access table

Register offset map for security and peripheral events

Register offset map for security and peripheral events

Register field EVENTS_ERROR and its TWI error values

Register field EVENTS_ERROR and its TWI error values

Register field TASKS_CLEAR for clearing the RTC counter

Register field TASKS_CLEAR for clearing the RTC counter

Register field CNT for adding time after a PWM sequence

Register field CNT for adding time after a PWM sequence

Register field LIST defining EasyDMA list type

Register field LIST defining EasyDMA list type

Security mapping register fields SECUREMAPPING, SECATTR, and LOCK

Security mapping register fields SECUREMAPPING, SECATTR, and LOCK

Register fields CHIDX and EN for calibrated event publishing

Register fields CHIDX and EN for calibrated event publishing

RESULT.PTR result storage layout

RESULT.PTR result storage layout

TASKS_STOP register field definition

TASKS_STOP register field definition

Shortcut configuration register fields

Shortcut configuration register fields

EVENTS_STOPPED register field definition

EVENTS_STOPPED register field definition

PTR register field definition

PTR register field definition

RTC timer block diagram

RTC timer block diagram

Register bit layout and default character field

Register bit layout and default character field

Peripheral instance base address and TrustZone table

Peripheral instance base address and TrustZone table

TWI slave address register field

TWI slave address register field

DPPI publishing control register fields

DPPI publishing control register fields

Secure APB key-slot task register

Secure APB key-slot task register

Peripheral security, lock, and presence register fields

Peripheral security, lock, and presence register fields

Register fields PIN and CONNECT

Register fields PIN and CONNECT

Register field EVENTS_COMPARE

Register field EVENTS_COMPARE

Counter waveform and comparator output timing

Counter waveform and comparator output timing

Read-only COUNTER register field

Read-only COUNTER register field

Register fields CHIDX and EN

Register fields CHIDX and EN

Register field LIST

Register field LIST

Domain capability and permission table

Domain capability and permission table

PIN and CONNECT register fields

PIN and CONNECT register fields

Flash access error event register field

Flash access error event register field

TWI EasyDMA transmit and receive block diagram

TWI EasyDMA transmit and receive block diagram

DPPI channel subscription register fields

DPPI channel subscription register fields

TWI receive task trigger register field

TWI receive task trigger register field

Timer register field table

Timer register field table

Data pointer register field table

Data pointer register field table

EasyDMA data RAM and RXD pipeline diagram

EasyDMA data RAM and RXD pipeline diagram

TWIM timing and bit-rate specifications

TWIM timing and bit-rate specifications

TWI slave task register field table

TWI slave task register field table

DPPI publishing configuration register table

DPPI publishing configuration register table

Register field table for reset value 0x00000000

Register field table for reset value 0x00000000

Register field table for TWI slave preparation

Register field table for TWI slave preparation

Security feature and address-mapping comparison table

Security feature and address-mapping comparison table

Register fields for pin connection control

Register fields for pin connection control

Register fields for END, ENDRX, and ACQUIRED interrupts

Register fields for END, ENDRX, and ACQUIRED interrupts

Register field for transferred byte count

Register field for transferred byte count

Register bit fields for TASKS_START

Register bit fields for TASKS_START

CLK and DIN connection schematic with timing waveform

CLK and DIN connection schematic with timing waveform

Interrupt enable register fields

Interrupt enable register fields

Interrupt clear and status register fields

Interrupt clear and status register fields

DPPIC channel publishing configuration fields

DPPIC channel publishing configuration fields

RAM address regions and SPU register access control

RAM address regions and SPU register access control

Peripheral instance base address and TrustZone access table

Peripheral instance base address and TrustZone access table

EasyDMA RXD and TXD line timing sequence

EasyDMA RXD and TXD line timing sequence

Register bit-field definition for DPPI publishing control

Register bit-field definition for DPPI publishing control

PWM counter, compare, and clock timing diagram

PWM counter, compare, and clock timing diagram

PWM sequence start task register definition

PWM sequence start task register definition

Prescaler register bit-field definition

Prescaler register bit-field definition

Register field EVENTS_RESULTDONE

Register field EVENTS_RESULTDONE

Register field EVENTS_ENDRX

Register field EVENTS_ENDRX

Register fields PIN and CONNECT

Register fields PIN and CONNECT

Register fields CHIDX and EN

Register fields CHIDX and EN

Interrupt enable register fields

Interrupt enable register fields

Register field LIST

Register field LIST

Register bit-field table for reset value 0x00000000

Register bit-field table for reset value 0x00000000

Register update timing recommendations table

Register update timing recommendations table

FORMAT register bit-field table

FORMAT register bit-field table

PWM sequence end-delay timing diagram

PWM sequence end-delay timing diagram

PCLK16M, LFCLK, counter, and clear timing diagram

PCLK16M, LFCLK, counter, and clear timing diagram

SEMSTAT register bit-field table

SEMSTAT register bit-field table

Register field table for CHIDX and EN

Register field table for CHIDX and EN

Register field table for EVENTS_STOPPED

Register field table for EVENTS_STOPPED

Register field table for LIST

Register field table for LIST

Register field table for AMOUNT

Register field table for AMOUNT

Register field table for PIN and CONNECT

Register field table for PIN and CONNECT

Register field table for TASKS_SAMPLE

Register field table for TASKS_SAMPLE

Register field EVENTS_STOPPED with reset value 0

Register field EVENTS_STOPPED with reset value 0

Register fields for KEYSLOT interrupt status

Register fields for KEYSLOT interrupt status

Register field TASKS_RESUME

Register field TASKS_RESUME

Interrupt enable register fields TICK, OVRFLW, and COMPARE

Interrupt enable register fields TICK, OVRFLW, and COMPARE

MAXCNT register field

MAXCNT register field

TRIGOVRFLW subscription configuration register

TRIGOVRFLW subscription configuration register

CHANNELS register field and channel selection values

CHANNELS register field and channel selection values

Register value and lock field definitions

Register value and lock field definitions

TWI and CPU Lifeline transaction sequence

TWI and CPU Lifeline transaction sequence

STOPPED interrupt enable register field

STOPPED interrupt enable register field

SPIS SPI slave transceiver and EasyDMA block diagram

SPIS SPI slave transceiver and EasyDMA block diagram

COMPARE interrupt enable field values

COMPARE interrupt enable field values

GAINR register bit field and gain adjustment values

GAINR register bit field and gain adjustment values

CPU Lifeline bus transaction timing

CPU Lifeline bus transaction timing

SPIM serial interface timing characteristics

SPIM serial interface timing characteristics

PWM sequence event and compare timing

PWM sequence event and compare timing

SPI clock modes and MISO/MOSI timing

SPI clock modes and MISO/MOSI timing

Register fields for WRITE_SUSPEND and READ_SUSPEND

Register fields for WRITE_SUSPEND and READ_SUSPEND

Extracted datasheet image part_02_4dd1152d46d22c76d64c648ec7924abc83869c7baa016566ccb980047f276fa6.jpg.

Extracted datasheet image part_02_4dd1152d46d22c76d64c648ec7924abc83869c7baa016566ccb980047f276fa6.jpg.

Extracted datasheet image part_02_6bbe1214715a8276a91d6a170251a9612fc61051d616f590aff8458bc3017c3f.jpg.

Extracted datasheet image part_02_6bbe1214715a8276a91d6a170251a9612fc61051d616f590aff8458bc3017c3f.jpg.

Extracted datasheet image part_02_376f4d6de55250344eccf3cd1dd93c5e7ccd0622cc1a978ac66a83338d21f368.jpg.

Extracted datasheet image part_02_376f4d6de55250344eccf3cd1dd93c5e7ccd0622cc1a978ac66a83338d21f368.jpg.

Extracted datasheet image part_02_7cd36ad7bb3aa004fe3e9c10270ac62bc4511842cd9ee5f08faf7eb1ad816ce4.jpg.

Extracted datasheet image part_02_7cd36ad7bb3aa004fe3e9c10270ac62bc4511842cd9ee5f08faf7eb1ad816ce4.jpg.

Extracted datasheet image part_02_3c71ad537352c6460c82523eb78cf03725e68b32d92fae178bcc62c17a1d399a.jpg.

Extracted datasheet image part_02_3c71ad537352c6460c82523eb78cf03725e68b32d92fae178bcc62c17a1d399a.jpg.

Extracted datasheet image part_02_698a04732c7c94729d030208ecaf8beefc2a7ee8e142c5e0abdeff0aad0910ff.jpg.

Extracted datasheet image part_02_698a04732c7c94729d030208ecaf8beefc2a7ee8e142c5e0abdeff0aad0910ff.jpg.

Register A WIDTH field values

Register A WIDTH field values

Register fields for DPPI ENDTX publishing

Register fields for DPPI ENDTX publishing

Register A BITMODE field values

Register A BITMODE field values

Register A CC capture/compare field

Register A CC capture/compare field

Register fields for DPPI RESULTDONE publishing

Register fields for DPPI RESULTDONE publishing

Access type permissions table

Access type permissions table

RTC task and event interrupt signal flow

RTC task and event interrupt signal flow

TASKS_RELEASE register field table

TASKS_RELEASE register field table

Task delay specification

Task delay specification

ADC enable register field table

ADC enable register field table

Event interrupt enable register fields

Event interrupt enable register fields

Event publishing configuration register

Event publishing configuration register

Register bit fields for TASKS_STOP

Register bit fields for TASKS_STOP

Register bit fields for task subscription

Register bit fields for task subscription

Interrupt enable register bit fields

Interrupt enable register bit fields

Read-only AMOUNT register field

Read-only AMOUNT register field

MAXCNT register field

MAXCNT register field

UART register summary and offsets

UART register summary and offsets

Electrical characteristics table for gain error, sample capacitance, input resistance, and ADC performance.

Electrical characteristics table for gain error, sample capacitance, input resistance, and ADC performance.

Register bit-field table for Reset 0x00000000 with over-read character field.

Register bit-field table for Reset 0x00000000 with over-read character field.

Register bit-field table for interrupt enable fields.

Register bit-field table for interrupt enable fields.

TWI master signal pin and drive-strength table.

TWI master signal pin and drive-strength table.

Operation jitter table for counter and compare functions.

Operation jitter table for counter and compare functions.

Register bit-field table for STOPPED event publishing configuration.

Register bit-field table for STOPPED event publishing configuration.

PCLK16M, LFCLK, prescaler, counter, CC[0], and COMPARE[0] timing

PCLK16M, LFCLK, prescaler, counter, CC[0], and COMPARE[0] timing

PRESCALER register field and clock division values

PRESCALER register field and clock division values

EVENTS_TICK register field and event generation settings

EVENTS_TICK register field and event generation settings

TA CQ versus maximum source resistance

TA CQ versus maximum source resistance

SPI master signal pin direction and output values

SPI master signal pin direction and output values

STARTED register field and interrupt enable settings

STARTED register field and interrupt enable settings

Security and read/write/execute protection violation table

Security and read/write/execute protection violation table

Flash address space regions and SPU access control diagram

Flash address space regions and SPU access control diagram

Register bit-field table for AMOUNT

Register bit-field table for AMOUNT

Register bit-field table for EVENTS_SEQSTARTED

Register bit-field table for EVENTS_SEQSTARTED

Register bit-field table for LOOPSDONE event publishing

Register bit-field table for LOOPSDONE event publishing

Register bit-field table for SUSPENDED event publishing

Register bit-field table for SUSPENDED event publishing

PIN secure attribute register bit-field table

PIN secure attribute register bit-field table

PDM clock ratio register bit-field table

PDM clock ratio register bit-field table

LFCLK startup and counter timing diagram

LFCLK startup and counter timing diagram

ADC register and offset table

ADC register and offset table

SPIM EasyDMA data path with GPIO pins and RAM buffers

SPIM EasyDMA data path with GPIO pins and RAM buffers

SPIM shortcut configuration register bit-field table

SPIM shortcut configuration register bit-field table

Register bit-field table for LIST

Register bit-field table for LIST

Symbol, type, and description table

Symbol, type, and description table

GPIO pin control and security block diagram

GPIO pin control and security block diagram

TWI bus connection with master, slaves, and pull-up resistors

TWI bus connection with master, slaves, and pull-up resistors

Register bit-field table for LIST

Register bit-field table for LIST

Register bit-field table for compare and polarity settings

Register bit-field table for compare and polarity settings

Register list with offsets and descriptions

Register list with offsets and descriptions

ID register bit-field description

ID register bit-field description

SPI instance base-address table

SPI instance base-address table

Register fields for DPPI event publishing

Register fields for DPPI event publishing

EVENTS_SEQEND register field

EVENTS_SEQEND register field

PTR register field description

PTR register field description

GPIO port permission register bit fields

GPIO port permission register bit fields

DPPI permission register bit fields

DPPI permission register bit fields

PDM signal and pin mapping table

PDM signal and pin mapping table

PWM signal and pin mapping table

PWM signal and pin mapping table

Region and lock register bit fields

Region and lock register bit fields

ARM TrustZone status register bit field

ARM TrustZone status register bit field

Register A bit-field definition for END_ACQUIRE

Register A bit-field definition for END_ACQUIRE

Register fields for channel selection and subscription enable

Register fields for channel selection and subscription enable

Register A AMOUNT field definition

Register A AMOUNT field definition

SPI timing diagram for CPOL and CPHA modes

SPI timing diagram for CPOL and CPHA modes

Register field definition for TASKS_STOP

Register field definition for TASKS_STOP

Channel types and register clusters

Channel types and register clusters

Register field table for alignment configuration

Register field table for alignment configuration

Register field table for data pointer

Register field table for data pointer

Register field table for pin connection control

Register field table for pin connection control

Input waveform crossing high and low channel thresholds

Input waveform crossing high and low channel thresholds

Register status table for I2C transfer errors

Register status table for I2C transfer errors

Register status table for key-slot selection and access blocking

Register status table for key-slot selection and access blocking

Extracted datasheet image part_02_0dcdbb67e4c299d94d961b4bfe7e8ac91a9f9edf89a22f35cf3874cd83a2eb8c.jpg.

Extracted datasheet image part_02_0dcdbb67e4c299d94d961b4bfe7e8ac91a9f9edf89a22f35cf3874cd83a2eb8c.jpg.

Extracted datasheet image part_02_1d8a4a7396c658d3b628bfcf9a5b868f372ad668fcd5fcd2e0214e5e87e5798d.jpg.

Extracted datasheet image part_02_1d8a4a7396c658d3b628bfcf9a5b868f372ad668fcd5fcd2e0214e5e87e5798d.jpg.

Extracted datasheet image part_02_12e14d6993ffc368d389c4c38cd477047cb2715c90421ba59eead4b7fe4c250d.jpg.

Extracted datasheet image part_02_12e14d6993ffc368d389c4c38cd477047cb2715c90421ba59eead4b7fe4c250d.jpg.

Extracted datasheet image part_02_089fe60f0f4efe95c855b9e187f0f1a44841a6ffd202b884779b37f9b2f60c45.jpg.

Extracted datasheet image part_02_089fe60f0f4efe95c855b9e187f0f1a44841a6ffd202b884779b37f9b2f60c45.jpg.

Extracted datasheet image part_02_1005efb411c8d16eb1187edc7a3e288d39f68d25cb3f34a835517324634158b8.jpg.

Extracted datasheet image part_02_1005efb411c8d16eb1187edc7a3e288d39f68d25cb3f34a835517324634158b8.jpg.

Extracted datasheet image part_02_d0bd27561daf5a37fb7d3d8760176170b689e4a28f1548bb93c47d1deb3f260b.jpg.

Extracted datasheet image part_02_d0bd27561daf5a37fb7d3d8760176170b689e4a28f1548bb93c47d1deb3f260b.jpg.

Register bit-field table for SHUTDOWN subscription control

Register bit-field table for SHUTDOWN subscription control

Register bit-field table for resolution selection

Register bit-field table for resolution selection

Register bit-field table for STARTED, STOPPED, and END interrupts

Register bit-field table for STARTED, STOPPED, and END interrupts

ADC input source resistance and TACQ sampling circuit

ADC input source resistance and TACQ sampling circuit

Register bit-field table for RAM region permissions

Register bit-field table for RAM region permissions

UART EasyDMA receive and transmit block diagram

UART EasyDMA receive and transmit block diagram

Register bit-field table for DPPI channel publishing

Register bit-field table for DPPI channel publishing

Register bit-field table for channel limit interrupt controls

Register bit-field table for channel limit interrupt controls

TWI register summary with offsets and descriptions

TWI register summary with offsets and descriptions

Shortcut configuration register bit fields

Shortcut configuration register bit fields

EasyDMA data pointer register bit-field table

EasyDMA data pointer register bit-field table

TWI register summary for publishing, interrupts, frequency, and buffers

TWI register summary for publishing, interrupts, frequency, and buffers

EasyDMA RXD and TXD data flow

EasyDMA RXD and TXD data flow

Register field EVENTS_ENDTX

Register field EVENTS_ENDTX

Interrupt enable register fields

Interrupt enable register fields

PWM clock period and compare timing

PWM clock period and compare timing

START task subscription configuration

START task subscription configuration

WRITE and READ interrupt enable fields

WRITE and READ interrupt enable fields

PWM period event register field

PWM period event register field

ADC configuration register fields

ADC configuration register fields

Left output gain register field

Left output gain register field

Task stop command register

Task stop command register

PREPARERX subscription configuration

PREPARERX subscription configuration

Acquired event register field

Acquired event register field

PDM module enable register field

PDM module enable register field

RTC frequency equation

RTC frequency equation

SPI semaphore acquisition task register field

SPI semaphore acquisition task register field

RAM access security violation event register

RAM access security violation event register

STARTED, STOPPED, and END interrupt enable register fields

STARTED, STOPPED, and END interrupt enable register fields

KEYSLOT_REVOKED and KEYSLOT_ERROR interrupt fields

KEYSLOT_REVOKED and KEYSLOT_ERROR interrupt fields

Key slot state and permission table

Key slot state and permission table

Register bit-field table for EVENTS_STOPPED

Register bit-field table for EVENTS_STOPPED

PWM sequence decoder and wave counter block diagram

PWM sequence decoder and wave counter block diagram

Register bit-field table for EVENTS_RXSTARTED

Register bit-field table for EVENTS_RXSTARTED

Register bit-field table for EVENTS_SUSPENDED

Register bit-field table for EVENTS_SUSPENDED

Register bit-field table for EVENTS_TXSTARTED

Register bit-field table for EVENTS_TXSTARTED

TWI and CPU line timing sequence

TWI and CPU line timing sequence

Register bit-field table for PIN and CONNECT

Register bit-field table for PIN and CONNECT

Channel and register cluster mapping

Channel and register cluster mapping

Register bit-field table for CHIDX and EN

Register bit-field table for CHIDX and EN

SPIS electrical timing specifications

SPIS electrical timing specifications

Register offset and description table

Register offset and description table

Register bit fields for DPPI subscription configuration

Register bit fields for DPPI subscription configuration

Register bit fields for DPPI event publishing configuration

Register bit fields for DPPI event publishing configuration

Register bit fields for event interrupt enables

Register bit fields for event interrupt enables

Register bit field selecting counter direction

Register bit field selecting counter direction

RTC peripheral register summary

RTC peripheral register summary

SPI slave register summary

SPI slave register summary

Register fields CHIDX and EN for ACQUIRED event publishing

Register fields CHIDX and EN for ACQUIRED event publishing

Register fields CHIDX and EN for NEXTSTEP subscription

Register fields CHIDX and EN for NEXTSTEP subscription

Register bit-field table showing enable setting

Register bit-field table showing enable setting

Interrupt enable register fields for event notifications

Interrupt enable register fields for event notifications

PDM operation and clock-edge configuration fields

PDM operation and clock-edge configuration fields

PIN and CONNECT configuration register fields

PIN and CONNECT configuration register fields

TWI TASKS_RESUME register field

TWI TASKS_RESUME register field

TWI EVENTS_STARTED register field

TWI EVENTS_STARTED register field

PDM instance base-address and TrustZone mapping table

PDM instance base-address and TrustZone mapping table

Timer instance base-address and TrustZone mapping table

Timer instance base-address and TrustZone mapping table

TWI ADDRESS register field

TWI ADDRESS register field

DPPIC channel publishing configuration register

DPPIC channel publishing configuration register

Register field table for TASKS_NEXTSTEP

Register field table for TASKS_NEXTSTEP

Register field table for EVENTS_OVRFLW

Register field table for EVENTS_OVRFLW

Register field table for DPPI channel publishing

Register field table for DPPI channel publishing

Interrupt enable register field table

Interrupt enable register field table

PWM peripheral instance base address table

PWM peripheral instance base address table

Register field table for TASKS_SUSPEND

Register field table for TASKS_SUSPEND

TWIM timing characteristics table

TWIM timing characteristics table

Interrupt control register field table

Interrupt control register field table

MCKFREQ master clock frequency register table

MCKFREQ master clock frequency register table

User information configuration register functional view

User information configuration register functional view

RATIO register field value table

RATIO register field value table

TWIM frequency register field table

TWIM frequency register field table

TASKS_CLEAR register map

TASKS_CLEAR register map

RESULT.PTR memory layout

RESULT.PTR memory layout

Operation modes and RAM allocation

Operation modes and RAM allocation

Task subscription control register

Task subscription control register

Application MCU security and bus interconnect

Application MCU security and bus interconnect

PTR data pointer register

PTR data pointer register

CTS, TXD, and Lifeline transmission timing

CTS, TXD, and Lifeline transmission timing

EVENTS_RXSTARTED register field

EVENTS_RXSTARTED register field

AMOUNT register field

AMOUNT register field

EVENTS_KEYSLOT_ERROR register field

EVENTS_KEYSLOT_ERROR register field

Event routing disable register fields

Event routing disable register fields

TASKS_SHUTDOWN register field

TASKS_SHUTDOWN register field

Register fields PIN and CONNECT with reset value 0xFFFFFFFF

Register fields PIN and CONNECT with reset value 0xFFFFFFFF

Register field EVENTS_STARTED with reset value 0x00000000

Register field EVENTS_STARTED with reset value 0x00000000

Register field MAXCNT with reset value 0x00000000

Register field MAXCNT with reset value 0x00000000

Register field EVENTS_WRITE with reset value 0x00000000

Register field EVENTS_WRITE with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register fields CHIDX and EN with reset value 0x00000000

Register field EVENTS_END with reset value 0x00000000

Register field EVENTS_END with reset value 0x00000000

Register bit-field table for EVENTS_END

Register bit-field table for EVENTS_END

Secure system block diagram

Secure system block diagram

Register bit-field table for REGION and LOCK

Register bit-field table for REGION and LOCK

Interrupt control register bit-field table

Interrupt control register bit-field table

Register bit-field table for EVENTS_CALIBRATEDONE

Register bit-field table for EVENTS_CALIBRATEDONE

SPIM signal timing specifications

SPIM signal timing specifications

Register bit-field table for reset register 0x00000000

Register bit-field table for reset register 0x00000000

Channel, type, and register cluster table

Channel, type, and register cluster table

Register bit-field table for LOAD and MODE fields

Register bit-field table for LOAD and MODE fields

Timing relationships for PCLK16M, LFCLK, PRESC, COUNTER, CLEAR, CC[0], and COMPARE[0]

Timing relationships for PCLK16M, LFCLK, PRESC, COUNTER, CLEAR, CC[0], and COMPARE[0]

SPIM timing and bit-rate specifications

SPIM timing and bit-rate specifications

Decoder load modes distributing compare blocks to COMP outputs

Decoder load modes distributing compare blocks to COMP outputs

Channel types and register clusters

Channel types and register clusters

Register bit-field definition for event routing

Register bit-field definition for event routing

TWI task, event, and publish register offsets

TWI task, event, and publish register offsets

TWI transaction timing and CPU pipeline control

TWI transaction timing and CPU pipeline control

LIST register bit-field definition

LIST register bit-field definition

Security and read/write/execute protection violations

Security and read/write/execute protection violations

PDM register summary with register names, offsets, and descriptions

PDM register summary with register names, offsets, and descriptions

TWI transaction and CPU timeline showing stretch, suspend, resume, and stop events

TWI transaction and CPU timeline showing stretch, suspend, resume, and stop events

TASKS_START register bit-field definition

TASKS_START register bit-field definition

TASKS_SUSPEND register bit-field definition

TASKS_SUSPEND register bit-field definition

CLK and DIN waveform showing repeated read intervals

CLK and DIN waveform showing repeated read intervals

Event publishing register bit-field definition

Event publishing register bit-field definition

Register fields for CLEAR task subscription

Register fields for CLEAR task subscription

Register fields for LASTTX event publishing

Register fields for LASTTX event publishing

Register fields for PREPARETX task subscription

Register fields for PREPARETX task subscription

Loop counter PWM sequence timing diagram

Loop counter PWM sequence timing diagram

Channel secure attribute register

Channel secure attribute register

TXD data pointer register field

TXD data pointer register field

Oversampling control register field table

Oversampling control register field table

Countertop comparator timing waveform

Countertop comparator timing waveform

Events end register field table

Events end register field table

SPI signal pin direction table

SPI signal pin direction table

UART receiver start task register field table

UART receiver start task register field table

CLK and DATA connection to nRFxxxxx

CLK and DATA connection to nRFxxxxx

I2C SCL and SDA timing waveform

I2C SCL and SDA timing waveform

Register field PTR reset-value table

Register field PTR reset-value table

Register field ONESHOTEN configuration table

Register field ONESHOTEN configuration table

Register field CNT configuration table

Register field CNT configuration table

Timer block diagram with prescaler and timer core

Timer block diagram with prescaler and timer core

Register interrupt limit fields CH0–CH5

Register interrupt limit fields CH0–CH5

Register field TASKS_STOP

Register field TASKS_STOP

Register field with disabled and enabled values

Register field with disabled and enabled values

Interrupt enable register fields

Interrupt enable register fields

DPPI publishing configuration register

DPPI publishing configuration register

DPPI publishing configuration for CH[n].LIMIT

DPPI publishing configuration for CH[n].LIMIT

Transmit buffer maximum count register

Transmit buffer maximum count register

Register bit-field table for EVENTS_LASTTX

Register bit-field table for EVENTS_LASTTX

UART instance base address and TrustZone access table

UART instance base address and TrustZone access table

Register bit-field table for event publishing configuration

Register bit-field table for event publishing configuration

TrustZone region and Cortex-M security ID table

TrustZone region and Cortex-M security ID table

Register bit-field table for EVENTS_STARTED

Register bit-field table for EVENTS_STARTED

Register bit-field table for COMPARE

Register bit-field table for COMPARE

Security check and subscription routing for DPPI channels

Security check and subscription routing for DPPI channels

Interrupt enable register fields

Interrupt enable register fields

DPPI subscription configuration register

DPPI subscription configuration register

Prescaler calculation example

Prescaler calculation example

Events read status register field

Events read status register field

Keyslot event interrupt enable register

Keyslot event interrupt enable register

Register bit-field table for the PTR data pointer field

Register bit-field table for the PTR data pointer field

CLK and DATA connections between an external circuit and nRFxxxx

CLK and DATA connections between an external circuit and nRFxxxx

SPI mode clock polarity and phase table

SPI mode clock polarity and phase table

I2C SCL and SDA timing waveform

I2C SCL and SDA timing waveform

Register bit-field table for DPPI publishing configuration

Register bit-field table for DPPI publishing configuration

PCLK16M STOP timing relative to LFCLK and counter

PCLK16M STOP timing relative to LFCLK and counter

PWM register list with offsets and descriptions

PWM register list with offsets and descriptions

Register bit-field table for over-read and overflow status

Register bit-field table for over-read and overflow status

Register bit-field table for conversion completion event

Register bit-field table for conversion completion event

Register bit-field table for low and high limits

Register bit-field table for low and high limits

Timing diagram showing PCLK16M, LFCLK, counter, start, and compare signals

Timing diagram showing PCLK16M, LFCLK, counter, start, and compare signals

Register bit-field table for task subscription configuration

Register bit-field table for task subscription configuration

Register bit-field table for DPPI error publishing

Register bit-field table for DPPI error publishing

Register bit-field table for task capture

Register bit-field table for task capture

ADC electrical characteristics table

ADC electrical characteristics table

Register bit-field table for key slot selection

Register bit-field table for key slot selection

Register bit-field table for TWI error event

Register bit-field table for TWI error event

KMU secure APB access and write-only key register block diagram

KMU secure APB access and write-only key register block diagram

CLK and DIN timing waveform

CLK and DIN timing waveform

Register fields for DPPI STOP subscription

Register fields for DPPI STOP subscription

Register fields for DPPI RAMACCERR publishing

Register fields for DPPI RAMACCERR publishing

Register interrupt enable fields

Register interrupt enable fields

Register fields for DPPI OVRFLW publishing

Register fields for DPPI OVRFLW publishing

SPI task resume register field

SPI task resume register field

Register field MCKEN with reset value 0x00000001

Register field MCKEN with reset value 0x00000001

Register fields PIN and CONNECT with reset value 0xFFFFFFFF

Register fields PIN and CONNECT with reset value 0xFFFFFFFF

Interrupt enable register fields for stopped, error, and transfer events

Interrupt enable register fields for stopped, error, and transfer events

PTR register field for receive buffer Data RAM start address

PTR register field for receive buffer Data RAM start address

Event routing register fields TICK, OVRFLW, and COMPARE

Event routing register fields TICK, OVRFLW, and COMPARE

TASKS_TRIGOVRFLW task register

TASKS_TRIGOVRFLW task register

Register bit-field table for AMOUNT

Register bit-field table for AMOUNT

SPI peripheral register summary

SPI peripheral register summary

Register bit fields for START subscription

Register bit fields for START subscription

Register bit field for ERASEALL status

Register bit field for ERASEALL status

Register bit field for debugger data

Register bit field for debugger data

Register bit fields for trace address range control

Register bit fields for trace address range control

Register bit map for EVENT field

Register bit map for EVENT field

Register bit map for EVENTS_ENDTX

Register bit map for EVENTS_ENDTX

Register fields for IDLE and PMSTABLE

Register fields for IDLE and PMSTABLE

Register fields for ViewData include and exclude comparators

Register fields for ViewData include and exclude comparators

Register bit map for EVENT_SEL

Register bit map for EVENT_SEL

MCU subsystem debug and bus interconnect block diagram

MCU subsystem debug and bus interconnect block diagram

Register bit-field table for EVENTS_ERROR

Register bit-field table for EVENTS_ERROR

Register protection mechanism summary

Register protection mechanism summary

Register bit-field table for AMOUNT

Register bit-field table for AMOUNT

nRF91 application and NR+ device block diagram

nRF91 application and NR+ device block diagram

Preprogrammed firmware version description table

Preprogrammed firmware version description table

Register bit-field table for EVENTS_RXDRDY

Register bit-field table for EVENTS_RXDRDY

Register bit-field table for Reset 0x00000008

Register bit-field table for Reset 0x00000008

Register bit-field table for Reset 0x00000000

Register bit-field table for Reset 0x00000000

Package mechanical drawing with numbered pins and exposed pads

Package mechanical drawing with numbered pins and exposed pads

Register bit-field table for Reset 0x0000000F

Register bit-field table for Reset 0x0000000F

RF transmitter electrical characteristics table

RF transmitter electrical characteristics table

Register bit-field table for tracing control fields

Register bit-field table for tracing control fields

Register reset value and START/STOP comparator fields

Register reset value and START/STOP comparator fields

SECUREAPPROTECT force-protection register field

SECUREAPPROTECT force-protection register field

Component type identification register fields

Component type identification register fields

External trace input selection register field

External trace input selection register field

Trace unit stall, discard, and overflow control fields

Trace unit stall, discard, and overflow control fields

Wafer production lot identifier description

Wafer production lot identifier description

Register bit-field table for reset value 0x00000000

Register bit-field table for reset value 0x00000000

Register bit-field table for trace and FIFO capabilities

Register bit-field table for trace and FIFO capabilities

Register bit-field table for CLAIMCLR

Register bit-field table for CLAIMCLR

Register bit-field table for component revision fields

Register bit-field table for component revision fields

Register bit-field table for counter reload value

Register bit-field table for counter reload value

Operating conditions table

Operating conditions table

Register bit map for RAM write pointer

Register bit map for RAM write pointer

Register bit map with reset values

Register bit map with reset values

Register fields for forward and backward trace events

Register fields for forward and backward trace events

Device identifier notation table

Device identifier notation table

Register fields for trigger acknowledgements

Register fields for trigger acknowledgements

Register fields for port size selection

Register fields for port size selection

Register field PATCOUNT with reset value 0x00000000

Register field PATCOUNT with reset value 0x00000000

Register fields MAJOR and SUB identifying the component type

Register fields MAJOR and SUB identifying the component type

Register fields for debug feature implementation status

Register fields for debug feature implementation status

Pin assignment table for pins 92 through 113

Pin assignment table for pins 92 through 113

Register field for claim-bit implementation and setting

Register field for claim-bit implementation and setting

Register bit layout showing reset values

Register bit layout showing reset values

Register bit field LEVEL and threshold settings

Register bit field LEVEL and threshold settings

Register fields POWER and STICKYPD

Register fields POWER and STICKYPD

Register fields CHIDX and EN

Register fields CHIDX and EN

Register field TIMEOUT

Register field TIMEOUT

Register field PROCEL

Register field PROCEL

Register interrupt enable fields

Register interrupt enable fields

Reset lock access register bit fields

Reset lock access register bit fields

Reset register fields for MII input status

Reset register fields for MII input status

nRF91 application and LTE modem architecture

nRF91 application and LTE modem architecture

DPPI publishing configuration register fields

DPPI publishing configuration register fields

RF receiver electrical characteristics

RF receiver electrical characteristics

Trigger counter multiplier register field

Trigger counter multiplier register field

Register bit-field table for integration mode enable

Register bit-field table for integration mode enable

Register bit-field table for pin selection and connection

Register bit-field table for pin selection and connection

Register bit-field table for debug security settings

Register bit-field table for debug security settings

Register bit-field table for trace data pin connection

Register bit-field table for trace data pin connection

Pin assignment table for nRF9151 SiP

Pin assignment table for nRF9151 SiP

Register bit-field table for system reset control

Register bit-field table for system reset control

Trace port speed register field and values

Trace port speed register field and values

APPROTECT software disable register field

APPROTECT software disable register field

ETB trace RAM data read register

ETB trace RAM data read register

APPROTECT force enable register field

APPROTECT force enable register field

Trace status register fields

Trace status register fields

Transmit buffer maximum byte count register

Transmit buffer maximum byte count register

Fragment of a character or code mapping table

Fragment of a character or code mapping table

Vendor code description table

Vendor code description table

Reset register bit-field definition

Reset register bit-field definition

ID filtering register bit-field definition

ID filtering register bit-field definition

Interrupt enable register bit-field definitions

Interrupt enable register bit-field definitions

Register summary with offsets and descriptions

Register summary with offsets and descriptions

Watchdog register map with offsets and descriptions

Watchdog register map with offsets and descriptions

Modem state and MAGPIO timing sequence

Modem state and MAGPIO timing sequence

Lock Access Register bit-field description

Lock Access Register bit-field description

AFVALID and ATREADY register bit-field description

AFVALID and ATREADY register bit-field description

JEDEC identity register fields

JEDEC identity register fields

Voltage and operating temperature specifications

Voltage and operating temperature specifications

Claim tag set register field definition

Claim tag set register field definition

Register bit layout header

Register bit layout header

Data pointer register field

Data pointer register field

Data register field definition

Data register field definition

Trigger counter status register fields

Trigger counter status register fields

Product part-code abbreviation table

Product part-code abbreviation table

RF operating characteristics table

RF operating characteristics table

Trace unit enable register field

Trace unit enable register field

ATB multiplexing and clock relationship register fields

ATB multiplexing and clock relationship register fields

Nordic Semiconductor packaging label

Nordic Semiconductor packaging label

Trace trigger counter register field

Trace trigger counter register field

Register bit layout with reset value

Register bit layout with reset value

Register bit layout with zero reset value

Register bit layout with zero reset value

Register fields CHIDX and EN

Register fields CHIDX and EN

Register bit layout with zero reset value

Register bit layout with zero reset value

Register fields for include and exclude range selection

Register fields for include and exclude range selection

Register fields for trigger and flush control

Register fields for trigger and flush control

Register fields for pin selection and connection control

Register fields for pin selection and connection control

Lock status register bit-field table

Lock status register bit-field table

Debugger transmit data register table

Debugger transmit data register table

ATID register bit-field table

ATID register bit-field table

SECUREAPPROTECT disable register table

SECUREAPPROTECT disable register table

Empty register bit layout

Empty register bit layout

Lock access register table

Lock access register table

UARTE timing and baud-rate specifications

UARTE timing and baud-rate specifications

Register reset value and ERASEALL field definition

Register reset value and ERASEALL field definition

Debug and trace classification register fields

Debug and trace classification register fields

Maximum antenna gain by LTE band

Maximum antenna gain by LTE band

Peripheral instance base address and TrustZone access

Peripheral instance base address and TrustZone access

Register bit-number and reset-value header

Register bit-number and reset-value header

BAUDRATE register field and baud-rate values

BAUDRATE register field and baud-rate values

Debug implementation status register fields

Debug implementation status register fields

Architecture identification register fields

Architecture identification register fields

GNSS sensitivity, timing, and positioning accuracy specifications

GNSS sensitivity, timing, and positioning accuracy specifications

ATVALID and ATREADY output control register fields

ATVALID and ATREADY output control register fields

CoreSight trace component routing diagram

CoreSight trace component routing diagram

Extracted datasheet image part_03_cfc9153a14c5c59c3003c2f891fbc70f13d90d1df8d22ace7e0027618dcc1283.jpg.

Extracted datasheet image part_03_cfc9153a14c5c59c3003c2f891fbc70f13d90d1df8d22ace7e0027618dcc1283.jpg.

Extracted datasheet image part_03_60d0b4b052c9ec0dd2d84be517e254f68555f3acab3ac034c674fe8dd39b86bf.jpg.

Extracted datasheet image part_03_60d0b4b052c9ec0dd2d84be517e254f68555f3acab3ac034c674fe8dd39b86bf.jpg.

Extracted datasheet image part_03_fa9f7144127b76efae2b254712aba3c24049da5cad1dea0cd24dde6627dac445.jpg.

Extracted datasheet image part_03_fa9f7144127b76efae2b254712aba3c24049da5cad1dea0cd24dde6627dac445.jpg.

Extracted datasheet image part_03_2d32b553400bc6eb06bc8d40594db31df338f07be9001dd8d8c82a33fdf524a1.jpg.

Extracted datasheet image part_03_2d32b553400bc6eb06bc8d40594db31df338f07be9001dd8d8c82a33fdf524a1.jpg.

Extracted datasheet image part_03_4bfae321e1fbc8f2e753d4096bae7dd2bc1346598335268cf2c5323c1d68cc4e.jpg.

Extracted datasheet image part_03_4bfae321e1fbc8f2e753d4096bae7dd2bc1346598335268cf2c5323c1d68cc4e.jpg.

Extracted datasheet image part_03_701f737ac349fcd6609c18fc09cfa007d056b5518f9bb54d623dc0778ace6591.jpg.

Extracted datasheet image part_03_701f737ac349fcd6609c18fc09cfa007d056b5518f9bb54d623dc0778ace6591.jpg.

Register summary table with debug and peripheral identification registers

Register summary table with debug and peripheral identification registers

Register bit-field table for PRMBL_3

Register bit-field table for PRMBL_3

Register bit-field table for PORTNUM

Register bit-field table for PORTNUM

Register bit-field table for TrigCount

Register bit-field table for TrigCount

Register bit-field table for RXDATA

Register bit-field table for RXDATA

Register bit-field table for FRAMING and BREAK error flags

Register bit-field table for FRAMING and BREAK error flags

Register field EVENTS_CTS and reset value

Register field EVENTS_CTS and reset value

Register fields OVERRUN and PARITY

Register fields OVERRUN and PARITY

Register fields APPROT​​ECT and SECUREAPPROTECT

Register fields APPROT​​ECT and SECUREAPPROTECT

TIMEOUT interrupt enable register field

TIMEOUT interrupt enable register field

Trace pin and connection configuration fields

Trace pin and connection configuration fields

Component type identification fields

Component type identification fields

ACCESS register bit-field definition

ACCESS register bit-field definition

Watchdog timer instance address and access table

Watchdog timer instance address and access table

RR register enable bit-field definition

RR register enable bit-field definition

Register reset value and bit layout

Register reset value and bit layout

NSID register bit-field definition

NSID register bit-field definition

EVENTS_TXDDRDY event status bit-field definition

EVENTS_TXDDRDY event status bit-field definition

Register bit field table for PIN and CONNECT

Register bit field table for PIN and CONNECT

Peripheral instance base address table

Peripheral instance base address table

Register bit field table for trace event controls

Register bit field table for trace event controls

Register bit layout with reset value

Register bit layout with reset value

Register bit field table for receiver timeout events

Register bit field table for receiver timeout events

Register access control bit field table

Register access control bit field table

Register bit-field table for reset value 0x00000000

Register bit-field table for reset value 0x00000000

Register bit-field table for claim bits

Register bit-field table for claim bits

Register bit-field table for trace start and stop inputs

Register bit-field table for trace start and stop inputs

Register bit-field table for trigger input status

Register bit-field table for trigger input status

Debugger access port state sequence

Debugger access port state sequence

Register bit-field table for reload request status

Register bit-field table for reload request status

Extracted datasheet image part_03_64a9e17caaa5464e45f43fc158a12c133ec83982d4cfffacbdf448008b4108cf.jpg.

Extracted datasheet image part_03_64a9e17caaa5464e45f43fc158a12c133ec83982d4cfffacbdf448008b4108cf.jpg.

Extracted datasheet image part_03_e26d8f4bfc9af6d4e179ec6b8071f305680cb656b263ba98b6dac4f746be3aba.jpg.

Extracted datasheet image part_03_e26d8f4bfc9af6d4e179ec6b8071f305680cb656b263ba98b6dac4f746be3aba.jpg.

Extracted datasheet image part_03_324dde59ffb36e982d10873af8e1b3263a99dc74250b3967cca1341b487477a6.jpg.

Extracted datasheet image part_03_324dde59ffb36e982d10873af8e1b3263a99dc74250b3967cca1341b487477a6.jpg.

Extracted datasheet image part_03_d104d94df97496453ae71fbe5e8857eac4bdc38277a0b4187ddd248a49aaca68.jpg.

Extracted datasheet image part_03_d104d94df97496453ae71fbe5e8857eac4bdc38277a0b4187ddd248a49aaca68.jpg.

Extracted datasheet image part_03_17b1c6b563fe9b6331b34000654518fcd877dc0f5b207d11cc7d04e6af82e6fb.jpg.

Extracted datasheet image part_03_17b1c6b563fe9b6331b34000654518fcd877dc0f5b207d11cc7d04e6af82e6fb.jpg.

Extracted datasheet image part_03_dba41f8f8f75d31a1a43aec2b6884116d5dcab59cc08a9367df5021d4f4abd6d.jpg.

Extracted datasheet image part_03_dba41f8f8f75d31a1a43aec2b6884116d5dcab59cc08a9367df5021d4f4abd6d.jpg.

Extracted datasheet image part_03_cb13d8a78de900b4e3526433291ce46dae220a82019e6c02af04786d95a84559.jpg.

Extracted datasheet image part_03_cb13d8a78de900b4e3526433291ce46dae220a82019e6c02af04786d95a84559.jpg.

Extracted datasheet image part_03_ebe22ca02e00446f1aeee6e0436892a1db920edd5862212f1b488c39771659cf.jpg.

Extracted datasheet image part_03_ebe22ca02e00446f1aeee6e0436892a1db920edd5862212f1b488c39771659cf.jpg.

Extracted datasheet image part_03_74473099b828ef8fdd8ad70772f3895cb85a720e733c3d37183a52d18a7bd996.jpg.

Extracted datasheet image part_03_74473099b828ef8fdd8ad70772f3895cb85a720e733c3d37183a52d18a7bd996.jpg.

Extracted datasheet image part_03_2201c03b9993940067b457687ede71808ad3cd8062c13dc5c00a3c0c42004ebf.jpg.

Extracted datasheet image part_03_2201c03b9993940067b457687ede71808ad3cd8062c13dc5c00a3c0c42004ebf.jpg.

Extracted datasheet image part_03_6de21a031eabbc600dcdfd646e25da460935e65d6b5ab059b3721cb44a19e7f9.jpg.

Extracted datasheet image part_03_6de21a031eabbc600dcdfd646e25da460935e65d6b5ab059b3721cb44a19e7f9.jpg.

Extracted datasheet image part_03_859b2c18c0eea9f2b94e8be3568f163d4390d179a4654da12ef817847ab9f294.jpg.

Extracted datasheet image part_03_859b2c18c0eea9f2b94e8be3568f163d4390d179a4654da12ef817847ab9f294.jpg.

Part marking code fragment

Part marking code fragment

Register field table for reset register

Register field table for reset register

Register bit layout and reset value

Register bit layout and reset value

Package mechanical drawing with top, bottom, and side views

Package mechanical drawing with top, bottom, and side views

Debugging capability comparison table

Debugging capability comparison table

Register field table for task clock control

Register field table for task clock control

Register bit-field table for CHIDX and EN

Register bit-field table for CHIDX and EN

Register bit-field table for ATIDM output controls

Register bit-field table for ATIDM output controls

Register bit-field table for ID filtering

Register bit-field table for ID filtering

Register bit-field table for interrupt event controls

Register bit-field table for interrupt event controls

Register bit-field table for power-up request

Register bit-field table for power-up request

Register bit-field table for watchdog running status

Register bit-field table for watchdog running status

Reset register bit-field table with TRIGIN and FLUSHIN fields

Reset register bit-field table with TRIGIN and FLUSHIN fields

Register bit-number and reset-value table

Register bit-number and reset-value table

Register summary table for the trace unit

Register summary table for the trace unit

Reset register identification and revision fields

Reset register identification and revision fields

Modem state and RFFE device control timing sequence

Modem state and RFFE device control timing sequence

Reset register bit-field table with ATID field

Reset register bit-field table with ATID field

Extracted datasheet image part_03_704d0940026353af18825828e9ad44c6aba7f94bba85c88d0b069ba878f7a04b.jpg.

Extracted datasheet image part_03_704d0940026353af18825828e9ad44c6aba7f94bba85c88d0b069ba878f7a04b.jpg.

Extracted datasheet image part_03_3b97252bf875f298d092f1a80b113cf20673f7db08d2893582de4daffe222532.jpg.

Extracted datasheet image part_03_3b97252bf875f298d092f1a80b113cf20673f7db08d2893582de4daffe222532.jpg.

Extracted datasheet image part_03_1af5620ec6cc252af738a54f024d22bc735235b27e10a817de5af327dd25071a.jpg.

Extracted datasheet image part_03_1af5620ec6cc252af738a54f024d22bc735235b27e10a817de5af327dd25071a.jpg.

Extracted datasheet image part_03_2cf25f650e64853493f1a518e0eb9f805f130dd4fa7fea21a490af42ae4a10aa.jpg.

Extracted datasheet image part_03_2cf25f650e64853493f1a518e0eb9f805f130dd4fa7fea21a490af42ae4a10aa.jpg.

Extracted datasheet image part_03_077963d528ea7b6022dc0f4d9b8ba71f9f8e54dafa2d675636465acc62684464.jpg.

Extracted datasheet image part_03_077963d528ea7b6022dc0f4d9b8ba71f9f8e54dafa2d675636465acc62684464.jpg.

Extracted datasheet image part_03_7f411bcdce8ca00dbd7e1ba3d7ab40e5f376eb1a37c942b348b17bab261babdd.jpg.

Extracted datasheet image part_03_7f411bcdce8ca00dbd7e1ba3d7ab40e5f376eb1a37c942b348b17bab261babdd.jpg.

Extracted datasheet image part_03_9c973bd305ce93e8d39a134488c1285faf96675609cc01f37f0991aa8d3dff85.jpg.

Extracted datasheet image part_03_9c973bd305ce93e8d39a134488c1285faf96675609cc01f37f0991aa8d3dff85.jpg.

Extracted datasheet image part_03_05d2695fd9a3c223eadc20fe9cd26fb04f9b5c25434019bb700ed45956e0bf46.jpg.

Extracted datasheet image part_03_05d2695fd9a3c223eadc20fe9cd26fb04f9b5c25434019bb700ed45956e0bf46.jpg.

Extracted datasheet image part_03_35116dfaa4e6253e9812b4193062ed1fa63ddfcfc61266503097c87d66c9466d.jpg.

Extracted datasheet image part_03_35116dfaa4e6253e9812b4193062ed1fa63ddfcfc61266503097c87d66c9466d.jpg.

Extracted datasheet image part_03_0f367d9a6d74c2c3ea020d4e95ec8f3c83f28b7069496bf3d2fbfa8ae25f7f6f.jpg.

Extracted datasheet image part_03_0f367d9a6d74c2c3ea020d4e95ec8f3c83f28b7069496bf3d2fbfa8ae25f7f6f.jpg.

Extracted datasheet image part_03_e4921290b17beb7009f86d74b54754e16a7a8f30c38c6b2dbbc1795aafa897ee.jpg.

Extracted datasheet image part_03_e4921290b17beb7009f86d74b54754e16a7a8f30c38c6b2dbbc1795aafa897ee.jpg.

Extracted datasheet image part_03_354ce02a813e92c6739b25c0415bbb0b6958a57fe8f9add3ae7de023731efc23.jpg.

Extracted datasheet image part_03_354ce02a813e92c6739b25c0415bbb0b6958a57fe8f9add3ae7de023731efc23.jpg.

Extracted datasheet image part_03_ffc4f3656c4bccbc67ffa6f006dd012b9feffd58c319a4656c28f9d131fad223.jpg.

Extracted datasheet image part_03_ffc4f3656c4bccbc67ffa6f006dd012b9feffd58c319a4656c28f9d131fad223.jpg.

Extracted datasheet image part_03_54e76433bb0eb36e7b3921ffe640b604b63bcf810570a0ff0405d8feb1f36fe7.jpg.

Extracted datasheet image part_03_54e76433bb0eb36e7b3921ffe640b604b63bcf810570a0ff0405d8feb1f36fe7.jpg.

Extracted datasheet image part_03_65cf64c601d3b76cf7cb790c0904e08a9be4b65c1dc466b645916bdb8ec83e8a.jpg.

Extracted datasheet image part_03_65cf64c601d3b76cf7cb790c0904e08a9be4b65c1dc466b645916bdb8ec83e8a.jpg.

Extracted datasheet image part_03_fdbfaa9e439880e37f18e5cfd40f162a9967a07063aada0ee0c08d4bdfbb3f00.jpg.

Extracted datasheet image part_03_fdbfaa9e439880e37f18e5cfd40f162a9967a07063aada0ee0c08d4bdfbb3f00.jpg.

Extracted datasheet image part_03_b528bc8899a84f8fd24becb804ae9aa53f0a181980ff6e82cc439ad1a5f70a53.jpg.

Extracted datasheet image part_03_b528bc8899a84f8fd24becb804ae9aa53f0a181980ff6e82cc439ad1a5f70a53.jpg.

Extracted datasheet image part_03_b193e8dd5fd1e106b39140484470211d71a7362634ef86ca9a4a092fca456f93.jpg.

Extracted datasheet image part_03_b193e8dd5fd1e106b39140484470211d71a7362634ef86ca9a4a092fca456f93.jpg.

Register bit-field table for reset value 0x00000000

Register bit-field table for reset value 0x00000000

Register summary table with offsets and descriptions

Register summary table with offsets and descriptions

Register bit-field table for transmitter stopped event

Register bit-field table for transmitter stopped event

Register bit-field table for STARTTX subscription

Register bit-field table for STARTTX subscription

Register bit-field table for address range selection

Register bit-field table for address range selection

Register bit-field table for sequencer state

Register bit-field table for sequencer state

Register fields for STOPRX subscription

Register fields for STOPRX subscription

Register field for supported port sizes

Register field for supported port sizes

Watchdog sleep and halt control fields

Watchdog sleep and halt control fields

TARGETID register description and offset

TARGETID register description and offset

TASKS_FLUSHRX task register field

TASKS_FLUSHRX task register field

Register fields for CTS event publishing

Register fields for CTS event publishing

Extracted datasheet image part_03_33712c251ca08f071054c94ed7bb78c883eae8c9a6b82cd911389049e8c26b57.jpg.

Extracted datasheet image part_03_33712c251ca08f071054c94ed7bb78c883eae8c9a6b82cd911389049e8c26b57.jpg.

Extracted datasheet image part_03_19c323e20139df507a2b3112e4db633603af501f258272ef4a044268adf21259.jpg.

Extracted datasheet image part_03_19c323e20139df507a2b3112e4db633603af501f258272ef4a044268adf21259.jpg.

Extracted datasheet image part_03_e0f3d3b824dc53c481f1d452b384d9243895fe07738ada3e3daff9a3215e8f06.jpg.

Extracted datasheet image part_03_e0f3d3b824dc53c481f1d452b384d9243895fe07738ada3e3daff9a3215e8f06.jpg.

Extracted datasheet image part_03_73c04a6a170291131a21469a9f7d8ff60d37a8a76156ac4df538dfc5a5452c2e.jpg.

Extracted datasheet image part_03_73c04a6a170291131a21469a9f7d8ff60d37a8a76156ac4df538dfc5a5452c2e.jpg.

Extracted datasheet image part_03_c0471b80b2eee3193839077b52874620e6dbb51eca52267a653b0434ac366162.jpg.

Extracted datasheet image part_03_c0471b80b2eee3193839077b52874620e6dbb51eca52267a653b0434ac366162.jpg.

Extracted datasheet image part_03_e84971e012e61b9902592b5b19e352a6178eb31f62852c7dd6c37f5da8a2bfc8.jpg.

Extracted datasheet image part_03_e84971e012e61b9902592b5b19e352a6178eb31f62852c7dd6c37f5da8a2bfc8.jpg.

Extracted datasheet image part_03_c37e07297b54cbcd639903e59ade5dd301b43dcbba3ba7795766f03cbd742f49.jpg.

Extracted datasheet image part_03_c37e07297b54cbcd639903e59ade5dd301b43dcbba3ba7795766f03cbd742f49.jpg.

Extracted datasheet image part_03_0877585338c519177e2cd8c7b114ae0f20bee23abb639b5129b8523f5b4de02c.jpg.

Extracted datasheet image part_03_0877585338c519177e2cd8c7b114ae0f20bee23abb639b5129b8523f5b4de02c.jpg.

Extracted datasheet image part_03_b209a8ccd30b205a18d3240d02df1474b208b1eab13b563fadccb1e5b06b2a7b.jpg.

Extracted datasheet image part_03_b209a8ccd30b205a18d3240d02df1474b208b1eab13b563fadccb1e5b06b2a7b.jpg.

Extracted datasheet image part_03_90be9b6eb53a25c2f5e2bda33ac3c67089fc8c3c63138585ad55dd5e706d8d2e.jpg.

Extracted datasheet image part_03_90be9b6eb53a25c2f5e2bda33ac3c67089fc8c3c63138585ad55dd5e706d8d2e.jpg.

Extracted datasheet image part_03_9ba428575d39fa57b8ec93a9a49730a92d4d7c26caed1a07d9e6c07155fae5da.jpg.

Extracted datasheet image part_03_9ba428575d39fa57b8ec93a9a49730a92d4d7c26caed1a07d9e6c07155fae5da.jpg.

Extracted datasheet image part_03_0973fb9f35665df688bf060331a85d699b0a79054cbc5bbaaea13d42125085c7.jpg.

Extracted datasheet image part_03_0973fb9f35665df688bf060331a85d699b0a79054cbc5bbaaea13d42125085c7.jpg.

Extracted datasheet image part_03_baae03c3316cc01b9d0286b22f48fd930c21af24bc1d7f92175b86ceb9f10599.jpg.

Extracted datasheet image part_03_baae03c3316cc01b9d0286b22f48fd930c21af24bc1d7f92175b86ceb9f10599.jpg.

Extracted datasheet image part_03_320db8886a451002d75bae2a1c2da35618c1de48c718fdba31b36b7940d80fbb.jpg.

Extracted datasheet image part_03_320db8886a451002d75bae2a1c2da35618c1de48c718fdba31b36b7940d80fbb.jpg.

Extracted datasheet image part_03_78e23c7504a80340fa0c2ec45bb9a2c314056bd30486b6e646ecc2a3ffd845a3.jpg.

Extracted datasheet image part_03_78e23c7504a80340fa0c2ec45bb9a2c314056bd30486b6e646ecc2a3ffd845a3.jpg.

Extracted datasheet image part_03_a7241b7fbe7b2d2cecac3c0cdf8e0cf0d739f57530d66de2a60e729ba901c2cf.jpg.

Extracted datasheet image part_03_a7241b7fbe7b2d2cecac3c0cdf8e0cf0d739f57530d66de2a60e729ba901c2cf.jpg.

Extracted datasheet image part_03_151622f94e3512a2ab7f77a6135149522cf7401cec2a1cbedd22b117bbe82199.jpg.

Extracted datasheet image part_03_151622f94e3512a2ab7f77a6135149522cf7401cec2a1cbedd22b117bbe82199.jpg.

Extracted datasheet image part_03_00c4218dbffcb30575bf5b537b27ee712443a9ec2863c4e85a523079d2055f2f.jpg.

Extracted datasheet image part_03_00c4218dbffcb30575bf5b537b27ee712443a9ec2863c4e85a523079d2055f2f.jpg.

Extracted datasheet image part_03_4a31a6bf7fc8e709c4675fcdde395dc8cb0d07d41e377d4c7f44b4ae395f3697.jpg.

Extracted datasheet image part_03_4a31a6bf7fc8e709c4675fcdde395dc8cb0d07d41e377d4c7f44b4ae395f3697.jpg.

Extracted datasheet image part_03_834d630b477ef4f748f419765eea8bc3d09a602f5c8ac79947beb2dac30b15c8.jpg.

Extracted datasheet image part_03_834d630b477ef4f748f419765eea8bc3d09a602f5c8ac79947beb2dac30b15c8.jpg.

Extracted datasheet image part_03_38aa82749ceaef5e02228fb011834fe2153f7e6b4f238e091526af0be58331e0.jpg.

Extracted datasheet image part_03_38aa82749ceaef5e02228fb011834fe2153f7e6b4f238e091526af0be58331e0.jpg.

Extracted datasheet image part_03_cc23b17685d2e57620405c2bc66f1de9ec3a11ce6485dfc4cbef0109076b9d36.jpg.

Extracted datasheet image part_03_cc23b17685d2e57620405c2bc66f1de9ec3a11ce6485dfc4cbef0109076b9d36.jpg.

Extracted datasheet image part_03_69928f23ea28752bb8e9ad5afde539b48070394ac2f397ca52cdc87533643882.jpg.

Extracted datasheet image part_03_69928f23ea28752bb8e9ad5afde539b48070394ac2f397ca52cdc87533643882.jpg.

Extracted datasheet image part_03_c79a56619748439535986a980238c16fe373cc6fb25dde36bb7354adb57739be.jpg.

Extracted datasheet image part_03_c79a56619748439535986a980238c16fe373cc6fb25dde36bb7354adb57739be.jpg.

Extracted datasheet image part_03_1dd9e60d5d804acd56c35ef49d4527f007c9833074fbdda931d986d3f5c3fc8e.jpg.

Extracted datasheet image part_03_1dd9e60d5d804acd56c35ef49d4527f007c9833074fbdda931d986d3f5c3fc8e.jpg.

Extracted datasheet image part_03_8f5d3ce849049b2120b674e58e64bc23e23c510919a0a99bfe5d32fa0318e484.jpg.

Extracted datasheet image part_03_8f5d3ce849049b2120b674e58e64bc23e23c510919a0a99bfe5d32fa0318e484.jpg.

Extracted datasheet image part_03_780cea53aca95ec60df4abbe4b712c49a53cbf514185ed8c6dd03065e7966a64.jpg.

Extracted datasheet image part_03_780cea53aca95ec60df4abbe4b712c49a53cbf514185ed8c6dd03065e7966a64.jpg.

Extracted datasheet image part_03_3a8120bc8c4b8f013ba8de5652d263ef94f5d438dc6a36630f6f15e19a533aff.jpg.

Extracted datasheet image part_03_3a8120bc8c4b8f013ba8de5652d263ef94f5d438dc6a36630f6f15e19a533aff.jpg.

Extracted datasheet image part_03_fa4a5dd2ab3e4ef75a6cf48e3230040a5f39d4077f43ad910c008c6a9b67d36d.jpg.

Extracted datasheet image part_03_fa4a5dd2ab3e4ef75a6cf48e3230040a5f39d4077f43ad910c008c6a9b67d36d.jpg.

Extracted datasheet image part_03_573f3372b0821c5c400ca2c12fb09df11c8916848a3ffb0a4cf4d21760c76a17.jpg.

Extracted datasheet image part_03_573f3372b0821c5c400ca2c12fb09df11c8916848a3ffb0a4cf4d21760c76a17.jpg.

Extracted datasheet image part_03_e969caafaf5d92585c7856fca9e429fa7287b58fefb4cc07fb8139676d11faa8.jpg.

Extracted datasheet image part_03_e969caafaf5d92585c7856fca9e429fa7287b58fefb4cc07fb8139676d11faa8.jpg.

Extracted datasheet image part_03_f1c28779bbf04f0ea7bf1052e51b4e264e76a3950fbfb47b1c01a41f0628a8a1.jpg.

Extracted datasheet image part_03_f1c28779bbf04f0ea7bf1052e51b4e264e76a3950fbfb47b1c01a41f0628a8a1.jpg.

Extracted datasheet image part_03_977c9d940870fcfa93993d09219b2cfb11f0784b3210e351d03366b6f560cabd.jpg.

Extracted datasheet image part_03_977c9d940870fcfa93993d09219b2cfb11f0784b3210e351d03366b6f560cabd.jpg.

Extracted datasheet image part_03_29f981ff49af9e2a22b24f198ef155d730d3311054e889e71a1cc9caa3fa651e.jpg.

Extracted datasheet image part_03_29f981ff49af9e2a22b24f198ef155d730d3311054e889e71a1cc9caa3fa651e.jpg.

Extracted datasheet image part_03_16fa43a3c43e5a77c4a5829b4de7d7fe1c9a1278394413cdef1057791ea0412a.jpg.

Extracted datasheet image part_03_16fa43a3c43e5a77c4a5829b4de7d7fe1c9a1278394413cdef1057791ea0412a.jpg.

Extracted datasheet image part_03_46ef43e842696491baa27ec736c99b71c981ae833150f8831d4d7c057841a71f.jpg.

Extracted datasheet image part_03_46ef43e842696491baa27ec736c99b71c981ae833150f8831d4d7c057841a71f.jpg.

Extracted datasheet image part_03_e99d593b3b326220d9a44731b7484052072783b40db55756423ff7ad836e02cf.jpg.

Extracted datasheet image part_03_e99d593b3b326220d9a44731b7484052072783b40db55756423ff7ad836e02cf.jpg.

Extracted datasheet image part_03_d57cde6e4ed2453c3b25d49368368cf3e0be6fa5ab66b8421be2596edc395d5d.jpg.

Extracted datasheet image part_03_d57cde6e4ed2453c3b25d49368368cf3e0be6fa5ab66b8421be2596edc395d5d.jpg.

Extracted datasheet image part_03_813e818807051bb36785d96892a3032956ea5c1edd5a522253be92c82efaa082.jpg.

Extracted datasheet image part_03_813e818807051bb36785d96892a3032956ea5c1edd5a522253be92c82efaa082.jpg.

Extracted datasheet image part_03_60260c94cadd8a80312e5453f3a36dfd5717ac02d1675d409c91873ecddffd5f.jpg.

Extracted datasheet image part_03_60260c94cadd8a80312e5453f3a36dfd5717ac02d1675d409c91873ecddffd5f.jpg.

Extracted datasheet image part_03_72ea7f0229492504391a57e9a053c2bb04dadf09f327bc0f992d6b0842e07524.jpg.

Extracted datasheet image part_03_72ea7f0229492504391a57e9a053c2bb04dadf09f327bc0f992d6b0842e07524.jpg.

Extracted datasheet image part_03_0e92918510b3127756731e146ad3697272c4e1d3169138bf9d166b95e837dd8c.jpg.

Extracted datasheet image part_03_0e92918510b3127756731e146ad3697272c4e1d3169138bf9d166b95e837dd8c.jpg.

Extracted datasheet image part_03_2cb7fe8cc0f2ac88a924b7e67356cbc99f6414aca4ce91c0c76b4532b6ceb2e3.jpg.

Extracted datasheet image part_03_2cb7fe8cc0f2ac88a924b7e67356cbc99f6414aca4ce91c0c76b4532b6ceb2e3.jpg.

Extracted datasheet image part_03_d83c0dc0d543665f4adfb5bdd5de35075b3b120d4aaed614375fac6ae53949a8.jpg.

Extracted datasheet image part_03_d83c0dc0d543665f4adfb5bdd5de35075b3b120d4aaed614375fac6ae53949a8.jpg.

Extracted datasheet image part_03_b939394b534c3eabdb409cae977df8a1b53fe3eaebe144b3d4b6d6174444fb63.jpg.

Extracted datasheet image part_03_b939394b534c3eabdb409cae977df8a1b53fe3eaebe144b3d4b6d6174444fb63.jpg.

Extracted datasheet image part_03_59e567bea0307cb9c82dcb579c416deddc5a64557dac6d0d0ff68e9c7fc7f8ce.jpg.

Extracted datasheet image part_03_59e567bea0307cb9c82dcb579c416deddc5a64557dac6d0d0ff68e9c7fc7f8ce.jpg.

Extracted datasheet image part_03_cd8fff1a8fe7f21cbb7ca3de10759fabe47ec1d1f295bf217506bd6d56aceea4.jpg.

Extracted datasheet image part_03_cd8fff1a8fe7f21cbb7ca3de10759fabe47ec1d1f295bf217506bd6d56aceea4.jpg.

Extracted datasheet image part_03_282907a17bee0e5348e2118432964dbf7f7b292037d4cbac6dcb35b43a062a1e.jpg.

Extracted datasheet image part_03_282907a17bee0e5348e2118432964dbf7f7b292037d4cbac6dcb35b43a062a1e.jpg.

Extracted datasheet image part_03_4d007979e5907799ea6895dd0b6a3b0d92af99f5d5bd07f2f8dfcfb8edc4579f.jpg.

Extracted datasheet image part_03_4d007979e5907799ea6895dd0b6a3b0d92af99f5d5bd07f2f8dfcfb8edc4579f.jpg.

Extracted datasheet image part_03_e0615dee8ef2b776b5df494396c28d3a37e2969d6fca2b0c6c864c47f3fd6922.jpg.

Extracted datasheet image part_03_e0615dee8ef2b776b5df494396c28d3a37e2969d6fca2b0c6c864c47f3fd6922.jpg.

Extracted datasheet image part_03_cebcb983976bf164749e9ed67db743b56ca973545cdacd9790bd935d54279de4.jpg.

Extracted datasheet image part_03_cebcb983976bf164749e9ed67db743b56ca973545cdacd9790bd935d54279de4.jpg.

Extracted datasheet image part_03_48cfff9162abaafcccca220d15a434c16915917c9f1c52d8f77d9ce82dc2b4f0.jpg.

Extracted datasheet image part_03_48cfff9162abaafcccca220d15a434c16915917c9f1c52d8f77d9ce82dc2b4f0.jpg.

Extracted datasheet image part_03_77bad2553d90c2b4417cfbf472b13a846569f9f977e54b51e5256c8af127ff68.jpg.

Extracted datasheet image part_03_77bad2553d90c2b4417cfbf472b13a846569f9f977e54b51e5256c8af127ff68.jpg.

Extracted datasheet image part_03_68813b2305c5de393ea9ae4b8e829b9d5c177d89fed6a01a40156f9d9acdedd8.jpg.

Extracted datasheet image part_03_68813b2305c5de393ea9ae4b8e829b9d5c177d89fed6a01a40156f9d9acdedd8.jpg.

Extracted datasheet image part_03_da89b366d561e6f514ec302016424ad5010bd82b682d725a31949cda136328e2.jpg.

Extracted datasheet image part_03_da89b366d561e6f514ec302016424ad5010bd82b682d725a31949cda136328e2.jpg.

Extracted datasheet image part_03_f130012adc134a92406e3e093d12c76bdacb3992d91a317aeb9a64994d039ad9.jpg.

Extracted datasheet image part_03_f130012adc134a92406e3e093d12c76bdacb3992d91a317aeb9a64994d039ad9.jpg.

Extracted datasheet image part_03_fbe65f63b91ff18673e595f6f8186100a92d0811927a09f74b378d74855d4a7f.jpg.

Extracted datasheet image part_03_fbe65f63b91ff18673e595f6f8186100a92d0811927a09f74b378d74855d4a7f.jpg.

Extracted datasheet image part_03_22bde05656e99367af863a99dd9f0cab11d5aefebdfb214762afee6314ad570a.jpg.

Extracted datasheet image part_03_22bde05656e99367af863a99dd9f0cab11d5aefebdfb214762afee6314ad570a.jpg.

Extracted datasheet image part_03_928e1ec1bd97e67225c22089669854a7ada9f0fd86c9589dd02b023ebc8eaa80.jpg.

Extracted datasheet image part_03_928e1ec1bd97e67225c22089669854a7ada9f0fd86c9589dd02b023ebc8eaa80.jpg.

Extracted datasheet image part_03_fb17edb372a2cb6438aaa6cf295ebd51c78b989301ee135a49c3791c1d46d40b.jpg.

Extracted datasheet image part_03_fb17edb372a2cb6438aaa6cf295ebd51c78b989301ee135a49c3791c1d46d40b.jpg.

Extracted datasheet image part_03_b32a5dfb7a8766c1314e83ed04c5b4e270897227a4834e0813f650f5c7e24a88.jpg.

Extracted datasheet image part_03_b32a5dfb7a8766c1314e83ed04c5b4e270897227a4834e0813f650f5c7e24a88.jpg.

Extracted datasheet image part_03_b1b3c17747942f988df486cc610a138f6c9b8106a3ab2703804ba1b0f7c8f6be.jpg.

Extracted datasheet image part_03_b1b3c17747942f988df486cc610a138f6c9b8106a3ab2703804ba1b0f7c8f6be.jpg.

Extracted datasheet image part_03_55ac6804be2cb067cefea5ac7eef01ff256b018268e8615b19384c6cb8987656.jpg.

Extracted datasheet image part_03_55ac6804be2cb067cefea5ac7eef01ff256b018268e8615b19384c6cb8987656.jpg.

Extracted datasheet image part_03_f7bc0438c1e336c811b9d506b7759f54ec891a0dadb7057ca1c68e6d33ec13fb.jpg.

Extracted datasheet image part_03_f7bc0438c1e336c811b9d506b7759f54ec891a0dadb7057ca1c68e6d33ec13fb.jpg.

Extracted datasheet image part_03_847ac7ab1d1d49077cebad203e7c4477caa6caf7a49ef58f3c5ef5f264c3a868.jpg.

Extracted datasheet image part_03_847ac7ab1d1d49077cebad203e7c4477caa6caf7a49ef58f3c5ef5f264c3a868.jpg.

Extracted datasheet image part_03_7b84874e25caa6e34f8a5c216ff085f802cb6cc85d0c4c46f720db90933759bc.jpg.

Extracted datasheet image part_03_7b84874e25caa6e34f8a5c216ff085f802cb6cc85d0c4c46f720db90933759bc.jpg.

Extracted datasheet image part_03_955459ec040c3eb092ebb605655361466b77894f7ca620c36e779a734cc8c2a7.jpg.

Extracted datasheet image part_03_955459ec040c3eb092ebb605655361466b77894f7ca620c36e779a734cc8c2a7.jpg.

Extracted datasheet image part_03_7c350c4316f4b2ef55bced6f7f87effd9647cb21aca0bbbae1aa152b47155067.jpg.

Extracted datasheet image part_03_7c350c4316f4b2ef55bced6f7f87effd9647cb21aca0bbbae1aa152b47155067.jpg.

Extracted datasheet image part_03_6a5977cb61d54247e332211b97d1ac160bb073a3bf52976c541b2441d7e92bbc.jpg.

Extracted datasheet image part_03_6a5977cb61d54247e332211b97d1ac160bb073a3bf52976c541b2441d7e92bbc.jpg.

Extracted datasheet image part_03_b3d1f934de0a5f856f41cb2377ba05432f8b86e333dd3225fcce37ee524be6ab.jpg.

Extracted datasheet image part_03_b3d1f934de0a5f856f41cb2377ba05432f8b86e333dd3225fcce37ee524be6ab.jpg.

Extracted datasheet image part_03_9bcd833218f6df3a568a0b2489bf4fa518ba953b2302a1f648bde18fc18c9a6d.jpg.

Extracted datasheet image part_03_9bcd833218f6df3a568a0b2489bf4fa518ba953b2302a1f648bde18fc18c9a6d.jpg.

Extracted datasheet image part_03_e41c7c893c9c7fbbcc8b0c611d1e64cd98c39e06cde71274e65fa1036bb91ed2.jpg.

Extracted datasheet image part_03_e41c7c893c9c7fbbcc8b0c611d1e64cd98c39e06cde71274e65fa1036bb91ed2.jpg.

Extracted datasheet image part_03_68aa2f84e11d5b1a844a6a59c29ddc4a10df6fd775f770894576a2063dd39d84.jpg.

Extracted datasheet image part_03_68aa2f84e11d5b1a844a6a59c29ddc4a10df6fd775f770894576a2063dd39d84.jpg.

Extracted datasheet image part_03_59aca3d14283bdba2abf5bf1b58f238bfbd83e99920aa94915d3581cd5a316b4.jpg.

Extracted datasheet image part_03_59aca3d14283bdba2abf5bf1b58f238bfbd83e99920aa94915d3581cd5a316b4.jpg.

Extracted datasheet image part_03_175c84407201469cf89e1f7dec74cb9bc3f7e7468aa6eadcce47f3fe3ca95c20.jpg.

Extracted datasheet image part_03_175c84407201469cf89e1f7dec74cb9bc3f7e7468aa6eadcce47f3fe3ca95c20.jpg.

Extracted datasheet image part_03_f92bc16e6e78191fe3490407e3c871740dc969eecd67a72bd71bdc6a070bc587.jpg.

Extracted datasheet image part_03_f92bc16e6e78191fe3490407e3c871740dc969eecd67a72bd71bdc6a070bc587.jpg.

Extracted datasheet image part_03_3f2763b13a2720a3af3e2416a8d80677213e615a1966147b064ab65aeafc5c97.jpg.

Extracted datasheet image part_03_3f2763b13a2720a3af3e2416a8d80677213e615a1966147b064ab65aeafc5c97.jpg.

Extracted datasheet image part_03_1690e9bf77a386a97c4220ee52ce4bf4dffa3eb94b96d4f6b7765caa494724a1.jpg.

Extracted datasheet image part_03_1690e9bf77a386a97c4220ee52ce4bf4dffa3eb94b96d4f6b7765caa494724a1.jpg.

Extracted datasheet image part_03_97f9916fbf9a4baf72a393afffdb30953db748a2d1d9dd32e0e3d69365b47102.jpg.

Extracted datasheet image part_03_97f9916fbf9a4baf72a393afffdb30953db748a2d1d9dd32e0e3d69365b47102.jpg.

Extracted datasheet image part_03_2ffcded3ef3cd58cb013dc378cea100252c1c3a61d9e051dfa6c13240fdf453f.jpg.

Extracted datasheet image part_03_2ffcded3ef3cd58cb013dc378cea100252c1c3a61d9e051dfa6c13240fdf453f.jpg.

Extracted datasheet image part_03_428b9fffcb8658d684fd1e55341a35f8e7eb806a30a473f7c163f44e8cccc0f3.jpg.

Extracted datasheet image part_03_428b9fffcb8658d684fd1e55341a35f8e7eb806a30a473f7c163f44e8cccc0f3.jpg.

Extracted datasheet image part_03_0566dea9623e26c91ff0f4cf67284a281696620d1a9dcca76076206b413b5a8a.jpg.

Extracted datasheet image part_03_0566dea9623e26c91ff0f4cf67284a281696620d1a9dcca76076206b413b5a8a.jpg.

Extracted datasheet image part_03_72c935df5194a447688c744eddd0ea6603bb2404c96400ffefc7e7fe299c6cb0.jpg.

Extracted datasheet image part_03_72c935df5194a447688c744eddd0ea6603bb2404c96400ffefc7e7fe299c6cb0.jpg.

Extracted datasheet image part_03_dbc2fde81182483edca3ada79f59af15a17520a7ebb86cbdb06b2f656fe66779.jpg.

Extracted datasheet image part_03_dbc2fde81182483edca3ada79f59af15a17520a7ebb86cbdb06b2f656fe66779.jpg.

Extracted datasheet image part_03_6d95c47ff1487d16b37a804eb1e881d781637c8888143976724ee8cb785ee8fc.jpg.

Extracted datasheet image part_03_6d95c47ff1487d16b37a804eb1e881d781637c8888143976724ee8cb785ee8fc.jpg.

Extracted datasheet image part_03_d21f0fa9c1ee841d15d1c21b9746a4e88a6bbb083a1a16acc65896afefb11d98.jpg.

Extracted datasheet image part_03_d21f0fa9c1ee841d15d1c21b9746a4e88a6bbb083a1a16acc65896afefb11d98.jpg.

Extracted datasheet image part_03_94e799ee006d16c6b3e962faf96d1c952bd71fcbbc88b8098c12666c31148597.jpg.

Extracted datasheet image part_03_94e799ee006d16c6b3e962faf96d1c952bd71fcbbc88b8098c12666c31148597.jpg.

Extracted datasheet image part_03_6cc684d3ce4b46c28e70508dbcbd4d232dad5ca517de03a882ca788dcb232dad.jpg.

Extracted datasheet image part_03_6cc684d3ce4b46c28e70508dbcbd4d232dad5ca517de03a882ca788dcb232dad.jpg.

Extracted datasheet image part_03_71616d7086b7dfb85514eb12ef98a2065c8d3e0b9a4a1f9876d70546df1251c4.jpg.

Extracted datasheet image part_03_71616d7086b7dfb85514eb12ef98a2065c8d3e0b9a4a1f9876d70546df1251c4.jpg.

Extracted datasheet image part_03_df0d4804cd985186981a36492b172c7ae130156058b194208f1545d4a1c3dedc.jpg.

Extracted datasheet image part_03_df0d4804cd985186981a36492b172c7ae130156058b194208f1545d4a1c3dedc.jpg.

Extracted datasheet image part_03_0c175bffb2ca9241103bf5c9d313799b1f5af0f4136d93b2e6144c0aa563b86f.jpg.

Extracted datasheet image part_03_0c175bffb2ca9241103bf5c9d313799b1f5af0f4136d93b2e6144c0aa563b86f.jpg.

Extracted datasheet image part_03_4676f5e9364f41b1dbd2848102bdd20008be7b0e42727a0e03819ae65d76c1c5.jpg.

Extracted datasheet image part_03_4676f5e9364f41b1dbd2848102bdd20008be7b0e42727a0e03819ae65d76c1c5.jpg.

Extracted datasheet image part_03_441a7a7e05c3b3bd34d1b8e3c815cb0feb7d7688bd51004c5619e694c4d9a4dd.jpg.

Extracted datasheet image part_03_441a7a7e05c3b3bd34d1b8e3c815cb0feb7d7688bd51004c5619e694c4d9a4dd.jpg.

Extracted datasheet image part_03_21580ebea9b315b8108ec890db499a6ce3abb7d1941fb469fa32d9e2803c7cb4.jpg.

Extracted datasheet image part_03_21580ebea9b315b8108ec890db499a6ce3abb7d1941fb469fa32d9e2803c7cb4.jpg.

Extracted datasheet image part_03_b53061643753d3cf39cbd3f4de9f1cf483a82d8e57c4350d9966e1167a47f321.jpg.

Extracted datasheet image part_03_b53061643753d3cf39cbd3f4de9f1cf483a82d8e57c4350d9966e1167a47f321.jpg.

Extracted datasheet image part_03_4b359492f42c7fb398d5dfad8738a192cd5170490c43011360cb9b32b36e96d4.jpg.

Extracted datasheet image part_03_4b359492f42c7fb398d5dfad8738a192cd5170490c43011360cb9b32b36e96d4.jpg.

Extracted datasheet image part_03_13ded6920ce71403707fec0ee72263a547709846f0a63661b252201e237b024c.jpg.

Extracted datasheet image part_03_13ded6920ce71403707fec0ee72263a547709846f0a63661b252201e237b024c.jpg.

Extracted datasheet image part_03_e3e28d4f68d1fc57e66c5fe42e86a06ac266b9454162bc826977e000351eee9c.jpg.

Extracted datasheet image part_03_e3e28d4f68d1fc57e66c5fe42e86a06ac266b9454162bc826977e000351eee9c.jpg.

Extracted datasheet image part_03_2f94160ca58eae276c16a3aee98d140d7ee96fda80c52c1f2265265473cc00ea.jpg.

Extracted datasheet image part_03_2f94160ca58eae276c16a3aee98d140d7ee96fda80c52c1f2265265473cc00ea.jpg.

Extracted datasheet image part_03_c1840b0cfd52fc96a5744d74988550bfd0c0e4b86f615e1f7e1d8e764a07c129.jpg.

Extracted datasheet image part_03_c1840b0cfd52fc96a5744d74988550bfd0c0e4b86f615e1f7e1d8e764a07c129.jpg.

Extracted datasheet image part_03_d8151808d83ace15141cb2a989386ce161bf7aa664d76c13773c59b9422dea29.jpg.

Extracted datasheet image part_03_d8151808d83ace15141cb2a989386ce161bf7aa664d76c13773c59b9422dea29.jpg.

Extracted datasheet image part_03_a6d6c166411cb72df541a4dcb4cc99ab928116ff4c0278e836bf4ddcac4ee04c.jpg.

Extracted datasheet image part_03_a6d6c166411cb72df541a4dcb4cc99ab928116ff4c0278e836bf4ddcac4ee04c.jpg.

Extracted datasheet image part_03_8a7438f55be40615acc006741c82bde5a4dc27c64aab61c75907e1db35a5e234.jpg.

Extracted datasheet image part_03_8a7438f55be40615acc006741c82bde5a4dc27c64aab61c75907e1db35a5e234.jpg.

Extracted datasheet image part_03_b145aedd2fce078bfc6ea125fadbcb89ea91604b01803fb06fa571390714d581.jpg.

Extracted datasheet image part_03_b145aedd2fce078bfc6ea125fadbcb89ea91604b01803fb06fa571390714d581.jpg.

Extracted datasheet image part_03_f6a9c8ef9d96a27638deb04b6688842721f3f10ba99765035d89b974c0e1ba24.jpg.

Extracted datasheet image part_03_f6a9c8ef9d96a27638deb04b6688842721f3f10ba99765035d89b974c0e1ba24.jpg.

Extracted datasheet image part_03_92004feb17f773fbbcbe3c162727af50752c7fc62b4bfea2d87d308d5e7f1568.jpg.

Extracted datasheet image part_03_92004feb17f773fbbcbe3c162727af50752c7fc62b4bfea2d87d308d5e7f1568.jpg.

Extracted datasheet image part_03_6961115dda61a0acc34708fa71e64d104e824d433542138151939e016a5e74f9.jpg.

Extracted datasheet image part_03_6961115dda61a0acc34708fa71e64d104e824d433542138151939e016a5e74f9.jpg.

Extracted datasheet image part_03_144dce441a81c1feeeaa6eb8af2ac4b369d2dd412aab9ad0fdd63ad60011e905.jpg.

Extracted datasheet image part_03_144dce441a81c1feeeaa6eb8af2ac4b369d2dd412aab9ad0fdd63ad60011e905.jpg.

Extracted datasheet image part_03_c014b3322223c7da190066920c7ebb9c3ddbf873b410f5162b550b9153e272b2.jpg.

Extracted datasheet image part_03_c014b3322223c7da190066920c7ebb9c3ddbf873b410f5162b550b9153e272b2.jpg.

Extracted datasheet image part_03_a357961948642f78518ac79e2c6580bea65a16aa1e72029dcd4bedf45c9ff560.jpg.

Extracted datasheet image part_03_a357961948642f78518ac79e2c6580bea65a16aa1e72029dcd4bedf45c9ff560.jpg.

Extracted datasheet image part_03_31ccb444569df4ea9d82f4dc0edb91bdc5e5ce3b9eaa89c49990d25ada8c6391.jpg.

Extracted datasheet image part_03_31ccb444569df4ea9d82f4dc0edb91bdc5e5ce3b9eaa89c49990d25ada8c6391.jpg.

Extracted datasheet image part_03_316834cba4259d5029100e2fa6f0be358e6f44796fc1adeb079583908a0795f5.jpg.

Extracted datasheet image part_03_316834cba4259d5029100e2fa6f0be358e6f44796fc1adeb079583908a0795f5.jpg.

Extracted datasheet image part_03_63eb8105f55c4d4d23135d964e00d835f46e33c2c58f9659a5e957d0d215f472.jpg.

Extracted datasheet image part_03_63eb8105f55c4d4d23135d964e00d835f46e33c2c58f9659a5e957d0d215f472.jpg.

Extracted datasheet image part_03_2a3a3bddf0c1eb54dd8c5f015d1f949ab5247bd7ad3ab13089c3bda71b1bc2e3.jpg.

Extracted datasheet image part_03_2a3a3bddf0c1eb54dd8c5f015d1f949ab5247bd7ad3ab13089c3bda71b1bc2e3.jpg.

Extracted datasheet image part_03_c04bc81c1ebfe99572ec81055d9f0d0a4427200479e971aa6be828d489eddee6.jpg.

Extracted datasheet image part_03_c04bc81c1ebfe99572ec81055d9f0d0a4427200479e971aa6be828d489eddee6.jpg.

Extracted datasheet image part_03_b8423500227e74e01caf36793a12b9820ba283743c1792f0382eba23c6c2742e.jpg.

Extracted datasheet image part_03_b8423500227e74e01caf36793a12b9820ba283743c1792f0382eba23c6c2742e.jpg.

Extracted datasheet image part_03_d7c720ce739c9b510446b12adc606aef96930df87a6a802d2dbc61a520732678.jpg.

Extracted datasheet image part_03_d7c720ce739c9b510446b12adc606aef96930df87a6a802d2dbc61a520732678.jpg.

Extracted datasheet image part_03_6e4f36a0cf704e43c306b7c37ada2fe67fc93ebf4134618c1f7250fbbefa1ef8.jpg.

Extracted datasheet image part_03_6e4f36a0cf704e43c306b7c37ada2fe67fc93ebf4134618c1f7250fbbefa1ef8.jpg.

Extracted datasheet image part_03_5c6d2269519cef4604ed832a16e24a1fb3f4003275a3caaa4087845a30202d53.jpg.

Extracted datasheet image part_03_5c6d2269519cef4604ed832a16e24a1fb3f4003275a3caaa4087845a30202d53.jpg.

Extracted datasheet image part_03_4e88287e294b116f8577f6b55cc49f2a35f4f5bce35e34a6462b95b21ecc9171.jpg.

Extracted datasheet image part_03_4e88287e294b116f8577f6b55cc49f2a35f4f5bce35e34a6462b95b21ecc9171.jpg.

Extracted datasheet image part_03_7d343c1fbfa290459d69aef031436e85f0f643e8d568cbb0356cfc6919b7cbeb.jpg.

Extracted datasheet image part_03_7d343c1fbfa290459d69aef031436e85f0f643e8d568cbb0356cfc6919b7cbeb.jpg.

Extracted datasheet image part_03_0d120db4c51dca01d3832fd3bb6d95fcc1f11bca370c8e3cf3f0df3ae1469172.jpg.

Extracted datasheet image part_03_0d120db4c51dca01d3832fd3bb6d95fcc1f11bca370c8e3cf3f0df3ae1469172.jpg.

Extracted datasheet image part_03_a65c224af28dee22c7ae16546f5116bf57d8a0801508cd575a42e4bdc97e3a05.jpg.

Extracted datasheet image part_03_a65c224af28dee22c7ae16546f5116bf57d8a0801508cd575a42e4bdc97e3a05.jpg.

Extracted datasheet image part_03_c757a2595617b1411a95a33713c5d3bbce7a2ca33ca46b46d03de6bd27d09d39.jpg.

Extracted datasheet image part_03_c757a2595617b1411a95a33713c5d3bbce7a2ca33ca46b46d03de6bd27d09d39.jpg.

Extracted datasheet image part_03_2621404009720ae06023c9385c8fbaf37bd4dfda66bbf8c0116198e6ea9cb090.jpg.

Extracted datasheet image part_03_2621404009720ae06023c9385c8fbaf37bd4dfda66bbf8c0116198e6ea9cb090.jpg.

Extracted datasheet image part_03_050f4550a4d3ef4fbdeef6def59b9267bcf0f710c52a5c594110500efe0dcfdd.jpg.

Extracted datasheet image part_03_050f4550a4d3ef4fbdeef6def59b9267bcf0f710c52a5c594110500efe0dcfdd.jpg.

Extracted datasheet image part_03_af9fa7f8bb51e59b320a474f2dc45ac34f2a4aaf3c80df1a4e829a5ee6572665.jpg.

Extracted datasheet image part_03_af9fa7f8bb51e59b320a474f2dc45ac34f2a4aaf3c80df1a4e829a5ee6572665.jpg.

Extracted datasheet image part_03_530581bb855e734b84734cf476362fa76abae2b31e5d825c7085601f1ef960d5.jpg.

Extracted datasheet image part_03_530581bb855e734b84734cf476362fa76abae2b31e5d825c7085601f1ef960d5.jpg.

Extracted datasheet image part_03_694d649cadcc8a367963e31fffe6a5368b6dd4c038de1389c22147eadb36507b.jpg.

Extracted datasheet image part_03_694d649cadcc8a367963e31fffe6a5368b6dd4c038de1389c22147eadb36507b.jpg.

Extracted datasheet image part_03_bdd463adf7b1a1a65bde5a74a3006bd42e27b114349b6c61e665de0a30dbced8.jpg.

Extracted datasheet image part_03_bdd463adf7b1a1a65bde5a74a3006bd42e27b114349b6c61e665de0a30dbced8.jpg.

Extracted datasheet image part_03_316d02c8dff86f56d476bd0c15bf16717a7ec28f07ee2371bb5f265909d10d3e.jpg.

Extracted datasheet image part_03_316d02c8dff86f56d476bd0c15bf16717a7ec28f07ee2371bb5f265909d10d3e.jpg.

Extracted datasheet image part_03_96fc9f961513182a8f4a82a3423f639f83076ecf70a7df5a5f666f4a771a531f.jpg.

Extracted datasheet image part_03_96fc9f961513182a8f4a82a3423f639f83076ecf70a7df5a5f666f4a771a531f.jpg.

Extracted datasheet image part_03_cd5b3825e9d6622bad555dbc4354b8ac323f4f46b226ec0eccfd580ce40f1d3e.jpg.

Extracted datasheet image part_03_cd5b3825e9d6622bad555dbc4354b8ac323f4f46b226ec0eccfd580ce40f1d3e.jpg.

Agent APIs

Use this datasheet from any agent

Send the page, markdown, chunks, or search endpoint to ChatGPT, Claude, embedr-app, or your own tooling.