SCPS285A november   2022  – august 2023 TCAL9539-Q1

PRODUCTION DATA  

  1.   1
  2. Features
  3. Applications
  4. Description
  5. Revision History
  6. Pin Configuration and Functions
  7. Specifications
    1. 6.1 Absolute Maximum Ratings
    2. 6.2 ESD Ratings
    3. 6.3 Recommended Operating Conditions
    4. 6.4 Thermal Information
    5. 6.5 Electrical Characteristics
    6. 6.6 Timing Requirements
    7. 6.7 I2C Bus Timing Requirements
    8. 6.8 Switching Characteristics
    9. 6.9 Typical Characteristics
  8. Parameter Measurement Information
  9. Detailed Description
    1. 8.1 Overview
    2. 8.2 Functional Block Diagrams
    3. 8.3 Feature Description
      1. 8.3.1 I/O Port
      2. 8.3.2 Adjustable Output Drive Strength
      3. 8.3.3 Interrupt Output (INT)
      4. 8.3.4 Reset Input (RESET)
      5. 8.3.5 Software Reset Call
    4. 8.4 Device Functional Modes
      1. 8.4.1 Power-On Reset
    5. 8.5 Programming
      1. 8.5.1 I2C Interface
    6. 8.6 Register Maps
      1. 8.6.1 Device Address
      2. 8.6.2 Control Register and Command Byte
      3. 8.6.3 Register Descriptions
      4. 8.6.4 Bus Transactions
        1. 8.6.4.1 Writes
        2. 8.6.4.2 Reads
  10. Application and Implementation
    1. 9.1 Application Information
    2. 9.2 Typical Application
      1. 9.2.1 Design Requirements
      2. 9.2.2 Detailed Design Procedure
        1. 9.2.2.1 Minimizing ICC When I/Os Control LEDs
      3. 9.2.3 Application Curves
    3. 9.3 Power Supply Recommendations
      1. 9.3.1 Power-On Reset Requirements
    4. 9.4 Layout
      1. 9.4.1 Layout Guidelines
      2. 9.4.2 Layout Example
  11. 10Device and Documentation Support
    1. 10.1 Receiving Notification of Documentation Updates
    2. 10.2 Support Resources
    3. 10.3 Trademarks
    4. 10.4 Electrostatic Discharge Caution
    5. 10.5 Glossary
  12. 11Mechanical, Packaging, and Orderable Information

Package Options

Mechanical Data (Package|Pins)
Thermal pad, mechanical data (Package|Pins)
Orderable Information

Register Descriptions

The input port registers (registers 0 and 1) reflect the incoming logic levels of the pins, regardless of whether the pin is defined as an input or an output by the Configuration register. The input port registers are read only. Writes to these registers have no effect. The default value (X) is determined by the externally applied logic level. Before a read operation, a write transmission is sent with the command byte to indicate to the I2C device that the Input Port register will be accessed next.

Table 8-4 Registers 0 and 1 (Input Port Registers)
BIT I-07 I-06 I-05 I-04 I-03 I-02 I-01 I-00
DEFAULTXXXXXXXX
BITI-17I-16I-15I-14I-13I-12I-11I-10
DEFAULTXXXXXXXX

The output port registers (registers 2 and 3) shows the outgoing logic levels of the pins defined as outputs by the Configuration register. Bit values in these registers have no effect on pins defined as inputs. In turn, reads from these registers reflect the value that is in the flip-flop controlling the output selection, not the actual pin value.

Table 8-5 Registers 2 and 3 (Output Port Registers)
BIT O-07 O-06 O-05 O-04 O-03 O-02 O-01 O-00
DEFAULT11111111
BITO-17O-16O-15O-14O-13O-12O-11O-10
DEFAULT11111111

The polarity inversion registers (register 4 and 5) allow polarity inversion of pins defined as inputs by the Configuration register. If a bit in these registers is set (written with 1), the corresponding port pin polarity is inverted. If a bit in these registers is cleared (written with a 0), the corresponding port pin's original polarity is retained.

Table 8-6 Registers 4 and 5 (Polarity Inversion Registers)
BIT P-07 P-06 P-05 P-04 P-03 P-02 P-01 P-00
DEFAULT00000000
BITP-17P-16P-15P-14P-13P-12P-11P-10
DEFAULT00000000

The configuration registers (registers 6 and 7) configure the direction of the I/O pins. If a bit in these registers is set to 1, the corresponding port pin is enabled as an input with a high-impedance output driver. If a bit in these registers is cleared to 0, the corresponding port pin is enabled as an output. Changing a port from an input to an output configuration will cause any interrupt associated with that port to be cleared.

Table 8-7 Registers 6 and 7 (Configuration Registers)
BIT C-07 C-06 C-05 C-04 C-03 C-02 C-01 C-00
DEFAULT1

1

111111
BITC-17C-16C-15C-14C-13C-12C-11C-10
DEFAULT11111111

The output drive strength registers control the output drive level of the P port GPIO buffers. Each GPIO can be configured independently to the desired output current level by two register control bits. For example, Port P07 is controlled by register 41 (bits 7 and 6), port P06 is controlled by register 41 (bits 5 and 4), etc. The output drive level of the GPIO is programmed 00b = 0.25x drive strength, 01b = 0.5x drive strength, 10b = 0.75x drive strength, or 11b = 1x for full drive strength capability. See Section 9.2 for more details.

Table 8-8 Registers 40, 41, 42, and 43 (Output Drive Strength Registers)
BIT CC-03 CC-03 CC-02 CC-02 CC-01 CC-01 CC-00 CC-00
DEFAULT

1

1

1

1

1

1

1

1

BIT CC-07 CC-07 CC-06 CC-06 CC-05 CC-05 CC-04 CC-04
DEFAULT

1

1

1

1

1

1

1

1

BIT

CC-13 CC-13 CC-12 CC-12 CC-11 CC-11 CC-10 CC-10

DEFAULT

1

1

1

1

1

1

1

1

BIT

CC-17 CC-17 CC-16 CC-16 CC-15 CC-15 CC-14 CC-14

DEFAULT

1

1

1

1

1

1

1

1

The input latch registers enable and disable the input latch feature of the P port GPIO pins. These registers are effective only when the pin is configured as an input port. When an input latch register bit is 0, the corresponding input pin state is not latched. A state change in the corresponding input pin generates an interrupt. A read of the input register clears the interrupt. If the input goes back to its initial logic state before the input port register is read, then the interrupt is cleared.

When an input latch register bit is set to 1, the corresponding input pin state is latched. A change of state of the input generates an interrupt and the input logic value is loaded into the corresponding bit of the input port register (registers 0 and 1). A read of the input port register clears the interrupt. However, if the input pin returns to its initial logic state before the input port register is read, then the interrupt is not cleared and the corresponding bit of the input port register keeps the logic value that initiated the interrupt.

For example, if the P04 input was at a logic 0 state and then transitions to a logic 1 state followed by going back to the logic 0 state, the input port 0 register will capture this change and an interrupt will be generated (if unmasked). When the read is performed on the input port 0 register, the interrupt is cleared, assuming there were no additional inputs that have changed, and bit 4 of the input port 0 register will read '1'. The next read of the input port register bit 4 should now read '0'.

An interrupt remains active when a non-latched input simultaneously switches state with a latched input and then returns to its original state. A read of the input register reflects only the change of state of the latched input and also clears the interrupt. If the input latch register changes from a latched to a non-latched configuration, the interrupt will be cleared if the input logic value returns to its original state.

If the input pin is changed from a latched to a non-latched input, a read from the input port register reflects the current port logic level. If the input pin is changed from a non-latched to a latched input, the read from the input register reflects the latched logic level.

Table 8-9 Registers 44 and 45 (Input Latch Registers)
BIT L-07 L-06 L-05 L-04 L-03 L-02 L-01 L-00
DEFAULT00000000
BITL-17L-16L-15L-14L-13L-12L-11L-10
DEFAULT

0

0

0

0

0

0

0

0

The pull-up/pull-down enable registers allow the user to enable or disable pull-up/pull-down resistors on the GPIO pins. Setting the bit to logic 1 enables the selection of pull-up/pull-down resistors. Setting the bit to logic 0 disconnects the pull-up/pull-down resistors from the GPIO pins. The resistors will be disabled when the GPIO pins are configured as outputs. Use the pull-up/pull-down selection registers to select either a pull-up or pull-down resistor.

Table 8-10 Registers 46 and 47 (Pull-Up/Pull-Down Enable Registers)
BIT PE-07 PE-06 PE-05 PE-04 PE-03 PE-02 PE-01 PE-00
DEFAULT 0 0 0 0 0 0 0 0
BIT PE-17 PE-16 PE-15 PE-14 PE-13 PE-12 PE-11 PE-10
DEFAULT

0

0

0

0

0

0

0

0

The pull-up/pull-down selection registers allow the user to configure each GPIO to have a pull-up or pull-down resistor by programming the respective register bit. Setting a bit to a logic 1 selects a 100 kΩ pull-up resistor for that GPIO pin. Setting a bit to logic 0 selects a 100 kΩ pull-down resistor for that GPIO pin. If the pull-up/pull-down feature is disabled via registers 46 and 47, writing to these registers will have no effect on the GPIO pin.

Table 8-11 Registers 48 and 49 (Pull-Up/Pull-Down Selection Registers)
BIT PUD-07 PUD-06 PUD-05 PUD-04 PUD-03 PUD-02 PUD-01 PUD-00
DEFAULT11111111
BITPUD-17PUD-16PUD-15PUD-14PUD-13PUD-12PUD-11PUD-10
DEFAULT

1

1

1

1

1

1

1

1

The interrupt mask registers are defaulted to logic 1 upon power-on, disabling interrupts during system start-up. Interrupts may be enabled by setting corresponding mask bits to logic 0.

If an input changes state and the corresponding bit in the interrupt mask register is set to 1, the interrupt is masked and the interrupt pin is not asserted. If the corresponding bit in the interrupt mask register is set to 0, the interrupt pin will be asserted.

When an input changes state and the resulting interrupt is masked, setting the interrupt mask register bit to 0 causes the interrupt pin to be asserted. If the interrupt mask bit of an input that is already currently the source of an interrupt is set to 1, the interrupt pin will be de-asserted.

Table 8-12 Registers 4A and 4B (Interrupt Mask Registers)
BIT M-07 M-06 M-05 M-04 M-03 M-02 M-01 M-00
DEFAULT11111111
BITM-17M-16M-15M-14M-13M-12M-11M-10
DEFAULT11111111

The interrupt status registers are read only registers used to identify the source of an interrupt. When read, a logic 1 indicates that the corresponding input pin was the source of the interrupt. A logic 0 indicates that the input pin is not the source of an interrupt. When a corresponding bit in the interrupt mask register is set to 1 (masked), the interrupt status bit will return to logic 0.

Table 8-13 Registers 4C and 4D (Interrupt Status Registers)
BIT S-07 S-06 S-05 S-04 S-03 S-02 S-01 S-00
DEFAULT 0 0 0 0 0 0 0 0
BIT S-17 S-16 S-15 S-14 S-13 S-12 S-11 S-10
DEFAULT

0

0

0

0

0

0

0

0

The output port configuration register selects port-wise push-pull or open-drain I/O stage. A logic 0 configures the I/O as push-pull (Q1 and Q2 are active, see see Figure 8-2). A logic 1 configures the I/O as open-drain (Q1 is disabled, Q2 is active) and the recommended command sequence is to program this register (4F) before the Configuration register (06 and 07) sets the port pins as outputs.

ODEN0 configures Port 0X and ODEN1 configures Port 1X.

Table 8-14 Register 4F (Output Port Configuration Register)
BIT Reserved ODEN-1 ODEN-0
DEFAULT00000000