Product Specs

Table Of Contents
34 TWIS I
2
C compatible two-wire interface
slave with EasyDMA
Page
325
34.9 Registers
Table 78: Instances
Base address
Peripheral
Instance
Description
Configuration
0x40003000
TWIS
TWIS0
Two-wire interface slave 0
0x40004000
TWIS
TWIS1
Two-wire interface slave 1
Table 79: Register Overview
Register
Offset
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
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
SHORTS
0x200
Shortcut register
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
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
ADDRESS[0]
0x588
TWI slave address 0
ADDRESS[1]
0x58C
TWI slave address 1
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.
34.9.1 SHORTS
Address offset: 0x200
Shortcut register
Bit number
Id
Reset 0x00000000
31 30
0 0
29
0
28
0
27
0
26
0
25
0
24
0
23 22 21 20
0 0 0 0
19
0
18
0
17
0
16
0
15
0
14
B
0
13
A
0
12
0
11
0
10
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
Id RW Field
Value Id
Value
Description
A RW WRITE_SUSPEND
Shortcut between WRITE event and SUSPEND task
See EVENTS_WRITE and TASKS_SUSPEND
Disabled
0
Disable shortcut
Enabled
1
Enable shortcut
B RW READ_SUSPEND
Shortcut between READ event and SUSPEND task
See EVENTS_READ and TASKS_SUSPEND