Registers

nRF5340 Product Specification

Instances

Instance Domain Base address TrustZone Split access Description
Map Att DMA

TWIM0 : S
TWIM0 : NS

APPLICATION

0x50008000
0x40008000

US S SA No

Two-wire interface master 0

TWIM1 : S
TWIM1 : NS

APPLICATION

0x50009000
0x40009000

US S SA No

Two-wire interface master 1

TWIM2 : S
TWIM2 : NS

APPLICATION

0x5000B000
0x4000B000

US S SA No

Two-wire interface master 2

TWIM3 : S
TWIM3 : NS

APPLICATION

0x5000C000
0x4000C000

US S SA No

Two-wire interface master 3

TWIM0 NETWORK 0x41013000 HF NS NA No

Two-wire interface master 0

Register overview

Register Offset TZ Description
TASKS_STARTRX 0x000

Start TWI receive sequence

TASKS_STARTTX 0x008

Start TWI transmit sequence

TASKS_STOP 0x014

Stop TWI transaction. Must be issued while the TWI master is not suspended.

TASKS_SUSPEND 0x01C

Suspend TWI transaction

TASKS_RESUME 0x020

Resume TWI transaction

SUBSCRIBE_STARTRX 0x080

Subscribe configuration for task STARTRX

SUBSCRIBE_STARTTX 0x088

Subscribe configuration for task STARTTX

SUBSCRIBE_STOP 0x094

Subscribe configuration for task STOP

SUBSCRIBE_SUSPEND 0x09C

Subscribe configuration for task SUSPEND

SUBSCRIBE_RESUME 0x0A0

Subscribe configuration for task RESUME

EVENTS_STOPPED 0x104

TWI stopped

EVENTS_ERROR 0x124

TWI error

EVENTS_SUSPENDED 0x148

SUSPEND task has been issued, TWI traffic is now suspended.

EVENTS_RXSTARTED 0x14C

Receive sequence started

EVENTS_TXSTARTED 0x150

Transmit sequence started

EVENTS_LASTRX 0x15C

Byte boundary, starting to receive the last byte

EVENTS_LASTTX 0x160

Byte boundary, starting to transmit the last byte

PUBLISH_STOPPED 0x184

Publish configuration for event STOPPED

PUBLISH_ERROR 0x1A4

Publish configuration for event ERROR

PUBLISH_SUSPENDED 0x1C8

Publish configuration for event SUSPENDED

PUBLISH_RXSTARTED 0x1CC

Publish configuration for event RXSTARTED

PUBLISH_TXSTARTED 0x1D0

Publish configuration for event TXSTARTED

PUBLISH_LASTRX 0x1DC

Publish configuration for event LASTRX

PUBLISH_LASTTX 0x1E0

Publish configuration for event LASTTX

SHORTS 0x200

Shortcuts between local events and tasks

INTEN 0x300

Enable or disable interrupt

INTENSET 0x304

Enable interrupt

INTENCLR 0x308

Disable interrupt

ERRORSRC 0x4C4

Error source

ENABLE 0x500

Enable TWIM

PSEL.SCL 0x508

Pin select for SCL signal

PSEL.SDA 0x50C

Pin select for SDA signal

FREQUENCY 0x524

TWI frequency. Accuracy depends on the HFCLK source selected.

RXD.PTR 0x534

Data pointer

RXD.MAXCNT 0x538

Maximum number of bytes in receive buffer

RXD.AMOUNT 0x53C

Number of bytes transferred in the last transaction

RXD.LIST 0x540

EasyDMA list type

TXD.PTR 0x544

Data pointer

TXD.MAXCNT 0x548

Maximum number of bytes in transmit buffer

TXD.AMOUNT 0x54C

Number of bytes transferred in the last transaction

TXD.LIST 0x550

EasyDMA list type

ADDRESS 0x588

Address used in the TWI transfer