
ADSP-BF50x Blackfin Processor Hardware Reference
16-13
Two-Wire Interface Controller
Master Mode Transmit
Follow these programming steps for a single master mode transmit:
1. Program
TWI_MASTER_ADDR
. This defines the address transmitted
during the address phase of the transfer.
2. Program
TWI_XMT_DATA8
or
TWI_XMT_DATA16
. This is the initial data
transmitted. It is considered an error to complete the address phase
of the transfer and not have data available in the transmit FIFO
buffer.
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 16-3
shows what the interaction between the TWI controller and
the processor might look like using this example.
Table 16-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.
Содержание EZ-KIT Lite ADSP-BF506F
Страница 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 132: ...Unique Information for the ADSP BF50x Processor 4 22 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 342: ...Unique Information for the ADSP BF50x Processor 7 106 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 484: ...Unique Information for the ADSP BF50x Processor 10 60 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 493: ...ADSP BF50x Blackfin Processor Hardware Reference 11 9 Core Timer Unique Information for the ADSP BF50x Processor None ...
Страница 494: ...Unique Information for the ADSP BF50x Processor 11 10 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 506: ...Unique Information for the ADSP BF50x Processor 12 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 544: ...Unique Information for the ADSP BF50x Processor 13 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 712: ...Unique Information for the ADSP BF50x Processor 16 62 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 972: ...Unique Information for the ADSP BF50x Processor 20 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...