FUNCTIONAL DEVICE OPERATION
PROGRAMMABILITY
FUNCTIONAL DEVICE OPERATION
PROGRAMMABILITY
INTERFACING OVERVIEW AND CONFIGURATION OPTIONS
The 13892 contains a number of programmable registers for control and communication. The majority of registers are
accessed through a SPI interface in a typical application. The same register set may alternatively be accessed with an I2C
interface that is muxed on SPI pins. The following table describes the muxed pin options for the SPI and I2C interfaces. Further
details for each interface mode follow in this chapter.
Table 7. SPI / I2C Bus Configuration
Pin Name
SPI Mode Functionality
Configuration (31), Chip Select
I2C Mode Functionality
Configuration (32)
CS
CLK
MISO
MOSI
SPI Clock
SCL: I2C bus clock
Master In, Slave Out (data output)
Master Out, Slave In (data input)
SDA: Bi-directional serial data line
A0 Address Selection (33)
Notes
31. CS held low at Cold Start configures interface for SPI mode; once activated, CS functions as the SPI Chip Select.
32. CS tied to VCORE at Cold Start configures interface for I2C mode; the pin is not used in I2C mode other than for configuration.
33. In I2C mode, the MOSI pin hardwired to ground or VCORE is used to select between two possible addresses.
SPI INTERFACE
The 13892 contains a SPI interface port, which allows access by a processor to the register set. Via these registers, the
resources of the IC can be controlled. The registers also provide status information about how the IC is operating, as well as
information on external signals.
The SPI interface pins can be reconfigured for reuse as an I2C interface. As a result, a configuration protocol mandates that
the CS pin is held low during a turn on event for the IC (a weak pull-down is integrated on the CS pin. With the CS pin held low
during startup (as would be the case if connected to the CS driver of an unpowered processor, due to the integrated pull-down),
the bus configuration will be latched for SPI mode.
The SPI port utilizes 32-bit serial data words comprised of 1 write/read_b bit, 6 address bits, 1 null bit, and 24 data bits. The
addressable register map spans 64 registers of 24 data bits each.
The general structure of the register set is given in the following table. Bit names, positions, and basic descriptions are
provided in SPI Bitmap. Expanded bit descriptions are included in the following functional chapters for application guidance. For
brevity's sake, references are occasionally made herein to the register set as the “SPI map” or “SPI bits”, but note that bit access
is also possible through the I2C interface option, so such references are implied as generically applicable to the register set
accessible by either interface.
Table 8. Register Set
Register
Register
Register
Register
0
Interrupt Status 0
Interrupt Mask 0
Interrupt Sense 0
Interrupt Status 1
Interrupt Mask 1
Interrupt Sense 1
16
17
18
19
20
21
Unused
32
33
34
35
36
37
38
39
40
41
42
43
Regulator Mode 0
Regulator Mode 1
Power Miscellaneous
Unused
48
49
50
51
52
53
54
55
56
57
58
59
Charger 0
USB0
1
Unused
2
Memory A
Memory B
RTC Time
RTC Alarm
RTC Day
Charger USB1
LED Control 0
LED Control 1
LED Control 2
LED Control 3
Unused
3
4
Unused
5
Unused
6
Power Up Mode Sense 22
Unused
7
Identification
Unused
ACC 0
23
24
25
26
27
RTC Day Alarm
Switchers 0
Switchers 1
Switchers 2
Switchers 3
Unused
8
Unused
Unused
9
Unused
Trim 0
10
11
ACC 1
Unused
Trim 1
Unused
ADC 0
Test 0
13892
Analog Integrated Circuit Device Data
Freescale Semiconductor
41