Functional Description
16-12
ADSP-BF50x Blackfin Processor Hardware Reference
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.
Table 16-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.
Table 16-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.
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...