English
Language : 

SAM7S64_14 Datasheet, PDF (310/775 Pages) ATMEL Corporation – Internal High-speed Flash
29.7.1 TWI Control Register
Register Name:
TWI_CR
Access Type:
Write-only
31
30
29
–
–
–
23
22
21
–
–
–
15
14
13
–
–
–
7
6
5
SWRST
–
–
28
27
26
25
24
–
–
–
–
–
20
19
18
17
16
–
–
–
–
–
12
11
10
9
8
–
–
–
–
–
4
3
2
1
0
–
MSDIS
MSEN
STOP
START
• 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.
– 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 multiple data write operation, when both THR and shift register are empty, a STOP condition is automatically
sent.
• MSEN: TWI Master Transfer Enabled
0 = No effect.
1 = If MSDIS = 0, the master data transfer is enabled.
• MSDIS: TWI Master Transfer Disabled
0 = No effect.
1 = The master data transfer is disabled, all pending data is transmitted. The shifter and holding characters (if they contain
data) are transmitted in case of write operation. In read operation, the character being transferred must be completely
received before disabling.
• SWRST: Software Reset
0 = No effect.
1 = Equivalent to a system reset.
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
310