CDP68HC68A2M Intersil Corporation, CDP68HC68A2M Datasheet - Page 7

no-image

CDP68HC68A2M

Manufacturer Part Number
CDP68HC68A2M
Description
CMOS Serial 10-Bit A/D Converter
Manufacturer
Intersil Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CDP68HC68A2M
Manufacturer:
MOT
Quantity:
3 000
Part Number:
CDP68HC68A2M
Manufacturer:
INTERSIL
Quantity:
20 000
Software Interface
Reading and writing to the A2 can be performed in either
single byte or multiple byte (burst) modes. Both modes begin
the same way: a positive transition is applied to CE (if CE is
high, it must first be brought low, then returned high); an
address/control byte is transferred (requires 8 clocks on SCK
and 8 bits of data on MOSI); and the first byte of data is
transferred (requires 8 clocks of SCK). In the case of single
byte mode, the transfer is complete. For multiple byte
transfers, each series of 8 pulses on SCK produces another
8-bit transfer (see Figure 3).
The format of the address/control byte is shown in Figure 4.
The most significant bit is the R/W bit. When R/W is 0, read
operations are to be performed. If R/W is 1, write operations
are to be performed. A0 through A4 specify the register to
access. Data registers are mapped to address $00 through
$0F. The Control and Status Registers are at locations $10
through $13 (See Figure 1).
When transferring multiple bytes of data, the type of transfer
- read or write - is fixed by bit seven of the initial address/
control byte. After the initial data transfer, the address will
automatically be adjusted for each subsequent transfer.
When reading Data Registers in the 8-bit mode, each read
will advance the address by two, to the next (as specified in
the CSR) active channel’s Low Data Register. In the 10-bit
mode, following a read of a High Data Register, the address
is advanced to the Low Data Register of the same channel.
Reading the Low Data Register then increments the read
address to the next (as specified in the CSR) active chan-
nel’s High Data Register. Following a read of the last (closest
to 7) active channel’s Data Register(s), the address recycles
to the first (closest to 0) active channel’s Data Register(s).
MOSI
MISO
TRANSFER CYCLE:
PHASE:
MOSI
MISO
ADDRESS: WRITE ADDR: 1
TRANSFER CYCLE:
PHASE:
FIGURE 3B. MULTIPLE (N) BYTE TRANSFER
FIGURE 3A. SINGLE BYTE TRANSFER
CE
CE
ADDRESS
(EFFICIENT DEVICE COMMUNICATION REQUIR-
ING N+1 SPI TRANSFERS)
(REQUIRES 2 SPI TRANSFERS)
BYTE
HI - Z
HI - Z
ADDRESS BYTE
1
I
BYTE
DATA
ADDR: 1
READ
DATA
1
I
2
II
DATA
ADDR: 2
DATA BYTE
READ
3
READ
2
II
DATA
HI - Z
ADDR: N
READ
CDP68HC68A2
N+1
II
HI - Z
7
When reading or writing control registers, the address will
increment to the next register after each transfer. Once
address $13 has been reached no more increments are
performed. This facilitates polling of the Status Register (SR)
which is located at address $13. If the A2 remains selected
following a read of SR, each successive 8 bit transfer will read
the SR again without; the need for an address /control byte.
Programming the CDP68HC68A2
Registers
Initializing the A2
The A2 is equipped with a power on reset circuit which
clears the MSR to all 0’s. This ensures that INT is in a high
impedance state and conversions are inhibited. The con-
tents of all other registers are unknown until explicitly initial-
ized. No other provisions are made for resetting the A2.
Systems which can be reset after power up must reset the
A2 by explicitly writing 0’s to the MSR. Designs which utilize
the INT line must be certain that the MSR is cleared, or the
A2 is initialized to a known state, before enabling interrupts.
NOTE: It is good practice to include code which initializes the A2, to
a known state, at the earliest practical point. In systems which utilize
INT, if a system reset occurs after power-up, A2 initialization code
must be executed before processor interrupts are enabled.
Address/Control Byte
The Address/Control Byte is a dual purpose word which
performs register addressing and read/write control. The
Address/Control Byte is the first byte transferred to the A2
following activation of CE. If CE is active, it must first be
brought low, then reactivated prior to transferring an
Address/Control Byte.
The most significant bit (MSB) of the Address/Control byte is
R/W. This bit is used to control the flow of data during the
subsequent SPI data transfers. If R/W is a 0, reads take
place. If R/W is a 1, writes take place. During read transfers,
data is shifted out on MISO. During writes, data is shifted in
on MOSI and MISO is held in a high impedance state.
The least significant five bits (A0 through A4) provide the
read address. Bits 5 and 6 are not required and can be sent
as either 0 or 1 (0’s are assembled throughout this
specification). When addressing Data Registers in 8-bit
mode, A0 is internally forced to a 1. Attempting to read a
High Data Register in 8-bit mode will result in a read of the
Low Data Register of the next active channel).
NOTE: CAUTION! When addressing Data Registers, the user must
ensure that the contents of the CAR match the address portion of the
Address/Control Byte. Failure to do so may result in corrupted data.
This condition is generally met in Modes 1 and 2. When running in
Mode 3 special care must be taken to meet this requirement. See fur-
ther explanation under SAR, SR, Modes, and Applications Information.
R/W
7
6
-
FIGURE 4. ADDRESS/CONTROL BYTE
5
-
A4
4
A3
3
A2
2
A1
1
A0
0

Related parts for CDP68HC68A2M