at75c220 ATMEL Corporation, at75c220 Datasheet - Page 127

no-image

at75c220

Manufacturer Part Number
at75c220
Description
Smart Internet Appliance Processor Siap
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at75c220-C256
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at75c220-Q208
Manufacturer:
Atmel
Quantity:
10 000
Figure 33. Programmable Delays (DLYBCS, DLYBS and DLTBCT)
Clock Generation
In master mode, the SPI master clock is either ACLK or
ACLK/32, as defined by the MCK32 field of SP_MR. The
SPI baud rate clock is generated by dividing the SPI master
clock by a value between 4 and 510. The divisor is defined
in the SCBR field in each chip select register. The transfer
speed can thus be defined independently for each chip
select signal.
CPOL and NCPHA in the chip select registers define the
clock/data relationship between master and slave devices.
CPOL defines the inactive value of the SPCK. NCPHA
defines which edge causes data to change and which edge
causes data to be captured.
In slave mode, the input clock low and high pulse duration
must strictly be longer than two system clock (ACLK) peri-
ods.
Peripheral Data Controller
The SPI is closely connected to two PDC channels. One is
dedicated to the receiver. The other is dedicated to the
transmitter.
SPI Programmer’s Model
SPI Base Address: 0xFF020000.
Table 27. SPI Memory Map
Offset
0x0C
0x1C
0x00
0x04
0x08
0x10
0x14
0x18
SPCK Output
Chip Select 2
Chip Select 1
Register Name
SP_RDR
SP_TDR
SP_IMR
SP_IER
SP_IDR
SP_MR
SP_CR
SP_SR
Change peripheral
Register
Control Register
Mode Register
Receive Data Register
Transmit Data Register
Status Register
Interrupt Enable Register
Interrupt Disable Register
Interrupt Mask Register
DLYBCS
DLYBS
of peripheral
No change
The PDC channel is programmed using SP_TPR and
SP_TCR for the transmitter and SP_RPR and SP_RCR for
the receiver. The status of the PDC is given in SP_SR by
the SPENDTX bit for the transmitter and by the SPENDRX
bit for the receiver.
The pointer registers, SP_TPR and SP_RPR, are used to
store the address of the transmit or receive buffers. The
counter registers, SP_TCR and SP_RCR, are used to store
the size of these buffers.
The receiver data transfer is triggered by the RDRF bit and
the transmitter data transfer is triggered by TDRE. When a
transfer is performed, the counter is decremented and the
pointer is incremented. When the counter reaches 0, the
status bit is set (SPENDRX for the receiver, SPENDTX for
the transmitter in SP_SR) and can be programmed to gen-
erate an interrupt. While the counter is at zero, the status
bit is asserted and transfers are disabled
DLYBCT
Read/write
Write-only
Read-only
Write-only
Read-only
Write-only
Write-only
Read-only
Access
DLYBCT
Reset Value
0
0
0
0
127

Related parts for at75c220