ADUC812 Analog Devices, ADUC812 Datasheet - Page 26

no-image

ADUC812

Manufacturer Part Number
ADUC812
Description
Precision Analog Microcontroller: 1.3MIPS 8052 MCU + 8kB Flash + 8-Ch 12-Bit ADC + Dual 12-Bit DAC
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC812

Mcu Core
8052
Mcu Speed (mips)
1.3
Sram (bytes)
256Bytes
Gpio Pins
34
Adc # Channels
8

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC812BCP
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC812BS
Manufacturer:
AD
Quantity:
2 197
Part Number:
ADUC812BS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Company:
Part Number:
ADUC812BS
Quantity:
2 500
Part Number:
ADUC812BSZ
Manufacturer:
ADI
Quantity:
2 400
Part Number:
ADUC812BSZ
Manufacturer:
AD
Quantity:
3
Part Number:
ADUC812BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC812BSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Company:
Part Number:
ADUC812BSZ
Quantity:
2 500
Part Number:
ADUC812BSZ-REEL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC812XS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
ADuC812
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.
SCLOCK (Serial Clock I/O Pin)
The master serial clock (SCLOCK) is used to synchronize the
data being transmitted and received through the MOSI and MISO
data lines. A single data bit is transmitted and received in each
SCLOCK period. Therefore, a byte is transmitted/received after
eight SCLOCK periods. The SCLOCK pin is configured as an
output in master mode and as an input in slave mode. In master
mode, the bit rate, polarity, and phase of the clock are controlled
by the CPOL, CPHA, SPR0, and SPR1 bits in the SPICON SFR
(see Table XI). In slave mode, the SPICON register will have to
be configured with the phase and polarity (CPHA and CPOL) of
the expected input clock. In both master and slave modes, the
SPICON
SFR Address
Power-On Default Value
Bit Addressable
Bit
7
6
5
4
3
2
1
0
*The CPOL and CPHA bits should both contain the same values for master and slave devices.
I
S
P
I
Name
ISPI
WCOL
SPE
SPIM
CPOL*
CPHA*
SPR1
SPR0
W
C
O
L
SPI Control
Register
F8H
OOH
Yes
SPI Interrupt Bit.
Write Collision Error Bit.
SPI Interface Enable Bit.
SPI Master/Slave Mode Select Bit.
SPI Bit Rate Select Bits.
These bits select the SCLOCK rate (bit rate) in Master mode as follows:
Description
Set by MicroConverter at the end of each SPI transfer.
Cleared directly by user code or indirectly by reading the SPIDAT SFR.
Set by MicroConverter if SPIDAT is written to while an SPI transfer is in progress.
Cleared by user code.
Set by user to enable the SPI interface.
Cleared by user to enable I
Set by user to enable Master mode operation (SCLOCK is an output).
Cleared by user to enable Slave mode operation (SCLOCK is an input).
Clock Polarity Select Bit.
Set by user if SCLOCK idles high.
Cleared by user if SCLOCK idles low.
Clock Phase Select Bit.
Set by user if leading SCLOCK edge is to transmit data.
Cleared by user if trailing SCLOCK edge is to transmit data.
SPR1
0
0
1
1
In SPI Slave mode, i.e., SPIM = 0, the logic level on the external SS pin can be read
via the SPR0 bit.
S
P
E
Table XI. SPICON SFR Bit Designations
SPR0
0
1
0
1
S
P
I
M
Selected Bit Rate
f
f
f
f
OSC
OSC
OSC
OSC
/4
/8
/32
/64
2
–26–
C interface.
data is transmitted on one edge of the SCLOCK signal and
sampled on the other. It is important therefore that the CPHA
and CPOL are configured the same for the master and slave
devices.
SS (Slave Select Input Pin)
The Slave Select (SS) input pin is shared with the ADC5 input.
To configure this pin as a digital input, the bit must be cleared,
e.g., CLR P1.5.
This line is active low. Data is only received or transmitted in
slave mode when the SS pin is low, allowing the ADuC812 to
be used in single master, multislave SPI configurations. If
CPHA = 1, then the SS input may be permanently pulled low.
With CPHA = 0, the SS input must be driven low before the
first bit in a byte wide transmission or reception, and return
high again after the last bit in that byte wide transmission or
reception. In SPI Slave mode, the logic level on the external SS
pin can be read via the SPR0 bit in the SPICON SFR. The follow-
ing SFR registers are used to control the SPI interface.
C
P
O
L
C
P
H
A
S
P
R
1
S
P
R
0
REV. E

Related parts for ADUC812