FEEXTM ALPHANUMERIC DECODER II S5T8702 INTRODUCTION 32-LQFP-0707 TM This FLEX Alphanumeric Decoder II date sheet describes the operation of the S5T8702. The S5T8702 simplifies implementation of a FLEXTM paging device by interfacing with any of several off-the-shelf paging receivers and any of several off-the-shelf host microcontroller/microprocessors. Its primary function is to process information received and demodulated from a FLEX radio paging channel, select messages addressed to the paging device and communicate the message information to the host. The S5T8702 also operates the paging receiver in an efficient power consumption mode and enables the host to operate in a low power mode when monitoring a signal channel for message information. FEATURES • FLEXTM paging protocol decoder • 16 programmable user address words • 16 fixed temporary addresses • 16 operator messaging addresses • 1600,3200,and 6400bps(bits per second) decoding • Any-phase or single-phase decoding • Uses standard Serial Peripheral Interface (SPI) in slave mode • Allow low current STOP mode operation of host processor • Highly programmable receiver control • Real time clock time base • FLEX fragmentation and group messaging support • Real time clock over-the-air update support • Compatible with synthesized receivers • Low Battery Indication(External detector) • 28 used pins (32-pin package standard) • Internal demodulator and data slicer • Improved battery savings via partial correlation and intermittent receiver clock • Full support for revision 1.9 of the FLEX protocol • 32-pin LQFP package • Supply voltage: 1.8 to 3.6V • Operating frequency: 76.8kHz or 160kHz 1 FEEXTM ALPHANUMERIC DECODER II S5T8702 ORDERING INFORMATION Device Name +S5T8702X01-E0R0 +: New Product 2 Package Type Operating Temperature 32-LQFP-0707 -25°C to 85°C FEEXTM ALPHANUMERIC DECODER II S5T8702 SYSTEM BLOCK DIAGRAM Synthesizer Programming Control Receiver Receiver Control Host Microprocessor S0/IFIN 38.4 or 40 kHz Clock S5T8702 10 MΩ LOBAT 15pF 160 kHz Low Battery Detector User Interface 15pF Figure 1 : Example Block Diagram Using Internal Demodulator When configured to use the internal demodulator, the S5T8702 connects to a receiver capable of generating a limited (i.e. 1-bit digitized) 455kHz or 140kHz IF signal. In this mode, the S5T8702 has 7 receiver control lines used for warming up and shutting down a receiver in stages. The S5T8702 has the ability to detect a low battery signal during the receiver control sequences. It interfaces to a host MCU through a standard SPI. It has a 1minute timer that offers low power support for a time of day function on the host. When using the internal demodulator, the oscillator frequency (or external clock) must be 160kHz. The CLKOUT signal can be programmed to be either a 38.4kHz signal created by fractionally dividing the oscillator clock, or a 40kHz signal creating by dividing the oscillator clock by 4. 3 FEEXTM ALPHANUMERIC DECODER II S5T8702 Synthesizer Programming Control Audio to Digital Converter Low Battery Detector Control Host Microprocessor EXTS1 38.4 kHz Clock EXTS0 LOBAT S5T8702 User Interface 10pF 76.8 kHz Audio Receiver 10 MΩ Receiver 10pF Figure 2 : Example Block Diagram Using External Demodulator The S5T8702 can also be configured to connect to a receiver capable of converting a 4 level audio signal into a 2 bit digital signal. In this mode, the S5T8702 has a 8 receiver control lines used for warming up and shutting down a receiver in stages. It also includes configuration setting for the two post detection filter bandwidths required to decode the two symbol rates of the FLEX signal. Also when using an external demodulator, the oscillator frequency (or external clock) must be 76.8kHz and the CLKOUT signal (when enabled) is 38.4kHz clock output capable of driving other devices. 4 FEEXTM ALPHANUMERIC DECODER II S5T8702 FUNCTIONAL BLOCK DIAGRAM S0-S77 S1-S7 S0 Receiver Control IFIN Demodulator & Data Slicer S0/IFIN Control/ Status Registers 2 VDD EXTS0 2 VSS EXTS1 Symbol Sync SYMCLK OSCPD XTAL EXTAL CLKOUT TEST2 External Control Unit 76.8 kHz or 160 kHz Oscillator Sync Correlator Clock Generator Deinterleaver Error Corrector Address Comparator/ Correlator Local Message Filter Control/ Status Registers SPI Buffer SPI TEST3 RESET LOBAT READY 4 SPI Figure 3 : Block Diagram 5 FEEXTM ALPHANUMERIC DECODER II S5T8702 PIN DESCRIPTION PIN NAME PIN TYPE DESCRIPTION Power VDD 3,13 Power VSS 7,29 Ground LOBAT 10 I Low battery detect input Reset RESET 24 I Active low reset to the S5T8702. External Symbol Input Signals EXTS1 11 I MSb of the symbol currently being decoded EXTS0 12 I LSb of the symbol currently being decoded SPI Signals SS 27 I Slave Select for SPI communications SCK 28 I Serial Clock for SPI communications MOSI 30 I Data input for SPI communications MISO 31 O Three-state data output for SPI communications READY 26 O Driven low when the IC is ready for an SPI packet Clock Signals CLKOUT 32 O 38.4 kHz or 40kHz clock output(derived from oscillator) SYMCLK 14 O Recovered symbol clock EXTAL 6 I 76.8 kHz or 160kHz crystal input or external input XTAL 5 O 76.8 kHz or 160kHz clock output OSCPD 2 I Internal oscillator power down. Connected to VSS when using internal oscillator. Connected to VDD when using an external source. Receiver Control Lines S1 - S7 22,21,20,1 9,18,16,15 O S0 / IFIN 23 O/I Seven three-state receiver control output S0 : Receiver control output when using external demodulator IFIN : Limited IF input when using internal demodulator Test pins 6 TEST2, TEST3 4,8 I IC manufacturing test mode pin. Normally connected to VSS. NC 1,9,17,25 O IC manufacturing test mode on. Normally connected to Vss. (Can be left unconnected.) FEEXTM ALPHANUMERIC DECODER II S5T8702 24 23 22 21 20 19 18 17 RESET S0/IFIN S1 S2 S3 S4 S5 NC PIN CONFIGURATION 25 26 27 28 29 30 31 32 S5T8702 16 15 14 13 12 11 10 9 S6 S7 SYMCLK VDD EXT0 EXT1 LOBAT NC NC OSCPD VDD TEST2 XTAL EXTAL VSS TEST3 1 2 3 4 5 6 7 8 NC READY SS SCK VSS MOSI MISO CLKOUT Figure 4 : S5T8702 32-LQFP Top View 7 FEEXTM ALPHANUMERIC DECODER II S5T8702 FUNCTIONAL DESCRIPTION SPI PACKETS All data communicated between the S5T8702 and the host MCU is transmitted on the SPI in 32-bit packets. Each packet consists of an 8-bit ID followed by 24 bits of information. The S5T8702 uses the SPI bus in full duplex mode. In other words, whenever a packet communication occurs, the data in both directions is valid packet data. The SPI interface consists of a READY pin and four SPI pins (SS SS, SCK, MOSI, and MISO). The SS is used as a chip select for the S5T8702. The SCK is a clock supplied by the host MCU. The data from the host is transmitted on the MOSI(Master-Out-Slave-In) line. The data from the S5T8702 is transmitted on the MISO(Master-In-SlaveOut) line. Timing requirements for SPI communication are specified in "SPI Timing" on page 60. PACKET COMMUNICATION INITIATED BY THE HOST Refer to figure 6 on page 10. When the host sends a packet to the S5T8702, it performs the following steps: 1. Select the S5T8702 by driving the SS pin low. 2. Wait for the S5T8702 to drive the READY pin low. 3. Send the 32-bit packet. 4. De-select the S5T8702 by driving the SS pin high. 5. Repeat steps 1 through 4 for each additional packet. SS READY SCK 1 4 2 3 MOSI D31 D1 D0 D31 D1 D0 D31 D1 D0 MISO D31 D1 D0 D31 D1 D0 D31 D1 D0 High-impedance State Figure 6: Typical Multiple Packet Communications Initiated by the Host When the host sends a packet, it will also receive a valid packet from the S5T8702. If the S5T8702 is enabled (see "Checksum Packet" on page 15 for a definition of enabled) and has no other packets waiting to be sent, the S5T8702 will send a status packet. The host must transition the SS pin from high to low to begin each 32-bit packet. The S5T8702 must see a negative transition on the SS pin in order for the host to initiate each packet communication. 8 FEEXTM ALPHANUMERIC DECODER II S5T8702 PACKET COMMUNICATION INITIATED BY THE FLEX DECODER IC Refer to figure 7 on page 11. When the S5T8702 has a packet for the host to read, the following occurs: 1. The S5T8702 drives the READY pin low. 2. 3. If the S5T8702 is not already selected, the host selects the S5T8702 by driving the SS pin low. The host receives (and sends) a 32-bit packet. 4. The host de-selects the S5T8702 by driving the SS pin high (optional). SS READY 2 4 1 3 SCK MOSI D31 D1 D0 D31 D1 D0 D31 D1 D0 MISO D31 D1 D0 D31 D1 D0 D31 D1 D0 High-impedance State Figure 7: Typical Multiple Packet Communications Initiated by the FLEX decoder IC When the host is reading a packet from the S5T8702, it must send a valid packet to the S5T8702. If the host has no data to send, it is suggested that the host send a Checksum Packet with all of the data bits set to 0 in order to avoid disabling the S5T8702. See "Checksum Packet" on page 15 for more details on enabling and disabling the S5T8702. The following figure illustrates that it is not necessary to de-select the S5T8702 between packets then the packets are initiated by the S5T8702. SS READY SCK MOSI D31 D1 D0 D31 D1 D0 D31 D1 D0 MISO D31 D1 D0 D31 D1 D0 D31 D1 D0 High-impedance State Figure 8: Multiple Packet Communications Initiated by the FLEX decoder IC with No De-select 9 FEEXTM ALPHANUMERIC DECODER II S5T8702 HOST-TO-DECODER PACKET MAP The upper 8 bits of a packet comprise the packet ID. The following table describes the packet id’s for all of the packets that can be sent to the S5T8702 from the host. Table 1: Host-to-Decoder Packet ID Map Packet ID (Hexadecimal) Page 00 Checksum 16 02 Configuration 18 02 Control 21 03 All Frame Mode 23 04 0E Reserved (Host should never send) 0F Receiver Line Control 29 10 Receiver Control Configuration (Off setting) 30 11 Receiver Control Configuration (Warm Up 1 Setting) 31 12 Receiver Control Configuration (Warm Up 2 Setting) 31 13 Receiver Control Configuration (Warm Up 3 Setting) 31 14 Receiver Control Configuration (Warm Up 4 Setting) 31 15 Receiver Control Configuration (Warm Up 5 Setting) 31 16 Receiver Control Configuration (3200sps Sync Setting) 32 17 Receiver Control Configuration (1600sps Sync Setting) 33 18 Receiver Control Configuration (3200sps Data Setting) 33 19 Receiver Control Configuration (1600sps Data Setting) 33 1A Receiver Control Configuration (Shut Down 1 Setting) 34 1B Receiver Control Configuration (Shut Down 2 Setting) 34 1C 1F 10 Packet Type Special (Ignored by S5T8702) 20 Frame-Assignment (Frames 112 through 127) 35 21 Frame Assignment (Frames 96 through 111) 35 22 Frame Assignment (Frames 80 through 95) 35 23 Frame Assignment (Frames 64 through 79) 35 FEEXTM ALPHANUMERIC DECODER II S5T8702 Table 1: Host-to-Decoder Packet ID Map (Continued) Packet ID (Hexadecimal) Packet Type Page 24 Frame Assignment (Frames 48 through 63) 35 25 Frame Assignment (Frames 32 through 47) 35 26 Frame Assignment (Frames 16 through 31) 35 27 Frame Assignment (Frames 0 through 15) 35 28 77 78 79 - 7F Reserved (Host should never send) User Address Enable 36 Reserved (Host should never send) 80 User Address Assignment (User address 0) 37 81 User Address Assignment (User address 1) 37 82 User Address Assignment (User address 2) 37 83 User Address Assignment (User address 3) 37 84 User Address Assignment (User address 4) 37 85 User Address Assignment (User address 5) 37 86 User Address Assignment (User address 6) 37 87 User Address Assignment (User address 7) 37 88 User Address Assignment (User address 8) 37 89 User Address Assignment (User address 9). 37 8A User Address Assignment (User address 10) 37 8B User Address Assignment (User address 11) 37 8C User Address Assignment (User address 12) 37 8D User Address Assignment (User address 13) 37 8E User Address Assignment (User address 14) 37 8F User Address Assignment (User address 15) 37 90 - FF Reserved (Host should never send) 11 FEEXTM ALPHANUMERIC DECODER II S5T8702 DECODER-TO-HOST PACKET MAP The following table describes the packet ID's for all of the packets that can be sent to the host from the S5T8702. Table 2: Decoder-to-Host Packet ID Map Packet ID (Hexadecimal) Page 00 Block Information Word 34 01 Address 36 02 57 Vector or Message (ID is word number in frame) 37 58 7E Reserved 7F 80 FE FF 12 Packet Type Status 43 Reserved Part ID 45 FEEXTM ALPHANUMERIC DECODER II S5T8702 HOST-TO-DECODER PACKET DESCRIPTIONS The following sections describe the packets of information sent from the host to the S5T8702. In all cases the packets should be sent MSB first (bit 7 of byte 3 = bit 31 of the packet = MSB). CHECKSUM PACKET The Checksum Packet is used to insure proper communication between the host and the S5T8702. The S5T8702 exclusive-or's the 24 data bits of every packet it receives (except the Checksum Packet and the special packet ID's 1C through 1F hexadecimal) with an internal checksum register. Upon reset and whenever the host writes a packet to the S5T8702, the S5T8702 is disabled from sending any information to the host processor until the host processor sends a Checksum Packet with the proper checksum value (CV) to the S5T8702. When the S5T8702 is disabled in this way, it prompts the host to read the Part ID Packet. Note that all other operation continues normally when the S5T8702 is "disabled". Disabled only implies that data cannot be read, all other internal operations continue to function. When the S5T8702 is reset, it is disabled and the internal checksum register is initialized to the 24 bit part ID defined in the Part ID Packet. See "Part ID Packet" on page 46 for a description of the Part ID. Every time a packet other than the Checksum Packet and the special packets 1C through 1F is sent to the S5T8702, the value sent in the 24 information bits is exclusive-or'ed with the internal checksum register, the result is stored back to the checksum register, and the S5T8702 is disabled. If a Checksum Packet is sent and the CV bits match the bits in the checksum register, the S5T8702 is enabled. If a Checksum Packet is sent when the S5T8702 is already enabled, the packet is ignored by the S5T8702 in which case a null packet having the ID and data bits set to 0 is suggested. If a packet other than the Checksum Packet is sent when the S5T8702 is enabled, the S5T8702 will be disabled until a Checksum Packet is sent with the correct CV bits. When the host reads a packet out of the S5T8702 but has no data to send, the Checksum Packet should be sent so the S5T8702 will not be disabled. The data in the Checksum Packet could be a null packet (32 bit stream of all zeros) since a Checksum Packet will not disable the S5T8702. When the host re-configures the S5T8702, the S5T8702 will be disabled from sending any packets other than the Part ID Packet until the S5T8702 is enabled with a Checksum Packet having the proper data. The ID of the Checksum Packet is 0. Table 3: Checksum Packet Bit Assignments CV: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0. 0 0 Byte 2 CV23 CV22 CV21 CV20 CV19 CV18 CV17 CV16 Byte 1 CV15 CV14 CV13 CV12 CV11 CV10 CV9 CV8 Byte 0 CV7 CV6 CV5 CV4 CV3 CV2 CV1 CV0 Checksum Value. 13 FEEXTM ALPHANUMERIC DECODER II S5T8702 RESET Decoder disables itself Decoder initializes checksum register to Part ID value Decoder initiates Pare ID packet Decoder waits for SPI packet from host Y Y Checksum packet? Decoder enabled? N Decoder disables itself N Packet data matches checksum register data? Y N Decoder sets checksum register to the XOR of the packet data bits with the checksum register bits Decoder enables itself Figure 9: FLEX Decoder IC Checksum Flow Chart 14 FEEXTM ALPHANUMERIC DECODER II S5T8702 CONFIGURATION PACKET The Configuration Packet defines a number of different configuration options for the S5T8702. Proper operation is not guaranteed if these settings are changed when decoding is enabled (i.e. the ON bit in the Control Packet is set). The ID of the Configuration Packet is 1. Table 4: Configuration Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0 0 1 Byte 2 0 DFC 0 0 0 IDE OFD1 OFD0 Byte 1 0 0 0 0 0 PCE SP1 SP0 Byte 0 SME MOT COD MTE LBP ICO 0 0 DFC: Disable Fractional Clock. When this bit is set and IDE is set, the CLKOUT signal will generate a 40kHz signal (EXTAL divided by 4). When this bit is cleared and IDE is set, the CLKOUT signal will generate 38.4kHz signal (EXTAL fractionally divided by 25/6 see diagram below). This bit has no effect when IDE is cleared. (value after reset=0) EXTAL CLKOUT w/DFC=1 CLKOUT w/DFC=0 IDE: Internal Demodulator Enable. When this bit is set, the internal demodulator is enabled and clock frequency at EXTAL is expected to be 160kHz. When this bit is cleared, the internal demodulator is disabled and the clock frequency at EXTAL is expected to be 76.8kHz. (value after reset=0) 15 FEEXTM ALPHANUMERIC DECODER II S5T8702 OFD: Oscillator Frequency Difference. These bits describe the maximum difference in the frequency of the 76.8kHz oscillator crystal with respect to the frequency of the transmitter. These limits should be the worst case difference in frequency due to all conditions including but not limited to aging, temperature, and manufacturing tolerance. Using a smaller frequency difference in this packet will result in lower power consumption due to higher receiver battery save ratios. Note that this value is not the absolute error of the oscillator frequency provided to the S5T8702. The absolute error of the clock used by the FLEX transmitter must be taken into account. (e.g. If the transmitter tolerance is ± 25ppm and the 76.8kHz oscillator tolerance is +/-140ppm, the oscillator frequency difference is ± 165ppm and OFD should be set to 0.)(value after reset=0) OFD1 OFD0 Frequency Difference 0 0 ± 300ppm 0 1 ± 150ppm 1 0 ± 75ppm 1 1 ± 0ppm PCE: Partial Correlation Enable. When this bit is set, partial correlation of addresses is enabled. When partial correlation is enabled, the S5T8702 will shutdown the receiver before the end of the last FLEX block which contains addresses if it can determine that none of the addresses in that FLEX block will match any enabled address in the S5T8702. When this bit is cleared, the receiver will be controlled as it was in previous versions of the IC.(value after reset=0) SP: Signal Polarity. These bits set the polarity of EXTS1 and EXTS0 input signals. (value after reset=0) The polarity of the EXTS0 and EXTS1 bits will be determined by the receiver design. SP1 SP0 Signal Polarity EXTS1 EXTS0 FSK Modulation @SP = 0, 0 EXTS1 EXTS0 0 0 Normal Normal +4800Hz 1 0 0 1 Normal Inverted +1600Hz 1 1 1 0 Inverted Normal -1600Hz 0 1 1 1 Inverted Inverted -4800Hz 0 0 SME: Synchronous Mode Enable. When this bit is set, a Status Packet will be automatically sent whenever the SMU (synchronous mode update) bit in the Status Packet is set. The host can use the SM (synchronous mode) bit in the Status Packet as an in-range/out-of-range indication. (value after reset=0) MOT: Maximum Off Time. This bit has no effect if AST in the Timing Control Packet is non-zero. When AST=0 and MOT=0, asynchronous A-word searches will time-out in 4 minutes. When AST=0 and MOT=1, asynchronous A-word searches will time-out in 1 minute. (value after reset=0) 16 FEEXTM ALPHANUMERIC DECODER II S5T8702 COD: Clock Output Disable. When this bit is clear, a 38.4kHz or 40kHz(depending on IDE and DFC) signal will be output on the CLKOUT pin. When this bit is set, the CLKOUT pin will be driven low. Note that setting and clearing this bit can cause pulses on the CLKOUT pin that are less than one half the clock period. Also note that when the clock output is enabled and not set for clock intermittent operation(see ICO in this packet), the CLKOUT pin will always output the clock signal even when the S5T8702 is in reset (as long as the S5T8702 oscillator is seeing clocks). Further note that the when the S5T8702 is used in internal demodulator mode(i.e. uses a 160kHz oscillator), the CLKOUT pin will be 80kHz from reset until the time the IDE bit is set. This is because the S5T8702 defaults to external demodulator mode at reset. (value after reset=0) MTE: Minute Timer Enable. When this bit is set, a Status Packet will be sent at one minute intervals with the MT (minute time-out) bit in the Status Packet set. When this bit is clear, the internal one-minute timer stops counting. The internal one-minute timer is reset when this bit is changed from 0 to 1 or when the MTC (minute timer clear) bit in the Control Packet is set. Note that the minute timer will not be accurate using a 160kHz oscillator until the IDE bit is set. (value after reset=0) LBP: Low Battery Polarity. This bit defines the polarity of the S5T8702's LOBAT pin. The LB bit in the Status Packet is initialized to the inverse value of this bit when the S5T8702 is turned on (by setting the ON bit in the Control Packet). When the S5T8702 is turned on, the first low battery update in the Status Packet will be sent to the host when a low battery condition is detected on the LOBAT pin. Setting this bit means that a high on the LOBAT pin indicates a low voltage condition. (value after reset=0) ICO: Intermittent Clock Out. When this bit is clear and COD is clear, a 38.4kHz or 40kHz (depending on the values of IDE and DFC) signal will be output on the CLKOUT pin. When this bit is set and COD is clear, the clock will only be output on the CLKOUT pin while the receiver is not in the Off state. The clock will be output for a few cycles before the receiver transitions from the off state and for a few cycles after the receiver transitions to the off state (this is to insure that the receiver receives enough clocks to detect and process the changes to and from the Off state). The CLKOUT pin will be driven low when it is not driving a clock. Note that when the clock is automatically enabled and disabled (i.e. when ICO is set), the CLKOUT signal transitions will be clean (i.e. no pulses less than half the clock period) when it transitions between no clock and clocked output. This bit has no effect when COD is set. (value after reset=0) 17 FEEXTM ALPHANUMERIC DECODER II S5T8702 CONTROL PACKET The Control Packet defines a number of different control bits for the S5T8702. The ID of the Control Packet is 2. Table 5: Control Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0 1 0 Byte 2 FF7 FF6 FF5 FF4 FF3 FF2 FF1 FF0 Byte 1 0 SPM PS1 PS0 0 0 0 0 Byte 0 0 SBI 0 MTC 0 0 EAE ON FF: Force Frame 0-7. These bits enable and disable forcing the S5T8702 to look in frames 0 through 7. When an FF bit is set, the S5T8702 will decode the corresponding frame. Unlike the AF bits in the Frame Assignment Packets, the system collapse of a FLEX system will not affect frames assigned using the FF bits (e.g. Where as setting AF0 to 1 when the system collapse is 5 will cause the S5T8702 to decode frames 0, 32, 64, and 96, setting FF0 to 1 when the system collapse is 5 will only cause the S5T8702 to decode frame 0.). This may be useful for acquiring transmitted time information or channel attributes (e.g. Local ID). (value after reset =0) SPM: Single Phase Mode. When this bit is set, the S5T8702 will decode only one phase of the transmitted data. When this bit is clear, the S5T8702 will decode all of the phases it receives. A change to this bit while the S5T8702 is on, will not take affect until the next block 0 of the next decoded frame. (value after reset =0) PS: Phase Select. When the SPM bit is set, these bits define what phase the S5T8702 should decode according to the following table. This value is determined by the service provider. A change to these bits while the S5T8702 is on, will not take affect until the next block 0 of a frame. (value after reset =0) PS Value Phase Decoded (based on FLEX Data Rate) PS1 PS0 1600bps 3200bps 6400bps 0 0 a a a 0 1 a a b 1 0 a c c SBI: Send Block Information words 2-4. When this bit is set, any errored or time related block information words 2-4 will be sent to the host. See "Block Information Word Packet" on page34 for a description of the words sent. (value after reset=0) MTC: Minute Timer Clear. Setting this bit will cause the one minute timer to restart from 0. 18 FEEXTM ALPHANUMERIC DECODER II S5T8702 EAE: End of Addresses Enable. When this bit is set, the EA bit in the Status Packet will be set immediately after the S5T8702 decodes the last address word in the frame if there was any address detected in the frame. When this bit is cleared, the EA bit will never be set. ON: Turn On Decoder. Set if the S5T8702 should be decoding FLEX signals. Clear if signal processing should be off (very low power mode). If the ON bit is changed twice and the control packets making the changes are received within 2ms of each other, the S5T8702 may ignore the double change and stay in its original state (e.g. if it is turned off then on again within 2ms it may stay on and ignore the off pulse). Therefore it is recommended that the host insures a minimum of 2ms between changes in the ON bit. (value after reset=0) NOTES: Turning off the S5T8702 must be done using the following sequence. This sequence is performed automatically by the FLEX stack software version 1.2 and greater. 1. Turn off the S5T8702 by sending a Control Packet with the ON bit cleared. 2. Turn on the S5T8702 by sending a Control Packet with the ON bit set. 3. Turn off the S5T8702 by sending a Control Packet with the ON bit cleared. Timing between these steps is specified below and is measured from the positive edge of the last clock of one packet to the positive edge of the last clock of the next packet: • The minimum time between steps 1 and 2 is 2ms or the programmed shut down time, whichever is greater. The programmed shut down time is the sum of all the of the times. programmed in the used Receiver Shut Down Settings Packets. • There is no maximum time between steps 1 and 2. • The minimum time between steps 2 and 3 is 2ms. • The maximum time between steps 2 and 3 is the programmed warm up time minus 2ms. The programmed warm up time is the sum of all the of the times programmed in the used Receiver Warm Up Settings Packets. 19 FEEXTM ALPHANUMERIC DECODER II S5T8702 ALL FRAME MODE PACKET The All Frame Mode Packet is used to decrement temporary address enable counters by one, decrement the all frame mode counter by one, and/or enable or disable forcing all frame mode. All frame mode is enabled if any temporary address enable counter is non-zero, the all frame mode counter is non-zero, or the force all frame mode bit is set. If all frame mode is enabled, the S5T8702 will attempt to decode every frame and send a Status Packet with the EOF (end-of-frame) bit set at the end of every frame. Both the all frame mode counter and the temporary address enable counters can only be incremented internally by the S5T8702 and can only be decremented by the host. The S5T8702 will increment a temporary address enable counter whenever a short instruction vector is received assigning the corresponding temporary address. See "Operation of a Temporary Address" on page 64 for details. The S5T8702 will increment the all frame mode counter whenever an alphanumeric, HEX / binary, or secure vector is received. When the host determines that a message associated with a temporary address, or a fragmented message has ended, then the appropriate temporary address counter or all frame mode counter should be decremented by writing an All Frame Mode Packet to the S5T8702 in order to exit the all frame mode, thereby improving battery life. See "Building a Fragmented Message" on page 54 for details. Neither the temporary address enable counters nor the all frame mode counter can be incremented past the value 127 (i.e. it will not roll-over) or decremented past the value 0. The temporary address enable counters and the all frame mode counter are initialized to 0 at reset and when the decoder is turned off. The ID of the All Frame Mode Packet is 3. Table 6: All Frame Mode Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0 1 1 Byte 2 DAF FAF 0 0 0 0 0 0 Byte 1 DTA15 DTA14 DTA13 DTA12 DTA11 DTA10 DTA9 DTA8 Byte 0 DTA7 DTA6 DTA5 DTA4 DTA3 DTA2 DTA1 DTA0 DAF: Decrement All Frame counter. Setting this bit decrements the all frame mode counter by one. If a packet is sent with this bit clear, the all frame mode counter is not affected. (value after reset=0) FAF: Force All Frame mode. Setting this bit forces the S5T8702 to enter all frame mode. If this bit is clear, the S5T8702 may or may not be in all frame mode depending on the status of the all frame mode counter and the temporary address enable counters. This may be useful in acquiring transmitted time information.(value after reset=0) DTA: Decrement Temporary Address enable counter. When a bit in this word is set, the corresponding temporary address enable counter is decremented by one. When a bit is cleared, the corresponding temporary address enable counter is not affected. When a temporary address enable counter reaches zero, the temporary address is disabled.(value after reset=0) 20 FEEXTM ALPHANUMERIC DECODER II S5T8702 OPERATOR MESSAGING ADDRESS ENABLE PACKET The operator messaging address enable packet is used to enable and disable the built-in FLEX operator messaging addresses. Enabling and disabling operator messaging addresses does not affect what frames the decoder IC decodes. To decode the proper frames, the host must modify the FF bits in the Control Packet or the AF bits in the Frame Assignment Packets. The ID of the operator messaging address enable packet is 4. Table 7: System Address Enable Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 1 0 0 Byte 2 0 0 0 0 0 0 0 0 Byte 1 OAE15 OAE14 OAE13 OAE12 OAE11 OAE10 OAE9 OAE8 Byte 0 OAE7 OAE6 OAE5 OAE4 OAE3 OAE2 OAE1 OAE0 OAE: Operator messaging Address Enable. When a bit is set, the corresponding operator messaging address is enabled. When it is cleared, the corresponding operator messaging address is disabled. OAE0 through OAE15 corresponds to the hexadecimal operator messaging address values of 1F7810 through 1F781F respectively. (value after reset=0) 21 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER LINE CONTROL PACKET This packet gives the host control over the settings on the receiver control lines (S0-S7) in all modes except reset. In reset, the receiver control lines are in high impedance settings. The ID for the Receiver Line Control Packet is 15 (decimal). Table 10: Receiver Line Control Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 1 1 1 1 Byte 2 0 0 0 0 0 0 0 0 Byte 1 FRS7 FRS6 FRS5 FRS4 FRS3 FRS2 FRS1 FRS0 Byte 0 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 FRS: Force Receiver Setting. Setting a bit to one will cause the corresponding CLS bit in this packet to override the internal receiver control settings on the corresponding receiver control line (S0 - S7). Clearing a bit gives control of the corresponding receiver control lines (S0 - S7) back to the S5T8702. (value after reset=0) CLS: Control Line Setting. If the corresponding FRS bit was set in this packet, these bits define what setting should be applied to the corresponding receiver control lines.(value after reset=0) 22 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER CONTROL CONFIGURATION PACKETS These packets allow the host to configure what setting is applied to the receiver control lines SO-S7, how long to apply the setting, and when to read the value of the LOBAT input pin. For a more detailed description of how the S5T8702 uses these settings see "Receiver Control" on page 48. The S5T8702 defines 12 different receiver control settings. Proper operation is not guaranteed if these settings are changed when decoding is enabled (i.e. the ON bit in the Control Packet is set). The IDs for these packets range from 16 to 27 (decimal). Receiver Off setting Packet Table 11: Receiver Off setting Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 1 0 0 0 0 Byte 2 0 0 0 0 LBC 0 0 0 Byte 1 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 Byte 0 ST7 ST6 ST5 ST4 ST3 ST2 ST1 ST0 LBC: Low Battery Check. If this bit is set, the S5T8702 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: Control Line Setting. This is the value to be output on the receiver control lines (S0 - S7) for this receiver state. (value after reset=0) ST: Step Time. This is the time the S5T8702 is to keep the receiver off before applying the first warm up state's receiver control value to the receiver control lines. The setting is in steps of 625us. Valid values are 625us (ST=01) to 159.375ms (ST=FF in hexadecimal). (value after reset=625us) 23 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER WARM UP SETTING PACKETS Table 12: Receiver Warm Up Setting Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 1 0 s2 s1 s0 Byte 2 SE 0 0 0 LBC 0 0 0 Byte 1 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 Byte 0 0 ST6 ST5 ST4 ST3 ST2 ST1 ST0 s: Setting Number. Receiver control setting for which this packet's values are to be applied. The following truth table shows the names of each of the values for s that apply to this packet. s2s1s0 Setting Name 001 Warm Up 1 010 Warm Up 2 011 Warm Up 3 100 Warm Up 4 101 Warm Up 5 SE: Step Enable. The receiver setting is enabled when the bit is set. If a step in the warm up sequence is disabled, the disabled step and all remaining steps will be skipped. (value after reset=0) LBC: Low Battery Check. If this bit is set, the S5T8702 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: Control Line Setting. This is the value to be output on the receiver control lines (S0 - S7) for this receiver state. (value after reset=0) ST: Step Time. This is the time the S5T8702 is to wait before applying the next state's receiver control value to the receiver control lines. The setting is in steps of 625us. Valid values are 625us (ST=01) to 79.375ms (ST=7F in hexadecimal), (value after reset=625us) 24 FEEXTM ALPHANUMERIC DECODER II S5T8702 3200SPS SYNC SETTING PACKETS Table 13: 3200sps Sync Setting Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 1 0 1 1 0 Byte 2 0 0 0 0 LBC 0 0 0 Byte 1 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 Byte 0 0 ST6 ST5 ST4 ST3 ST2 ST1 ST0 LBC: Low Battery Check. If this bit is set, the S5T8702 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: Control Line Setting. This is the value to be output on the receiver control lines (SO - S7) for this receiver state. (value after reset=0) ST: Step Time. This is the time the S5T8702 is to wait before expecting good signals on the EXTS1 and EXTS0 signals after warming up. The setting is in steps of 625us. Valid values are 625us (ST=01) to 79.375ms (ST=7F in hexadecimal). (value after reset=625us) 25 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER ON SETTING PACKETS Table 14: Receiver On Setting Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 1 s3 s2 s1 S0 Byte 2 0 0 0 0 LBC 0 0 0 Byte 1 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 Byte 0 0 0 0 0 0 0 0 0 s: Setting Number. Receiver control setting for which this packet's values are to be applied. The following truth table shows the names of each of the values for s that apply to this packet. s3s2s1s0 Setting Name 0 1 1 1 1600sps Sync 1 0 0 0 3200sps Data 1 0 0 1 1600sps Data LBC: Low Battery Check. If this bit is set, the S5T8702 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: Control Line Setting. This is the value to be output on the receiver control lines (S0 - S7) for this receiver state. (value after reset=0) 26 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER SHUT DOWN SETTING PACKETS Table 15: Receiver Shut Down Setting Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 1 1 0 1 s Byte 2 SE 0 0 0 LBC 0 0 0 Byte 1 CLS7 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 CLS0 Byte 0 0 0 ST5 ST4 ST3 ST2 ST1 ST0 s: Setting Number. Receiver control setting for which this packet's values are to be applied. The following truth table shows the names of each of the values for s that apply to this packet. s Setting Name 0 Shut Down 1 1 Shut Down 2 SE: Step Enable. The receiver setting is enabled when the bit is set. If a step in the shut down sequence is disabled, all steps following the disabled step will be ignored. (value after reset=0) LBC: Low Battery Check. If this bit is set, the S5T8702 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: Control Line Setting. This is the value to be output on the receiver control lines (S0 - S7) for this receiver state. (value after reset=0) ST: Step Time. This is the time the S5T8702 is to wait before applying the next state's receiver control value to the receiver control lines. The setting is in steps of 625us. Valid values are 625us (ST=01) to 39.375ms (ST=3F in hexadecimal).(value after reset=625us) 27 FEEXTM ALPHANUMERIC DECODER II S5T8702 FRAME ASSIGNMENT PACKETS The FLEX protocol defines that each address of a FLEX pager is assigned a home frame and a battery cycle. The S5T8702 must be configured so that a frame that is assigned by one or more of the addresses home frames and battery cycles has its corresponding configuration bit set. For example, if the S5T8702 has one enabled address and it is assigned to frame 3 with a battery cycle of 4, the AF bits for frames 3, 19, 35, 51, 67, 83, 99, and 115 should be set and the AF bits for all other frames should be cleared. When the S5T8702 is configured for manual collapse mode by setting the MCM bit in the Roaming Control Packet, the S5T8702 will not apply the received system collapse to the AF bits. The host should set the AF bits for all frames that should be decoded on all channels. For example, if frames 0 and 64 should be decoded on one channel and frames 4, 36, 68, and 100 should be decoded on another channel, all six of the corresponding AF bits should be set. The host can then change the receiver's carrier frequency after the S5T8702 decodes frames 0, 36, 64, and 100. There are 8 Frame Assignment Packets. The Packet IDs for these packets range from 32 to 39 (decimal). Table 16: Frame Assignment Packet Bit Assignments f: AF: 28 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 1 0 0 f2 f1 f0 Byte 2 0 0 0 0 0 0 0 0 Byte 1 AF15 AF14 AF13 AF12 AF11 AF10 AF9 AF8 Byte 0 AF7 AF6 AF5 AF4 AF3 AF2 AF1 AF0 Frame range. This value determines which 16 frames correspond to the 16 AF bits in the packet according to the following table. At least one of these bits must be set when the S5T8702 is turned on by setting the ON bit in the control packet. (value after reset=0) f2 f1 f0 AF15 AF0 0 0 0 Frame 127 Frame 112 0 0 1 Frame 111 Frame 96 0 1 0 Frame 95 Frame 80 0 1 1 Frame 79 Frame 64 1 0 0 Frame 63 Frame 48 1 0 1 Frame 47 Frame 32 1 1 0 Frame 31 Frame 16 1 1 1 Frame 15 Frame 0 Assigned Frame. If a bit is set, the S5T8702 will consider the corresponding frame to be assigned via an address's home frame and pager collapse. (value after reset=0) FEEXTM ALPHANUMERIC DECODER II S5T8702 USER ADDRESS ENABLE PACKET The User Address Enable Packet is used to enable and disable the 16 user address words. Although the host is allowed to change the user address words while the S5T8702 is decoding FLEX signals, the host must disable a user address word before changing it. The ID of the User Address Enable Packet is 120 (decimal). Table 17: User Address Enable Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 1 1 1 1 0 0 0 Byte 2 0 0 0 0 0 0 0 0 Byte 1 UAE15 UAE14 UAE13 UAE12 UAE11 UAE10 UAE9 UAE8 Byte 0 UAE7 UAE6 UAE5 UAE4 UAE3 UAE2 UAE1 UAE0 UAE: User Address Enable. When a bit is set, the corresponding user address word is enabled. When it is cleared, the corresponding user address word is disabled. UAE0 corresponds to the user address word configured using a packet ID of 128, and UAE15 corresponds to the user address word configured using a packet ID of 143. (value after reset=0) 29 FEEXTM ALPHANUMERIC DECODER II S5T8702 USER ADDRESS ASSIGNMENT PACKETS The S5T8702 has 16 user address words. Each word can be programmed to be a short address, part of a long address, or the first part of a network ID. The addresses are configured using the Address Assignment Packets. Each user address can be configured as long or short and tone-only or regular (network ID's are short and regular). Although the host is allowed to send these packets while the S5T8702 is on, the host must disable the user address word by clearing the corresponding UAE bit in the User Address Enable Packet before changing any of the bits in the corresponding User Address Assignment Packet. This method allows for easy reprogramming of user addresses without disrupting normal operation. The IDs for these packets range from 128 to 143 (decimal). Table 18: User Address Assignment Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 1 0 0 0 a3 a2 a1 a0 Byte 2 0 LA TOA A20 A19 A18 A17 A16 Byte 1 A15 A14 A13 A12 A11 A10 A9 A8 Byte 0 A7 A6 A5 A4 A3 A2 A1 A0 a: User Address Word Number. This specifies which address word is being configured. A zero in this field corresponds to address index zero (AI=0) in the Address Packet received from the S5T8702 when an address is detected. See "Address Packet" on page 36 for a description of the address index field. LA: Long address. When this bit is set, the address is considered a long address. Both words of a long address must have this bit set. The first word of a long address must have an even address index and the second word must be in the address index immediately following the first word. TOA: Tone-Only Address. When this bit is set, the S5T8702 will consider this address a tone-only address and will not decode a vector word when the address is received. If the TOA bit of a long address word is set, the TOA bit of the other word of the long address must also be set. A: Address word. This is the 21 bit value of the address word. Valid FLEX messaging addresses or Network ID's may be used. 30 FEEXTM ALPHANUMERIC DECODER II S5T8702 DECODER-TO-HOST PACKET DESCRIPTIONS The following sections describe the packets of information that will be sent from the S5T8702 to the host. In all cases the packets are sent MSB first (bit 7 of byte 3 = bit 31 of the packet = MSB). The S5T8702 decides what data should be sent to the host. If the S5T8702 is disabled through the checksum feature (see "Checksum Packet" on page 16 for a description of the checksum feature) the Part ID Packet will be sent. Data Packets relating to data received over the air are buffered in the 32 packet transmit buffer. The Data packets include Block Information Word Packets, Address Packets, Vector Packets, and Message Packets. If the S5T8702 is enabled and a receiver shutdown packet is pending, the receiver shutdown packet will be sent. If there is no receiver shutdown packet pending, but there is a roaming status packet pending, the roaming status packet will be sent. If neither the receiver shutdown packet nor the roaming status packet is pending and there is data in the transmit buffer, a packet from the transmit buffer will be sent. Otherwise, the S5T8702 will send the Status Packet (which is not buffered). In the event of a buffer overflow, the S5T8702 will automatically stop decoding and clear the buffer. It is recommended that the Host be designed to empty the FIFO buffer every block with enough time left over to read a status packet. This would ensure that any applicable Status Packet would be received within 1 block of the new status being available. Part ID register Receiver shutdown register Roaming status register 32x32 data packet FIFO transmit buffer Status register 32 32 32 M U X 32 32 32 SPI transmit register MISO Figure 10: FLEX decoder IC SPI Transmit Functional Block Diagram 31 FEEXTM ALPHANUMERIC DECODER II S5T8702 BLOCK INFORMATION WORD PACKET The Block Information Field is the first field following the synchronization codes of the FLEX protocol. This field contains information about the frame such as number of addresses and messages, information about current time, the channel ID, channel attributes, etc. The first block information word of each phase is used internally to the S5T8702 and is never transmitted to the host with the exception of the system collapse which is sent to the host when the S5T8702 is in manual collapse mode. Time block information words 2-4 can be optionally sent to the host by setting the SBI bit in the control packet (see "Control Packet" on page 21). All block information words 2-4 can be optionally sent to the host by setting the ABI bit in the roaming control packet. When the SBI or ABI bit is set and any block information word 2-4 is received with an uncorrectable number of bit errors, the S5T8702 will send the block information word to the host with the e bit set regardless of the value of the f field in the block information word. The S5T8702 does not support decoding of the vector and message words associated with the Data/System Message block info word (f=101). The ID of a Block Information Word Packet is 0 (decimal). Table 19: Block Information Word Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0 0 0 Byte 2 e p1 p0 x x f2 f1 f0 Byte 1 x x s13 s12 s11 s10 s9 s8 Byte 0 s7 s6 s5 s4 s3 s2 s1 s0 e: Set if more than 2 bit errors are detected in the word or if the check character calculation fails after error correction has been performed. p: Phase on which the block information word was found (0=a, 1=b, 2=c, 3=d) x: Unused bits. The value of these bits is not guaranteed. f: Word Format Type. The value of these bits modify the meaning of the s bits in this packet as described in the BIW word descriptions in the s bit definition below. 32 FEEXTM ALPHANUMERIC DECODER II s: S5T8702 These are the information bits of the block information word. The definition of these bits depend on the f bits in this packet. The following table describes the block information words. f 2f 1f 0 s13 s12 s11 s10 s9 s8 s7 s6 s5 s4 s3 s2 s1 s0 a i8 i7 i6 i5 i4 i3 i2 i1 i0 C4 C3 C2 C1 C0 Local ID, Coverage Zone b m3 m2 m1 m0 d4 d3 d2 d1 d0 Y4 Y3 Y2 Y1 Y0 Month ,Day, Year b S2 S1 S0 M5 M4 M3 M2 M1 M0 H4 H3 H2 H1 H0 Second ,Minute, Hour z2 z1 z0 A3 A2 A1 A0 System Message c2 c1 c0 T3 T2 T1 T0 Country Code, Traffic Management Flags 000 001 010 a Reserved by FLEX protocol for future use a Reserved by FLEX protocol for future use 011 100 b 101 a 110 a 111 z9 z8 z7 z6 z5 z4 z3 Description Reserved by FLEX protocol for future use c9 c8 c7 c6 c5 c4 c3 a. Will be decoded only if the ABI bit is set b. Will be decoded only if the SBI or ABI bit is set 33 FEEXTM ALPHANUMERIC DECODER II S5T8702 ADDRESS PACKET The Address Field follows the Block Information Field in the FLEX protocol. It contains all of the address in the frame. If less than three bit errors are detected in a received address word and it matches an enabled address assigned to the S5T8702, an Address Packet will be sent to the host processor. The Address Packet contains assorted data about the address and its associated vector and message. The ID of an Address Packet is 1 (decimal). Table 20: Address Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 0 0 0 0 0 0 1 Byte 2 PA p1 p0 LA x x x x Byte 1 AI7 AI6 AI5 AI4 AI3 AI2 AI1 AI0 Byte 0 TOA WN6 WN5 WN4 WN3 WN2 WN1 WN0 PA: Priority Address. Set if the address was received as a priority address. p: Phase on which the address was detected (0=a, 1=b, 2=c, 3=d) LA: Long Address type. Set if the address was programmed in the S5T8702 as a long address. AI: Address Index (valid values are 0 through 15 and 128 through 159). The index identifies which of the addresses was detected. Values 0 through 15 correspond to the 16 programmable address words. Values 128 through 143 correspond to the 16 temporary addresses. Values 144 through 159 correspond to the 16 operator messaging addresses. For long addresses, the address detect packet will only be sent once and the index will refer to the second word of the address. TOA: Tone Only Address. Set if the address was programmed in the S5T8702 as a tone-only address. This bit will never be set for temporary or operator messaging addresses. No vector word will be sent for tone-only addresses. WN: Word number of vector (2 - 87). Describes the location in the frame of the vector word for the detected address. This value is invalid for this packet if the TOA bit is set. x: Unused bits. The value of these bits is not guaranteed. 34 FEEXTM ALPHANUMERIC DECODER II S5T8702 VECTOR PACKET The Vector Field follows the Address Field in the FLEX protocol. Each Vector Packet must be matched to its corresponding Address Packet. The ID of the vector packet is the word number where the vector word was received in the frame. This value corresponds to the WN bits sent in the associated address packet. The phase information in both the Address Packet and the Vector Packet must also match. It is important to note for long addresses, the first message word will be transmitted in the word location immediately following the associated vector. See "Message Building" on page 59 for a message building example. In this case, the word number (identified by b6 to b0) in the Vector Packet will indicate the message start of the second message word if the message is longer than 1 word. There are several types of vectors - 3 types of Numeric Vectors, a Short Message / Tone Only Vector, a Hex / Binary Vector, an Alphanumeric Vector, a Secure Message Vector, and a Short Instruction Vector. Each is described in the following pages. One of the modes of the Short Instruction Vector is used for assigning temporary addresses that may be associated with a group call. The Numeric, Hex / Binary, Alphanumeric, and Secure Message Vector Packets have associated Message Word Packets in the message field. The host must use the n and b bits of the vector word to calculate what message word locations are associated with the vector. Both the message word locations and the phase must match. Four of the vectors (Hex / Binary, Alphanumeric, Secure Message, and Short Instruction) enable the S5T8702 to begin the all frame mode. This mode is required to allow for the decoding of temporary addresses and / or fragmented messages. The host disables the All Frame Mode after the proper time by writing to the decoder via the All Frame Mode Packet. See "Building a Fragmented Message" on page 54 and "Operation of a Temporary Address" on page 57 for more information. For any Address Packet sent to the host (except tone-only addresses), a corresponding Vector Packet will always be sent. If more than two bit errors are detected (via BCH calculations, parity calculations, check character calculations, or value validation) in the vector word the e bit will be set and the message words will not be sent. 35 FEEXTM ALPHANUMERIC DECODER II S5T8702 NUMERIC VECTOR PACKET Table 21: Numeric Vector Packet Bit Assignments V: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 WN6 WN5 WN4 WN3 WN2 WN1 WN0 Byte 2 e p1 p0 x x V2 V1 V0 Byte 1 x x K3 K2 K1 K0 n2 n1 Byte 0 n0 b6 b5 b4 b3 b2 b1 b0 Vector type identifier. V2 V1 V0 Name Description 0 1 1 Standard Numeric Vector No special formatting of characters is specified 1 0 0 Special Format Numeric Vector Formatting of the received characters is predetermined by special rules in the host. 1 1 1 Numbered Numeric Vector The received information has been numbered by the service provider to indicate all messages have been properly received WN: Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. e: Set if more than 2 bit errors are detected in the word, if the check character calculation fails after error correction has been performed, or if the vector value is determined to be invalid. p: Phase on which the vector was found (0=a, 1=b,2=c, 3=d) K: Beginning check bits of the message. n: Number of message words in the message including the second vector word for long addresses (000=1 word message, 001=2 word message, etc.). For long addresses, the first message word is located in the word location that immediately follows the associated vector. b: Word number of message start in the message field (3 - 87 decimal). For long addresses, the word number indicates the location of the second message word. x: Unused bits. The value of these bits is not guaranteed. 36 FEEXTM ALPHANUMERIC DECODER II S5T8702 SHORT MESSAGE / TONE ONLY VECTOR Table 22: Short Message / Tone Only Vector Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 WN6 WN5 WN4 WN3 WN2 WN1 WN0 Byte 2 e p1 p0 x x V2 V1 V0 Byte 1 x x d11 d10 d9 d8 d7 d6 Byte 0 d5 d4 d3 d2 d1 d0 t1 t0 V: 010 for a Short Message / Tone Only Vector WN: Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. e: Set if more than 2 bit errors are detected in the word or, if after error correction, the check character calculation fails. p: Phase on which the vector was found (0=a, 1=b, 2=c, 3=d) d: Data bits whose definition depend on the value of t in this packet according to the following table. Note that if this vector is received on a long address and the e bit in this packet is not set, the decoder will send a Message Packet from the word location immediately following the Vector Packet. Except for the short message on a non-network address (t=0), all message bits in the Message Packet are unused and should be ignored. t 1t 0 00 d1 d1 1 0 c3 c2 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 c1 c0 b3 b2 b1 b0 a3 a2 a1 a0 Short Numeric: 3 numeric charsa when on a Description messaging address 00 T3 T2 T1 T0 M2 M1 M0 A4 A3 A2 A1 A0 Part of NID when on a Network Address 01 s8 s7 s6 s5 10 s1 s0 R0 N5 N4 N3 N2 N1 N0 S2 S1 S0 Tone only: 8 source (s),message number(N),message s4 s3 s2 s1 s0 S2 S1 S0 Tone Only: 8 source (S) and 9 unused bits(s) retrieval flag (R), and 2 unused bits(s) 11 a. spare message type For long addresses, an extra 5 characters are sent in the Message Packet immediately following the Vector Packet. t: Message type. These bits define the meaning of the d bits in this packet. x: Unused bits. The value of these bits is not guaranteed. 37 FEEXTM ALPHANUMERIC DECODER II S5T8702 HEX / BINARY, ALPHANUMERIC, AND SECURE MESSAGE VECTOR Table 23: HEX / Binary, Alphanumeric, and Secure Message Vector Packet Bit Assignments V: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 WN6 WN5 WN4 WN3 WN2 WN1 WN0 Byte 2 e p1 p0 x x V2 V1 V0 Byte 1 x x n6 n5 n4 n3 n2 n1 Byte 0 n0 b6 b5 b4 b3 b2 b1 b0 Vector type identifier. V2 V1 V0 Type 000 Secure 101 Alphanumeric 110 Hex / Binary WN: Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. e: Set if more than 2 bit errors are detected in the word, if the check character calculation fails after error correction has been performed, or if the vector value is determined to be invalid. p: Phase on which the vector was found (0=a, 1=b, 2=c, 3=d) n: Number of message words in this frame including the first Message word that immediately follows a long address vector. Valid values are 1 through 85 decimal b: Word number of message start in the message field. Valid values are 3 through 87 decimal. x: Unused bits. The value of these bits is not guaranteed. NOTE: For long addresses, the first Message Packet is sent from the word location immediately following the word location of the Vector Packet. The b bits indicate the second message word in the message field if one exists. 38 FEEXTM ALPHANUMERIC DECODER II S5T8702 SHORT INSTRUCTION VECTOR Table 24: Short Instruction Vector Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 WN6 WN5 WN4 WN3 WN2 WN1 WN0 Byte 2 e p1 p0 x x V2 V1 V0 Byte 1 x x d10 d9 d8 d7 d6 d5 Byte 0 d4 d3 d2 d1 d0 i2 i1 i0 V: 001 for a Short Instruction Vector. WN: Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. e: Set if more than 2 bit errors are detected in the word or, if after error correction the check character calculation fails. p: Phase on which the vector was found (0=a, 1=b, 2=c, 3=d) d: Data bits whose definition depend on the i bits in this packet according to the following table. Note that if this vector is received on a long address and the e bit in this packet is not set, the decoder will send a Message Packet immediately following the Vector Packet. All message bits in the message packet are unused and should be ignored for all modes except the Temporary address assignment with MSN (i2i1i0=010). i2 i1 i0 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 Description 000 a3 a2 a1 a0 f6 f5 f4 f3 f2 f1 f0 Temporary address assignmenta 001 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 11 Event Flags for System Event 010 a3 a2 a1 a0 f6 N5 N4 N3 N2 N1 N0 Temporary address assignment with MSNb 011 Reserved 100 Reserved 101 Reserved 110 Reserved 111 a. b. Reserved for test Assigned temporary address (a) and assigned frame (f). See "Operation of a Temporary Address" on page 64 for a description of the use of these fields Assigned temporary address (a), MSb of assigned frame (f6), and message sequence number (N). The message packet sent with this instruction on long addresses contains extra frame information, see "Operation of a Temporary Address" on page 57 for a description and for details on the use of the other fields. i: Instruction type. These bits define the meaning of the d bits in this packet. x: Unused bits. The value of these bits is not guaranteed. 39 FEEXTM ALPHANUMERIC DECODER II S5T8702 MESSAGE PACKET The Message Field follows the Vector Field in the FLEX protocol. It contains the message data, checksum information, and may contain fragment numbers and message numbers. If the error bit of a vector word is not set and the vector word indicates that there are message words associated with the page, the message words are sent in Message Packets. The ID of the Message Packet is the word number where the message word was received in the frame. Table 25: Message Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 5 0 WN6 WN5 WN4 WN3 WN2 WN1 WN0 Byte 2 e p1 p0 i20 i19 i18 i17 i16 Byte 1 i15 i14 i13 i12 i11 i10 i9 i8 Byte 0 i7 i6 i5 i4 i3 i2 i1 i0 WN: Word number of message word (3 - 87 decimal). Describes the location of the message word in the frame. e: Set if more than 2 bit errors are detected in the word. p: Phase on which the message word was found (0=a, 1=b, 2=c, 3=d) i: These are the information bits of the message word. The definitions of these bits depend on the vector type and which word of the message is being received. 40 FEEXTM ALPHANUMERIC DECODER II S5T8702 STATUS PACKET The Status Packet contains various types of information that the host may require. The Status Packet will be sent to the host whenever the S5T8702 is polled and has no other data to send. The S5T8702 can also prompt the host to read the Status Packet due to events for which the S5T8702 was configured to send it (see "Configuration Packet" on page 18 and "Control Packet" on page 20 for a detailed description of the bits). The S5T8702 will prompt the host to read a Status Packet if the... 1. ... SMU bit in the Status Packet and the SME bit in the Configuration Packet are set. 2. ... MT bit in the Status Packet and the MTE bit in the Configuration Packet are set. 3. ... EOF bit in the Status Packet is set. 4. ... LBU bit in the Status Packet is set. 5. ... EA bit in the Status Packet is set. 6. ... BOE bit in the Status Packet is set. The ID of the Status Packet is 127 (decimal). Table 28: Status Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 0 1 1 1 1 1 1 1 Byte 2 FIV f6 f5 f4 f3 f2 f1 f0 Byte 1 SM LB x x c3 c2 c1 C0 Byte 0 SMU LBU x MT x EOF EA BOE FIV: Frame Info Valid. Set when a valid frame info word has been received since becoming synchronous to the system and the f and c fields contain valid values. If this bit is clear, no valid frame info words have been received since the S5T8702 became synchronous to the system. This value will change from 0 to 1 at the end of block 0 of the frame in which the 1st frame info word was properly received. It will be cleared when the S5T8702 goes into asynchronous mode. This bit is initialized to 0 when the S5T8702 is reset and when the S5T8702 is turned off by clearing the ON bit in the Control Packet. f: Current frame number. This value is updated every frame regardless of whether the S5T8702 needs to decode the frame. This value will change to its proper value for a frame at the end of block 0 of the frame. The value of these bits is not guaranteed when FIV is 0. SM: Synchronous Mode. This bit is set when the S5T8702 is synchronous to the system. The S5T8702 will set this bit when the first synchronization words are received. It will clear this bit when the S5T8702 has not received both synchronization words in any frame for 8, 16, or 32 minutes (depending on the number of assigned frames and the system collapse). This bit is initialized to 0 when the S5T8702 is reset and when it is turned off by clearing the ON bit in the Control Packet LB: Low Battery. Set to the value last read from the LOBAT pin. The host controls when the LOBAT pin is read via the Receiver Control Packets. This bit is initialized to 0 at reset. It is also initialized to the inverse of the LBP bit in the Configuration Packet when the S5T8702 is turned on by setting the ON bit in the Control Packet. 41 FEEXTM ALPHANUMERIC DECODER II S5T8702 c: Current system cycle number. This value is updated every frame regardless of whether the S5T8702 needs to decode the frame. This value will change to its proper value for a frame at the end of block 0 of the frame. The value of these bits is not guaranteed when FIV is 0. SMU: Synchronous Mode Update. Set if the SM bit has been updated in this packet. When the S5T8702 is turned on, this bit will be set when the first synchronization words are found (SM changes to 1) or when the first synchronization search window after the S5T8702 is turned on expires (SM stays 0). The latter condition gives the host the option of assuming the paging device is in range when it is turned on, and displaying out-of-range only after the initial A search window expires. After the initial synchronous mode update, the SMU bit will be set whenever the S5T8702 transitions from/to synchronous mode. Cleared when read. Changes in the SM bit due to turning off the S5T8702 will not cause the SMU bit to be set. This bit is initialized to 0 when the S5T8702 is reset. LBU: Low Battery Update. Set if the value on two consecutive reads of the LOBAT pin yielded different results. Cleared when read. The host controls when the LOBAT pin is read via the Receiver Control Packets. Changes in the LB bit due to turning on the S5T8702 will not cause the LBU bit to be set. This bit is initialized to 0 when the S5T8702 is reset. MT: Minute Time-out. Set if one minute has elapsed. Cleared when read. This bit is initialized to 0 when the S5T8702 is reset. EOF: End Of Frame. Set when the S5T8702 is in all frames mode and the end of frame has been reached. The S5T8702 is in all frames mode if the all frames mode enable counter is non-zero, if any temporary address enabled counter is non-zero, or if the FAF bit in the All Frame Mode Packet is set. Cleared when read. This bit is initialized to 0 when the S5T8702 is reset. EA: End of Addresses. If EAE of the control packet is set and an address is detected in a frame, EA will be set after the S5T8702 processes the last address in the frame. Since data packets take priority over the status packet, the status packet with the EA bit set is guaranteed to come after all address packets for the frame. Cleared when read. This bit is initialized to 0 when the S5T8702 is reset. BOE: Buffer Overflow Error. Set when information has been lost due to slow host response time. When the data packet FIFO transmit buffer on the S5T8702 overflows, the S5T8702 clears the transmit buffer, turns off decoding by clearing the ON bit in the Control Packet, and sets this bit. Cleared when read. This bit is initialized to 0 when the S5T8702 is reset. x: Unused bits. The value of these bits is not guaranteed. 42 FEEXTM ALPHANUMERIC DECODER II S5T8702 PART ID PACKET The Part ID Packet is sent by the S5T8702 whenever the S5T8702 is disabled due to the checksum feature. See "Checksum Packet" on page 16 for a description of the checksum feature. Since the S5T8702 is disabled after reset, this is the first packet that will be received by the host after reset. The ID of the Part ID Packet is 285 (decimal). Table 29: Part ID Packet Bit Assignments Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 3 1 1 1 1 1 1 1 1 Byte 2 MDL1 MDL0 CID13 CID12 CID11 CID10 CID9 CID8 Byte 1 CID7 CID6 CID5 CID4 CID3 CID2 CID1 CID0 Byte 0 REV7 REV6 REV5 REV4 REV3 REV2 REV1 REV0 MDL: Model. This identifies the FLEX decoder model. Current value is 0. CID: Compatibility ID. This value describes the FLEX decoder ICs to which this part is backwards compatible. See table below for meaning and current value. Bit Indicates this IC can be used in place of Value for FLEXTM Roaming Decoder II CID0 FLEX Alphanumeric Decoder Ia 1 (TRUE) CID1 FLEX Roaming Decoder I CID2 FLEX Numeric Decoder b 1 (TRUE) 0 (FALSE) a. Compatibility to FLEX Alphanumeric Decoder II is indicated by MDL set to 0, CID0 set to 1, and REV greater than or equal to 7. b. Compatibility to FLEX Roaming Decoder II is indicated by MDL set to 0, CID1 set to 1, and REV greater than or equal to 8. 43 FEEXTM ALPHANUMERIC DECODER II S5T8702 REV: Revision. This identifies the revision and manufacturer of the FLEX decoder IC. The following table lists the currently available part ID's of the FLEX Decoder IC family. Part ID Packet (Hex) 44 Revision Manufacturer 00 01 03 FLEX Alphanumeric Decoder I Texas Instruments 00 01 04 FLEX Alphanumeric Decoder I Motorola Semiconductor Products Sector 00 01 06 FLEX Alphanumeric Decoder I Philips 00 01 07 FLEX Alphanumeric Decoder II Motorola Semiconductor Products Sector 00 03 03 FLEX Roaming Decoder I Motorola Semiconductor Products Sector 00 03 05 FLEX Roaming Decoder I Texas Instruments 00 03 09 FLEX Roaming Decoder II Motorola Semiconductor Products Sector 00 03 14 FLEX Roaming Decoder II Samsung Electronics 00 04 01 FLEX Numeric Decoder Texas Instruments FEEXTM ALPHANUMERIC DECODER II S5T8702 APPENDIX A : APPLICATION NOTES RECEIVER CONTROL Introduction The S5T8702 has 8 programmable receiver control lines (S0 - S7). The host has control of the receiver warm up and shut down timing as well as all of the various settings on the control lines through configuration registers on the S5T8702. The configuration registers for most settings allow the host to configure what setting is applied to the control lines. how long to apply the setting, and if the LOBAT input pin is polled before changing from the setting. With this programmability, the S5T8702 should be able to interface with many off-the-shelf receiver ICs. When using the internal demodulator (i.e. when the IDE bit of the configuration packet is set), the S0 pin becomes the input for the demodulator and the S0 register setting in the receiver control configuration packets controls the tracking mode of the peak and valley detectors for the internal data slicer. When the S0 bit is set in a receiver setting, the internal data slicer will be in fast track mode. When S0 bit is cleared in a receiver setting, the internal data slicer will be in slow track mode. For details on the configuration of the receiver control settings, see "Receiver Control Configuration Packets" on page 30. Receiver Settings at Reset The receiver control ports are three-state outputs which are set to the high-impedance state when the S5T8702 is reset and until the corresponding FRS bit in the Receiver Line Control Packet is set or until the S5T8702 is turned on by setting the ON bit in the Control Packet. This allows the designer to force the receiver control lines to the receiver off setting with external pull-up or pull-down resistors before the host can configure these settings in the S5T8702. When the S5T8702 is turned on, the receiver control ports are driven to the settings configured by the "Receiver Control Configuration Packets" on page 25 until the S5T8702 is reset again. Automatic Receiver Warm Up Sequence The S5T8702 allows for up to 6 steps associated with warming up the receiver. When the S5T8702 automatically turns on the receiver, it starts the warm up sequence 160ms before it requires valid signals at the EXTS0 and EXTS1 input pins. (or the equivalent internal signals when using the internal demodulator/data slicer). The first step of the warm up sequence involves leaving the receiver control lines in the "Off" state for the amount of time programmed for "Warm Up Off Time". At the end of the "Warm Up Off Time", the first warm up setting, if enabled, is applied to the receiver control lines for the amount of time programmed for that setting. Each subsequent warm up setting is applied to the receiver control lines for their corresponding time until a disabled warm up setting is found. At the end of the last used warm up setting, the "1600sps Sync Setting" or the "3200sps Sync Setting" is applied to the receiver control lines depending on the current state of the S5T8702. The sum total of all of the used warm up times and the "Warm Up Off Time" must not exceed 160ms. If it exceeds 160ms, the S5T8702 will execute the receiver shut down sequence at the end of the 160ms warm up period. The receiver warm up sequence while decoding when all warm up settings are enabled is shown in figure 11 on page 48. 45 FEEXTM ALPHANUMERIC DECODER II S5T8702 160 ms Receiver control line setting Warm up off time Warm up time 1 Warm up time 2 Warm up time 3 Warm up time 4 Warm up time 5 Off Warm up setting 1 Warm up setting 2 Warm up setting 3 Warm up setting 4 Warm up setting 5 Possible LOBAT check Possible LOBAT check Possible LOBAT check Possible LOBAT check Possible LOBAT check 1600sps or 3200sps sync setting Possible EXTS1 & LOBAT EXTS0 signals check are expected to be valid here Figure 11: Automatic Receiver Warm Up Sequence HOST INITIATED RECEIVER WARM UP SEQUENCE The host can cause the S5T8702 to warm-up the receiver in three ways: (1) by turning on S5T8702 by setting the ON bit in the control packet; (2) by requesting a noise detect by setting the SND bit in the roaming control packet; or (3) by requesting an A-word search by setting the SAS bit in the roaming control packet. When the S5T8702 warms up the receiver in response to a host request, the first warm up setting, if enabled, is applied to the receiver control lines for the amount of time programmed for that setting. Each subsequent warm up setting is applied to the receiver control lines for their corresponding time until a disabled warm up setting is found. Once a disabled warm up setting is found, the "3200sps Sync Setting" (for ON and SND warm ups) or the "1600sps Sync Setting" (for SAS warm ups) is applied to the receiver control lines and the decoder does not expect valid signal until after the "3200sps Sync Warm Up Time" (for ON, SND, and SAS warm ups) has expired. In figure 12 on page 48 the receiver warm up sequence when the host initiates a warm-up sequence and when all warm up settings are enabled is shown. Receiver control line setting Off Warm up time 1 Warm up time 2 Warm up time 3 Warm up time 4 Warm up setting 1 Warm up setting 2 Warm up setting 3 Warm up setting 4 Possible LOBAT check Possible LOBAT check Possible LOBAT check Possible LOBAT check Warm up 3200sps time 5 sync warm up time Warm up 3200sps setting 5 sync setting Possible LOBAT check Possible EXTS1 & LOBAT EXTS0 signals check are expected to be valid here Figure 12: Host Initiated Receiver Warm Up Sequence 46 FEEXTM ALPHANUMERIC DECODER II S5T8702 RECEIVER SHUT DOWN SEQUENCE The S5T8702 allows for up to 3 steps associated with shutting down the receiver. When the S5T8702 decides to turn off the receiver, the first shut down setting, if enabled, is applied to the receiver control lines for the corresponding shut down time. At the end of the last used shut down time, the "Off" setting is applied to the receiver control lines. If the first shut down setting is not enabled, the S5T8702 will transition directly from the current on setting to the "Off" setting. The receiver turn off sequence when all shut down settings are enabled is shown in figure 13 on page 49 If the receiver is on or being warmed up when the decoder is turned off (by clearing the ON bit in the Control Packet), the S5T8702 will execute the receiver shutdown sequence. If the S5T8702 is executing the shut down sequence when the S5T8702 is turned on (by setting the ON bit in the Control Packet), the S5T8702 will complete the shut down sequence before starting the warm up sequence. Receiver control line setting 1600sps or 3200sps sync or data setting Possible LOBAT check Shut down time 1 Shut down time 2 Shut down setting 1 Shut down setting 2 Possible LOBAT check Off Possible LOBAT check Figure 13: Receiver Shut Down Sequence 47 FEEXTM ALPHANUMERIC DECODER II S5T8702 MISCELLANEOUS RECEIVER STATES In addition to the warm up and shut down states, the S5T8702 has four other receiver states. When these settings are applied to the receiver control lines, the S5T8702 will be decoding the EXTS1 and EXTS0 input signals. The timing of these signals and their duration depends on the data the S5T8702 decodes. The four settings are as follows: 1600sps Sync Setting: This setting is applied when the S5T8702 is searching for a 1600 symbols per second signal. 3200sps Sync Setting: This setting is applied when the S5T8702 is searching for a 3200 symbols per second signal. 1600sps Data Setting: This setting is applied after the S5T8702 has found the C or C sync word in a 1600 symbols per second frame. 3200sps Data Setting: This setting is applied after the S5T8702 has found the C or C sync word in a 3200 symbols per second frame. Some examples of how these settings will be used in the S5T8702 are shown In figure 14 on page 50. Flex signal Receiver control line setting example #1 Block 10 1600sps data or 3200sps data or last used warm up setting Possible LOBAT check Receiver control line setting example #2 Frame info Sync 1 1600sps data or 3200sps data or last used warm up setting 1600sps sync setting Sync 2 Block 0 3200sps sync setting 3200sps data setting Possible LOBAT check Possible LOBAT check 1600sps sync setting Possible LOBAT check 1600sps data setting Possible LOBAT check Figure 14: Examples of Receiver Control Transitions LOW BATTERY DETECTION The S5T8702 can be configured to poll the LOBAT input pin at the end of every receiver control setting. This check can be enabled or disabled for each receiver control setting. If the poll is enabled for a setting, the pin will be read just before the S5T8702 changes the receiver control lines from that setting to another setting. The S5T8702 will send a Status Packet whenever the value on two consecutive reads of the LOBAT pin yields different results. 48 FEEXTM ALPHANUMERIC DECODER II S5T8702 Message Building A simple message consists of an Address Packet followed by a Vector Packet indicating the word numbers of associated Message Packets. The tables below show a more complex example of receiving three Messages and two Block Information Word Packets in the first two blocks of a 2 phase 3200bps, FLEX frame. Note that the messages shown may be portions of fragmented or group messages. Note further that in the case of a 6400bps FLEX signal, there would be four phases: A, B, C and D, and in the case of a 1600bps signal there would be only a single phase A. Table 30 on page 51 shows the block number, word number (WN) and word content of both phases A and C. Note contents of words not meant to be received by the host are left blank. Each phase begins with a block information word (WN 0), this is not sent to the host. The first message is in phase A and has an address (WN 3), vector (WN 7) and three message words (WN 9- 11). The second message is also in phase A and has an address (WN 4), a vector (WN 8) and four message words (WN 12 - 15). The third message is in phase C and has a 2 word long address (WN 5 - 6) followed by a vector (WN 10) and three message words. Since the third message is sent on a long address, the first message word (WN 11) begins immediately after the vector. The vector indicates the location of the second and third message words (WN 14 - 15). Table 30: FLEX SIGNAL BLOCK Word Number PHASE A PHASE C 0 BIW 1 BIW 1 1 0 1 BIW 3 ADDRESS 1 4 ADDRESS 2 BIW 5 LONG ADDRESS 3 WORD 1 6 LONG ADDRESS 3 WORD 2 7 VECTOR 1 8 VECTOR 2 9 MESSAGE 1,1 10 MESSAGE 1,2 VECTOR 3 11 MESSAGE 1,3 MESSAGE 3,1 12 MESSAGE 2,1 13 MESSAGE 2,2 14 MESSAGE 2,3 MESSAGE 3,2 15 MESSAGE 2,4 MESSAGE 3,3 49 FEEXTM ALPHANUMERIC DECODER II S5T8702 Table 31 on page 52 shows the sequence of packets received by the host. The S5T8702 processes the FLEX signal one block at a time, and one phase at a time. Thus, the address and vector information in block 0 phase A is sent to the host in packets 1 - 3. Then information in block 0 phase C, two block information words and one long address, is sent to the host in packets 4-6. Packets 7 - 18 correspond to information in block 1, processed in phase A first and phase C second. Table 31: FLEX DECODER PACKET SEQUENCE PACKET PACKET TYPE PHASE WORD NUMBER COMMENT 1st ADDRESS A N.A. (7) Address 1 has a vector located at WN 7 2nd ADDRESS A N.A. (8) Address 2 has a vector located at WN 8 3rd VECTOR A 7 4th BIW C N.A. If BIWs enabled, then BIW packet sent 5th BIW C N.A. If BIWs enabled, then BIW packet sent 6th LONG ADDRESS C N.A. (10) 7th VECTOR A 8 Vector for Address 2: Message Words located at WN = 12 to 15, phase A 8th MESSAGE A 9 Message information for Address 1 9th MESSAGE A 10 Message information for Address 1 10th MESSAGE A 11 Message information for Address 1 11th MESSAGE A 12 Message information for Address 2 12th MESSAGE A 13 Message information for Address 2 13th MESSAGE A 14 Message information for Address 2 14th MESSAGE A 15 Message information for Address 2 15th VECTOR C 10 Vector for Long Address 3: Message Words located at WN = 14 - 15, phase C 16th MESSAGE C 11 Second word of Long Vector is first message information word of Address 3 17th MESSAGE C 14 Message information for Address 3 18th MESSAGE C 15 Message information for Address 3 Vector for Address 1: Message Words located at WN =9 to 11, phase A Long Address 3 has a vector beginning in word 10 of phase C The first message is built by relating packets 1, 3, and 8 - 10. The second message is built by relating packets 2, 7 and 11 - 14. The third message is built by relating packets 6 and 15 - 18. Additionally, the host may process block information in packets 4 and 5 for time setting information. 50 FEEXTM ALPHANUMERIC DECODER II S5T8702 BUILDING A FRAGMENTED MESSAGE The longest message which will fit into a frame is 84 code words total of message data. Three alpha characters per word yields a maximum message of 252 characters in a frame assuming no other traffic. Messages longer than this value must be sent as several fragments. Additional fragments can be expected when the "continue bit" in the 1st Message Word is set. This causes the pager to examine every following frame for an additional fragment until the last fragment with the continue bit reset is found. The only requirement relating to the placement in time of the remaining fragments is that no more than 32 frames (1 minute) or 128 frames (4 minutes) as indicated by the service provider may pass between fragment receptions. Each fragment contains a check sum character to detect errors in the fragment, a fragment number 0, 1, or 2 to detect missing fragments, a message number to identify which message the fragment is a part, and the continue bit which either indicates that more fragments are in queue or that the last fragment has been received. The following describes the sequence of events between the Host and the S5T8702 required to handle a fragmented message: • The host will receive a vector indicating one of the following types: V2V1V0 Type 000 Secure 101 Alphanumeric 110 Hex / Binary • The S5T8702 will increment the all frame mode counter inside the S5T8702 and begin to decode all of the following frames. • The host will receive the Message Packet(s) contained within that frame followed by a Status Packet. The host must decide based on the Message Packet to return to normal decoding operation. If the message is indicated as fragmented by the Message Continued Flag "C" being set in the Message Packet then the host does not decrement the all frame mode counter at this time. The host decrements the counter if the Message Continued Flag "C" is clear by writing the All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1. If no other fragments, temporary addresses are pending and the FAF bit is clear in the All Frame Mode Register, then the S5T8702 returns to normal operation. • The S5T8702 continues to decode all of the frames and passes any address information, vector information and message information to the host followed by a status packet indicating the end of the frame. If the message is indicated as fragmented by the Message Continued Flag "C" in the Message Packet then the host remains in the receive mode expecting more information from the S5T8702. • After the host receives the second and subsequent fragment with the Message Continued Flag "C" = 1, it should decrement the all frame mode counter by sending an All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1. Alternatively, the host may choose to decrement the counter at the end of the entire message by decrementing the counter once for each fragment received. 51 FEEXTM ALPHANUMERIC DECODER II S5T8702 • When the host receives a Message Packet with the Message Continued Flag "C" = 0, it will send two All Frame Mode Packets to the S5T8702 with the "DAF" bit = 1. The two packets decrement the count for the first fragment and the last fragment. This decrements the all frame counter to zero, if no other fragmented messages, temporary addresses are pending and the FAF bit is clear in the All Frame Mode Register, the S5T8702 returns to normal operation. • The above process must be repeated for each occurrence of a fragmented message. The host must keep track of the number of fragmented messages being decoded and insure the all frame mode counter decrements after each fragment or after each fragmented message. Table 32: Alphanumeric Message without fragmentation PACKET PACKET TYPE PHASE All Frame Counter 1st ADDRESS 1 A 0 Address 1 is received 2nd VECTOR 1 A 1 Vector = Alphanumeric Type 3rd MESSAGE A 1 Message Word received "C" bit = 0, No more fragments are expected. 4th Variablea 0 Host writes All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1 a. COMMENT Host Initiated Packet. The S5T8702 returns a packet according to "Decoder-to-Host Packet Descriptions" on page 33. Table 33: Alphanumeric Message with fragmentation PACKET PACKET TYPE PHASE All Frame Counter 1st ADDRESS 1 A 0 Address 1 is received 2nd VECTOR 1 A 1 Vector = Alphanumeric Type 3rd MESSAGE A 1 Message Word received "C" bit = 1, Message is fragmented, more expected 4th STATUS 1 End of Frame Indication (EOF = 1) 5th ADDRESS 1 B 1 Address 1 is received 6th VECTOR 1 B 2 Vector = Alphanumeric Type 7th MESSAGE B 2 Message Word received "C" bit = 1, Message is fragmented, more expected. 8th Variablea 1 Host writes All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1 9th STATUS 1 End of Frame Indication (EOF = 1 ) 52 COMMENT FEEXTM ALPHANUMERIC DECODER II S5T8702 Table 33: Alphanumeric Message with fragmentation (Continued) PACKET PACKET TYPE PHASE All Frame Counter 10th ADDRESS 1 A 1 Address 1 is received 11th VECTOR 1 A 2 Vector = Alphanumeric type 12th MESSAGE A 2 Message Word received "C" bit = 0, No more fragments are expected. 13th Variablea 1 Host writes All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1 14th Variablea 0 Host writes All Frame Mode Packet to the S5T8702 with the "DAF" bit = 1 a. COMMENT Host Initiated Packet. The S5T8702 returns a packet according to "Decoder-to Host Packet Descriptions" on page 33. 53 FEEXTM ALPHANUMERIC DECODER II S5T8702 OPERATION OF A TEMPORARY ADDRESS GROUP MESSAGING The FLEX protocol allows for a dynamic group call for the purpose of sending a common message to a group of paging devices. The dynamic group call approach assigns a "Temporary Address" using the personal address and the short instruction vector. The FLEX protocol specifies sixteen addresses for the dynamic group call which may be temporarily activated in a future frame (If the frame or one of the frames designated is equal to the present frame the host is to interpret this as the next occurrence of this frame 4 minutes in the future.) The temporary address is valid for one message starting in the specified frame(s) and remaining valid throughout the following frames to the completion of the message. If the message is not found in the specified frame(s) the host must disable the assigned temporary address. The following describes the sequence of events between the Host and the S5T8702 required to handle a temporary address: • Following an Address Packet, the host will receive a Vector Packet with V2V1V0 = 001 and i2i1i0 = 000 or 010 (a Short Instruction Vector indicating a temporary address has been assigned to this pager). The system may send either i2i1i0 = 000 or i2i1i0 = 010 or both when assigning a temporary address. The vector packet with i2i1i0 = 000 will indicate which temporary address is assigned and the frame in which the temporary address is expected. The vector packet with i2i1i0 =010 will indicate which temporary address is assigned, the MSb of the expected frame (essentially indicating 64 frames in which to look for the temporary address), and a message sequence number. When the vector packet with i2i1i0 = 010 is received on a long address, the specific assign frame is included in the message word sent after the vector • The S5T8702 will increment the corresponding temporary address counter for each temporary address assignment vector received and begin to decode all of the following frames. Note that this implies a single dynamic group assignment that is implemented by sending two short instructions ( one for each temporary address assignment mode of the short instruction vector) will cause the corresponding temporary address counter to increment twice. • The S5T8702 continues to decode all of the frames and passes any address information, vector information and message information to the host followed by a status packet indicating the end of each frame and the current frame number. • There are several scenarios which may occur with temporary addresses 54 1. The temporary address is not found in the any of the assigned frames and therefore the host must terminate the temporary address mode by sending an All Frame Mode Packet to the S5T8702 with the "DTA" bit of the particular temporary address set. (if both temporary address assignment packets were used to assign the temporary address, the "DTA" bit must be set twice to disable the temporary address) 2. The temporary address is found in the frame it was assigned and was not a fragmented message. Again, the host must terminate the temporary address mode by sending an All Frame Mode Packet to the S5T8702 with the "DTA" bit of the particular temporary address set.(if both temporary address assignment packets were used to assign the temporary address, the "DTA" bit must be set twice to disable the temporary address) FEEXTM ALPHANUMERIC DECODER II 3. • S5T8702 The temporary address is found in the assigned frame and it is a fragmented message. In this case, the host must follow the rules for Operation of a Fragmented Message and determine the proper time to stop the all frame mode operation. In this case, the host must write to the "DAF" bit with a "1" and the appropriate "DTA" bit with a "1" in the All Frame Mode Register in order to terminate both the fragmented message and the temporary address. (if both temporary address assignment packets were used to assign the temporary address, the "DTA" bit must be set twice to disable the temporary address) The above operation is repeated for every temporary address. 55 FEEXTM ALPHANUMERIC DECODER II S5T8702 APPENDIX B: SPECIFICATIONS ABSOLUTE MAXIMUM RATINGS Table 34: Absolute Maximum Ratings Characteristic Symbol Min Max Unit DC Supply Voltage VDD -0.3 3.8 V DC Input Voltage VIN -0.3 VDD + 0.3 V DC Input Current IIN -10 +10 mA Storage Temperature TSTG -40 +125 °C Operating Temperature TOPR -25 +85 °C .Absolute Maximum Ratings may cause critical device failure by above table beyond limits. .All electrical characteristics are applied in digital cell library without analog core. DC CHARACTERISTICS Table 35: DC Characteristics Characteristic Test Conditions Symbol Min Typ Max Unit Supply Voltage VDD 1.8 3.0 3.6 V High Level Input Voltage VIH 0.8VDD Low Level Input Voltage VIL High Level Input Current IIH Low Level Input Current 0.2VDD V -1 1 µA IIL -1 1 µA VDD-0.4 High Level Output Voltage IOH=-1mA VOH Low Level Output Voltage IOL=1mA VOL IOZ Tri-state Output Leakage Current Standby Supply Current a @3V, 76.8kHz, 25°C Input Capacitance b Output Capacitance b a. This value depends on the customer application. b. This value excludes package parasitic capacitance. 56 V IDD V -5 0.4 V 5 µA µA 18 CIN 4 pF COUT 4 pF FEEXTM ALPHANUMERIC DECODER II S5T8702 AC CHARACTERISTICS SPI Timing The following diagram and table describe the timing specifications of the SPI interface. SS tSSH READY tRDY tLEAD2 tLEAD1 tCYC tR tF tLAG2 tLAG1 tRH SCK tSCKL tSCKH MISO Hi-Z D31 tAC tV D31 MOSI Hi-Z D0 tHO tDIS D0 tHI tSU Figure 15: SPI Timing 57 FEEXTM ALPHANUMERIC DECODER II S5T8702 Table 36: SPI Timing (VDD = 1.8V to 3.6V Ta = -25°°C to +85°°C) Characteristic Conditions Symbol Min Max Unit Operating Frequency f OP 0 1 MHz Cycle Time tCYC 1000 ns Select Lead Time tLEAD1 200 ns De-select Lag Time tLAG1 200 ns Select-to-Ready Time previous packet did not program an address word a CL=50pf tRDY 80 µs Select-to-Ready Time previous packet programmed an address worda CL=50pf tRDY 420 µs Ready High Time tRH 50 µs Ready Lead Time tLEAD2 200 ns Not Ready Lag Time CL=50pf tLAG2 200 ns MOSI Data Setup Time tSU 200 ns MOSI Data Hold Time tHI 200 ns tAC 0 MISO Access Time CL=50pf MISO Disable Time MISO Data Valid Time CL=50pf 200 ns tDIS 300 ns tV 200 ns MISO Data Hold Time tHO 0 ns SS High Time tSSH 200 ns SCK High Time tSCKH 300 ns SCK Low Time tSCKL 300 ns SCK Rise Time 20% to 70% VDD tR 1 µs SCK Fall Time 20% to 70% VDD tF 1 µs a. 58 When the host re-programs an address word with a Host-to-FLEX decoder packet ID > 127(decimal), there may be an added delay before the S5T8702 is ready for another packet. FEEXTM ALPHANUMERIC DECODER II S5T8702 Start-up Timing The following diagram and table describe the timing specifications of the S5T8702 when power is applied. VDD tSTART Oscillator RESET tRESET READY tOWRL tRHRL Figure 16: Start-up Timing Table 37: Start-up Timing (VDD = 1.8V to 3.6V, Ta = -25°°C to +85°°C) Characteristic Conditions Symbol Min Typ Max Unit 5 sec Oscillator Start-up Time tSTART RESET Hold Time tRESET RESET High to READY Low a tRHRL 1 sec tOWRL 1 sec Oscillator Warmed up to READY Low a a. CL=50pf 200 ns Note that from power-up, the oscillator start-up time can impact the availability and period of clock strobes. This can affect the actual RESET high to READY low timing. 59 FEEXTM ALPHANUMERIC DECODER II S5T8702 Reset Timing The following diagram and table describe the timing specifications of the S5T8702 when it is reset. RESET tRL READY tRLRH tRHRL Figure 17: Reset Timing Table 38: Reset Timing (VDD = 1.8V to 3.6V, T a = -25°°C to 85°°C) Characteristic Conditions RESET Pulse Width RESET Low to READY High RESET High to READY Low 60 Requires stable clock Symbol Min tRL tRLRH tRHRL Typ Max Unit 200 - ns - 200 ns 1 sec FEEXTM ALPHANUMERIC DECODER II S5T8702 MECHANICAL SPECIFICATION PACKAGE DIMENSION 9.00 + 0.30 0-8 7.00 + 0.20 + 0.10 - 0.05 7.00 + 0.20 0.10 MAX 0.50 + 0.20 9.00 + 0.30 0.127 #32 #1 0.80 (0.70) 0.05 MIN + 0.10 0.30 - 0.05 1.40 + 0.10 0.10 MAX 1.70 MAX Figure 5 : 32-LQFP-0707 Package Dimension 61 FEEXTM ALPHANUMERIC DECODER II S5T8702 NOTES 62