SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 739

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
33.11.1
Name:
Address:
Access:
Reset:
• START: Send a START Condition
0 = No effect.
1 = A frame beginning with a START bit is transmitted according to the features defined in the mode register.
This action is necessary when the TWI peripheral wants to read data from a slave. When configured in Master Mode with a
write operation, a frame is sent as soon as the user writes a character in the Transmit Holding Register (TWI_THR).
• STOP: Send a STOP Condition
0 = No effect.
1 = STOP Condition is sent just after completing the current byte transmission in master read mode.
• MSEN: TWI Master Mode Enabled
0 = No effect.
1 = If MSDIS = 0, the master mode is enabled.
Note:
• MSDIS: TWI Master Mode Disabled
0 = No effect.
1 = The master mode is disabled, all pending data is transmitted. The shifter and holding characters (if it contains data) are
transmitted in case of write operation. In read operation, the character being transferred must be completely received
before disabling.
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
SWRST
– In single data byte master read, the START and STOP must both be set.
– In multiple data bytes master read, the STOP must be set after the last data received but one.
– In master read mode, if a NACK bit is received, the STOP is automatically performed.
– In master data write operation, a STOP condition will be sent after the transmission of the current data is
31
23
15
7
finished.
Switching from Slave to Master mode is only permitted when TXCOMP = 1.
TWI Control Register
TWI_CR
0x4008C000 (0), 0x40090000 (1)
Write-only
0x00000000
QUICK
30
22
14
6
SVDIS
29
21
13
5
SVEN
28
20
12
4
MSDIS
27
19
11
3
MSEN
26
18
10
2
STOP
25
17
9
1
SAM3X/A
SAM3X/A
START
24
16
8
0
739
739

Related parts for SAM3X8E