| Unused Bits 31 : 8
SLA Bits 7 : 1 R/W 0x0
Slave Address
7-bit addressing:
SLA6, SLA5, SLA4, SLA3, SLA2, SLA1, SLA0
10-bit addressing:
1, 1, 1, 1, 0, SLAX[9:8] GCE Bit 0 R/W 0x0
General Call Address Enable
0: Disable
1: Enable
Note
For 7-bit addressing:
SLA6 - SLA0 is the 7-bit address of the TWI in slave mode. When the TWI receives this address after a START condition, it will generate an interrupt and enter slave mode. (SLA6 corresponds to the first bit received from the TWI bus.) If GCE is set to 1 , the TWI will also recognize the general call address (00h). For 10-bit addressing:
When the address received starts with 11110b, the TWI recognizes this as the first part of a 10-bit address and if the next two bits match ADDR[2:1] (i.e. SLAX9 and SLAX8 of the device's extended address), it sends an ACK. (The device does not generate an interrupt at this point.) If the next byte of the address matches the XADDR register (SLAX7 - SLAX0), the TWI generates an interrupt and goes into slave mode. Команда U-Boot для чтения регистра md 5002000 1 md 5002400 1 md 5002800 1 md 5002c00 1 md 5003000 1 md 7081400 1
Bit fields structure
typedef union twi_addr
{
struct
{
unsigned gce : 1;
unsigned sla : 7;
unsigned unused0 : 24;
} b;
unsigned long w;
} TWI_ADDR
|
 |