Atmel Xplained Evaluation Board AT32UC3A3-XPLD AT32UC3A3-XPLD 数据表

产品代码
AT32UC3A3-XPLD
下载
页码 1021
487
32072H–AVR32–10/2012
AT32UC3A3
23.8.8
Ten Bit Addressing
Writing a one to CMDR.TENBIT enables 10-bit addressing in hardware. Performing transfers
with 10-bit addressing is similar to transfers with 7-bit addresses, except that bits 9:7 of
CMDR.SADR must be written appropriately.
In 
 an
the grey boxes represent signals driven by the master, the
white boxes are driven by the slave.
23.8.8.1
Master Transmitter
To perform a master transmitter transfer: 
1.
Write CMDR with TENBIT=1, REPSAME=0, READ=0, START=1, STOP=1 and the 
desired address and NBYTES value.
Figure 23-14. A Write Transfer with 10-bit Addressing
23.8.8.2
Master Receiver
When using master receiver mode with 10-bit addressing, CMDR.REPSAME must also be con-
trolled. CMDR.REPSAME must be written to one when the address phase of the transfer should
consist of only 1 address byte (the 11110xx byte) and not 2 address bytes. The I²C standard
specifies that such addressing is required when addressing a slave for reads using 10-bit
addressing.
To perform a master receiver transfer: 
1.
Write CMDR with TENBIT=1, REPSAME=0, READ=0, START=1, STOP=0, 
NBYTES=0 and the desired address.
2.
Write NCMDR with TENBIT=1, REPSAME=1, READ=1, START=1, STOP=1 and the 
desired address and NBYTES value.
Figure 23-15. A Read Transfer with 10-bit Addressing
23.8.9
SMBus Mode
SMBus mode is enabled and disabled by writing to the SMEN and SMDIS bits in CR. SMBus
mode operation is similar to I²C operation with the following exceptions:
• Only 7-bit addressing can be used.
• The SMBus standard describes a set of timeout values to ensure progress and throughput on 
the bus. These timeout values must be written into SMBTR.
• Transmissions can optionally include a CRC byte, called Packet Error Check (PEC).
• A dedicated bus line, SMBALERT, allows a slave to get a master’s attention.
• A set of addresses have been reserved for protocol handling, such as Alert Response 
Address (ARA) and Host Header (HH) Address.
S
SLAVE ADDRESS
1st 7 bits
P
A
DATA
RW A1
A2
SLAVE ADDRESS
2nd byte
AA
DATA
1
1
1
1
0
X
X
0
S
SLAVE ADDRESS
1st 7 bits
P
A
DATA
RW A1
A2
SLAVE ADDRESS
2nd byte
A
DATA
1
1
1
1
0
X
X
0
Sr
SLAVE ADDRESS
1st 7 bits
RW A3
1
1
1
1
0
X
X
1