您好,欢迎来到爱go旅游网。
搜索
您的当前位置:首页G2-fpsw-151

G2-fpsw-151

来源:爱go旅游网
®G2 Front Panel SoftwareFunctional Specification

PRELIMINARY DATA

1 Change History

NOT FOR EXTERNAL USEDate25 Jan 200126 Jan 2001

Version0.11.0

Reason and ChangeFirst draft.Release

Review comments added

2 May 200121May 2001

1.11.2

Futarque review comments addedNew interrupt handling added

Removed software build information for the command“Get Front Panel Software Version”Added memory

Updated following issue review.

22 May 20019 July 2001

1.31.4

Further updates and correctionsAdded E2PROM write strategy.Clarified details for wakeup typesAdded Ruwido rMAP protocol support.

21st August28th Sept

1.4.11.5

Added KeySource definitions for Gamepad DevicesRTC contains local time.

Command GetPlatformPowerStatus removed.Keypress data modified to handle rMAP devices.KeySource enumeration redefined for rMAPKeyStatus enumeration redefined for rMAPTable1Version Information

Page 1 of 25

1st October 2001

G2 Front Panel Software Functional Specification

2 Scope

This document describes the functionality of the software in the G2 Mediaref front panel.

3 Introduction

The front panel for the Mediaref platform comprises of software to support the following functionality:Display of timeFront Panel keypressIR receive and decode

NOT FOR EXTERNAL USEPower ManagementRTCScart bypassWakeup Alarms

3.1Abbreviations

FPIRRTCSTFPSTI2CSTRTC

Front PanelInfra redReal Time ClockSTAPI Front Panel DriverSTAPI I2C Driver

STAPI Real Time Clock Driver

3.2Reference Documents

1Event Handler API, DVD-DOC-018

2STFP Front Panel Driver API, DVD-API-183 v1.1.03STRTC Real Time Clock Driver API, STB-API-195 v1.3.0

4Ruwido rMAP (ruwido Multimedia Application Protocol) for Canal+ 1.0

G2FPSW - 2

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

4 Infra-red Protocol

The Ruwido rMAP infra-red protocol is supported by the Mediaref front panel.The following devices will be supported:Standard remote controlKeyboard

Mouse movement and buttons (L/M/R and X/Y movement)Mouse buttons (L/M/R)

Simple gaming pads ver.1 - 4 button bits (uni-directional)

NOT FOR EXTERNAL USESimple gaming pads ver.2 - 8 button bits (uni-directional)Bi-directional game pads are not supported.

5 Communication with Mediaref

The front panel communicates with Mediaref as described in the following section.

5.1I2c communications interface

The I2C communications interface is used to communicate with the ST5514 processor and the STV6412 scart

switch on the Mediaref platform and the RTC device on the front panel.

When the platform is in RUNNING mode theST5514 will make requests to the front panel micro via the STAPI front panel driver (STFP) and Real Time Clock driver (STRTC). These drivers utilise the STAPI I2C driver (STI2C) to perform transactions with the front panel. In this situation the front panel acts as an I2C slave device. E2PROM on the Mediaref platform is used for non-volatile storage and is written to and read from the ST 5514.When the platform is in STANDBY mode the front panel acts as an I2C bus master and can exchange data with E2PROM, RTC device and STV6412 Scart Switch. The ST5514 may be running in low power mode but does not interact with either device.

5.2Reset line

The Mediaref platform may be reset by pressing the front panel standby key for a period of 5 seconds. If this action is perform the front panel micro is reset and the reset output from the front panel to the Mediaref main board is asserted. This causes the Mediaref main board to be reset via onboard circuitry. The reset system on both the Mediaref main board and front panel micro is implemented in hardware.

5.3Scart interrupt input line

When this line is asserted the front panel micro should service the scart switch if the system is in NORMAL_STANDBY or STANDBY mode. See Section9.1 for a full description of power modes.Scart control functionality is described in Section11

G2FPSW - 3

1st October 2001

G2 Front Panel Software Functional Specification

5.4Mediaref interrupt output line

The interrupt line is used to indicate to the ST5514 that the front panel requires servicing. This may be due to a front panel key being pressed, an IR key being pressed or a wakeup alarm expiring during STANDBY mode. When an interrupt is received a GET_INTERRUPT_REQUEST command is sent to the front panel. Following a valid response action will be taken to service the request and inform the software on the ST5514 as appropriate.The response to the GET_INTERRUPT_REQUEST command is sent by the front panel. The response will contain the following information:Interrupt Source

The parameter is returned as 9 unsigned 8 bit integer values. The returned value is as follows:0 - Key Press or wakeup from a single keypress

NOT FOR EXTERNAL USE1 - Wakeup Normal (from key combination)2 - Wakeup Alarm Expiry3 - Wakeup NW Loader 13 - Wakeup NW Loader 24 - Wakeup HDD Code loader5 - External IF loader

If a keypress was received then the following additional information will be received as described in Section8.1 otherwise the contents of the these data items will be set to 0.1 - IRQ Source2 - Key Address3 - Key ID4 - Key Status5 - Battery Status6 - Timestamp

The front panel requires data storage for both volatile and non-volatile data.

5.5Mediaref Non-volatile storage

The E2PROM device on the Mediaref platform is used by the front panel software for non-volatile storage. This device is accessed via an I2C interface bus.

The E2PROM may be read from/written to by the front panel software when the platform is in STANDBY mode. When the platform is in RUNNING mode the E2PROM is read from/written to by the ST5514.There are two data storage areas in the E2PROM, utilised by the front panel software, and are protected by a single flip-flop flag. The flip-flop flag indicates which of the two storage areas is valid and ensures only valid data is read from only one area at any time. Additionally if a write operation failed the last valid value for any data item would still be held in one of the storage areas.

In order to update a data “item” within the E2PROM are the following strategy must be used:1. Lock the E2PROM communication path to avoid concurrent updates

G2FPSW - 4

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

2. Write the value (ex. GMT offset) in E2PROM area which currently is not valid3. Toggle area valid flag

4. Repeat step 2 (to ensure both areas are kept up to date).5. Unlock EEPROM communications path

5.6RTC Volatile memory

The RTC value is held in the RTC volatile memory. This memory is volatile but is battery backed via a capacitor (see Section10). The data area has two associated patterns which ensures the area is intact when reading and updating. The patterns which are both 32bits long are placed at the start and end of RTC memory and will have inverse values which are non-zero and not equal to 0xFFFFFFFF. An example of the two patterns is

0x134759DF and 0xECB8A620. The patterns will be randomly generated number written to RTC memory by the STi5514 via I2C bus.

NOT FOR EXTERNAL USE6 Front Panel Booting

The front panel acts as a system controller for the Mediaref platform following reboot and when the platform is

in STANDBY mode.

Section1shows the state transitions possible for the front panel when rebooting.

INITIALSystemRebootingdabdSTANDBYmode(I2C Master)cRUNNINGmode(I2C slave)Figure1Front Panel Booting State Transition Diagram

The state transitions are as follows:(a)

RTC content is invalid or Power Up Mode is STANDBY

G2FPSW - 5

1st October 2001

G2 Front Panel Software Functional Specification

(b)(c)(d)

Power up mode is RUNNING.

Wakeup alarm or valid wakeup key combination

Reset from STi5514, hard reset from front panel, brownout or depoweredReset command from STi5514 if in STANDBY mode.

The description of the states are as follows:Initial

When the Mediaref platform reboots this is the first state for the front panel to enter. The ST7 is in bootup state and is the I2C bus master. The Mediaref main board is inactive. The ST7 reads the Mediaref E2PROM and the next state transition is determined.

NOT FOR EXTERNAL USEStandby Mode

In this mode the ST7 is the I2C bus master and handles scart routing via the STV6412. The Mediaref main board is inactive. The ST7 maintains the clock display by reading the RTC device. The ST7 also handles the routing of scart data via the STV6412.Running Mode

In this mode the ST7 is a I2C slave device and the Mediaref main board is active. All displayed information is controlled by the STi5514.

7 Display

The front panel display allows the Mediaref board to indicate both time and status information to the user.The display on the front panel is based on a 7 segment LCD/LED display which has a number of segments and a colon an optionally decimal. The front panel will consist of 4 display digits with a centre colon.It must be possible to turn segments for a digit on/off separately.There are two ways to turn on all the digits:“Normal” with normal intensity

“Dim or Economic” when the platform is in Standby mode.

3210

Figure2LED/LCD display segment assignment

For digits without a colon the bit specifying the state of the colon will be 0 and is ignored by the front panel software. The digit is associated with digit 2 when being programmed.

G2FPSW - 6

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

It must be possible to make all the segments on the display blink synchronously.The designation of the digits is shown in Figure2

The designation of the segments, for a digit, is shown in Figure3.

0

5

1

NOT FOR EXTERNAL USE6

4

2

7

3

Figure3LED/LCD display segment assignment

Additionally the display has a number of LEDs. These are utilised as follows:1Mail reception LED

This LED shall be red and is provided on the front panel. The led is driven by software. The LED is used to inform the user that mail has been received.2IR activity LED

A LED shall be provided on the front panel and driven by software. This LED is used to indicate IR activity.3Modem Activity LED

A LED shall be provided on the front panel and driven by software. This LED is used to indicate that the Modem is online.

The state transition diagram for the display is shown in Figure4

G2FPSW - 7

1st October 2001

G2 Front Panel Software Functional Specification

.

*d

INITa

*c

*e

Dimb

NormalNOT FOR EXTERNAL USE*f

*g

OffBlinkFigure4Display State Transition Diagram

The state transitions are as follows:(a)(b)(c)(d)(e)(f)(g)

RTC data is invalid or power up mode is STANDBYPower up mode is RUNNINGSET_DISPLAY_INTENSITY (dim)

Reset command from STi5514, front panel hardware switch, brownout - platform depoweredSET_DISPLAY_INTENSITY (Normal) or SET_DISPLAY_MODE (On)SET_DISPLAY_MODE (Off)SET_DISPLAY_MODE (Blink)

NB * refer to the set of a state

7.1Software functionality

Software functionality will be supported as described in the following sections

7.1.1 Get Display Type

The command GET_DISPLAY_TYPE will allow the caller to determine the type of display used on the front panel. The display type is stored in ST7 Flash memory. This command may be called as a result of the execution of the STAPI command STFP_GetCapability().

G2FPSW - 8

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

The command will return the following information:Display Type

The type of display is returned to the caller. This information will uniquely identify the front panel type and display capability.

The format of this information will be 3 unsigned 8 bit bytes (characters) and defined as follows:Major version number - 1 ByteManufacturer Code - 2 BytesIR Protocol Support- 1 Byte (*1)

NB. *1 - This information is shown in Appendix:IR Protocol Support on page9

NOT FOR EXTERNAL USEIR ProtocolFutarqueRuwido rMAP

Value

(Hexadecimal)0x000x01

Table2IR Protocol Support

7.1.2 Get Front Panel Software Date

The command GET_SOFTWARE_DATE will allow the caller to determine the build date for the software used on the front panel. This information is stored in ST7 Flash memory. The command will return the following capability information:Software Date Information

The software build date for the front panel software is returned to the caller. This information will identify the software in the front panel.

The format of the software date information is a 24 byte unsigned string, which is NULL termination. Any unused characters have NULL inserted

An example of the data in the string for software built on April 30th 2001 at 9:18:26 is shown below:“Apr 30 2001 09:18:26”

7.1.3 Get Front Panel Software Version

The command GET_SOFTWARE_VERSION will allow the caller to determine the version of the software used on the front panel. This information is stored in ST7 Flash memory. This command may be called as a result of the execution of the STAPI command STFP_GetCapability()The command will return the following capability information:Software Version Information

The version of the front panel software is returned to the caller. This information will identify the software in the front panel.

The format of the software version will be 3 unsigned 8 bit values and an unsigned string:Major Revision Number - 1 Byte

G2FPSW - 9

1st October 2001

G2 Front Panel Software Functional Specification

Minor Revision Number - 1 BytePatch Revision Number - 1 Byte

7.1.4 Set Display

The command SET_DISPLAY allows information to be displayed on the front panel. All the digits of the

display are managed by this command.

This command is called as a result of the execution of the STAPI command STFP_SetDisplay().The parameters passed are as follows:1The number of digits on the display

NOT FOR EXTERNAL USEThis parameter is passed as unsigned 8 bit integer value as defines the digits of the display to be modified by the command. The value is determined by OR’ing the bits representing the digits to be modified.The digits are referenced as shown in Table3.

2A list of segment values for each individual digit on the display.

This parameter is passed as number of unsigned 8 bit integer values on per digit. The digits are as specified in the list (defined by the previous parameter). The segments of each digit are identified as shown in Figure3 and referenced as shown in Table4:

Value

(Hexadecimal)0x010x020x040x08

Digit Identifier0123

Control Bit0123

Table3Display Digit Value Assignments

Segment Identifier01234567

Control Bit01234567

Value(Hexadecimal)0x010x020x040x080x100x200x400x80

Table4Display Segment Value Assignments

G2FPSW - 10

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

7.1.5 Set Display Digit

The command SET_DISPLAY_DIGIT allows a single digit of the display to be managed.

This command is called as a result of the execution of the STAPI command STFP_SetDisplayDigit().The parameters passed are as follows:

1The number of the digit on the display to be modifiedThe digit mask for the digits to modify

This parameter is passed as an unsigned 8 bit value. See table 2.2The value of the segments of the digit

NOT FOR EXTERNAL USEThis parameter is passed as an unsigned 8 bit integer value. The segments of a digit are identified as shown

in Figure3and referenced as shown in Table4:

7.1.6 Set Display Intensity

The command SET_DISPLAY_INTENSITY allows the user to control the intensity of the display.This command is called as a result of the execution of the STAPI command STFP_SetDisplayIntensity().The intensity parameter is passed as an unsigned 8 bit value as shown below:0 - Normal Intensity

1 - Low Intensity (display is dimmed)

7.1.7 Set Display Mode

The command SET_DISPLAY_MODE allows the user to control the blinking rate of state of all illuminated

digits, and segments, of the display.

This command is called as a result of the execution of the STAPI command STFP_SetDisplayMode().The following parameters are passed:1Display State

This parameter is passed as an unsigned 8 bit value as shown below:0 - All specified digits/segments off (not blinking)1 - All specified segments are on (not blinking)2 - All specified segments are blinking2Display On Time

This parameter is passed as an unsigned 8 bit integer value. This parameter will be in units of 10

milli-seconds (10 ms) and should be ignored if the Display State is not 2 (all segments blinking). In this case it should have a value of 0.3Display Off Time

This parameter is passed as an unsigned 8 bit integer value. This parameter will be in units of 10

milli-seconds (10 ms) and should be ignored if the Display State is not 2 (all segments blinking). In this case it should have a value of 0.

G2FPSW - 11

1st October 2001

G2 Front Panel Software Functional Specification

7.1.8 Set LED

The command SET_LED allows the user to manage a specified LED on the front display. The LEDs are

independent from the digits/segments of the display. This command is called as a result of the execution of the STAPI command STFP_SetLed().The following parameters are passed:

1The identifier for the LEDs on the display to be managed. This parameter is passed as unsigned 8 bit integer value as shown in Table5.

LEDValue0x010x020x04

NOT FOR EXTERNAL USEMail receptionIR ActivityModem Activity

Table5LED Value assignments

2LED State

This parameter is passed as an unsigned 8 bit value as shown below:0 - The specified LED is off (not blinking)1 - The specified LED is on (not blinking)2 - The specified LED is blinking3LED On Time

This parameter is passed as an unsigned 8 bit integer value. This parameter will be in units of 10

msec-seconds (10 ms) and should be ignored if the LED state is not 2 (LED blinking). In this case it should have a value of 0.4LED Off Time

This parameter is passed as an unsigned 8 bit integer value. This parameter will be in units of in 10

milli-seconds (10 ms) and should be ignored if the LED state is not 2 (LED blinking). In this case it should have a value of 0.

8 Keypress

There are 9 user keys and one standby key mounted on the front panel. Additionally keypresses may be received from other sources such as remote IR commanders and IR keyboards. Up to 4 keypresses may be buffered at any time.

8.1Key press transaction

When a key is pressed the following information is retained:1Key Source

This parameter is an unsigned 8 bit value as shown in Table6.

G2FPSW - 12

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

Key SourceFront Panel

IR Commander Futarque Type 1IR Commander Futarque Type 2IR Commander Ruwido rMAPIR Commander Type - UnsupportedIR Keyboard

Value0x000x01 (*1)0x02 (*1)0x03 (*1)0x04 (*2)0x050x06 (*3)0x07 (*3)0x08 (*3)0x09 (*3)0x0A (*3)

Table6Key Press Sources

NOT FOR EXTERNAL USEIR_MouseIR XY Device

Gamepad Ver. 1 (4 buttons)Gamepad Ver. 1 (8 buttons)Gamepad Ver. 2

NB.

(*1) The front panel software is compiled to support a specific IR commander type(s) due to limited availability of flash memory on the ST7 device. Currently the support is as follows:

(a). Futarque IR commanders (Type 1 and Type 2)(b)

Ruwido rMAP Commander

(*2)This commander type is included for future expansion and not currently supported(*3) These devices, key sources, cannot be used to perform wakeup functionality.

2Key Address

This parameter is an unsigned 8 bit value as shown in Table7

G2FPSW - 13

1st October 2001

G2 Front Panel Software Functional Specification

IR DeviceFront Panel

IR Commander Futarque Type 1IR Commander Futarque Type 2IR Commander Ruwido rMAPIR Commander Type - UnsupportedIR Keyboard

Key Address FormatUnused (0 returned in all bits)Format A (See Table8)Format A (See Table8)Format A (See Table8)Format A (See Table8)Format A (See Table8)Format A (See Table8)Format A (See Table8)Format B (See Table9)Format B (See Table9)Format B (See Table9)

NOT FOR EXTERNAL USEIR Mouse (without XY data)IR XY Device

Ruwido rMAP Gamepad Ver. 1 (4 buttons)Ruwido rMAP Gamepad Ver. 1 (8 buttons)Ruwdio rMAP Gamepad Ver. 2

Table7Key Address Formats

InformationUnused

Device ID (Bit D2)Device ID (Bit D1)Device ID (Bit D0)Address (Bit A2)Address (Bit A1)Address (Bit A0)

Key Address Bit Number7-6543210

Table8Key Address - Format A

Key Address Bit ValueUnused0x200x100x080x040x020x01

InformationUnusedAddress (Bit A1)Address (Bit A0)Counter (Bit Z1)Counter (Bit Z0)

Key Address Bit Number7-43210

Table9Key Address - Format B

Key Address Bit ValueUnused0x080x040x020x01

G2FPSW - 14

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

3Key ID

This parameter is an unsigned 16 bit value which identifies the key that was pressed.

For a Front Panel key the value of 0xFFFF may be used to identify ANY_KEY when specifying a wakeupkey.

For IR devices the following tables (Table10 to Table15) identify the specific format of the information received on a per device basis.

InformationKey ID Bit Number15-876543210

Key ID Bit ValueUnused0x00800x00400x00200x00100x00080x00040x00020x0001

NOT FOR EXTERNAL USEUnusedFunction (Bit F7)Function (Bit F6)Function (Bit F5)Function (Bit F4)Function (Bit F3)Function (Bit F2)Function (Bit F1)Function (Bit F0)

Table10Key ID - IR Commander (all types)

InformationUnused

Keyboard (Bit K7)Keyboard (Bit K6)Keyboard (Bit K5)Keyboard (Bit K4)Keyboard (Bit K3)Keyboard (Bit K2)Keyboard (Bit K1)Keyboard (Bit K0)

Key ID Bit Number15-876543210

Table11Key ID - Keyboard

Key ID Bit ValueUnused0x00800x00400x00200x00100x00080x00040x00020x0001

G2FPSW - 15

1st October 2001

G2 Front Panel Software Functional Specification

InformationUnusedButton LButton MButton R

Key ID Bit Number15-3210

Table12Key ID - Mouse Buttons

Key ID Bit ValueUnused0x00040x00020x0001

NOT FOR EXTERNAL USEInformationUnusedButton LButton MButton R

X Movement (Bit X5)X Movement (Bit X4)X Movement (Bit X3)X Movement (Bit X2)X Movement (Bit X1)X Movement (Bit X0)Y Movement (Bit Y5)Y Movement (Bit Y4)Y Movement (Bit Y3)Y Movement (Bit Y2)Y Movement (Bit Y1)Y Movement (Bit Y0)

Key ID Bit Number1514131211109876543210

Key ID Bit ValueUnused0x40000x20000x10000x08000x04000x02000x01000x00800x00400x00200x00100x00080x00040x00020x0001

Table13Key ID - Mouse Movement

G2FPSW - 16

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

InformationUnusedButton (Bit T3)Button (Bit T2)Button (Bit T1)Button (Bit T0)

Key ID Bit Number15-43210

Key ID Bit ValueUnused0x00080x00040x00020x0001

Table14Key ID - Gamepad Ver. 1 (4 buttons)

NOT FOR EXTERNAL USEInformationUnusedButton (Bit T7)Button (Bit T6)Button (Bit T5)Button (Bit T4)Button (Bit T3)Button (Bit T2)Button (Bit T1)Button (Bit T0)

Key ID Bit Number15-876543210

Key ID Bit ValueUnused0x00800x00400x00200x00100x00080x00040x00020x0001

Table15Key ID - Gamepad Ver 2 (8 buttons)

4Key Status

This parameter is an unsigned 8 bit value which identifies the key pressed on a device. Where the value returned is KEY_STATUS_UNKNOWN the single/multiple key press information is returned via the Key Address status word. Table16 describes the Key Pressed Value returned.

G2FPSW - 17

1st October 2001

G2 Front Panel Software Functional Specification

IR DeviceFront PanelIR CommanderIR KeyboardIR_MouseIR XY DeviceGamepad Ver. 1

Key Pressed ValueKEY_STATUS_PRESSEDKEY_STATUS_PRESSEDKEY_STATUS_PRESSEDKEY_STATUS_UNKNOWNKEY_STATUS_UNKNOWNKEY_STATUS_PRESSEDKEY_STATUS_PRESSED

Table16Key Press Status

Key Released Value

No key press message receivedNo key press message receivedKEY_STATUS_RELEASEDKEY_STATUS_UNKNOWNKEY_STATUS_UNKNOWNNo key press message receivedNo key press message received

NOT FOR EXTERNAL USEGamepad Ver. 2

5Timestamp

This parameter is an unsigned 16 bit value. When a key is pressed the timestamp is read from the front panel if available, otherwise a value of 0 is returned. The timestamp is held in a counter within the ST7 and

initialised to 0 on power up. The value returned is the value of the counter when the keypress occurred. The counter allow timestamp reporting to a resolution of 10ms.

6Battery Status

This parameter is an unsigned 8 bit value as shown in Table17.

Key StatusBattery FailBattery OK

Battery Status unsupported

Value0x000x010x02

Table17Battery Status

8.2Key Types

8.2.1 Front Panel Keys

The front panel has 9 keys plus one standby key. The functionality of the keys is shown in Table18

G2FPSW - 18

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

:

KeyP+P-MenuSortieOKHaut

FunctionProgram UpProgram DownDisplay MenuExitOKUpDownLeftRightStandby

Table18Front Panel Keys

NOT FOR EXTERNAL USEBasGaucheDroiteStandby

8.2.2 IR keys

When a valid key press is received from the IR detector a keypress transaction is performed as described

previously. The source of this keypress may be from a remote IR commander or an IR keyboard. The keypress information described in the previous sub-section is returned. It is not possible to receive multiple keypresses from an IR device.

Key press information from IR devices should be reported back to the STi5514 via the I2C communications bus. No book-keeping should be performed on rMAP gamepad keypress information by the front panel software.

9 Power Management

The front panel controls power management of the Mediaref platform in a number of circumstances.

There is no power on/off button. Instead the platform has a standby push button which has the same behavior as

the standby button on a remote control unit.

When the platform has power connected the default mode is STANDBY where only the front panel is active. The remainder of the platform will run in a low power mode offering a minimal level of functionality. In low power mode the platform is unable to decode and display digital TV signals.The platform can be switched from stand by mode to an interactive mode by:1The infra-red remote control2The infra-red wireless keyboard3The front panel keys

4The front panel standby button

5The real time clock (after a wakeup alarm has been programmed)

G2FPSW - 19

1st October 2001

G2 Front Panel Software Functional Specification

Two display intensities for the front panel are supported (normal and dim).

The front panel display will always be set to dim (or low intensity) when the platform is in STANDBY mode.When the power is removed or the unit switched off the display will be off.

The status of the Mediaref platform power is monitored by the front panel. If a brownout occurs or power is lost the front panel will reboot the platform.

The power reset information can be obtained from ST7.

9.1Power Modes

The following diagram shows the power mode transition diagram for the Mediaref platform.

NOT FOR EXTERNAL USE5minutesINACTIVEDE-POWEREDACPowerAppliedACPowerRemovedACPowerAppliedACPowerRemoved

Mode(*3):Off toStandbyMode(*3):Off toStandbyMode(*3):Off toRunningMode(*3):Off toRunningSTANDBYRCKeypressRUNNINGStandbyKeypressRCKeypressNORMALSTANDBYReset

Figure5Power State Transition Diagram

The state transition diagram has a number of states as outline in Table19:

G2FPSW - 20

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

.

ST5514ST-GX1InactiveInactiveInactive

Power StateDE-POWEREDINACTIVENORMAL STANDBYSTANDBY

FP microInactiveInactiveActive

DisplayOffOffDim

Displays Time

RTCValid *1InvalidValid (*2)

ScartNoneNoneFPcontrolled

InactiveActiveDimDisplays --:--

InvalidFPcontrolled

NOT FOR EXTERNAL USERUNNINGActiveActiveNormalValid (*2)ST5514controlled

Table19Power States

Notes:*1*2* 3

RTC is valid if set and within capacitor backup periodRTC is valid if set

The power up mode is held in E2PROM

9.2Software Functionality

Software functionality will need to be supported as described in the following sections.

9.2.1 Reset

The command RESET is called as a result of executing the STAPI command STRTC_Reset().

When this command is executed the reset circuitry is invoked by means of the Reset Platform line being asserted.

When this command is issued the following parameter is passed:Reset Mode

This parameter is passed as an unsigned 8 bit integer. When a reset is requested this parameter determine the state in into which the platform will enter:

0 - Standby Mode (The platform reboots and enters Standby mode)1 - Running Mode (The platform will reboot and enter Running mode)

10 RTC

The front panel optionally uses an onboard RTC device or use the RTC device on the Mediaref platform. The RTC will be battery backed via a capacitor and will maintain the RTC for a minimum period of 5 minutes following removal of mains power to the Mediaref platform.

G2FPSW - 21

1st October 2001

G2 Front Panel Software Functional Specification

The RTC requires the following information:1RTC Status

The status of the RTC is stored in E2PROM. This status indicates the validity of the RTC.2RTC GMT Offset

The GMT offset is stored in E2PROM and is the time difference between the local time (where Mediaref is located) and GMT in minutes. This data is held as a 16 bit integer value with a valid range of -1439 to 1439.3The RTC maintains a local time/date value as shown in Table20

:

NOT FOR EXTERNAL USEByte Number0123456

FunctionSecondsMinutesHourDayDateMonthYear

Range00-59 (decimal)00-59 (decimal)00-23 (decimal)01-07 (decimal)01-31 (decimal)01-12 (decimal)00-99 (decimal)

Table20RTC Time/Date Information

4The RTC has a time mode as shown in Table21. This information is stored as a 8 bit integer value in E2PROM. The indication of AM/PM is hardware dependant.:

Mode24 hour clock12 hour clock

Value0x010x02

Range00:00 - 23:5900:00 - 11:59 AM/PM

Table21RTC Time Mode Information

11 SCART control

The STV6412 scart switch is utilised by the Mediaref platform and may be controlled by the ST5514 or the front

panel micro via I2C commands.

The scart switch will interrupt the ST5514 and Front Panel micros when it requires servicing.

When the platform is in the RUNNING state the ST5514 controls the scart switch via the I2C bus. In this state the Front Panel micro should not service interrupts from the scart switch.

G2FPSW - 22

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

When the platform is in the NORMAL_STANDBY or STANDBY power states the front panel micro controls the scart switch and should service interrupts from the device. In this case the scart switch performs bypass functionality and the VCR scart input is routed to the TV scart output.

If the front panel is rebooted and the platform is to enter RUNNING mode the TV scart output will be enabled if video source is connected the VCR. In all other cases the TV scart output will be disabled.Power states are described in Section9.1

When a VCR is connected to the platform the VCR scart input will be routed to the TV scart output and the TV scart output enabled.

Conversely when the VCR is disconnected from the VCR scart the TV scart output will be disabled.The state transition diagram for Scart routing is shown in below.

NOT FOR EXTERNAL USE.

INITIALSystemRebootingabcROUTINGINACTIVEdROUTINGACTIVEFigure6Scart State Transition Diagram

The state transitions are as follows:(a)(b)(c)(d)

VCR is inactive and slow blanking values are below 2V.VCR is active

VCR becomes inactive (interrupt raised by STV6412)VCR becomes active (interrupt raised by STV6412)

The description of the states is as follows:

G2FPSW - 23

1st October 2001

G2 Front Panel Software Functional Specification

Initial

The STv6412 is initialised to default valuesRouting Active

VCR is active (slow blanking 4/3 or 16/9. The STV6412 is configured to short/route all signals between the VCR scart and the TV scart.Routing Inactive

The STV6412 TV output is inactive (slow blanking < 2V) and all outputs are disabled. Following this the VCR scart is routed to the TV scart under control of the STi5514.

NOT FOR EXTERNAL USEThe output of the TV scart is dependent upon the VCR slow blanking input on the VCR scart.The setting for the SCART switch are shown in Table22.

Register0x00x10x20x30x40x50x6

Standby Mode0x000x000x800x000xC10x000xFF

Running Mode0x000x020x830x8B0xC10x000xBD

Comments0

Running Mode: Enable TV audio output

Running Mode: Enable VCR input and TV output

Table22SCART Configuration

12 Wakeup Type

The platform may be woken up for a number of reasons (see description below). The STi5514 has the ability to

retrieve the last wakeup type (reason) from the front panel when the platform is in RUNNING mode.

12.1Software Functionality

Software functionality will need to be supported as described in the following sections.

12.1.1 Get Wakeup Type

The command GET_WAKEUP_TYPE is executed as a result of the user calling the STAPI function STFP_GetWakeupType().

When this command is issued the following parameter is returned:

G2FPSW - 24

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

G2 Front Panel Software Functional Specification

Wakeup Type

The wakeup type is returned as an unsigned 8 bit integer value as shown in:0 - Cold Boot (Power applied)1 - Warm Boot (SW reset from I2C bus)2 - HW Reset (HW reset from front panel circuit)3 - Wakeup Alarm (Expiry of wakeup alarm)*

* A single wakeup alarm may be stored in the E2PROM on the Mediaref platform. Storage required for the wakeup alarm is defined in. When the front panel is in STANDBY mode the expiry of a wakeup alarm will cause the main board to exit from STANDBY mode and enter RUNNING mode. The wakeup alarm when valid contains the local time.

NOT FOR EXTERNAL USE13 Wakeup Keys

Wakeup keys may be single or combination key sequences that allow a user to bring the main board out of

STANDBY mode. Wakeup keys are programed by the user via the STAPI command STFP_SetWakeupKeys() and stored in E2PROM on the Mediaref platform.

Multiple key combinations can only be programmed for the front panel keys and not for IR devices.1Single Key Presses

Single wakeup keys can only perform normal wakeupAny single front panel button will perform normal wakeupPointing devices and gamepads cannot perform wakeup

IR commanders and keyboards will perform normal wakeup if not excluded (see item 5)Five excluded wakeup keys can be stored for each IR commander and keyboard (see Table6)2Multiple Key presses

Multiple key combinations consist of three front panel keys

Only one multiple key combination is possible for each wakeup modeMultiple key combinations do not take account of single wakeup keysIf more than three keys are pressed the key sequence will be invalid.

13.1Validation of multiple key combinations

The 3 front panel keys forming a multiple key combination must all be kept pressed for a period of 1 second minimum.

G2FPSW - 25

1st October 2001

G2 Front Panel Software Functional Specification

NOT FOR EXTERNAL USEG2FPSW - 26

STMicroelectronics Confidential

STB--G2FPSW1.5.1

1st October 2001

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- igat.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务