
ADSP-214xx SHARC Processor Hardware Reference
21-23
Two Wire Interface Controller
2. Program the
TWIFIFOCTL
register. Indicate if receive FIFO buffer
interrupts should occur with each byte received (8 bits) or with
each 2 bytes received (16 bits).
3. Program the
TWIIMASK
register. 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 the
TWIMCTL
register. 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-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 21-7. Master Mode Receive Setup Interaction
TWI Controller Master
Processor
Interrupt: TWIRXINT – Receive buffer has 1
or 2 bytes (according to RCVINTLEN).
Read receive FIFO buffer.
Change on the next sides always.
Interrupt Acknowledge: W1C the TWIIRPTL
register.
...
...
Interrupt: TWIMCOMP – Master transfer
complete.
Read receive FIFO buffer. Change on the next
sides always.
Interrupt Acknowledge: W1C the TWIIRPTL
register.
www.BDTIC.com/ADI
Summary of Contents for SHARC ADSP-214 Series
Page 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...