Registers

nRF5340 Product Specification

Instances

Instance Domain Base address TrustZone Split access Description
Map Att DMA

TWIS0 : S
TWIS0 : NS

APPLICATION

0x50008000
0x40008000

US S SA No

Two-wire interface slave 0

TWIS1 : S
TWIS1 : NS

APPLICATION

0x50009000
0x40009000

US S SA No

Two-wire interface slave 1

TWIS2 : S
TWIS2 : NS

APPLICATION

0x5000B000
0x4000B000

US S SA No

Two-wire interface slave 2

TWIS3 : S
TWIS3 : NS

APPLICATION

0x5000C000
0x4000C000

US S SA No

Two-wire interface slave 3

TWIS0 NETWORK 0x41013000 HF NS NA No

Two-wire interface slave 0

Register overview

Register Offset TZ Description
TASKS_STOP 0x014

Stop TWI transaction

TASKS_SUSPEND 0x01C

Suspend TWI transaction

TASKS_RESUME 0x020

Resume TWI transaction

TASKS_PREPARERX 0x030

Prepare the TWI slave to respond to a write command

TASKS_PREPARETX 0x034

Prepare the TWI slave to respond to a read command

SUBSCRIBE_STOP 0x094

Subscribe configuration for task STOP

SUBSCRIBE_SUSPEND 0x09C

Subscribe configuration for task SUSPEND

SUBSCRIBE_RESUME 0x0A0

Subscribe configuration for task RESUME

SUBSCRIBE_PREPARERX 0x0B0

Subscribe configuration for task PREPARERX

SUBSCRIBE_PREPARETX 0x0B4

Subscribe configuration for task PREPARETX

EVENTS_STOPPED 0x104

TWI stopped

EVENTS_ERROR 0x124

TWI error

EVENTS_RXSTARTED 0x14C

Receive sequence started

EVENTS_TXSTARTED 0x150

Transmit sequence started

EVENTS_WRITE 0x164

Write command received

EVENTS_READ 0x168

Read command received

PUBLISH_STOPPED 0x184

Publish configuration for event STOPPED

PUBLISH_ERROR 0x1A4

Publish configuration for event ERROR

PUBLISH_RXSTARTED 0x1CC

Publish configuration for event RXSTARTED

PUBLISH_TXSTARTED 0x1D0

Publish configuration for event TXSTARTED

PUBLISH_WRITE 0x1E4

Publish configuration for event WRITE

PUBLISH_READ 0x1E8

Publish configuration for event READ

SHORTS 0x200

Shortcuts between local events and tasks

INTEN 0x300

Enable or disable interrupt

INTENSET 0x304

Enable interrupt

INTENCLR 0x308

Disable interrupt

ERRORSRC 0x4D0

Error source

MATCH 0x4D4

Status register indicating which address had a match

ENABLE 0x500

Enable TWIS

PSEL.SCL 0x508

Pin select for SCL signal

PSEL.SDA 0x50C

Pin select for SDA signal

RXD.PTR 0x534

RXD Data pointer

RXD.MAXCNT 0x538

Maximum number of bytes in RXD buffer

RXD.AMOUNT 0x53C

Number of bytes transferred in the last RXD transaction

RXD.LIST 0x540

EasyDMA list type

TXD.PTR 0x544

TXD Data pointer

TXD.MAXCNT 0x548

Maximum number of bytes in TXD buffer

TXD.AMOUNT 0x54C

Number of bytes transferred in the last TXD transaction

TXD.LIST 0x550

EasyDMA list type

ADDRESS[n] 0x588

TWI slave address n

CONFIG 0x594

Configuration register for the address match mechanism

ORC 0x5C0

Over-read character. Character sent out in case of an over-read of the transmit buffer.