FUNCTIONAL DEVICE OPERATION
LOGIC COMMANDS AND REGISTERS
Any bits clocked out of the Serial Output (SO) pin after the
first 16 bits will be representative of the initial message bits
clocked into the SI pin since the CS pin first transitioned to a
logic [0]. This feature is useful for daisy-chaining devices as
well as message verification.
Table 20. PWM Module Selection
PWM_en (D7) CLOCK_sel (D6)
PWM module
0
1
1
X
0
1
PWM module disabled
(default)
A valid message length is determined following a CS
transition of [0] to [1]. If there is a valid message length, the
data is latched into the appropriate registers. A valid
message length is a multiple of 16 bits. At this time, the SO
pin is tri-stated and the fault status register is now able to
accept new fault status information.
PWM module enabled with
external clock from IN0
PWM module enabled with
internal calibrated clock
Bits D5:D4 allow the MCU to select one of two analog
feedbacks on the CSNS output pin, as shown in Table 21.
SO data will represent information ranging from fault
status to register contents, user selected by writing to the
STATR bits OD4, OD3, OD2, OD1, and OD0. The value of
the previous bits SOA4 and SOA3 will determine which
output the SO information applies to for the registers which
are output specific; viz., Fault, PWMR, CONFR0, CONFR1,
and OCR registers.
Table 21. CSNS Reporting Selection
TEMP_en CSNS_en
CSNS reporting
(D5)
(D4)
0
0
1
CSNS tri-stated (default)
X
current recopy of selected output (D3:2]
bits)
Note that the SO data will continue to reflect the
information for each output (depending on the previous
SOA4, SOA3 state) that was selected during the most recent
STATR write until changed with an updated STATR write.
1
0
temperature on GND flag
Table 22. Output Current Recopy Selection
The output status register correctly reflects the status of
the STATR-selected register data at the time that the CS is
pulled to a logic [0] during SPI communication, and/or for the
period of time since the last valid SPI communication, with
the following exception:
CSNS1 (D3) CSNS0 (D2)
CSNS reporting
0
0
1
1
0
1
0
1
HS0 (default)
HS1
• The previous SPI communication was determined to be
invalid. In this case, the status will be reported as
though the invalid SPI communication never occurred.
• The VPWR voltage is below 4.0 V, the status must be
ignored by the MCU.
HS2
HS3
The GCR register disables the over-voltage protection
(D0). When this bits is [0], the over-voltage is enabled (default
value).
SERIAL OUTPUT BIT ASSIGNMENT
ADDRESS 00111—CALIBRATION REGISTER
(CALR)
The 16 bits of serial output data depend on the previous
serial input message, as explained in the following
paragraphs. Table 23, summarizes SO returned data for bits
OD15:OD0.
The CALR register allows the MCU to calibrate internal
clock, as explained in Figure 12.
• Bit OD15 is the MSB; it reflects the state of the
Watchdog bit from the previously clocked-in message.
• Bits OD14:OD10 reflect the state of the bits
SERIAL OUTPUT COMMUNICATION (DEVICE
STATUS RETURN DATA)
SOA4:SOA0 from the previously clocked in message.
• Bit OD9 is set to logic [1] in Normal mode (NM).
• The contents of bits OD8:OD0 depend on bits D4:D0
from the most recent STATR command SOA4:SOA0
as explained in the paragraphs following Table 23.
When the CS pin is pulled low, the output register is
loaded. Meanwhile, the data is clocked out MSB- (OD15-)
first as the new message data is clocked into the SI pin. The
first sixteen bits of data clocking out of the SO, and following
a CS transition, is dependent upon the previously written SPI
word.
10XS3412
Analog Integrated Circuit Device Data
Freescale Semiconductor
37