SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 438

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
Figure 27-8. PDC Status Register Flags Behavior
27.7.3.3
27.7.3.4
438
438
(from master)
(from slave)
TXEMPTY
SAM3N
SAM3N
RXBUFF
TXBUFE
ENDRX
ENDTX
NPCS0
SPCK
MOSI
MISO
Clock Generation
Transfer Delays
The SPI Baud rate clock is generated by dividing the Master Clock (MCK), by a value between 1
and 255.
This allows a maximum operating baud rate at up to Master Clock and a minimum operating
baud rate of MCK divided by 255.
Programming the SCBR field at 0 is forbidden. Triggering a transfer while SCBR is at 0 can lead
to unpredictable results.
At reset, SCBR is 0 and the user has to program it at a valid value before performing the first
transfer.
The divisor can be defined independently for each chip select, as it has to be programmed in the
SCBR field of the Chip Select Registers. This allows the SPI to automatically adapt the baud
rate for each interfaced peripheral without reprogramming.
Figure 27-9
select. Three delays can be programmed to modify the transfer waveforms:
These delays allow the SPI to be adapted to the interfaced peripherals and their speed and bus
release time.
• The delay between chip selects, programmable only once for all the chip selects by writing
• The delay before SPCK, independently programmable for each chip select by writing the field
• The delay between consecutive transfers, independently programmable for each chip select
MSB
the DLYBCS field in the Mode Register. Allows insertion of a delay between release of one
chip select and before assertion of a new one.
DLYBS. Allows the start of SPCK to be delayed after the chip select has been asserted.
by writing the DLYBCT field. Allows insertion of a delay between two transfers occurring on
the same chip select
MSB
6
6
5
5
shows a chip select transfer change and consecutive transfers on the same chip
4
4
1
3
3
2
2
1
1
LSB
LSB
MSB
MSB
6
6
5
5
4
4
2
3
3
2
2
1
1
LSB
LSB
MSB
MSB
6
6
5
5
3
4
4
3
3
2
2
1
1
LSB
LSB
11011A–ATARM–04-Oct-10
11011A–ATARM–04-Oct-10

Related parts for SAM3N0C