ADSP-BF537 Blackfin Processor Hardware Reference
11-29
Two Wire Interface Controller
Figure 11-10. TWI Master Mode
WRITE TO TWI_CONTROL TO SET
PRESCALE AND ENABLE THE TWI
WRITE TO TWI_CLK_DIV
DONE
WRITE DATA INTO
TWI_XMT_DATA
REGISTER
TRANSFER
DIRECTION
MERR
TRANSMIT
WRITE TO TWI_MASTER_ADDR WITH THE
ADDRESS OF THE TARGETED DEVICE
WRITE TO TWI_FIFO_CTL TO SELECT WHETHER
1 OR 2 BYTES GENERATE INTERRUPTS
WRITE TO TWI_INT_MASK TO UNMASK
TWI EVENTS TO GENERATE INTERRUPTS
WRITE TO TWI_SLAVE_CTL TO
ENABLE SLAVE FUNCTIONALITY
WAIT FOR INTERRUPTS
WRITE TWI_MASTER_CTL WITH COUNT,
MDIR CLEARED, AND MEN SET. THIS
STARTS THE TRANSFER
RECEIVE
WRITE TWI_INT_STAT
TO CLEAR INTERRUPT
INTERRUPT
SOURCE
XMTSERV
MCOMP
WRITE TWI_MASTER_CTL WITH COUNT,
MDIR SET, AND MEN SET. THIS
STARTS THE TRANSFER
WAIT FOR INTERRUPTS
INTERRUPT
SOURCE
MCOMP
RCVSERV
WRITE TWI_INT_STAT
TO CLEAR INTERRUPT
READ DATA FROM
TWI_RCV_DATA
REGISTER
WRITE TWI_INT_STAT
TO CLEAR INTERRUPT
MERR
READ TWI_MASTER_STAT TO GET ERROR CAUSE
HANDLE ERROR AS APPROPRIATE AND W1C THE
CORRESPONDING BIT IN TWI_MASTER_STAT
WRITE TWI_INT_STAT TO CLEAR MERR BIT
WAIT FOR INTERRUPTS
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...