
ADSP-BF59x Blackfin Processor Hardware Reference
12-11
Two Wire Interface Controller
busy condition may be detected. This condition should clear after t
BUF
has expired assuming no additional bus activity has been detected.
Slave Mode
When enabled, slave mode operation supports both receive and transmit
data transfers. It is not possible to enable only one data transfer direction
and not acknowledge (NAK) the other. This is reflected in the following
setup.
1. Program
TWI_SLAVE_ADDR
. The appropriate 7 bits are used in deter-
mining a match during the address phase of the transfer.
2. Program
TWI_XMT_DATA8
or
TWI_XMT_DATA16
. These are the initial
data values to be transmitted in the event the slave is addressed and
a transmit is required. This is an optional step. If no data is written
and the slave is addressed and a transmit is required, the serial
clock (
SCL
) is stretched and an interrupt is generated until data is
written to the transmit FIFO.
3. Program
TWI_INT_MASK
. Enable bits are associated with the desired
interrupt sources. As an example, programming the value 0x000F
results in an interrupt output to the processor in the event that a
valid address match is detected, a valid slave transfer completes, a
slave transfer has an error, a subsequent transfer has begun yet the
previous transfer has not been serviced.
4. Program
TWI_SLAVE_CTL
. Ultimately this prepares and enables slave
mode operation. As an example, programming the value 0x0005
enables slave mode operation, requires 7-bit addressing, and indi-
cates that data in the transmit FIFO buffer is intended for slave
mode transmission.
Содержание ADSP-BF59x Blackfin
Страница 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 204: ...Unique Information for the ADSP BF59x Processor 5 104 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 345: ...ADSP BF59x Blackfin Processor Hardware Reference 9 9 Core Timer Unique Information for the ADSP BF59x Processor None...
Страница 346: ...Unique Information for the ADSP BF59x Processor 9 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 398: ...Unique Information for the ADSP BF59x Processor 11 42 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 622: ...Unique Information for the ADSP BF59x Processor 15 38 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...