Download Print this page
ST STFPC320 Manual
ST STFPC320 Manual

ST STFPC320 Manual

Front panel controller/driver with standby power management and real-time clock

Advertisement

Quick Links

Features
IC front panel VFD controller driver
Standby power management to the host
3.3 V (V
) and down to -30 V (V
DD
supply for the IC
IR remote control decoder
(Philips, NEC, Thomson, Sony, Matsushita)
Multiple display modes
(12 seg. and 16 digits to 20 seg and 8 digits)
High voltage outputs (V
No additional external resistors required for
driver outputs (P-CH. open drain + pull-down
resistor outputs)
Key scanning (up to 12 x 2 matrix = 24 keys)
LED ports (4 channels 20 mA max each)
2
Serial I
C interface (SCL, SDA)
communication protocol b
Operating speed: up to 400 kHz for I
Programmable hotkeys for IR remote control
command and KEYSCAN command
Low power consumption in standby mode
Dimming circuit (8 steps)
Real-time clock (accuracy ± 25 secs/month)
Wake-up alarm
Internal oscillator with external crystal for RTC
Available in PQFP-52 package (0.65 mm pitch
Applications
VCR, DVD and personal video recorders
Home theatre with clock feature, STB and HTiB
(home theater in a box)
Table 1.
Device summary
Order code
STFPC320
July 2008
Front panel controller/driver with standby
power management and real-time clock
)
SS
- 33.3 V max)
DD
2
C
Operating temperature
-40°C to 85°C
Description
The STFPC320 is designed to integrate the VFD
driving, key-scan matrix, LED driving, infrared (IR)
remote control decoding and real-time clock
(RTC) into one integrated solution. All the
functions are programmable using the I
Low power consumption is achieved during
standby operation. The STFPC320 provides the
standby power management to the main chipset.
The STFPC320 is housed in a 52-pin PQFP
package. The pin assignments and application
circuit are optimized for an easy PCB layout and
cost saving advantages.
Package
PQFP-52
Rev 2
STFPC320
PQFP-52
2
C bus.
Packaging
Tape and reel
www.st.com
1/78
78

Advertisement

loading
Need help?

Need help?

Do you have a question about the STFPC320 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STFPC320

  • Page 1 Description communication protocol b ■ Operating speed: up to 400 kHz for I The STFPC320 is designed to integrate the VFD driving, key-scan matrix, LED driving, infrared (IR) ■ Programmable hotkeys for IR remote control remote control decoding and real-time clock command and KEYSCAN command (RTC) into one integrated solution.
  • Page 2: Table Of Contents

    Wake-up ..........16 Interrupts/events handling by STFPC320 ......17 Ready pin .
  • Page 3 STFPC320 Contents Real-time clock (RTC) ........24 6.4.1...
  • Page 4 Switching characteristics ........73 STFPC320 typical application circuit ......74...
  • Page 5 STFPC320 Contents Package mechanical data ........75 Revision history .
  • Page 6: List Of Tables

    List of tables STFPC320 List of tables Table 1. Device summary ............1 Table 2.
  • Page 7 STFPC320 block diagram........
  • Page 8 List of figures STFPC320 Figure 49. Acknowledge response from receiver......... 64 Figure 50.
  • Page 9: Device Block Diagram

    STFPC320 Device block diagram Device block diagram Figure 1. STFPC320 block diagram IR_DATA_IN IR_DATA_IN MUTE MUTE Remote Control Remote Control READY READY STBY STBY PIN_AV8 PIN_AV8 Decoder & Stand Decoder & Stand By Function By Function SEG1/KS1 SEG1/KS1 Command Decoder...
  • Page 10: Functional Diagram

    Functional diagram STFPC320 Functional diagram Figure 2. Functional diagram 10/78...
  • Page 11: Pin Settings

    STFPC320 Pin settings Pin settings Pin connection Figure 3. Pin connection (top view) Note: For a description of each pin behaviour, please refer to the STFPC320 Table 2: Pin description on page 12 11/78...
  • Page 12: Pin Description

    Pin settings STFPC320 Pin description Table 2. Pin description Pin N° Name Type Description Connect to an external resistor of value 33 kΩ ± 1% General purpose switch input port. General purpose switch input port. High level means mute status for audio.
  • Page 13: Functional Description

    2100), 30 and 31 day months are made automatically. Reset Reset is an active low input signal to the STFPC320. A negative pulse input on RESET_N pin resets the STFPC320. Electrical specifications of this pin are identical to that of the logic input pin.
  • Page 14: Cold Boot Up

    STBY pin to a low level. This will wake-up the main processor which will assert the READY pin to a high level to indicate to STFPC320 of a proper boot-up sequence.
  • Page 15: Entering Standby Mode

    STBY pin is at a low level which externally controls a power MOS switch to enable power to the main board. The STFPC320 asserts the STBY pin to a high when any one of the following conditions occur: ●...
  • Page 16: Wake-Up

    10s. Also note that the guard timer is off when the STFPC320 is in the standby mode. Guard timer is thus triggered by a de-assertion of the STBY signal or by internal power on reset signal.
  • Page 17: Interrupts/Events Handling By Stfpc320

    STBY will be set to high when the READY transitions from high to low. During a cold boot up or wakeup from standby, if the READY pin stays low, the STFPC320 will assert the STBY when the guard timer has finished counting down to 0.
  • Page 18: Mute Pin

    These wake-up keys are also referred to as hot-keys. LED ports 4 LED displays are supported by the STFPC320. Turning on or off of the LED is done by issuing write command to the LED port. After reset, the LEDs are off. Note that the LED outputs sink the current, so the cathode of the diode must be connected to the LED pins of STFPC320.
  • Page 19: Remote Control Decoder

    This signal is considered high when it is in the range of 2.5 - 3.6 V (proper voltage division must be done externally so that the STFPC320 PIN_AV8 sees no more than 3.6 V). No action is taken on the high-to-low transition on PIN_AV8. Also when the pin is already a high, the current state of the system is maintained and it does not trigger anything.
  • Page 20: Initial State

    If the user wishes to display the RTC value during standby, then the user must configure the STFPC320 by sending the appropriate command. If the user does not configure the STFPC320 to display the RTC in standby, the VFD shows the same value as was written in the VFD display memory location.
  • Page 21: Operating State Diagram

    STFPC320 Operating state diagram Operating state diagram Figure 8. Operating state diagram 21/78...
  • Page 22: Real-Time Clock (Rtc) Operation

    Real-time clock (RTC) operation Real-time clock The RTC operates as a slave device through the slave address of the STFPC320 on the serial bus. Access is obtained by implementing a start condition followed by the correct slave address (Write: 0x52H and Read: 0x53H). The 16 bytes contained in the device can then be accessed sequentially in the following order: 1.
  • Page 23: Figure 9. Serial Bus Data Transfer Sequence

    STFPC320 Real-time clock (RTC) operation condition. The number of data bytes transferred between the start and stop conditions is not limited. The information is transmitted byte-wide and each receiver acknowledges with a ninth bit. By definition a device that gives out a message is called “transmitter,” the receiving device that gets the message is called “receiver.”...
  • Page 24: Watchdog Timer

    (For example: writing 00001110 in the Watchdog register = 3*1 or 3 seconds). If the processor does not reset the timer within the specified period, the STFPC320 generates a watchdog output pulse on the IRQ_N/SQW pin.
  • Page 25: Reading The Real-Time Clock

    STFPC320 Real-time clock (RTC) operation 6.4.1 Reading the real-time clock The real-time clock (RTC) is read by specifying the address corresponding to the register of the real-time clock and then initiating a Read command. The RTC registers can then be read in a sequential read mode.
  • Page 26: Register Table For Rtc

    00-59 Flags Keys: S = sign bit AFE = Alarm flag enable flag ST = stop bit RS0-RS3 = SQW frequency bits OFIE = oscillator fail interrupt enable bit RB0 – RB2 = watchdog resolution bits BMB0 – BMB4 = watchdog multiplier bits RPT1 –...
  • Page 27: Setting Alarm Clock Registers

    It can also be programmed to go off while the STFPC320 is in the standby mode to serve as a system wake-up call. The bits RPT5-RPT1 put the alarm in the repeat mode of operation.
  • Page 28: Calibrating The Clock

    IRQ_N/SQW pin. This pin will toggle at 512Hz when RS3 = ‘0’, RS2 = ‘1’, RS1 = ‘1’, RS0 = ‘0’, SQWE = ‘1’ and ST = ‘0’. In normal mode, it is always advised to keep the SQWE to a ‘0’.
  • Page 29: Figure 12. Crystal Accuracy Across Temperature

    STFPC320 Real-time clock (RTC) operation Figure 12. Crystal accuracy across temperature Figure 13. Calibrating waveform 29/78...
  • Page 30: Square Wave Output

    Real-time clock (RTC) operation STFPC320 Square wave output The STFPC320 offers the user a programmable square wave function which is output on the IRQ_N/SQW pin. RS3-RS0 bits located in 04h register establish the square wave output frequency. These frequencies are listed in Table 6.
  • Page 31: Century Bits

    In the event the OF bit is found to be set to ‘1’ at any time other than the initial power-up, the STOP bit (ST) should be written to a ‘1’, then immediately reset to a ‘0’. This will restart the oscillator.
  • Page 32: Initial Power-On Defaults

    Real-time clock (RTC) operation STFPC320 6.11 Initial power-on defaults Upon application of power to the device, the register bits in the RTC will initially power-on in the state indicated in Table Table 8. Initial power-on default values of the registers...
  • Page 33: Commands

    A command sets the display mode and status of the VFD driver. The first 1 byte input to the STFPC320 through the SDA pin after the slave address is regarded as a command. If slave address is not transmitted before the commands/data are transmitted, the commands/data being transmitted are invalid (however, the commands/data already transmitted remain valid).
  • Page 34: Figure 14. First Byte Format After Configuration Byte

    Remote control protocol setting: RC-5 with raw format. ● Guard timer setting: turned on with 10s. After the first command is processed by STFPC320, the guard timer is turned off until it is turned on by the host. ● Guard timer action: issue standby.
  • Page 35: Figure 15. Second Byte Format After Configuration Byte

    STFPC320 Commands The second byte after the configuration command is in the format displayed in Figure 15 Figure 15. Second byte format after configuration type RTC DISPLAY MODE RTC DISPLAY MODE VFD DISPLAY MODE SETTING VFD DISPLAY MODE SETTING SETTING...
  • Page 36: Data Setting Command

    Commands STFPC320 Data setting command This command sets the data-write and data-read modes. Description: Bits b7-b6 = 01 is decoded as a data setting command. The subsequent bits are decoded as follows: b5 b4 = 00: data write command (see bits b1-b0)
  • Page 37 STFPC320 Commands Table 11. Data read 2 command. b5 b4: 11 Reserved Read RTC Registers (see Section 11.1: RTC display data read on page On power application, the normal display mode and address increment mode is set with the default display memory address set to 10H.
  • Page 38: Display Control And Hotkey Setting Command

    Commands STFPC320 Display control and hotkey setting command Description: Bits b7-b6 = 10 is decoded as a display control and hotkey setting command. The subsequent bits are decoded as follows: b5 = 0: sets display control for dimming setting as shown in the table on the next page.
  • Page 39: Figure 16. 14-Segment + Dotpoint Display

    STFPC320 Commands Description: Byte2 to byte6 will follow the same pattern as shown for byte1 above: BYTE2: segment d, segment c BYTE3: segment f, segment e BYTE4: segment m, segment g BYTE5: segment k, segment h BYTE6: segment p/col, segment j/col Segments r and n are never used for RTC display.
  • Page 40: Figure 17. Front Panel Hotkeys Configuration

    Commands STFPC320 b4: KS3 KEY1 b5: KS3 KEY2 b6: KS4 KEY1 b7: KS4 KEY2 Byte2 and Byte3 follow the same pattern as above for the hotkey configuration. To select any one of the key as hotkey, the bit value is set to ‘1’.
  • Page 41: Example For Device Configuration

    STFPC320 Commands Example for device configuration After the proper power-up sequence, an example for configuration of the STFPC320 is given below: Configuring display & RC 0x09 = RTC display & enables the guard timer to issue STBY 0xAA = raw format, RC-5 protocol, 10s for initial guard time value...
  • Page 42: Key Matrix

    Key matrix STFPC320 Key matrix The key matrix is of 12 x 2 configuration, as shown below. Figure 18. Key matrix and key-input data storage RAM The data of each key is stored as illustrated below and is read by a read command, starting from the most significant bit.
  • Page 43: Key Read Sequence

    STFPC320 Key matrix Key read sequence Data Setting Command Key Data Byte 1 Key Data Byte 2 Key Data Byte 3 Description: For example when the key corresponding to the KEY1/KS1 is pressed, the bit b0 of Byte 3 will be set. This is decoded as the key value connected to KEY1/KS1 which could be “PLAY”...
  • Page 44: Led Port

    LED port STFPC320 LED port Data is written to the LED port by a write command, starting from the most significant bit of the port. When a bit of this port is set to 0, the corresponding LED lights up; when the bit is set to a 1, the LED turns off.
  • Page 45: Sw Data

    Address pointer for the memory Address pointer for the memory 10.1 Reading switch sequence Data Setting Command After sending this command, the STFPC320 will output a byte with the 2 bit values of the 2 switches and 6-bit address pointer values. 45/78...
  • Page 46: Address Setting Command

    As an example: Address setting command with RTC memory address of 0x01: 0xC1 Read RTC register command: 0x73 Subsequently STFPC320 will output the data byte from RTC memory location 0x01. 11.2 Display (normal & RTC) data write The data can be written to the normal or RTC display memory by issuing an address setting command followed by the data bytes to be written (in auto-increment mode).
  • Page 47: Normal Display Memory Locations

    STFPC320 Normal display memory locations Normal display memory locations Table 12. Display RAM address and display mode 10 HL 10 HU 11 HL 11 HU 12 HL 13 HL 13 HU 14 HL 14 HU 15 HL 16 HL 16 HU...
  • Page 48: Configuration Data

    (Section 7.2: Data setting command on page 36) is sent from the Host to STFPC320. After this, the STFPC320 will output a maximum of 14 bytes with the configuration data. The Host can choose to read only a few bytes by pulsing the SCL line according to the number of bytes to be read.
  • Page 49: Figure 22. Configuration Data Bytes (Continued)

    STFPC320 Configuration data Figure 22. Configuration data bytes (continued) RC Device Address 2 RC Device Address 2 Byte 8 Byte 8 Byte 9 Byte 9 RC Device Address 3 RC Device Address 3 RC Device Address 4 RC Device Address 4...
  • Page 50: Interrupt Flags

    Simultaneously, the interrupt flags are set. The micro-processor can read the interrupt flags by sending the “01100011” command. After decoding this command, STFPC320 output one byte data as described below to indicate the source of interrupt. Figure 23. Interrupt byte format...
  • Page 51: Remote Control Protocols

    STFPC320 from any device address of the particular remote control protocol being used. If the STFPC320 is used to send RC data in decoded format in normal mode, it is advisable that the Host configure the STFPC320 to RC-raw format before entering the standby mode.
  • Page 52: Philips Rc-5 Remote Control Protocol

    “11” on the transmit side. After the photo-diode, there is one inversion. So the data at the IR_DATA_IN of the STFPC320 will be inverted of above. The next bit is the toggle bit. This bit is inverted each time a key on the remote control is pressed. Bits A1..A5 are the address bits.
  • Page 53: Rc-5 Data In Decoded Format

    STFPC320 Remote control protocols 15.3.1 RC-5 data in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol. The number of bits depends on the corresponding RC protocol.
  • Page 54: Nec Remote Control Protocol

    First frame 8-bit Address 9 ms 4.5 ms address command 0.56 ms Repeat frame 2.25 ms 9 ms Note: The above waveform is on the transmitted side. The received data by the STFPC320 after the photo-diode is inverted from above. 54/78...
  • Page 55: Nec In Decoded Format

    STFPC320 Remote control protocols 15.4.1 NEC in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol. The number of bits depends on the corresponding RC protocol.
  • Page 56: Sony Remote Control Format

    Data on time (0) Data on time (1) Frame output cycle 150T Note: Where T = 0.3ms Note that the above waveform is on the transmitted side. The received data by the STFPC320 after the photo-diode is inverted from above. 56/78...
  • Page 57: Sony In Decoded Format

    STFPC320 Remote control protocols 15.5.1 Sony in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol. The number of bits depends on the corresponding RC protocol.
  • Page 58: Matsushita Remote Control Format

    Remote control protocols STFPC320 15.6 Matsushita remote control format The modulated carrier is usually derived from 440 kHz and is 1/12 of the frequency with ½ duty cycle. When data are transmitted repeatedly, the frame cycle is 104.7 ms or 240 period.
  • Page 59: Matsushita In Decoded Format

    Note: Where T = 0.436 ms Note that the above waveform is on the transmitted side. The received data by the STFPC320 after the photo-diode is inverted from above. 15.6.1 Matsushita in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol.
  • Page 60: Matsushita In Raw Format

    Remote control protocols STFPC320 15.6.2 Matsushita in RAW format In the raw form, the data is sent in the same way as it is received for each RC protocol except that the header is not transmitted on SDA. If a valid SYN pulse is detected, it is represented by a bit ‘1’.
  • Page 61: R2000 Remote Control Format

    D0 – D6 = Command bits (7-bit) MSB is sent first. MSB is sent first. 30 μs 30 μs 33.3 kHz 33.3 kHz Note: The above waveform is on the transmitted side. The received data by the STFPC320 after the photo-diode is inverted from above. 61/78...
  • Page 62: R2000 In Decoded Format

    Remote control protocols STFPC320 15.7.1 R2000 in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol. The number of bits depends on the corresponding RC protocol.
  • Page 63: Rca Remote Control Format

    1 1 1 1 1 1 0 0 1 1 1 1 1 1 Address Command Address Command Note: The above waveform is on the transmitted side. The received data by the STFPC320 after the photo-diode is inverted from above. 63/78...
  • Page 64: Rca In Decoded Format

    Remote control protocols STFPC320 15.8.1 RCA in decoded format In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits are sent in this order for each remote control protocol. The number of bits depends on the corresponding RC protocol.
  • Page 65: Serial Communication Format

    STFPC320 Serial communication format Serial communication format Figure 46. Complete data transfer Figure 47. Valid data changes on the SDA bus Figure 48. Valid start and stop conditions Figure 49. Acknowledge response from receiver 65/78...
  • Page 66: Figure 50. Bus Timing Requirements Sequence

    Serial communication format STFPC320 Figure 50. Bus timing requirements sequence Figure 51. Slave address location Slave Address Slave Address R/Wbar R/Wbar Figure 52. Read mode sequence BUS ACTIVITY: MASTER WORD SDA LINE DATA n DATA n+1 ADDRESS (An) BUS ACTIVITY:...
  • Page 67: Figure 53. Alternative Read Mode Sequence

    STFPC320 Serial communication format Figure 53. Alternative READ mode sequence BUS ACTIVITY: MASTER SDA LINE DATA n DATA n+1 DATA n+X BUS ACTIVITY: SLAVE ADDRESS AI00895 Figure 54. WRITE mode sequence BUS ACTIVITY: MASTER WORD SDA LINE DATA n DATA n+1...
  • Page 68: Electrical Characteristics

    Electrical characteristics STFPC320 Electrical characteristics 17.1 Absolute maximum ratings Table 15. Absolute maximum ratings (T = 25°C, GND = 0 V) Symbol Parameter Value Unit Logic supply voltage -0.5 to +4.0 Driver supply voltage + 0.5 to V – 33.3 Logic input voltage -0.4 to V...
  • Page 69: Power Consumption Estimation

    STFPC320 Electrical characteristics 17.3 Power consumption estimation Maximum power consumption P = VFD driver dissipation + R dissipation + LED driver dissipation + dynamic power consumption. Where segment current = 3 mA, grid current = 15 mA and LED current = 20 mA,...
  • Page 70: Electrical Specifications

    Electrical characteristics STFPC320 17.4 Electrical specifications Table 17. Electrical specifications = -20 to +70 °C, V = 3.3 V, GND = 0 V, V – 33.3 V) Symbol Parameter Test conditions Unit High-level output LED1 – LED4, 0.9 V voltage...
  • Page 71: Crystal Electrical Characteristics

    Load capacitance 12.5 1. Externally supplied. ST recommends the Citizen CFS-145 (1.5x5mm) and the KDS DT-38 (3x8mm) for thru-hole, or the KDS DMX-26S(3.2x8mm) for surface-mount, tuning fork-type quartz crystals. KDS can be contacted at kouhou@kdsj.co.jp or http://www.kdsj.co.jp Citizen can be contacted at csd@citizen-americal.com or http://www.citizencrystal.com 2.
  • Page 72: Timing Characteristics

    Electrical characteristics STFPC320 17.7 Timing characteristics = 3.3 V, T = -20 to 70°C, unless otherwise noted. Typical values are at T = 25°C Figure 55. Key scanning and display timing ≈ 500μs DISP Key scan data SEG Output DIG1...
  • Page 73: Switching Characteristics

    STFPC320 Electrical characteristics 17.8 Switching characteristics Table 20. Switching characteristics = -20 to +70 °C, V = 3.3V, V = -30V) Symbol Parameter Units SCL clock frequency μs Clock low period Clock high period HIGH SDA and SCL rise time...
  • Page 74: Stfpc320 Typical Application Circuit

    STFPC320 typical application circuit STFPC320 STFPC320 typical application circuit Figure 56. Typical application circuit 12 x 2 12 x 2 KEYBOARD KEYBOARD KEY1 KEY1 KEY2 KEY2 SEG1/K1 SEG1/K1 SEG12/K12 SEG12/K12 8 Grids/Segments 8 Grids/Segments S13/G16 ~ S20/G9 S13/G16 ~ S20/G9...
  • Page 75: Package Mechanical Data

    JEDEC Standard JESD97. The maximum ratings related to soldering conditions are also marked on the inner box label. ECOPACK is an ST trademark. ECOPACK specifications are available at: www.st.com.
  • Page 76: Table 22. Pqfp52 (10 X 10 X 2 Mm) Mechanical Data

    Package mechanical data STFPC320 Table 22. PQFP52 (10 x 10 x 2 mm) mechanical data Millimeters Symbol 2.450 0.250 1.800 2.000 2.200 0.220 0.400 0.110 0.230 12.950 13.200 13.450 9.800 10.000 10.200 7.800 12.950 13.200 13.450 9.800 10.000 10.200 7.800 0.650...
  • Page 77: Table 23. Document Revision History

    STFPC320 Revision history Revision history Table 23. Document revision history Date Revision Changes 08-Jan-2006 Initial release. Document reformatted to conform to new ST template. 07-Jul-2008 Modified: package mechanical data. Added: tape specifications. 77/78...
  • Page 78 No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.