
ADSP-BF59x Blackfin Processor Hardware Reference
12-13
Two Wire Interface Controller
3. Program
TWI_FIFO_CTL
. Indicate if transmit FIFO buffer interrupts
should occur with each byte transmitted (8-bits) or with each two
bytes transmitted (16-bits).
4. Program
TWI_INT_MASK
. Enable bits associated with the desired
interrupt sources. As an example, programming the value 0x0030
results in an interrupt output to the processor in the event that the
master transfer completes, and the master transfer has an error.
5. Program
TWI_MASTER_CTL
. Ultimately this prepares and enables
master mode operation. As an example, programming the value
0x0201 enables master mode operation, generates a 7-bit address,
sets the direction to master-transmit, uses standard mode timing,
and transmits 8 data bytes before generating a Stop condition.
Table 12-3
shows what the interaction between the TWI controller and
the processor might look like using this example.
Table 12-3. Master Mode Transmit Setup Interaction
TWI Controller Master
Processor
Interrupt: XMTEMPTY – Transmit buffer is
empty.
Write transmit FIFO buffer.
Acknowledge: Clear interrupt source bits.
...
...
Interrupt: MCOMP – Master transfer com-
plete.
Acknowledge: Clear interrupt source bits.
Summary of Contents for ADSP-BF59x Blackfin
Page 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Page 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Page 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Page 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Page 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...