aduc7032 Analog Devices, Inc., aduc7032 Datasheet - Page 112

no-image

aduc7032

Manufacturer Part Number
aduc7032
Description
Microconverter Integrated, Precision Battery Sensor
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
aduc7032BSTZ
Manufacturer:
ADI
Quantity:
314
Part Number:
aduc7032BSTZ 8NS
Manufacturer:
AD
Quantity:
566
Part Number:
aduc7032BSTZ-88
Manufacturer:
CIRRUS
Quantity:
9
Part Number:
aduc7032BSTZ-88
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
aduc7032BSTZ-88
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
aduc7032BSTZ-88-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
aduc7032BSTZ-88-RL
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
aduc7032BSTZ-8V-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Preliminary Technical Data
SERIAL PERIPHERAL INTERFACE
The ADuC7032 features a complete hardware Serial Peripheral
Interface (SPI) on-chip. SPI is an industry standard
synchronous serial interface which allows eight bits of data to
be synchronously transmitted and received simultaneously, i.e.,
full duplex.
The SPI interface is only operational with core clock divider bits
(POWCON[2:0]= 0 or 1).
The SPI Port can be configured for Master or Slave operation
and consists of four pins, which are multiplexed with four
GPIO. The four SPI pins are MISO, MOSI, SCLK and SS . The
pins to which this signals are connected are shown in Table 77.
Pin
GP0 ( GPIO MODE 1 )
GP1 ( GPIO MODE 1 )
GP2 ( GPIO MODE 1 )
GP3 ( GPIO MODE 1 )
These signals are described in detail below.
MISO (Master In, Slave Out Data I/O Pin)
The MISO (master in slave out) pin is configured as an input
line in master mode and an output line in slave mode. The
MISO line on the master (data in) should be connected to the
MISO line in the slave device (data out). The data is transferred
as byte wide (8-bit) serial data, MSB first.
MOSI (Master Out, Slave In Pin)
The MOSI (master out slave in) pin is configured as an output
line in master mode and an input line in slave mode.
The MOSI line on the master (data out) should be connected to
the MOSI line in the slave device (data in). The data is
transferred as byte wide (8-bit) serial data, MSB first.
SCLK (Serial Clock I/O Pin)
The master serial clock (SCLK) is used to synchronize the data
being transmitted and received through the MOSI SCLK
period. Therefore, a byte is transmitted/received after eight
SCLK periods. The SCLK pin is configured as an output in
master mode and as an input in slave mode.
In master mode polarity and phase of the clock are controlled
by the SPICON register, and the bit-rate is defined in the
Table 77 : SPI Output Pins
Signal
SS
SCLK
MISO
MOSI
Description
Chip Select
Serial Clock
Master Out, Slave In
Master In, Slave Out
Rev. PrD | Page 112 of 128
SPIDIV register as follow:
The maximum speed of the SPI clock is dependant on the clock
divider bits and is summarized in Table 78.
In slave mode, the SPICON register must be configured with
the phase and polarity of the expected input clock. The slave
accepts data from an external master up to 5.12 Mb at CD = 0.
The formula to determine the maximum speed is as follow:
In both master and slave modes, data is transmitted on one edge
of the SCL signal and sampled on the other. Therefore, it is
important that the polarity and phase are configured the same
for the master and slave devices.
Chip Select (SS ) Input Pin
In SPI Slave Mode, a transfer is initiated by the assertion of SS
which is an active low input signal. The SPI port will then
transmit and receive 8-bit data until the transfer is concluded by
de-assertion of SS . In slave mode SS is always an input.
SPI registers definition
The following MMR registers are used to control the SPI
interface:
- SPICON: 16-bit control register
- SPISTA: 8-bit read only status register
- SPIDIV: 8-bit serial clock divider register
- SPITX: 8-bit write only transmit register
- SPIRX: 8-bit read only receive register
Table 78: SPI speed vs. clock divider bits in master mode
CD bits
SPIDIV
Max SCLK (MHz)
Equation 4 : Maximum Receive Baud Rate
f
Equation 3 : SPI Baud Rate Calculation
serialcloc
k
f
serialcloc
2
20
1 (
k
.
48
SPIDIV
0
0x05
1.667
MHz
f
HCLK
4
ADuC7032
1
0x0B
0.833
)

Related parts for aduc7032