
DS4830A User’s Guide
117
12.4.3.2 – SPI Configuration Register (SPICF_M)
SPI Interrupt Enable. Setting this bit to ‘1’ enables the SPI interrupt when MODF,
WCOL, ROVR or SPIC flags are set. Clearing this bit to ‘0’ disables the SPI interrupt.
In Master mode, this is used only when mode fault is enabled.
If SAS = 0, then mode fault is detected when active low is detected on MSPICS pin.
If SAS = 1, then mode fault is detected when active high is detected on MSPICS pin.
Reserved, Read Returns 0.
Character Length Bit. The CHR bit determines the character length for an SPI
transfer cycle. A character can consist of 8 or 16 bits in length. When CHR bit is ‘0’, the
character is 8 bits; when CHR is set to ‘1’, the character is 16 bits.
SPI Clock Phase Select. This bit is used with the CKPOL bit to determine the SPI
transfer format. When the CKPHA is set to ‘1’, the SPI will sample input data at an
inactive edge. When the CKPOL is cleared to 0, the SPI will sample input at an active
SPI Clock Polarity Select. This bit is used with the CKPHA bit to determine the SPI
transfer format. When the CKPOL is set to ‘1’
, the SPI uses the clock falling edge
as an active edge. When the CKPOL is cleared to 0, the SPI selects the clock rising
12.4.3.3 – SPI Clock Register (SPICK_M)
Clock Divide Ratio Bits. These bits select one of the 256 divide ratios (0 to 255) used for
the baud rate generator, with bit 7 as the most significant. The frequency of SPI baud rate
is calculated using the following equation:
SPI Baud Rate = ½ x Core Clock / (SPICK[7:0] + 1)
12.4.3.4 – SPI Data Buffer Register (SPIB_M)
*Unrestricted read, write is allowed outside of a transfer cycle; when the STBY bit is set, write is blocked and will
cause write collision error.
SPI Data Buffer Bits. Data for SPI is read from or written to this location. The serial
transmit and receive buffers are separate but both are addressed at this location.
Kommentare zu diesen Handbüchern