![Analog Devices Blackfin ADSP-BF537 Скачать руководство пользователя страница 683](http://html.mh-extra.com/html/analog-devices/blackfin-adsp-bf537/blackfin-adsp-bf537_hardware-reference-manual_2939700683.webp)
ADSP-BF537 Blackfin Processor Hardware Reference
11-23
Two Wire Interface Controller
shows what the interaction between the TWI controller and
the processor might look like using this example.
Master Mode Receive
Follow these programming steps for a single master mode receive:
1. Program
TWI_MASTER_ADDR
. This defines the address transmitted
during the address phase of the transfer.
2. Program
TWI_FIFO_CTL
. Indicate if receive FIFO buffer interrupts
should occur with each byte received (8 bits) or with each 2 bytes
received (16 bits).
3. Program
TWI_INT_MASK
. Enable bits associated with the desired
interrupt sources. For 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.
4. Program
TWI_MASTER_CTL
. Ultimately this prepares and enables
master mode operation. As an example, programming the value
0x0205 enables master mode operation, generates a 7-bit address,
sets the direction to master-receive, uses standard mode timing,
and receives 8 data bytes before generating a Stop condition.
shows what the interaction between the TWI controller and
the processor might look like using this example.
Table 11-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.
Содержание Blackfin ADSP-BF537
Страница 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...