EasyManua.ls Logo

Analog Devices SHARC ADSP-21368 User Manual

Analog Devices SHARC ADSP-21368
894 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #559 background imageLoading...
Page #559 background image
ADSP-21368 SHARC Processor Hardware Reference 12-15
Two Wire Interface Controller
Programming Examples
The following sections include programming examples for general setup,
slave mode, and master mode, as well as guidance for repeated start condi-
tions. For an example of programming the TWI using the digital
peripheral interface and SRU2, see “Configuring the Two Wire Interface”
on page 4-73.
General Setup
General setup refers to register writes that are required for both slave
mode and master mode operation. General setup should be performed
before either the master or slave enable bits are set.
Programs should enable the TWI controller through the TWIMITR register
and set the prescale value. Program the prescale value to the binary repre-
sentation of f
PCLK
/10 MHz.
All values should be rounded up to the next whole number. The TWIEN
enable bit must be set. Note that once the TWI controller is enabled, a
bus busy condition may be detected.
Slave Mode
When enabled, slave mode supports both receive and transmit data trans-
fers. It is not possible to enable only one data transfer direction and not
acknowledge (NAK) the other. This is reflected in the following setup.
1. Program the
TWISADDR register. The appropriate 7 bits are used in
determining a match during the address phase of the transfer in
case of 7-bit addressing.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Analog Devices SHARC ADSP-21368 and is the answer not in the manual?

Analog Devices SHARC ADSP-21368 Specifications

General IconGeneral
ArchitectureSHARC
Core ProcessorADSP-21368
Core Clock Speed400 MHz
Serial Ports1
SPORTs4
SPI Ports1
I2C Ports1
Timers2
DMA Channels14
Operating Voltage - Core1.2 V
Operating Voltage - I/O3.3 V
Data Bus Width32-bit
Operating Temperature-40°C to +85°C
Number of Cores1
Audio ProcessingYes
PackageLQFP

Related product manuals