Rev.1.3_00 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) S-7760A The S-7760A is a programmable port controller IC comprised of an E2PROM, a control circuit for data output, a circuit to prevent malfunction caused by low power supply voltage and others. This IC operates at 400 kHz and interfaces with exteriors via I2C-bus, controls an 8ch digital output with a serial signal. Among the digital output ports of 8 channels, the lower 4 channels have a timer function so that at each port, users are able to set the default value and inverted delay time. In the higher 4 channels, setting the fixed output is available at each port. The default value is maintained despite power-off because this IC has an E2PROM. The S-7760A is able to be used to control ON/OFF for the chips surrounding MPU and to output the default data that devices fundamentally have. Features • • • • Operating voltage range: 8ch digital output: Operating frequency of I2C-bus interface: Low current consumption at standby: 2.3 to 4.5 V Higher 4 channels; fixed output/lower 4 channels; timer action 400 kHz 3.0 µA Max. (VCCH = 4.5 V CMOS input type) 10.0 µA Max. (VCCH = 4.5 V low voltage input type) 6-byte 105 cycles / word*1 (at −40 to +85 °C) 10 years (after rewriting 105 cycles / word) • Built-in E2PROM circuit: 2 • E PROM endurance: 2 • E PROM data retention: • Function to protect write in E2PROM • Function to prevent malfunction during low power supply voltage operation • Lead-free product • Small package: WLP-16A, 16-Pin TSSOP (Under development) *1. For each address (Word: 8 bits) Application • • • • Mobile phone Portable communication device Digital still camera Digital video camera Package Package Name Drawing Code Package Tape Reel WLP-16A HA016-A HA016-A HA016-A 16-Pin TSSOP*1 FT016-A FT016-A FT016-A *1. Under development Seiko Instruments Inc. 1 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Pin Configuration 16-Pin TSSOP*1 Top View WLP-16 Bottom View SCL A1 A2 A3 A4 CLK or BPDX SCL WP VCCH B1 B2 B3 B4 DO7 VSS SDA DO0 C1 C2 C3 C4 DO6 TIMEN or RESX DO3 D2 D3 D4 DO5 DO4 VCCL DO2 SDA WP VSS CLK or BPDX DO7 DO1 D1 16 1 VCCH DO0 DO6 DO1 DO5 DO2 DO4 TIMEN or RESX DO3 8 9 VCCL (1.93×2.07×0.6 max.) Figure 1 Figure 2 *1. Under development List of Pin Table 1 WLP-16A List of Pin Pin No. Pin name Description Pin No. Pin name Description CLK Input for external clock 1 SCL Input for serial clock A1 BPDX Input for bus pull-down bar 2 VSS GND A2 SCL Input for serial clock CLK Input for external clock *1 3 BPDX Input for bus pull-down bar A3 WP Input for Write protect A4 VCCH Power supply 4 DO7 Output port 7 B1 DO7 Output port 7 5 DO6 Output port 6 B2 VSS GND 6 DO5 Output port 5 B3 SDA Serial data I/O 7 DO4 Output port 4 B4 DO0 Output port 0 TIMEN Input for timer enable *2 8 RESX Input for reset bar C1 DO6 Output port 6 TIMEN Input for timer enable 9 VCCL Power supply for output port *2 C2 RESX Input for reset bar 10 DO3 Output port 3 C3 DO3 Output port 3 11 DO2 Output port 2 C4 DO1 Output port 1 12 DO1 Output port 1 D1 DO5 Output port 5 13 DO0 Output port 0 D2 DO4 Output port 4 14 VCCH Power supply D3 VCCL Power supply for output port 15 WP Input for Write protect D4 DO2 Output port 2 16 SDA Serial data I/O Whether to set A1 in CLK or BPDX is selectable by option (Pin number is 3 for TSSOP). Whether to set C2 in TIMEN or RESX is selectable by option (Pin number is 8 for TSSOP). *1 *1. *2. 2 Table 2 16-Pin TSSOP List of Pin Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Block Diagram VCCL VCCH VCCH VCCL 2 E PROM 8 bit × 6 WP SDA SCL Interface Circuit Decode Logic for Data Register Mode Control Circuit for Data Output (Fixed Output) Control Port Register DO7 DO6 DO5 DO4 DO3 TIMEN (Timer Action) or RESX DO2 DO1 DO0 Timer Scale Setting Register Timer Setting Register Circuit for Prevention Malfunction by Low Voltage Timer Enable Register VSS Decoder Dividing Circuit Oscillation Circuit CLK or BPDX Figure 3 Seiko Instruments Inc. 3 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A General Description of Pin Function 1. SDA (Serial data I/O) pin The SDA pin transmits serial data bi-directionally, is comprised of a signal input pin and a pin with Nch transistor open drain output. In use, generally, connect the SDA line to any other device which has the open-drain or open-collector output with Wired-OR connection by pulling up to VCCH by a resistor. 2. SCL (Input for serial clock) pin The SCL pin is an input pin for serial clock, processes a signal at a rising/falling edge of SCL clock. Pay attention fully to the rising/falling time and comply with specifications. 3. WP (Input for Write protect) pin This pin performs Write Protect to E2PROM (This pin does not have a function for Write protect to the register). Set the WP pin in VCCH when using the Write Protect function. If not, set the WP pin to GND. 4. TIMEN (Input for timer enable)/RESX (Input for reset bar) pin Select TIMEN or RESX by option. The TIMEN pin controls enable (“H”)/disable (“L”)/Start (“L”→”H”) in the timer action (inversion of digital output due to elapsed period). Refer to the description of related register in “ Command” and “ Condition to Start Timer” regarding details of timer action. The RESX pin has the negative logic, is a pin to reset. This pin initializes the circuit with “L” input, and performs its regular action (the status of reset release) by inputting “H”. This pin goes in its reload action immediately after releasing reset, thus by initializing, the value of related register is reloaded to the data that E2PROM has. If a user selects the RESX pin, the TIMEN pin’s function will be invalid so that the internal signal of TIMEN is fixed in “L”. 5. CLK (Clock input)/BPDX (Input for bus pull-down bar) pin As for primary clock for circuits, users can select either from the internal oscillation circuit or input it externally by option. In case of using an external clock input, this pin works as the CLK pin to input clock by itself. In case of using an internal oscillation circuit, users can set this pin as the BPDX pin by option. With “L” input from the BPDX pin, SDA and SCL in I2C-bus interface are forcibly pulled-down. This pin performs its regular action by inputting “H”. Users also can select the setting which does not have an internal oscillation circuit or bus pull-down for this pin. 6. DO0, DO1, DO2, DO3 (Digital output) pin These are lower 4 channels in the digital output ports. Their default values are equal to the ones of a control port register during output. These lower 4 channels are for timer action. Its output inverts after; the timer starts and delay time has elapsed. 7. DO4, DO5, DO6, DO7 (Digital output) pin These are the higher 4 channels in the digital output ports. Their default values are equal to the ones of a control port register during output. These higher 4 channels have fixed output. The elapsed period does not make outputs inverted. 8. VSS pin Connect to GND. 9. VCCH pin Except for the output ports, the power supply is applied to the entire circuit via this pin. Regarding the voltage’s value to be applied to this pin, refer to “ Recommended Operating Conditions”. 10. VCCL pin This pin is to apply the power supply for the output ports. Regarding the voltage’s value to be applied to this pin, refer to “ Recommended Operating Conditions”. 4 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Equivalent Circuit of I/O Pin This IC’s I/O pin does not have an element of pull-up or pull-down. The SDA line has an open drain output. The followings are equivalent circuits. TIMEN, CLK Figure 4 TIMEN, CLK Pin SCL Figure 5 SCL Pin (When selecting CLK option) SCL Open drain output Figure 6 SCL Pin (When selecting BPDX option) SDA Open drain output Figure 7 SDA Pin Seiko Instruments Inc. 5 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A WP Figure 8 WP Pin VCCL VCCL DO Figure 9 DO Pin Option Regarding High/Low Leveled Input Voltage for Pin For the SDA, SCL and TIMEN pins, the two types of high/low leveled input voltage are selectable by option. 1. CMOS input type The high/low leveled input voltage varies according to the power supply voltage. The value is defined by the rate for power supply voltage as; VIH ≥ 0.7 × VCCH by high leveled input voltage, VIL ≤ 0.3 × VCCH by low leveled input voltage. 2. Low voltage input type This option is effective when the power supply voltage at MPU is lower than the one of the S-7760A. If using this option, setting a level-shifter for an interface signal is unnecessary. Independent of the power supply voltage, the high/low leveled input voltage is constant, moreover, the value is also constant unlike the definition by the rate as; VIH ≥ 1.5 V by high leveled input voltage, VIL ≤ 0.3 V by low leveled input voltage. The TIMEN pin is able to set as the RESX pin by option, however, also in this case the types regarding high/low leveled input voltage are selectable. 6 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Absolute Maximum Ratings Table 3 Item Symbol Rating Unit Power supply voltage1 VCCH −0.3 to +7.0 V Power supply voltage2 VCCL −0.3 to VCCH V Input voltage VIN −0.3 to VCCH+0.3 V Output voltage (SDA) VOUT1 −0.3 to VCCH V Output voltage (DO) VOUT2 −0.3 to VCCL V Operating ambient temperature Topr −40 to +85 °C Storage temperature Tstg −65 to +150 °C Caution The absolute maximum ratings are rated values exceeding which the product could suffer physical damage. These values must therefore not be exceeded under any conditions. Recommended Operating Conditions Table 4 Item Supply voltage 1 Output supply voltage 2 High-level input voltage 1 Low-level input voltage 1 Symbol Applicable Pin VCCH VCCH VCCL VCCL VIH1 WP, CLK VIL1 High-level input voltage 2 VIH2 SDA, SCL, TIMEN Low-level input voltage 2 VIL2 Option − − − − CMOS input type Low voltage input type CMOS input type Low voltage input type Min. 2.3 *1 1.5 0.7 × VCCH 0.0 0.7 × VCCH 1.5 0.0 0.0 Typ. − − − − − − − − Max. 4.5 VCCH *2 VCCH 0.3 × VCCH VCCH VCCH 0.3 × VCCH 0.3 Unit V V V V V V V V *1. Set VCCH ≥ 2.5 V when rising VCCH and TIMEN simultaneously. *2. Set the voltage of VCCL as VCCH ≥ VCCL. Pin Capacitance Table 5 Item Symbol Input capacitance CIN Input/output capacitance CI/O Pin (Ta = 25 °C, f = 1.0 MHz, VCCH = 3 V) Min. Typ. Max. Unit Condition SCL, WP, TIMEN, CLK SDA VIN = 0 V − − 10 pF VI/O = 0 V − − 10 pF Endurance Table 6 Item Endurance Symbol Operating Temperature NW −40 to +85 °C Min. Typ. Max. Unit 105 − − cycles / word Seiko Instruments Inc. 7 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A DC Electrical Characteristics Table 7 DC Characteristcs 1 Item Symbol Condition *1 Option VCCH = VCCL = 2.3 to 4.5 V Min. Typ. Max. Current consumption CMOS input fSCL = 0 Hz ISB − during standby type Current consumption Low voltage fSCL = 0 Hz ISB − during standby input type Current consumption fSCL = 400 kHz − − ICC1 (READ) Current consumption fSCL = 400 kHz − − ICC2 (WRITE) Current consumption during operation of internal ICC3 fSCL = 0 Hz − − oscillation circuit *1. The total current consumption when VCCH = VCCL. No load on pins DO7 to 0. Unit − 3.0 µA − 10.0 µA − 0.8 mA − 4.0 mA − 0.8 mA Table 8 DC Characteristcs 2 Item Input current Symbol IIH1 ILI1 Output leakage current Pin CLK, TIMEN, WP, SDA, SCL ILO1 SDA VOL1 SDA VOL2 VOH2 Low-level output voltage *1 VOL3 *1. 8 VCCH = 2.3 to 4.5 V Min. Typ. Max. Unit VIN = VCCH − − 1.0 µA VIN = GND −1.0 − − µA VIN = VCCH − − 1.0 µA IOL = 3.2 mA − − 0.4 V IOL = 1.5 mA − − 0.3 V DO IOL = 100 µA VCCL = VCCH to 1.5 V − − 0.1 V DO IOH = −100 µA VCCL = VCCH to 1.5 V VCCL−0.2 − − V IOL = 3.2 mA − − 0.6 V IOL = 1.5 mA − − 0.4 V Low-level output voltage High-level output voltage Condition SCL When the option for BPDX is valid. Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A AC Electrical Characteristics VCCH Table 9 Measurement Conditions VIL = 0.1 × VCCH, VIH = 0.9 × VCCH 20 ns 0.5 × VCCH 100 pF+ Pull-up resistor 1.0 kΩ Input pulse voltage Rising/falling time of input pulse Output reference voltage Output load SDA R=1.0 kΩ C=100 pF Figure 10 Output Load Circuit Table 10 AC Electrical Characteristics Item Symbol VCCH = 2.3 to 4.5 V Min. Typ. Max. 0 − 400 1.3 − − 0.6 − − − − 0.9 50 − − 0.6 − − 0.6 − − 100 − − 0 − − 0.6 − − − − 0.3 − − 0.3 1.3 − − − − 50 SCL clock frequency *1 fSCL SCL clock time “L” *1 tLOW SCL clock time “H” *1 tHIGH *1 SDA output delay time tAA SDA output hold time *1 tDH Start condition setup time *1 tSU.STA Start condition hold time *1 tHD.STA Data input setup time *1 tSU.DAT *1 Data input hold time tHD.DAT Stop condition setup time *1 tSU.STO SCL, SDA rise time *1 tR SCL, SDA fall time *1 tF Bus release time *1 tBUF Noise suppression time *1 tI Frequency for external fTEX − − oscillation input *2 *1. The timing is defined by 10% and 90% of the waveform. *2. When selecting the option for external oscillation input. tF tHIGH 400 Unit kHz µs µs µs ns µs µs ns ns µs µs µs µs ns kHz tR tLOW SCL tSU.STA tHD.DAT tHD.STA tSU.DAT tSU.STO SDA IN tAA tDH tBUF SDA OUT Figure 11 Bus Timing Seiko Instruments Inc. 9 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Table 11 Characteristics of Period Item Symbol Min. Write period to E2PROM tWR − *1 Delay time accuracy (short-time setting) tDLY1 0.8 × T Delay time accuracy (long-time setting)*1 0.8 × LT tDLY2 *1. Refer to Figure 16 Timer Setting Register. T represents time reference (timer scale) in the short-time setting. LT represents time reference (timer scale) in the long-time setting. Typ. 2.0 T LT Max. 5.0 1.2 × T 1.2 × LT tWR SCL SDA D0 Stop Condition Write Data Acknowledgement Signal Figure 12 Write Cycle Timing 10 Seiko Instruments Inc. Start Condition Unit ms µs µs PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Device Addressing To start communication, the master device (MPU) on the system generates a start condition for the slave device (S-7760A). After that, the master device sends a device address with 7-bit length and Read/Write instruction code with 1-bit length on the SDA bus. The higher 3 bits in a device address (DC2, DC1, DC0) are device codes. A device code can obtain the fixed value selected by option. Command is omitted if a device code does not correspond. Set the command in the following 4 bits (C3, C2, C1, C0). Next, by selecting either of Read or Write by Read/Write bit, the S-7760A sends an acknowledgement signal back. If the second byte is Read, MPU sends an acknowledgement signal back after outputting data Read with 8-bit length. If it is Write, after outputting Write data with 8-bit length, the S-7760A sends an acknowledgement signal back. To finish these sequential commands, the S-7760A generates a stop condition as its final procedure. There is a 1-byte command for the S-7760A, but inputting the second byte as a dummy does not affect on this device addressing. In this case, the operation for the second byte is as well as for Read/Write because of the bit corresponding to Read/Write in the first byte. Read/Write bit Acknowledgment Signal Start Device Code STA DC2 DC1 Command DC0 C3 C2 C1 C0 MSB R/W ACK Stop LSB Register data B7 B6 B5 B4 B3 B2 MSB B1 B0 ACK STP LSB Figure 13 Device Address Seiko Instruments Inc. 11 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Configuration of Command Table 12 List of Command Command C3 0 Reload 2 C2 0 C1 0 C0 R/W 0 R/W *2 Data B7 B6 B5 B4 *1 B3 B2 B1 B0 - Switching access to register/E PROM 0 0 0 1 - - Timer enable register 0 0 1 0 W Do not use (Do not access) 0 0 1 1 - - Do not use (Do not access) 0 1 0 0 - - Control port 0 1 0 1 R/W *3 Setting for timer scale 0 1 1 0 R/W *3 Do not use (Do not access) 0 1 1 1 - - - - TEN3 TEN2 TEN1 TEN0 CTR7 CTR6 CTR5 CTR4 CTR3 CTR2 CTR1 CTR0 TS7 TS6 TS5 - TS4 TS3 TS2 TS1 TS0 - Timer setting for DO0 1 0 0 0 R/W *3 Timer setting for DO1 1 0 0 1 R/W *3 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T Timer setting for DO2 1 0 1 0 R/W *3 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T Timer setting for DO3 1 0 1 1 R/W *3 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T Do not use (Do not access) 1 1 0 0 - - Do not use (Do not access) 1 1 0 1 - - Do not use (Do not access) 1 1 1 0 - - Do not use (Do not access) 1 1 1 1 - - *1. 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T R / W = 1/0 Both execute “reload”. 2 *2. It is register access mode when R / W = 0, E PROM access mode when R / W = 1. 2 *3. By Switching access to register/E PROM, users can select either register or E2PROM when Read/Write. Refer to “ Register and E2PROM”. Register and E2PROM This IC has an E2PROM. Data in the E2PROM is maintained despite power-off. The S-7760A has a register which corresponds to the data in the E2PROM, the S-7760A sends data to this corresponding register during power-on (releasing detection of the low voltage) and inputting the reload command. In case of selecting the RESX pin by option, the S-7760A reloads after releasing reset. The following registers are the ones to be reloaded; ・Control port register (1-byte) ・Timer scale setting register (1-byte) ・DO3 to 0 Timer setting register (1-byte in each port, total 4 bytes) Users are able to switch access between corresponding register and E2PROM by “Switching access to register/E2PROM” command. Immediately after power-on, the S-7760A is in “register access mode”. In this register access mode, only the register is rewritten, the E2PROM maintains the prior data. But in “E2PROM access mode”, both data in the register and the E2PROM is rewritten. In data Read, access mode data which is being selected by user; is read. 12 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Command 1. Reload This is a 1-byte command. Users can reload by inputting either of R / W in 0/1. When inputting this command, the data corresponding to the E2PROM is loaded to the register. After completing reload, (if the condition is satisfied), the timer action starts. The reload command is not accepted during the timer action (from its start to the final invert of output). Refer to “ Condition to Start Timer” regarding details. 2. Switching access to register/E2PROM This is a 1-byte command. The mode is in “register access mode” when this command is R / W = 0, “E2PROM access mode” when this command is R / W = 1. The register corresponding to the E2PROM is the one to be reloaded. In register access mode, only the register is rewritten, the E2PROM maintains the prior data. In “E2PROM access mode”, both data in the register and E2PROM is rewritten. 3. Timer enable register A timer enable register is a 4-bit register for Write only (it sends back FFh during Read). By setting each bit in the register in “1”, an oscillation circuit starts, output from the lower 4ch ports (DO3 to 0) invert after the elapsed period which is set by a timer setting register. This action is called “timer action”. This timer action starts at the point when receiving TEN0 which is LSB in the register. The bit automatically goes back in “0” after writing “1” in the timer enable register. Users cannot write in this register during the timer action (from the start to the final invert of output). This register is not the one to be reloaded, thus it does not have the data which corresponds to the E2PROM. The option is available for the condition to start a timer; Condition AND with TIMEN = High, depending on the option. Refer to “ Condition to Start Timer” regarding details. MSB B7 B6 B5 B4 B3 B2 B1 B0 - - - - TEN 3 TEN 2 TEN 1 TEN 0 W W W W W W W W LSB Figure 14 Timer Enable Register 0 : Disable to invert output 1 : Enable to invert output Seiko Instruments Inc. 13 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 4. Control port register Control port register is an 8-bit register. Users can set output data which is from output ports (DO7 to 0). If data is “1”, output is “H”, and if it is “0”, output is “L”. This register is the one to be reloaded. Data in this register does not change even if output from the port is inverted by timer action. B7 MSB B6 B5 B4 B3 B2 B1 B0 CTR7 CTR6 CTR5 CTR4 CTR3 CTR2 CTR1 CTR0 R/W R/W R/W R/W R/W R/W R/W R/W LSB Figure 15 Control Port Register 5. Timer scale setting register The lower 4 bits are registers for timer scale setting. Users can set, whether short-time or long-time, time reference (scale) for the delay time setting at each port DO3 to 0. The higher 4 bits are Read/Write-able bits, however, they do not affect on circuit action because DO7 to 4 have fixed output. This register is the one to be reloaded. MSB B7 B6 B5 B4 B3 B2 B1 B0 TS7 TS6 TS5 TS4 TS3 TS2 TS1 TS0 R/W R/W R/W R/W R/W R/W R/W R/W TSn = 1 : Timer scale DO3 to 0 Short-time setting TSn = 0 : Timer scale DO3 to 0 Long-time setting Figure 16 Timer Scale Setting Register 14 Seiko Instruments Inc. LSB PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 6. DO0 to 3 Timer setting registers These registers are 8-bit registers which correspond to each port, with these registers, users can set delay time for the change of output at output ports (DO0 to 3). When delay time is set, its value is a multiple of timer scale. The multiple is integers 1 to 8. By setting the corresponding bits seen in Figure 17 in “1”, a multiple is selected to determine delay time. For each port, set only 1-bit in the bit that you set “1”. And if setting all 8 bits in “0”, output is not inverted even if the condition to start a timer matches. MSB B7 B6 B5 B4 B3 B2 B1 B0 DO0 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T DO1 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T DO2 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T DO3 8×T 7×T 6×T 5×T 4×T 3×T 2×T 1×T R/W R/W R/W R/W R/W R/W R/W R/W LSB Figure 17 Timer Setting Register DO0 to 3 Figure 17 shows the short-time timer scale setting. In case of a long-time setting, T is LT. The following options are available for timer setting. ・Using an internal oscillation circuit/Switching the external clock input ・Option setting for delay time (4 types) (1) When using an internal clock (Typ.) Option A : (Short-time setting scale, long-time setting scale) = (T, LT) = (5 µs, 320 µs) Option B : (Short-time setting scale, long-time setting scale) = (T, LT) = (10 µs, 640 µs) (2) When using an external clock (Period of input clock = T’) Option A : (Short-time setting scale, long-time setting scale) = (T, LT) = (T’, 64 × T’) Option B : (Short-time setting scale, long-time setting scale) = (T, LT) = (2 × T’, 128 × T’) Seiko Instruments Inc. 15 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A In case that users select “delay time option A” and to use an internal oscillation circuit, and if setting “1” in B6 bit in the D03 timer setting register, “1” in TS3 in the timer scale register, DO3 inverts at delay time of 35 µs (7 × 5 µs). Other examples are shown in Figure 18. MSB B6 B7 B5 B4 B3 B2 B1 B0 Example 1-1 40 µs 35 µs 30 µs 25 µs 20 µs 15 µs 10 µs 5 µs Example 1-2 2.56 ms 2.24 ms 1.92 ms 1.60 ms 1.28 ms 0.96 ms 0.64 ms 0.32 ms B4 B3 B2 B1 B0 MSB B6 B7 B5 Example 2-1 160 µs 140 µs 120 µs 100 µs 80 µs 60 µs 40 µs 20 µs Example 2-2 10.24 ms 8.96 ms 7.68 ms 6.40 ms 5.12 ms 3.84 ms 2.56 ms 1.28 ms LSB LSB Example 1. When using an internal CLK Example 1-1 In case of; Timer scale register “1” (short-time setting), Delay time option “A” (×1 setting); (T = 5 µs) Example 1-2 In case of; Timer scale register “0” (long-time setting), Delay time option “A” (×1 setting); (LT = 320 µs) Example 2. When using an external CLK (100 KHz, T’ = 10 µs) Example 2-1 In case of; Timer scale register “1” (short-time setting), Delay time option “B” (×2 setting); (T = 2 × T’ = 20 µs) Example 2-2 In case of; Timer scale register “0” (long-time setting), Delay time option “B” (×2 setting); (LT = 128 × T’ = 1280 µs) Figure 18 Example of Using Timer Setting Register 0 to 3 16 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Condition to Start Timer Table 13 Condition to Start Timer Option 1 2 Condition A B C D Reload Start → Finish Regular status Regular status Regular status TIMEN Pin “H” “L” → “H” “H” Don’t care Bit TEN3 to 0 Don’t care Don’t care Write “0” → “1” Write “0” → “1” 2 types of options are available for the condition to start a timer. Select either for each digital output port DO0 to 3; if selecting option 1, the condition to start a timer is three, A/B/C. If in option 2, the condition is D only. In D, the S-7760A does not react to reload and rising of TIMEN. By writing “1” in TEN, not in TIMEN, the timer starts. During power-on of power supply VCCH, the S-7760A automatically reloads (transmits data from the E2PROM to the register). In this case, TIMEN = “H” and it is in option 1, the S-7760A goes in the timer action after reloading. Thus the sequential action is; after power-on of power supply VCCH, reload → timer. This is as well if the status changed from detection to release of the low power supply voltage. The timer action does not stop in the middle of its process even if setting TIMEN in “H” → “L” after the timer action has started. In selecting “the option for internal oscillation circuit”, the oscillation circuit is generally being stopped, but the oscillation starts when the condition to start a timer matches. And it stops by finishing the timer action (the final invert of output). Seiko Instruments Inc. 17 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Timing of Data Loading from E2PROM and Timer Action The example of timing chart of data loading from the E2PROM and timer action is shown in Figure 19 and 20. Set VCCH ≥ 2.5 V when rising VCCH and TIMEN simultaneously. Power supply voltage VCCH / VCCL 2.05 V Typ. Signal of low power supply voltage detection TIMEN pin Data loading Start of timer action due to power-on Start of timer action by Write in timer enable register Start of timer action by setting TIMEN pin “L” → “H” Oscillation circuit EN Time out Delay time by timer setting with DO3 Time out Delay time by timer setting with DO3 Time out Delay time by timer setting with DO3 DO3 pin (When E2PROM CTR3 = 0) Reload starts CTR3 register (When E2PROM CTR3 = 0) Delay time by timer setting with DO2 Delay time by timer setting with DO2 Delay time by timer setting with DO2 DO2 pin (When E2PROM CTR2 = 1) Reload starts CTR2 register (When E2PROM CTR2 = 1) Period to define data *1. *1 2 A period to define data is; the loading period from E PROM + the period to stabilize output from DO7 to 0 pin = within 100 µs. Figure 19 Data Loading and Timer Action Example 1 18 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A This IC goes in the status to reset the circuits when the power supply voltage decreases less than the level of the detection voltage of the circuit for prevention malfunction by low voltage (1.75 V Typ.). And the DO7 to 0 pins go in “L”. After that, when the power supply voltage increases more than the level of the release voltage of the circuit for prevention malfunction by low voltage (2.05 V Typ.), data is reloaded from the E2PROM to the register, the values of DO7 to 0 pins go back to its default. 2.05 V Typ. 1.75 V Typ. Power supply voltage VCCH / VCCL Signal of low power supply voltage detection TIMEN pin Data loading Exceeded the release voltage of low supply voltage detection (2.05 V); Timer action starts Time out Time out Timer action starts by reloading Oscillation circuit EN Device code Start condition ACK Reload instruction Stop condition SDA SCL Delay time by timer setting with DO3 Delay time by timer setting with DO3 DO3 pin (When E2PROM CTR3 = 0) CTR3 register *1 Reload starts Reload starts (When E2PROM CTR3 = 0) Delay time by timer setting with DO2 Delay time by timer setting with DO2 DO2 pin (When E2PROM CTR2 = 1) Reload starts CTR2 register Reload starts *1 (When E2PROM CTR2 = 1) Period to define data *2 Period to define data *2 *1. Output from DO7 to 0 goes in “L” when the power supply voltage decreases more than the level of the detection voltage of the circuit for prevention malfunction by low voltage. 2 *2. A period to define data is; the loading period from E PROM + the period to stabilize output from DO7 to 0 pin = within 100 µs. Figure 20 Data Loading and Timer Action Seiko Instruments Inc. Example 2 19 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Flowchart of Data Loading from E2PROM and Timer Action Power-on Loading each data from 2 E PROM to register DO pin outputs default value No TIMEN pin = “H”? Yes TIMEN pin “L” → “H”? No Yes Timer setting register is in “1”? No Yes Timer action starts DO output inverts after set time has elapsed TIMEN pin “H” → “L”? No Yes Timer enable register “0” → “1”? No Yes Figure 21 Flowchart of S-7760A’s Action (When selecting “condition to start timer Option 1”) 20 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Power-on Loading each data from E2PROM to register DO pin outputs default value Timer enable register “0” → “1”? No Yes Timer setting register is in “1”? No Yes Timer action starts DO output inverts after set time has elapsed Figure 22 Flowchart of S-7760A’s Action (When selecting “condition to start timer Option 2”) Seiko Instruments Inc. 21 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Operation 1. Start condition A start condition starts by changing the SDA line from “H” to “L” while the SCL line is “H”. Input a start condition first when inputting a command via I2C-bus interface. 2. Stop condition A stop condition starts by changing the SDA line from “L” to “H” while the SCL line is “H”. Input a stop condition in the end when inputting a command via I2C-bus interface. “H” “H” SCL SDA Start Condition Stop Condition Figure 23 Start / Stop Condition 3. Data transfer The S-7760 installs data in the SDA line at a rising edge of the SCL line. Change the SDA line while the SCL line is “L” during the data transmission. If changing the SDA line while the SCL line is “H”, the S-7760A goes in the start or stop condition status. SCL “L” “L” SDA Figure 24 Data Transfer Timing 22 Seiko Instruments Inc. “L” PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 4. Acknowledgment Data is transmitted sequentially in 8-bit. Changing the SDA line to “L” indicates that the devices on the system bus have received data, thus the devices send an acknowledgment signal back during the 9th clock of cycle. The S-7760A does not send an acknowledgment signal back during the Write operation. SCL Input 1 8 9 SDA (Master device’s output) Acknowledgment signal output SDA Output Start Condition Figure 25 Acknowledgment Output Timing 5. Read operation When this IC receives the 7-bit device address and the Read/Write instruction code “1” after receiving a start condition, it generates an acknowledgment signal. Next, data with 8-bit length is output from this IC synchronizing with the SCL clock. After that, the master device sends a stop condition, not an acknowledgment signal in order to finish the Read operation. S T A R T SDA LINE DEVICE ADDRESS NO ACK from Master Device R E A D D D D C C C C3 C2 C1 C0 1 2 1 0 M S B L R S / B W S T O P B7 B6 B5 B4 B3 B2 B1 B0 A C K DATA Figure 26 Read Seiko Instruments Inc. 23 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 6. Write operation 6. 1 Write When this IC receives the 7-bit device address and the Read/Write instruction code “0” after receiving a start condition, it generates an acknowledgment signal. Next, after it receives the 8-bit word address and generates an acknowledgment signal, it receives a stop condition to finish the Write command. In the Write operation to the E2PROM, the Write operation starts with a stop condition, the S-7760A finishes it after the period to Write (max. 5 ms) has elapsed. During Write to the E2PROM, all operations are inhibited to be performed and the S-7760A does not send back any acknowledgment signals for command inputs. S T A R T SDA LINE DEVICE ADDRESS W R I T E S T O P DATA D C 2 D D C C C3 C2 C1 C0 0 1 0 M S B L R S / B W B7 B6 B5 B4 B3 B2 B1 B0 A C K A C K Figure 27 Write 6. 2 Write Protect Write protect is available in the S-7760A. When the WP pin is connected to VCCH, the Write operation in all memory area is inhibited. When the WP pin is connected to GND, Write protect becomes invalid so that the Write operation in all memory area is accepted. Fix the WP pin during the period; from rising of SCL at installing the last bit in Write data until the completion of Write period (max. 5 ms). Written data in the address is not assured if the condition of the WP pin is changed during this period. Be sure to connect the WP pin to GND when you don’t use Write Protect. Write Protect is valid in the range of power supply voltage. tWR SCL B0 SDA Write Data Acknowledgment signal Stop Condition WP Period to fix WP pin Figure 28 Period to Fix WP Pin 24 Seiko Instruments Inc. Start Condition PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 6. 3 Acknowledgment polling Acknowledge polling is used to find when the Write operation has completed. After receiving a stop condition the Write operation has once started, all operations are inhibited to be performed so that the S-7760A cannot respond to the signals transmitted from the master device. The master device sends a start condition, the device address and Read/Write instruction code to the S-7760A (slave device), and detects the response from the slave device. It is possible to find when the Write operation has completed. Thus if the slave device does not send an acknowledgment signal back, the Write operation is in progress. If it sends an acknowledgment signal back, the Write operation has completed. Fix the WP pin until an acknowledgment is confirmed. It is recommended to use the Read instruction “1” for the Read/Write instruction code transmitted from the master device during acknowledgment polling. 6. 4 Irregular action In the middle of inputting Write data, if inputting a stop condition in clock less than the specified data length (8-bit), the S-7760A does not perform Write to the E2PROM. And it either does not perform Write to the E2PROM if receiving a stop condition after receiving data over 9-bit. However, data in the register has been rewritten at the point when the S-7760A has received the specified length data. Be sure not to input clock which exceeds the specified value due to noise or other causes. Seiko Instruments Inc. 25 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Example of Flowchart for Software 1. Read/Write in register The example of flowchart for software when accessing to the control port register is shown in Figure 29. START Switching access to 2 E PROM/register 1-byte command Access to control port register 2-byte command END (ST, DC2 to 0, 0001, 0, ACK, SP)*1 • Write (ST, DC2 to 0, 0101, 0, ACK, CTR7 to 0, ACK, SP)*1 • Read (ST, DC2 to 0, 0101, 1, ACK, CTR7 to 0, ACK, SP)*1 *1. ST DC2 to 0 ACK CTR7 to 0 SP : Start condition : Device code : Acknowledgment : Control port register : Stop condition Figure 29 Flowchart for Software Example 1 26 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 2. Read/Write in E2PROM The example of flowchart for software when accessing to the E2PROM is shown in Figure 30. START WP pin = “L”? No Yes Switching access to E2PROM/register 1-byte command (ST, DC2 to 0, 0001, 1, ACK, SP)*1 Access to control port E2PROM 2-byte command • Write (ST, DC2 to 0, 0101, 0, ACK, CTR7 to 0, ACK, SP)*1 • Read (ST, DC2 to 0, 0101, 1, ACK, CTR7 to 0, ACK, SP)*1 END *1. ST DC2 to 0 ACK CTR7 to 0 SP : Start condition : Device code : Acknowledgment : Control port register : Stop condition Figure 30 Flowchart for Software Example 2 Seiko Instruments Inc. 27 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Write Protect Function during the Low Power Supply Voltage The S-7760A has a built-in detection circuit which operates with the low power supply voltage, cancels Write when the power supply voltage drops and power-on. Its detection voltage is 1.75 V (Typ.) and the release voltage is 2.05 V (Typ.), and its hysteresis is approx. 0.3 V. The S-7760A cancels Write by detecting a low power supply voltage when it receives a stop condition. Both in the data transmission and the Write operation, data in the address written during the low power supply voltage is not assured. Hysteresis approx. 0.3 V Power supply voltage Release voltage (+VDET) 2.05 V Typ. Detection Voltage (−VDET) 1.75 V Typ. Cancel the Write instruction Figure 31 Operation during Low Power Voltage 28 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A How to Use S-7760A 1. SDA I/O pin and SCL input pin In consideration of I2C-bus protocol function, the SDA I/O and SCL input pins*1 should be connected with a pull-up resister of 1 to 5 kΩ. The S-7760A cannot transmit normally without using a pull-up resistor. *1. In the case that the SCL input pin of the S-7760A is connected to the tri-state output pin in the master device, connect the SCL input pin with a pull-up resistor as well in order not to set the SCL input pin in high impedance. This prevents the S-7760A from error caused by high impedance from the tri-state pin when resetting the master device during the voltage drop. The bus pull-down function is available for S-7760A by option because it is assumed that the pull-up power supply may be in high impedance depending on case. Except for this IC, if users do not have an element to fix the potentials of SDA and SCL pins, set BPDX in “L” output in order to pull down the SDA and SCL pins. 2. Reset after transmission interruption This IC does not have a pin to reset, but it generally resets the internal circuit by inputting a stop or start condition. However, in case that transmission is interrupted, for example, only the master device is reset because the power supply voltage drops during transmission; the internal circuit maintains the status before interruption. If the status is that the SDA pin outputs “L” (outputs an acknowledge signal or in Read), this IC does not perform the next operation because it cannot receive a start or stop condition from the master device. Therefore it is necessary to finish outputting an acknowledgment signal and the Read operation in SDA. Figure 32 shows how to reset. First, input a start condition. (While the SDA pin is outputting “L”, the S-7760A does not go in the start condition but this “L” output does not affect on the slave device.) Next, input clock (27 clocks) which is equivalent to 3-byte data access from the SCL pin. During this procedure, pull up the SDA line which is connected closer to the master device. Due to this, the SDA pin’s I/O prior to transmission interruption ends so that the SDA pin goes in “H”. After that, by inputting a stop condition, the S-7760A returns to the status possible to perform the general transmission. It is recommended to perform this reset when you initialize, after power-on the master device. A circuit for prevention malfunction by a low power supply voltage is equipped in this IC, thus it automatically resets internally when a low voltage is applied to this IC. Start Condition 1 SCL Stop Condition Clock equivalent to 3-byte data access 2 8 9 26 27 SDA Master SDA Slave “L” or “High-Z” “L” or “High-Z” “L” or “High-Z” “High-Z” “High-Z” “High-Z” Figure 32 How to Reset S-7760A Seiko Instruments Inc. 29 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 3. Acknowledgment check The I2C-bus protocol includes an acknowledgment check function as a handshake function to prevent a communication error. This function allows detection of a communication failure during data communication between the master device and the S-7760A. 4. Built-in power-on-clear circuit The S-7760A has a built-in power-on-clear circuit that initializes itself at the same time during power-on. Unsuccessful initialization may cause a malfunction. To operate the power-on-clear circuit normally, the following conditions must be satisfied to raise the power supply voltage. 4. 1 Raising power supply voltage As shown in Figure 33, raise the power supply voltage from 0.2 V max., within the time defined as tRISE which is the time required to reach the power supply voltage to be set. For example, if the power supply voltage is 3.0 V, tRISE = 100 ms as seen in Figure 34. The power supply voltage must be raised within 100 ms. tRISE (Max.) Power supply voltage (VCCH) VINIT (Max.) 0.2 V 0 V*1 *2 tINIT (Max.) *1. 0 V means there is no difference in potential between the VCCH pin and the VSS pin of the S-7760A. *2. tINIT is the time required to initialize the S-7760A. No instructions are accepted during this time. Figure 33 Raising Power Supply Voltage 30 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 5.0 4.0 Power supply voltage(VCCH) [V] 3.0 2.0 50 100 150 200 Rise time (tRISE) Max. For example: [ms] If your S-7760A’s supply voltage = 3.0 V, raise the power supply voltage to 3.0 V within 100 ms. Figure 34 Raising Time of Power Supply Voltage When initialization is successfully completed by the power-on-clear circuit, the S-7760A enters the standby status. If the power-on-clear circuit does not operate, the followings are the possible causes. (1) (2) Because the S-7760A has not completed initialization, an instruction previously input is still valid or an instruction may be inappropriately recognized. In this case, S-7760A may perform the Write operation. The voltage drops due to power off while the S-7760A is being accessed. Even if the master device is reset due to the low power voltage, the S-7760A may malfunction unless the conditions for the power-on-clear operation are satisfied. Seiko Instruments Inc. 31 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 4. 2 Initialization time The S-7760A initializes at the same time when the power supply voltage is raised. Input instructions to the S-7760A after initialization. The S-7760A does not accept any instruction during initialization. Figure 35 shows the initialization time of the S-7760A. 100 m 10 m S-7760A initialization time (tINIT) Max. 1.0 m [s] 100 µ 10 µ 1.0 µ 1.0 µ 10 µ 100 µ 1.0 m 10 m 100 m Rise time (tRISE) [s] Figure 35 Initialization Time of S-7760A 5. Data hold time (tHD. DAT = 0 ns) If SCL and SDA of the S-7760A are changed at the same time, the timing which takes to reach this IC slightly lags due to a load on the bus line. As a result, the change in the SDA precedes a falling edge of SCL so that S-7760A may recognize a start/stop condition. To avoid this, in the S-7760A, it is recommended to set the delay time of over 0.3 µs for a falling edge of SCL. In its specs, it is described as the S-7760A works at 0 ns of data hold time, however, take account into the above action in actual use. tHD. DAT = 0.3 µs Min. SCL SDA Figure 36 Data Hold Time 32 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 6. SDA pin and SCL pin noise suppression time The S-7760A includes a built-in low-pass filter at the SDA and SCL pins to suppress noise. This filter suppresses noise with the width of less than 130 ns when the power supply voltage is 3.0 V. Refer to noise suppression time (tl) in Table 10 regarding details of the assurable value. 400 300 Noise suppression time (tI) Max. [ns] 200 100 0 2.0 3.0 4.0 5.0 Power supply voltage VCCH [V] Figure 37 Noise Suppression Time for SDA and SCL Pins (CMOS input type) 400 300 Noise suppression time (tI) Max. [ns] 200 100 0 2.0 3.0 4.0 5.0 Power supply voltage VCCH [V] Figure 38 Noise Suppression Time for SDA and SCL Pins (Low voltage input type) Seiko Instruments Inc. 33 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Precautions • Semiconductor devices must be used within the absolute maximum rating. Special caution is required for the supply voltage. A momentary surge voltage exceeding the rated value may cause latch-up and malfunction. Confirm the detailed usage conditions required for each parameter by referring to the data sheet before use. • If the S-7760A operates with moisture remaining in the circuits, a short circuit may occur between pins, causing a malfunction. When the S-7760A is taken out of the constant-low-temperature bath during evaluation, the pins of the S-7760A may be frosted. Note that, if the S-7760A is operated with the pins frosted, the pins may be short-circuited by moisture, causing a malfunction. The same applies when the S-7760A is used in an environment where condensation may occur, so care is required. • Although the IC contains a static electricity protection circuit, static electricity that exceeds the limit of the protection circuit should not be applied. • Seiko Instruments Inc. assumes no responsibility for the way in which this IC is used in products created using this IC or for the specifications of that product, nor does Seiko Instruments Inc. assume any responsibility for any infringement of patents or copyrights by products that include this IC either in Japan or in other countries. Precautions for WLP Package • The device’s silicon substrate side is exposed to the marking side of the device package. Since this portion has a lower strength against mechanical stress than a standard plastic package, take sufficient care to avoid chips and cracks when handling the package. Moreover, the exposed side of the silicon has the electrical potential of the device substrate, and needs to be kept out of contact with the external potential. • In this package, the transistor area side is overcoated with a translucent resin. Keep in mind that the characteristics of the package may be affected if the device is exposed under an intensive light source. 34 Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Option The explanation of seven options which are available for this IC and the option tables are shown here. When selecting the option, follow these descriptions. 1. Device code (8 types) Selecting the arbitrary device address code is available (Refer to Figure 13). Table 14 Option List of Device Code No. Opt10 Opt11 Opt12 Opt13 Opt14 Opt15 Opt16 Opt17 C2 0 0 0 0 1 1 1 1 C1 0 0 1 1 0 0 1 1 C0 0 1 0 1 0 1 0 1 2. Internal generation of oscillation CLK/External input Although this IC has an oscillation circuit for generating delay time, without operating this circuit, it is also possible to use this IC’s external oscillation CLK for generating delay time. Table 15 No. Opt20 Opt21 Option List of Oscillation CLK Internal/External Using an internal oscillation circuit Using an external oscillation circuit 3. Delay time Delay time is selectable in the following settings (T’ : Oscillation CLK cycle (approx. 5 µs when using an internal oscillation circuit). Table 16 Option List of Delay Time No. Opt30 Opt31 Timer scale setting register 1: Delay time for short-time setting (T) 0: Delay time for long-time setting (LT) T’ × 1 T’ × 64 T’ × 2 T’ × 128 Seiko Instruments Inc. 35 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 4. TIMEN/RESX pin Users can select whether to use a pin as TIMEN or RESX. Table 17 No. Opt40 Opt41 Option List of TIMEN/RESX Function TIMEN RESX 5. CLK/BPDX pin Users can select whether to use a pin as CLK or BPDX. Table 18 Option List of CLK/BPDX No. Opt50 Opt51 Function CLK BPDX 6. Condition to start timer For the lower output ports 4 channels, users can select the condition to start a timer at each port. Table 19 Option List of Condition to Start Timer Output No. Opt60 DO0 Opt61 Opt70 DO1 Opt71 Opt80 DO2 Opt81 Opt90 DO3 Opt91 Condition to start timer (Power on and TIMEN = High) or (TIMEN = Low to High) or (TEN0 = 0 to 1 and TIMEN = High) TEN0 = 0 to 1 (Power on and TIMEN = High) or (TIMEN = Low to High) or (TEN1 = 0 to 1 and TIMEN = High) TEN1 = 0 to 1 (Power on and TIMEN = High) or (TIMEN = Low_to_High) or (TEN2 = 0 to 1 and TIMEN = High) TEN2 = 0 to 1 (Power on and TIMEN = High) or (TIMEN = Low to High) or (TEN3 = 0 to 1 and TIMEN = High) TEN3 = 0 to 1 7. High/low leveled input voltage type for pin Users can select the input voltage types either high or low level for the SDA, SCL and TIMEN pins. Table 20 Option List of High/low Leveled Input Voltage No. Opt100 Opt101 36 Function CMOS input type Low voltage input type Seiko Instruments Inc. PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Option Format Please fill in check in this table and send to our sales office when you order the option. Item Device code DC2 to 0 Oscillation clock Delay time and timer scale Pin function Option 1 Pin function Option 2 DO0 condition to start timer No. Opt10 Opt11 Opt12 Opt13 Opt14 Opt15 Opt16 Opt17 Opt20 Opt21 Opt30 Opt31 Opt40 Opt41 Opt50 Opt51 Opt91 0,0,0 0,0,1 0,1,0 0,1,1 1,0,0 1,0,1 1,1,0 1,1,1 Using an internal oscillation circuit Using an external oscillation circuit T’ × 1 , T’ × 64 T’ × 2 , T’ × 128 TIMEN RESX CLK BPDX (Power on and TIMEN = “H”) or (TIMEN = “L” to “H”) or (TEN0 = 0 to 1 and TIMEN = “H”) TEN0 = 0 to 1 (Power on and TIMEN = “H”) or (TIMEN = “L” to “H”) or (TEN1 = 0 to 1 and TIMEN = “H”) TEN1 = 0 to 1 (Power on and TIMEN = “H”) or (TIMEN = “L” to “H”) or (TEN2 = 0 to 1 and TIMEN = “H”) TEN2 = 0 to 1 (Power on and TIMEN = “H”) or (TIMEN = “L” to “H”) or (TEN3 = 0 to 1 and TIMEN = “H”) TEN3 = 0 to 1 Opt100 CMOS input type Opt101 Low voltage input type Opt60 Opt61 DO1 condition to start timer Opt70 Opt71 DO2 condition to start timer Opt80 Opt81 DO3 condition to start timer High/low leveled input voltage for pin Option Opt90 Seiko Instruments Inc. Fill in check here 37 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Table for Write data to E2PROM Please fill this table and send to our sales office when you order Write data to E2PROM. E2PROM (Command code) Control port (0101) Timer scale setting (0110) D0 timer setting (1000) D1 timer setting (1001) D2 timer setting (1010) D3 timer setting (1011) 38 Write data Default 00H FFH 00H 00H 00H 00H Seiko Instruments Inc. Remark − 1: Short-time, 0; Long-time 1 for time that you select, 0 for others 1 for time that you select, 0 for others 1 for time that you select, 0 for others 1 for time that you select, 0 for others PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Product Name Structure S-7760A x x x x − xxxxx Package name (abbreviation) and IC packing specifications HCT1 : WLP-16A, Tape TCT1G : 16-pin TSSOP*1 E2PROM code Option code 2 Option excluded from Option 1 Option code 1 0: internal oscillation circuit, Delay time; ×1, ×64 1: internal oscillation circuit, Delay time; ×2, ×128 2: external oscillation circuit, Delay time; ×1, ×64 3: external oscillation circuit, Delay time: ×2, ×128 Device code : 0 to 7 *1. Under development Marking Specification (1) WLP-16A WLP-16A Top view 7 (1) to (4) 7 6 0 A 4 1 1 4 : Lot number (1) (2) (3) (4) This is an example in S-7760A4114 Remark Contact our sales office regarding information on marking that you use. Seiko Instruments Inc. 39 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A Characteristics (Typical Data) 1. DC Characteristics 1. 2 Current consumption (READ) ICC1 vs. Ambient temperature Ta 1. 1 Current consumption (READ) ICC1 vs. Ambient temperature Ta 0.4 0.4 0.3 ICC1 [mA] 0.3 ICC1 [mA] VCCH = 3.0 V fSCL = 400 kHz VCCH = 4.5 V fSCL = 400 kHz 0.2 0.1 0.2 0.1 0 0 −50 0 50 −50 100 0 50 Ta [°C] 100 Ta [°C] 1. 3 Current consumption (READ) ICC1 vs. Ambient temperature Ta 1. 4 Current consumption (READ) ICC1 vs. Power supply voltage VCCH 0.3 0.4 VCCH = 2.3 V fSCL = 400 kHz Ta = 25°C fSCL = 400 kHz 0.3 ICC1 [mA] ICC1 [mA] 0.2 0.2 0.1 0.1 0 0 −50 0 50 2.0 100 1. 5 Current consumption (PROGRAM) ICC2 vs. Ambient temperature Ta 0.3 VCCH = 4.5 V 5.0 0.2 ICC2 [mA] ICC2 [mA] 4.0 1. 6 Current consumption (PROGRAM) ICC2 vs. Ambient temperature Ta 0.3 VCCH = 3.0 V 0.2 0.1 0 0.1 0 −50 0 50 100 Ta [°C] 40 3.0 VCCH [V] Ta [°C] −50 0 50 Ta [°C] Seiko Instruments Inc. 100 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 1. 7 Current consumption (PROGRAM) ICC2 vs. Ambient temperature Ta 1. 8 Current consumption (PROGRAM) ICC2 vs. Power supply voltage VCCH 0.3 0.3 VCCH = 2.3 V Ta = 25°C 0.2 ICC2 [mA] ICC2 [mA] 0.2 0.1 0.1 0 0 −50 0 50 2.0 100 3.0 Ta [°C] 4.0 5.0 VCCH [V] 1. 9 Internal oscillator current consumption during operation ICC3 1. 10 Internal oscillator current consumption during operation ICC3 vs. Ambient temperature Ta vs. Ambient temperature Ta 0.06 0.06 VCCH = 4.5 V VCCH = 3.0 V 0.04 ICC3 [mA] ICC3 [mA] 0.04 0.02 0.02 0 0 −50 0 50 −50 100 0 Ta [°C] 50 100 Ta [°C] 1. 11 Internal oscillator current consumption during operation ICC3 1. 12 Internal oscillator current consumption during operation ICC3 vs. Ambient temperature Ta vs. Power supply voltage VCCH 0.06 0.06 VCCH = 2.3 V Ta = 25°C 0.04 ICC3 [mA] ICC3 [mA] 0.04 0.02 0.02 0 0 −50 0 50 100 Ta [°C] 2.0 3.0 4.0 5.0 VCCH [V] Seiko Instruments Inc. 41 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 1. 13 Standby current consumption ISB vs. Ambient temperature Ta 1. 14 1.5 7.0 6.0 VCCH = 4.5 V SCL, WP, TIMEN, CLK = 0 V Low voltage input 5.0 1.0 4.0 ILI [µA] ISB [µA] Input leakage current ILI vs. Ambient temperature Ta 3.0 0.5 2.0 CMOS input 1.0 0 0 −50 0 50 −50 100 0 50 Ta [°C] 1. 15 100 Ta [°C] Input leakage current ILI vs. Ambient temperature Ta 1. 16 Output leakage current ILO vs. Ambient temperature Ta 1.5 1.5 VCCH = 4.5 V SCL, WP, TIMEN, CLK = 4.5 V VCCH = 4.5 V SDA = 0 V 1.0 ILI [µA] ILO [µA] 1.0 0.5 0.5 0 0 −50 0 50 −50 100 0 50 100 Ta [°C] Ta [°C] 1. 17 Output leakage current ILO vs. Ambient temperature Ta 1. 18 Low level output voltage VOL1 vs. Low level output current IOL 1.5 0.4 VCCH = 4.5 V SDA = 4.5 V Ta = −40°C SDA 0.3 VOL1 [V] ILO [µA] 1.0 0.2 VCCH = 2.3 V 0.5 0.1 0 −50 0 50 100 Ta [°C] 42 VCCH = 4.5 V 0 Seiko Instruments Inc. 0 1 2 3 IOL [mA] 4 5 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 1. 19 Low level output voltage VOL1 vs. Low level output current IOL 1. 20 Low level output voltage VOL1 vs. Low level output current IOL 0.4 0.4 Ta = 25°C SDA 0.3 VOL1 [V] VOL1 [V] 0.3 Ta = 85°C SDA 0.2 VCCH = 2.3 V 0.1 VCCH = 2.3 V 0.2 0.1 VCCH = 4.5 V VCCH = 4.5 V 0 0 0 2 3 IOL [mA] 1 4 5 1. 21 Low level output voltage VOL2 vs. Low level output current IOL 0 5 0.10 Ta = −40°C DO Ta = 25°C DO VOL2 [V] VOL2 [V] 4 1. 22 Low level output voltage VOL2 vs. Low level output current IOL 0.10 0.05 0.05 VCCH = 2.3 V VCCH = 4.5 V VCCH = 2.3 V VCCH = 4.5 V 0 0 0 200 400 IOL [µA] 0 600 1. 23 Low level output voltage VOL2 vs. Low level output current IOL 200 400 IOL [µA] 600 1. 24 High level output voltage VOH2 vs. High level output current IOH 0.10 5.0 Ta = 85°C DO 0.05 4.0 VOH2 [V] VOL2 [V] 2 3 IOL [mA] 1 VCCH = 2.3 V VCCH = 4.5 V 3.0 Ta = −40°C VCCH = 4.5 V DO VCCL = 4.5 V VCCL = 2.0 V 2.0 1.0 0 VCCL = 1.5 V 0 0 200 400 IOL [µA] 600 Seiko Instruments Inc. −600 −400 −200 IOH [µA] 0 43 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 1. 25 High level output voltage VOH2 vs. High level output current IOH 1. 26 High level output voltage VOH2 vs. High level output current IOH 2.0 5.0 Ta = −40°C VCCH = 2.3 V DO 4.0 VCCL = 2.0 V VOH2 [V] VOH2 [V] 3.0 VCCL = 1.5 V 1.0 3.0 VCCL = 2.0 V 2.0 VCCL = 1.5 V 1.0 0 0 −600 −400 −200 IOH [µA] −600 0 1. 27 High level output voltage VOH2 vs. High level output current IOH 4.0 VCCL = 2.0 V VCCL = 1.5 V 1.0 3.0 VCCL = 2.0 V 2.0 0 VCCL = 1.5 V 0 −600 −400 −200 IOH [µA] −600 0 1. 29 High level output voltage VOH2 vs. High level output current IOH −400 −200 IOH [µA] 0 1. 30 High level input inversion voltage VIH vs. Power supply voltage VCCH 3.0 3.0 Ta = 85°C VCCH = 2.3 V DO Ta = 25°C SDA, SCL, TIMEN VCCL = 2.0 V 2.0 CMOS input VIH [V] VOH2 [V] VCCL = 4.5 V Ta = 85°C VCCH = 4.5 V DO 1.0 2.0 0 5.0 Ta = 25°C VCCH = 2.3 V DO VOH2 [V] VOH2 [V] −400 −200 IOH [µA] 1. 28 High level output voltage VOH2 vs. High level output current IOH 3.0 2.0 VCCL = 4.5 V Ta = 25°C VCCH = 4.5 V DO VCCL = 1.5 V 1.0 1.0 Low voltage input 0 −600 44 0 −400 −200 IOH [µA] 0 0 2.0 4.0 VCCH [V] Seiko Instruments Inc. 6.0 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 1. 31 High level input inversion voltage VIH vs. Ambient temperature Ta 1. 32 Low level input inversion voltage VIL vs. Power supply voltage VCCH 3.0 3.0 VCCH = 4.5 V SDA, SCL, TIMEN 2.0 Ta = 25°C SDA, SCL, TIMEN 2.0 VIL [V] VIH [V] CMOS input 1.0 CMOS input 1.0 Low voltage input Low voltage input 0 0 −50 0 50 0 100 2.0 Ta [°C] 4.0 6.0 VCCH [V] 1. 34 Low power supply detection voltage −VDET vs. Ambient temperature Ta 1. 33 Low level input inversion voltage VIL vs. Ambient temperature Ta 3.0 3.0 VCCH = 4.5 V SDA, SCL, TIMEN −VDET [V] VIL [V] 2.0 CMOS input 1.0 Low voltage input 2.0 1.0 0 0 −50 0 50 100 Ta [°C] −50 0 50 100 Ta [°C] 1. 35 Low power supply release voltage +VDET vs. Ambient temperature Ta +VDET [V] 3.0 2.0 1.0 0 −50 0 50 100 Ta [°C] Seiko Instruments Inc. 45 PROGRAMMABLE PORT CONTROLLER (PORT EXPANDER WITH BUILT-IN E2PROM CIRCUIT) Rev.1.3_00 S-7760A 2. AC Characteristics 2. 2 Write time tWR vs. Power supply voltage VCCH 2. 1 Maximum operating frequency fMAX. vs. Power supply voltage VCCH 10000k 3.0 Ta = 25°C Ta = 25°C 2.0 tWR [ms] fMAX. [Hz] 1000k 100k 1.0 10k 1k 0 2.0 3.0 4.0 2.0 5.0 3.0 VCCH [V] 2. 3 Write time tWR vs. Ambient temperature Ta 5.0 2. 4 Write time tWR vs. Ambient temperature Ta 3.0 3.0 VCCH = 4.5 V VCCH = 2.3 V 2.0 tWR [ms] 2.0 tWR [ms] 4.0 VCCH [V] 1.0 1.0 0 0 −50 0 50 −50 100 0 Ta [°C] 50 100 50 100 Ta [°C] 2. 6 SDA output delay time tAA vs. Ambient temperature Ta 2. 5 SDA output delay time tAA vs. Ambient temperature Ta 1.0 1.0 VCCH = 4.5 V VCCH = 2.3 V tAA [µs] tAA [µs] CMOS input CMOS input 0.5 0.5 Low voltage input Low voltage input 0 0 −50 0 50 100 Ta [°C] 46 −50 0 Ta [°C] Seiko Instruments Inc. 1.93±0.02 0.4±0.02 0.60max. S ø0.25±0.02 0.06 S 0.5 B 16-(ø0.25) 1 ø0.05 M S A B 2 0.15±0.03 3 4 A B C D No. HA016-A-P-SD-1.1 TITLE No. WLP-16A-A-PKG Dimensions HA016-A-P-SD-1.1 SCALE UNIT Seiko Instruments Inc. +0.1 ø1.5 -0 ø0.5±0.05 4.0±0.1 2.0±0.05 2.0±0.1 0.18±0.05 0.75±0.05 4.0±0.1 Count mark (ø0.8,Depth 0.2) (Every 10 pockets) 0.8 0.22 2.32 2.02±0.05 0.6 A4 A3 A2 A1 D4 D3 D2 D1 Feed direction No. HA016-A-C-S2-1.0 TITLE No. WLP-16A-A-C a r r i e r T a p e HA016-A-C-S2-1.0 SCALE UNIT Seiko Instruments Inc. 12.5max. 9.0±0.3 Enlarged drawing in the central part ø13±0.2 No. HA016-A-R-SD-1.0 TITLE WLP-16A-A-Reel HA016-A-R-SD-1.0 No. SCALE UNIT QTY. 3,000 mm Seiko Instruments Inc. 5.1±0.2 0.65 16 9 1 8 0.17±0.05 0.22±0.08 No. FT016-A-P-SD-1.1 TITLE TSSOP16-A-PKG Dimensions No. FT016-A-P-SD-1.1 SCALE UNIT mm Seiko Instruments Inc. +0.1 4.0±0.1 ø1.5 -0 0.3±0.05 2.0±0.1 8.0±0.1 1.5±0.1 ø1.6±0.1 (7.2) 4.2±0.2 +0.4 6.5 -0.2 1 16 8 9 Feed direction No. FT016-A-C-SD-1.1 TITLE TSSOP16-A-Carrier Tape FT016-A-C-SD-1.1 No. SCALE UNIT mm Seiko Instruments Inc. 21.4±1.0 17.4±1.0 +2.0 17.4 -1.5 Enlarged drawing in the central part ø21±0.8 2.0±0.5 ø13.0±0.2 No. FT016-A-R-SD-1.1 TITLE TSSOP16-A- Reel No. FT016-A-R-SD-1.1 SCALE UNIT QTY. 2,000 mm Seiko Instruments Inc. • • • • • • The information described herein is subject to change without notice. Seiko Instruments Inc. is not responsible for any problems caused by circuits or diagrams described herein whose related industrial properties, patents, or other rights belong to third parties. The application circuit examples explain typical applications of the products, and do not guarantee the success of any specific mass-production design. When the products described herein are regulated products subject to the Wassenaar Arrangement or other agreements, they may not be exported without authorization from the appropriate governmental authority. Use of the information described herein for other purposes and/or reproduction or copying without the express permission of Seiko Instruments Inc. is strictly prohibited. The products described herein cannot be used as part of any device or equipment affecting the human body, such as exercise equipment, medical equipment, security systems, gas equipment, or any apparatus installed in airplanes and other vehicles, without prior written permission of Seiko Instruments Inc. Although Seiko Instruments Inc. exerts the greatest possible effort to ensure high quality and reliability, the failure or malfunction of semiconductor products may occur. The user of these products should therefore give thorough consideration to safety design, including redundancy, fire-prevention measures, and malfunction prevention, to prevent any accidents, fires, or community damage that may ensue.