
Functional Description
12-12
ADSP-BF59x Blackfin Processor Hardware Reference
Table 12-2
shows what the interaction between the TWI controller and
the processor might look like using this example.
Master Mode Clock Setup
Master mode operation is set up and executed on a per-transfer basis. An
example of programming steps for a receive and for a transmit are given
separately in following sections. The clock setup programming step listed
here is common to both transfer types.
• Program
TWI_CLKDIV
. This defines the clock high duration and
clock low duration.
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.
Table 12-2. Slave Mode Setup Interaction
TWI Controller Master
Processor
Interrupt: SINIT – Slave transfer in progress.
Acknowledge: Clear interrupt source bits.
Interrupt: RCVFULL – Receive buffer is full.
Read receive FIFO buffer.
Acknowledge: Clear interrupt source bits.
...
...
Interrupt: SCOMP – Slave transfer complete.
Read receive FIFO buffer.
Acknowledge: Clear interrupt source bits.
Содержание 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...