Part Number Hot Search : 
00203 BAV70 255003 AN921 ADL537 KN02RGR SMAJ48A 2SB1386
Product Description
Full Text Search
 

To Download KS8701 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 DATA SHEET
KS8701
FLEXTM Roaming Decoder II
March, 2000
KS8701
Features
KS8701
FLEXTM ROAMING DECODER II DATA SHEET
FEATURES
l l l l l l l l l l l l l l l l l l l l l
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 SSID and NID Roaming support Low Battery Indication(External detector) 28 used pins (32-pin package standard) Backward compatible to the standard and roaming FLEX decoder ICs 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
DESCRIPTION
This FLEXTM Roaming Decoder II date sheet describes the operation of the KS8701. The KS8701 simplifies implementation of a FLEXTM paging device by interfacing with any of several off-theshelf 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 KS8701 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.
FLEXTM Roaming Decoder II
1
Ordering Information
KS8701
ORDERING INFORMATION
Device Name KS8701 Supply Voltage 1.8V ~ 3.6V Operating Frequency 76.8kHz or 160kHz Operating Temperature -25E~ 85E Package Type 32-LQFP-0707
Copyright Samsung Electronics Co. Ltd., 1998 All rights reserved Samsung Electronics reserves the right to make changes without notice. Motorola, FLEX and FLEXstack are trademarks of Motorola Inc.
2
FLEXTM Roaming Decoder II
KS8701
Table Of Contents
Table Of Contents
Introduction ........................................................................................................................... 5
System Block Diagram ............................................................................................................ 5 Functional Block Diagram ....................................................................................................... 7 Pin Description ........................................................................................................................ 8 Mechanical Specification.......................................................................................................... 10
SPI Packets ........................................................................................................................... 11
Packet Communication Initiated by the Host ........................................................................... 11 Packet Communication Initiated by the FLEX Decoder IC ....................................................... 12 Host-to-Decoder Packet Map .................................................................................................. 13 Decoder-to-Host Packet Map .................................................................................................. 15
Host-to-Decoder Packet Descriptions ................................................................................. 16
Checksum Packet ................................................................................................................... 16 Configuration Packet ............................................................................................................... 18 Control Packet ........................................................................................................................ 21 All Frame Mode Packet ........................................................................................................... 23 Operator Messaging Address Enable Packet .......................................................................... 24 Roaming Control Packet ......................................................................................................... 25 Timing Control Packet ............................................................................................................. 28 Receiver Line Control Packet .................................................................................................. 29 Receiver Control Configuration Packets .................................................................................. 30 Frame Assignment Packets .................................................................................................... 35 User Address Enable Packet .................................................................................................. 36 User Address Assignment Packets ......................................................................................... 37
Decoder-to-Host Packet Descriptions ................................................................................. 38
Block Information Word Packet ............................................................................................... 39 Address Packet ....................................................................................................................... 41 Vector Packet ......................................................................................................................... 42 Message Packet ..................................................................................................................... 47 Roaming Status Packet .......................................................................................................... 48 Receiver Shutdown Packet ..................................................................................................... 50 Status Packet .......................................................................................................................... 51 Part ID Packet ......................................................................................................................... 53
FLEXTM Roaming Decoder II
3
Table Of Contents
KS8701
Table Of Contents (continued)
Appendix A : Application Notes .......................................................................................... 55
Receiver Control ..................................................................................................................... 55 Message Building ................................................................................................................... 59 Building a Fragmented Message ............................................................................................ 61 Operation of a Temporary Address ......................................................................................... 64 Using the Receiver Shutdown Packet ..................................................................................... 66
Appendix B : Specifications ................................................................................................ 68
Absolute Maximum Ratings .................................................................................................... 68 DC Characteristics .................................................................................................................. 68 AC Characteristics .................................................................................................................. 69
4
FLEXTM Roaming Decoder II
KS8701
Introduction
INTRODUCTION
SYSTEM BLOCK DIAGRAM
Synthesizer Programming Control Receiver Receiver Control S0/IFIN Host Microprocessor User Interface
38.4 or 40 kHz Clock
KS8701
160 kHz 10M
15pF
Low Battery Detector
LOBAT
15pF
Figure 1 : Example Block Diagram Using Internal Demodulator When configured to use the internal demodulator, the KS8701 connects to a receiver capable of generating a limited (i.e. 1-bit digitized) 455 kHz or 140 kHz IF signal. In this mode, the KS8701 has 7 receiver control lines used for warming up and shutting down a receiver in stages. The KS8701 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 160 kHz. The CLKOUT signal can be programmed to be either a 38.4 kHz signal created by fractionally dividing the oscillator clock, or a 40 kHz signal creating by dividing the oscillator clock by 4.
FLEXTM Roaming Decoder II
5
Introduction
KS8701
Synthesizer Programming Control Receiver Audio Audio to Digital Converter EXTS1 EXTS0 Receiver Control Host Microprocessor 38.4 kHz Clock
10pF 76.8 kHz 10M
User Interface
KS8701
Low Battery LOBAT Detector
10pF
Figure 2 : Example Block Diagram Using External Demodulator The KS8701 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 KS8701 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.8 kHz and the CLKOUT signal (when enabled) is 38.4kHz clock output capable of driving other devices.
6
FLEXTM Roaming Decoder II
KS8701
Introduction
FUNCTIONAL BLOCK DIAGRAM
S0 - S7 7
S1-S7 S0
Receiver Control Internal Control Unit
S0 / IFIN Demodulator & Data Slicer
IFIN
2 VDD 2 VSS
EXTS0 EXTS1 SYMCLK OSCPD XTAL EXTAL 76.8kHz or 160kHz Oscillator Sync Correlator External Control Unit Symbol Sync Noise Detector TEST2 TEST3 RESET LOBAT
CLKOUT
Clock Generator
Deinterleaver
Error Corrector
Address Comparator/ Correlator
Local Message Filter
Control / Status Registers
SPI Buffer
SPI
READY 4 SPI
Figure 3 : Block Diagram
FLEXTM Roaming Decoder II
7
Introduction
KS8701
PIN DESCRIPTION
PIN NAME PIN TYPE Power VDD VSS LOBAT 3,13 7,29 10 I Power Ground Low battery detect input Reset RESET 24 I Active low reset to the KS8701. External Symbol Input Signals EXTS1 EXTS0 11 12 I I MSb of the symbol currently being decoded LSb of the symbol currently being decoded SPI Signals SS SCK MOSI MISO READY 27 28 30 31 26 I I I O O Slave Select for SPI communications Serial Clock for SPI communications Data input for SPI communications Three-state data output for SPI communications Driven low when the IC is ready for an SPI packet Clock Signals CLKOUT SYMCLK EXTAL XTAL OSCPD 32 14 6 5 2 O O I O I 38.4 kHz or 40 kHz clock output(derived from oscillator) Recovered symbol clock 76.8 kHz or 160 kHz crystal input or external input 76.8 kHz or 160 kHz clock output Internal oscillator power down. Connected to VSS when using internal oscillator. Connected to VDD when using an external source. Receiver Control Lines S1 - S7 S0 / IFIN 22,21,20,19, 18,16,15 23 O 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 TEST2, TEST3 NC 4,8 1,9,17,25 I O IC manufacturing test mode pin. Normally connected to VSS. IC manufacturing test mode pin. Normally connected to VSS. (Can be left unconnected.) DESCRIPTION
8
FLEXTM Roaming Decoder II
KS8701
Introduction
S0/IFIN
RESET
24
23
22
21
20
19
18
NC READY SS SCK VSS MOSI MISO CLKOUT
17
NC
S1
S2
S3
S4
S5
25 26 27 28 29 30 31 32
16 15 14
S6 S7 SYMCLK VDD EXT0 EXT1 LOBAT NC
KS8701
13 12 11 10 9
1
2
3
4
5
6
7 VSS
TEST2
Figure 4 : KS8701 32-LQFP Top View
OSCPD
FLEXTM Roaming Decoder II
EXTAL
TEST3
XTAL
VDD
NC
8
9
Introduction
KS8701
MECHANICAL SPECIFICATION
PACKAGE DEMENSION
TOP VIEW
4 D 3 -D32 D/2 25
3 e/2
e
-A,B, OR D1 E1/2 5 6 E1 -A3 8 SEE DETAIL "A" 17 E/2 E 4 - 0.05 S A1 A2
DATUM PLANE
24 3 -B-
DETAIL "A"
0AEMIN 0.08/0.20 R. 0.25
-H0.08 R. MIN. 0.20 MIN.
0-7AE L
N/4 TIPS 0.20 C A-B D 4X
1.00 REF. 9 D1/2 16 7 D1 5
8 PLACES 11/13AE
DETAIL "B"
ddd M C A-B S D S
WITH LEAD FINISH
4X
0.20 H A-B D
6 A // 0.10 C ccc -CSEE DETAIL "C" SEE DETAIL "B"
SYMBOL
b 0.09/0.20 -H- 2 b1
BASE METAL
0.09/0.16
0.05
DETAIL "C"
MIN ~ 0.05 1.35 9.00 7.00 9.00 7.00 0.45 0.80 0.30 0.30 ~ ~ UNIT : mm MAX NOTE 1.60 9 0.15 1.45 4 BSC 6 BSC 4 BSC 6 BSC 0.75 BSC 7 0.45 0.40 0.10 0.20
NOTES: 1. ALL DIMENSIONING AND TOLERANCING CONFORM TO ANSI Y14.51982. 2. DATUM PLANE -H - LOCATED AT MOLD PARTING LINE AND COINCIDENT WITH LEAD, WHERE LEAD EXITS PLASTIC BODY AT BOTTOM OF PARTING LINE. 3. DATUMS A -B AND -D - TO BE DETERMINED AT CENTERLINE BETWEEN LEADS WHERE LEADS EXIT PLASTIC BODY AT DATUM PLANE -H 4. TO BE DETERMINED AT SEATING PLANE -C 5. DIMENSIONS D1 AND E1 DO NOT INCLUDE MOLD PROTRUSION, ALLOWABLE MOLD PROTRUSION IS 0.254mm ON D1 AND E1 DIMENSIONS. 6. THESE DIMENSIONS TO BE DETERMINED AT DATUM PLANE -H 7. DIMENSION b DOES NOT INCLUDE DAMBAR PROTRUSION, ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.08mm TOTAL IN EXCESS OF THE b DIMENSION AT MAXIMUM MATERIAL CONDITION. DAMBAR CANNOT BE LOCATED ON THE LOWER RADIUS OR THE FOOT. 8. CONTROLLING DIMENSION : MILLIMETER 9. A1 IS DEFINED AS THE DISTANCE FROM THE SEATING PLANE TO THE LOWEST POINT OF THE PACKAGE BODY.
A A1 A2 D D1 E E1 L e b b1 ccc ddd
Figure 5 : 32-LQFP-0707 Package Dimension
10
FLEXTM Roaming Decoder II
KS8701
SPI Packets
SPI PACKETS
All data communicated between the KS8701 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 KS8701 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, SCK, MOSI, and MISO). The SS is used as a chip select for the KS8701. 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 KS8701 is transmitted on the MISO(Master-In-SlaveOut) line. Timing requirements for SPI communication are specified in "SPI Timing" on page 69.
PACKET COMMUNICATION INITIATED BY THE HOST
Refer to figure 6 on page 11. When the host sends a packet to the KS8701, it performs the following steps: 1. 2. 3. 4. 5. Select the KS8701 by driving the SS pin low. Wait for the KS8701 to drive the READY pin low. Send the 32-bit packet. De-select the KS8701 by driving the SS pin high. Repeat steps 1 through 4 for each additional packet.
SS READY SCK MOSI MISO
" # $ D31 D31
%
D1 D0 D1 D0
D31 D31
D1 D0 D1 D0
D31 D31
D1 D0 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 KS8701. If the KS8701 is enabled (see "Checksum Packet" on page 16 for a definition of enabled) and has no other packets waiting to be sent, the KS8701 will send a status packet. The host must transition the SS pin from high to low to begin each 32-bit packet. The KS8701 must see a negative transition on the SS pin in order for the host to initiate each packet communication.
FLEXTM Roaming Decoder II
11
SPI Packets
KS8701
PACKET COMMUNICATION INITIATED BY THE FLEX DECODER IC
Refer to figure 7 on page 12. When the KS8701 has a packet for the host to read, the following occurs: 1. 2. The KS8701 drives the READY pin low. If the KS8701 is not already selected, the host selects the KS8701 by driving the SS pin low.
3. The host receives (and sends) a 32-bit packet. 4. The host de-selects the KS8701 by driving the SS pin high (optional).
SS
#
%
READY " SCK MOSI MISO $ D31 D31 D1 D0 D1 D0 D31 D31 D1 D0 D1 D0 D31 D31 D1 D0 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 KS8701, it must send a valid packet to the KS8701. 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 KS8701. See "Checksum Packet" on page 16 for more details on enabling and disabling the KS8701. The following figure illustrates that it is not necessary to de-select the KS8701 between packets then the packets are initiated by the KS8701.
SS READY ______ SCK MOSI MISO D31 D31 D1 D0 D1 D0 D31 D31 D1 D0 D1 D0 D31 D31 D1 D0 D1 D0
High-impedance state Figure 8: Multiple Packet Communications Initiated by the FLEX decoder IC with No De-select
12
FLEXTM Roaming Decoder II
KS8701
SPI Packets
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 KS8701 from the host.
Table 1: Host-to-Decoder Packet ID Map
Packet ID (Hexadecimal) 00 01 02 03 04 05 06 07 - 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C - 1F 20 21 22 23 Checksum Configuration Control All Frame Mode
Packet Type
Page 16 18 21 23 24 25 28
Operator Message Address Enables Roaming Control Packet Timing Control Packet Reserved (Host should never send) Receiver Line Control Receiver Control Configuration (Off setting) Receiver Control Configuration (Warm Up 1 Setting) Receiver Control Configuration (Warm Up 2 Setting) Receiver Control Configuration (Warm Up 3 Setting) Receiver Control Configuration (Warm Up 4 Setting) Receiver Control Configuration (Warm Up 5 Setting) Receiver Control Configuration (3200sps Sync Setting) Receiver Control Configuration (1600sps Sync Setting) Receiver Control Configuration (3200sps Data Setting) Receiver Control Configuration (1600sps Data Setting) Receiver Control Configuration (Shut Down 1 Setting) Receiver Control Configuration (Shut Down 2 Setting) Special (Ignored by KS8701) Frame-Assignment (Frames 112 through 127) Frame Assignment (Frames 96 through 111) Frame Assignment (Frames 80 through 95) Frame Assignment (Frames 64 through 79)
29 30 31 31 31 31 31 32 33 33 33 34 34
35 35 35 35
FLEXTM Roaming Decoder II
13
SPI Packets
KS8701
Table 1: Host-to-Decoder Packet ID Map (Continued)
Packet ID (Hexadecimal) 24 25 26 27 28 - 77 78 79 - 7F 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90 - FF
Packet type Frame Assignment (Frames 48 through 63) Frame Assignment (Frames 32 through 47) Frame Assignment (Frames 16 through 31) Frame Assignment (Frames 0 through 15) Reserved (Host should never send) User Address Enable Reserved (Host should never send) User Address Assignment (User address 0) User Address Assignment (User address 1) User Address Assignment (User address 2) User Address Assignment (User address 3) User Address Assignment (User address 4) User Address Assignment (User address 5) User Address Assignment (User address 6) User Address Assignment (User address 7) User Address Assignment (User address 8) User Address Assignment (User address 9). User Address Assignment (User address 10) User Address Assignment (User address 11) User Address Assignment (User address 12) User Address Assignment (User address 13) User Address Assignment (User address 14) User Address Assignment (User address 15) Reserved (Host should never send)
Page 35 35 35 35
36
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
14
FLEXTM Roaming Decoder II
KS8701
SPI Packets
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 KS8701.
Table 2: Decoder-to-Host Packet ID Map
Packet ID (Hexadecimal) 00 01 02 - 57 58 - 5F 60 61 - 7D 7E 7F 80 - FE FF Block Information Word Address
Packet Type
Page 39 41 42
Vector or Message (ID is word number in frame) Reserved Roaming Status Packet Reserved Receiver Shutdown Status Reserved Part ID
48
50 51
53
FLEXTM Roaming Decoder II
15
Host-to-Decoder Packet Descriptions
KS8701
HOST-TO-DECODER PACKET DESCRIPTIONS
The following sections describe the packets of information sent from the host to the KS8701. 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 KS8701. The KS8701 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 KS8701, the KS8701 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 KS8701. When the KS8701 is disabled in this way, it prompts the host to read the Part ID Packet. Note that all other operation continues normally when the KS8701 is "disabled". Disabled only implies that data cannot be read, all other internal operations continue to function. When the KS8701 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 53 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 KS8701, 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 KS8701 is disabled. If a Checksum Packet is sent and the CV bits match the bits in the checksum register, the KS8701 is enabled. If a Checksum Packet is sent when the KS8701 is already enabled, the packet is ignored by the KS8701 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 KS8701 is enabled, the KS8701 will be disabled until a Checksum Packet is sent with the correct CV bits. When the host reads a packet out of the KS8701 but has no data to send, the Checksum Packet should be sent so the KS8701 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 KS8701. When the host re-configures the KS8701, the KS8701 will be disabled from sending any packets other than the Part ID Packet until the KS8701 is enabled with a Checksum Packet having the proper data. The ID of the Checksum Packet is 0.
Table 3: Checksum Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 CV: 0 CV23 CV15 CV7
Bit 6 0 CV22 CV14 CV6
Bit 5 0 CV21 CV13 CV5
Bit 4 0 CV20 CV12 CV4
Bit 3 0 CV19 CV11 CV3
Bit 2 0. CV18 CV10 CV2
Bit 1 0 CV17 CV9 CV1
Bit 0 0 CV16 CV8 CV0
Checksum Value.
16
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
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
Checksum Packet?
N
Y
Decoder enabled? N
Packet data matches checksum register data?
Decoder disables itself
N
Y Decoder enables itself
Decoder sets checksum register to the XOR of the packet data bits with the checksum register bits
Figure 9: FLEX Decoder IC Checksum Flow Chart
FLEXTM Roaming Decoder II
17
Host-to-Decoder Packet Descriptions
KS8701
CONFIGURATION PACKET
The Configuration Packet defines a number of different configuration options for the KS8701. 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 Byte 3 Byte 2 Byte 1 Byte 0 0 0 0 SME
Bit 6 0 DFC 0 MOT
Bit 5 0 0 0 COD
Bit 4 0 0 0 MTE
Bit 3 0 0 0 LBP
Bit 2 0 IDE PCE ICO
Bit 1 0 OFD1 SP1 0
Bit 0 1 OFD0 SP0 0
DFC: Disable Fractional Clock. When this bit is set and IDE is set, the CLKOUT signal will generate a 40 kHz signal (EXTAL divided by 4). When this bit is cleared and IDE is set, the CLKOUT signal will generate 38.4 kHz 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 160 kHz. When this bit is cleared, the internal demodulator is disabled and the clock frequency at EXTAL is expected to be 76.8 kHz.(value after reset=0)
18
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
OFD: Oscillator Frequency Difference. These bits describe the maximum difference in the frequency of the 76.8 kHz 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 KS8701. The absolute error of the clock used by the FLEX transmitter must be taken into account. (e.g. If the transmitter tolerance is +/- 25 ppm and the 76.8 kHz oscillator tolerance is +/-140 ppm, the oscillator frequency difference is +/- 165 ppm and OFD should be set to 0.)(value after reset=0) OFD1 0 0 1 1 PCE: OFD0 0 1 0 1 Frequency Difference +/- 300 ppm +/-150 ppm +/- 75 ppm +/- 0 ppm
Partial Correlation Enable. When this bit is set, partial correlation of addresses is enabled. When partial correlation is enabled, the KS8701 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 KS8701. When this bit is cleared, the receiver will be controlled as it was in previous versions of the IC.(value after reset=0) 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. Signal Polarity EXTS1 EXTS0 Normal Normal Inverted Inverted Normal Inverted Normal Inverted FSK Modulation @SP = 0, 0 +4800 Hz +1600 Hz -1600 Hz -4800 Hz
SP:
SP1 0 0 1 1 SME:
SP0 0 1 0 1
EXTS1 1 1 0 0
EXTS0 0 1 1 0
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)
FLEXTM Roaming Decoder II
19
Host-to-Decoder Packet Descriptions
KS8701
COD: Clock Output Disable. When this bit is clear, a 38.4 kHz 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 KS8701 is in reset (as long as the KS8701 oscillator is seeing clocks). Further note that the when the KS8701 is used in internal demodulator mode(i.e. uses a 160 kHz oscillator), the CLKOUT pin will be 80 kHz from reset until the time the IDE bit is set. This is because the KS8701 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 160 kHz oscillator until the IDE bit is set. (value after reset=0) LBP: Low Battery Polarity. This bit defines the polarity of the KS8701's LOBAT pin. The LB bit in the Status Packet is initialized to the inverse value of this bit when the KS8701 is turned on (by setting the ON bit in the Control Packet). When the KS8701 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) Intermittent Clock Out. When this bit is clear and COD is clear, a 38.4 kHz or 40 kHz (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)
ICO:
20
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
CONTROL PACKET
The Control Packet defines a number of different control bits for the KS8701. The ID of the Control Packet is 2.
Table 5: Control Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 FF: 0 FF7 0 0
Bit 6 0 FF6 SPM SBI
Bit 5 0 FF5 PS1 0
Bit 4 0 FF4 PS0 MTC
Bit 3 0 FF3 0 0
Bit 2 0 FF2 0 0
Bit 1 1 FF1 0 EAE
Bit 0 0 FF0 0 ON
Force Frame 0-7. These bits enable and disable forcing the KS8701 to look in frames 0 through 7. When an FF bit is set, the KS8701 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 KS8701 to decode frames 0, 32, 64, and 96, setting FF0 to 1 when the system collapse is 5 will only cause the KS8701 to decode frame 0.). This may be useful for acquiring transmitted time information or channel attributes (e.g. Local ID). (value after reset =0) Single Phase Mode. When this bit is set, the KS8701 will decode only one phase of the transmitted data. When this bit is clear, the KS8701 will decode all of the phases it receives. A change to this bit while the KS8701 is on, will not take affect until the next block 0 of the next decoded frame. (value after reset =0) Phase Select. When the SPM bit is set, these bits define what phase the KS8701 should decode according to the following table. This value is determined by the service provider. A change to these bits while the KS8701 is on, will not take affect until the next block 0 of a frame. (value after reset =0) Phase Decoded (based on FLEX Data Rate) 1600bps a a a a 3200bps a a c c 6400bps a b c d
SPM:
PS:
PS Value PS1 0 0 1 1 SBI: PS0 0 1 0 1
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 page39 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.
FLEXTM Roaming Decoder II
21
Host-to-Decoder Packet Descriptions
KS8701
EAE:
End of Addresses Enable. When this bit is set, the EA bit in the Status Packet will be set immediately after the KS8701 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. Turn On Decoder. Set if the KS8701 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 KS8701 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)
ON:
NOTES: Turning off the KS8701 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 KS8701 by sending a Control Packet with the ON bit cleared. 2. Turn on the KS8701 by sending a Control Packet with the ON bit set. 3. Turn off the KS8701 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:
l
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.
l l l
22
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
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 KS8701 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 KS8701 and can only be decremented by the host. The KS8701 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 KS8701 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 KS8701 in order to exit the all frame mode, thereby improving battery life. See "Building a Fragmented Message" on page 61 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 Byte 3 Byte 2 Byte 1 Byte 0 0 DAF DTA15 DTA7
Bit 6 0 FAF DTA14 DTA6
Bit 5 0 0 DTA13 DTA5
Bit4 0 0 DTA12 DTA4
Bit 3 0 0 DTA11 DTA3
Bit 2 0 0 DTA10 DTA2
Bit 1 1 0 DTA9 DTA1
Bit 0 1 0 DTA8 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 KS8701 to enter all frame mode. If this bit is clear, the KS8701 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)
FLEXTM Roaming Decoder II
23
Host-to-Decoder Packet Descriptions
KS8701
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 Byte 3 Byte 2 Byte 1 Byte 0 0 0 OAE15 OAE7
Bit 6 0 0 OAE14 OAE6
Bit 5 0 0 OAE13 OAE5
Bit 4 0 0 OAE12 OAE4
Bit 3 0 0 OAE11 OAE3
Bit 2 1 0 OAE10 OAE2
Bit 1 0 0 OAE9 OAE1
Bit 0 0 0 OAE8 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)
24
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
ROAMING CONTROL PACKET
The roaming control packet controls the features of the KS8701 that allow implementation of a roaming device. The ID of the roaming control packet is 5.
Table 8: Roaming Control Packet Bit Assignments
Bit Byte 3 Byte 2 Byte 1 Byte 0 IRS: 0 IRS RND 0
Bit 6 0 NBC ABI 0
Bit 5 0 MCM SAS MFC1
Bit 4 0 IS1 DAS MFC0
Bit 3 0 SDF 0 0
Bit 2 1 RSP 0 0
Bit 1 0 SND 0 MCO1
Bit 0 1 CND 0 MCO0
Ignore Re-synchronization Signal. When this bit is set, KS8701 will not go asynchronous when detecting an Ar or Ar signal during searches for A-words. It will merely report that the resynchronization signal was received by setting RSR to 1 in the Roaming Status packet. This allows the host to decide what to do when the paging device is synchronous to more than one channel and only one channel is sending the re-synchronization signal. It also prevents the KS8701 from losing synchronization when it detects the re-synchronization signal while the paging device is checking an unknown channel. This bit is set and cleared by the host. (value after reset=0)
NBC: Network Bit Check. Setting this bit will enable reporting of the received network bit value (NBU and n) in the Roaming Status Packet. Setting this bit also makes the KS8701 abandon a frame after the Frame Info word without synchronizing to the frame if the frame information word is uncorrectable or if the n bit in the frame information word is not set. If the KS8701 was in synchronous mode when this occurred (probably due to synchronizing to a second channel), it will maintain synchronization to the original channel. If the KS8701 was in asynchronous mode when this occurred, it will stay in asynchronous mode and end the A-word search. This is done to avoid synchronizing to a non-roaming channel when searching for roaming channels. This bit is set and cleared by the host. (value after reset=0) MCM: Manual Collapse Mode. When this bit is set, the KS8701 behaves as if the system collapse was 7. The KS8701 will not apply the received system collapse to the AF bits. When this bit is set, the received system collapse is reported to the host via SCU and RSC in the Roaming Status Packet. This is so the host can modify the AF bits based on the system collapse of the channel. This bit is set and cleared by the host. (value after reset=0) IS1: Invert EXTS1. Setting this bit inverts the expected polarity of the EXTS1 pin from the way it is configured by SP1 in the Configuration Packet (e.g. if both IS1 and SP1 are set, the polarity of the EXTS1 pin is untouched). This bit is intended to be changed when a change in a channel changes the polarity of the received signal. This bit is set and cleared by the host. This bit has the equivalent effect when using the internal demodulator. (value after reset=0) Stop Decoding Frame. Setting this bit causes the KS8701 to stop decoding a frame without losing frame synchronization. This bit is set by the host, and cleared by the KS8701 once it has been processed. The packet with the SDF bit set must be sent after receiving the status packet with EA bit set. It must be sent within 40ms of the end of block in which the KS8701 set the EA bit. (value after reset=0)
SDF:
FLEXTM Roaming Decoder II
25
Host-to-Decoder Packet Descriptions
KS8701
RSP: Receiver Shutdown Packet enable. When this bit is set, a Receiver Shutdown Packet will be sent whenever the receiver is shut down. The receiver shutdown packet informs the host that the receiver shutdown, and how long it will be before the KS8701 will automatically warm the receiver back up. (value after reset=0) SND: Start Noise Detect. Setting this bit while the KS8701 is battery saving will cause it to warm-up the receiver, run a noise detect, and report the result of the noise detect via NDR in the Roaming Status Packet. This bit is set by the host, and cleared by the KS8701 once it has been processed. If the time comes for the KS8701 to warm up for automatically or the SAS bit is set while an SND is being processed, the noise detect will be abandoned and the abandoned noise detect result (NDR=01) will be sent in the Roaming Status Packet. (value after reset=0) CND: Continuous Noise Detect. Setting this bit will cause the KS8701 to do continuous noise detects during the decoded block data of a frame. The results of the noise detect will only be reported if noise is detected (NDR=11). Only one noise detected result (NDR=11) will be sent per block. If the KS8701 has not completed a noise detect when it shuts down for the frame, that noise detect will be abandoned, but no abandon result (NDR=01) will be sent. This bit is set and cleared by the host. (value after reset=0) RND: Report Noise Detects. Setting this bit will cause the KS8701 to report the results of the noise detects it does under normal asynchronous operation (when first turned on and when asynchronous). The results of the noise detect will be reported via NDR in the Roaming Status Packet. This bit is set and cleared by the host. (value after reset=0) ABI: All Block Information words. When this bit is set, the KS8701 will send all received Block Information words 2-4 to the host. Note: Setting the SBI bit in the Control Packet only enables errored and real time clock related block info words. (value after reset=0) Start A-word Search. Setting this bit while in asynchronous battery save mode will cause the KS8701 to warm-up the receiver and run an A-word search. If, during the A-word search, the KS8701 finds sufficient FLEX signal, it will enter synchronous mode and start decoding the frame. If the A-word search times-out without finding sufficient FLEX signal, it will battery save and continue doing periodic noise detects. The time-out for the A-word searches is controlled by the AST bits in the Timing Control Packet and the MOT bit in the Configuration Packet. The A-word search takes priority over noise detects. Therefore, if the KS8701 is performing an A-word search and the time comes to do automatic noise detect, the noise detect will not be performed. This bit is set by the host, and cleared by the KS8701 once it has been acted on. (value after reset=0) Disable A-word Search. When this bit is set, an A-word search will not automatically occur after a noise detect in asynchronous mode finds FLEX signal. This includes automatic noise detects and noise detects initiated by the host by setting SND. The KS8701 will shut down the receiver after the noise detect completes regardless of the result. When this bit is cleared, A-word searches will occur after a noise detect finds signal in asynchronous mode. (value after reset=0)
SAS:
DAS:
26
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
MFC: Missed Frame Control. These bits control the frames for which missing frame data (MS1, MFI, MS2, MBI, and MAW) is reported in the Roaming Status Packet. (value after reset=0) MFC1 0 0 1 1 MFC0 0 1 0 1 Missing Frame Data Reported Never Only during frames 0 through 3 Only during frames 0 through 7 Always
MCO: Maximum Carry On. The value of these bits sets the maximum carry on that the KS8701 will follow. For example, if the KS8701 receives a carry on of 3 over the air and MCO is set to 1, the KS8701 will only carry on for one frame. (value after reset=3)
FLEXTM Roaming Decoder II
27
Host-to-Decoder Packet Descriptions
KS8701
TIMING CONTROL PACKET
The timing control packet gives the host control of the timing used when the KS8701 is in asynchronous mode. The packet ID for the timing control packet is 6.
Table 9: Timing Control Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 AST: 0 0 AST7 ABT7
Bit 6 0 0 AST6 ABT6
Bit 5 0 0 AST5 ABT5
Bit 4 0 0 AST4 ABT4
Bit 3 0 0 AST3 ABT3
Bit 2 1 0 AST2 ABT2
Bit 1 1 0 AST1 ABT1
Bit 0 0 0 AST0 ABT0
A-word Search Time. The value of these bits sets the A-word search time for all asynchronous A-word searches in units of 80ms (e.g. value of 1 is 80ms. value of 2 is 160ms, etc.) If the value is 0, the KS8701 defaults to the 1-minute (MOT=1) or 4-minute (MOT=0) A-word search time controlled by the MOT bit in the configuration packet. (Value after reset=0)
ABT: Asynchronous Battery-save Time. The value of these bits sets the battery save time (time from the beginning of one automatic noise detect to the beginning of the next automatic noise detect) in asynchronous mode in units of 80ms (e.g. value of 1 is 80ms, value of 2 is 160ms, etc.) If the value is 0, the battery save time is set to the default value of 1.5 seconds. The minimum allowed ABT is 320ms, therefore values of 1, 2, 3, and 4 are invalid. (Value after reset=0)
28
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
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 Byte 3 Byte 2 Byte 1 Byte 0 FRS: 0 0 FRS7 CLS7
Bit 6 0 0 FRS6 CLS6
Bit 5 0 0 FRS5 CLS5
Bit4 0 0 FRS4 CLS4
Bit 3 1 0 FRS3 CLS3
Bit 2 1 0 FRS2 CLS2
Bit 1 1 0 FRS1 CLS1
Bit 0 1 0 FRS0 CLS0
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 KS8701. (value after reset=0) 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)
CLS:
FLEXTM Roaming Decoder II
29
Host-to-Decoder Packet Descriptions
KS8701
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 KS8701 uses these settings see "Receiver Control" on page 55. The KS8701 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 Byte 3 Byte 2 Byte 1 Byte 0 0 0 CLS7 ST7
Bit 6 0 0 CLS6 ST6
Bit 5 0 0 CLS5 ST5
Bit 4 1 0 CLS4 ST4
Bit 3 0 LBC CLS3 ST3
Bit 2 0 0 CLS2 ST2
Bit1 0 0 CLS1 ST1
Bit 0 0 0 CLS0 ST0
LBC: Low Battery Check. If this bit is set, the KS8701 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: ST: 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) Step Time. This is the time the KS8701 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)
30
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
RECEIVER WARM UP SETTING PACKETS
Table 12: Receiver Warm Up Setting Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 s: 0 SE CLS7 0
Bit 6 0 0 CLS6 ST6
Bit 5 0 0 CLS5 ST5
Bit 4 1 0 CLS4 ST4
Bit 3 0 LBC CLS3 ST3
Bit 2 s2 0 CLS2 ST2
Bit 1 s1 0 CLS1 ST1
Bit 0 s0 0 CLS0 ST0
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 001 010 011 100 101 Setting Name Warm Up 1 Warm Up 2 Warm Up 3 Warm Up 4 Warm Up 5
SE: LBC: CLS: ST:
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) Low Battery Check. If this bit is set, the KS8701 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) 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) Step Time. This is the time the KS8701 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)
FLEXTM Roaming Decoder II
31
Host-to-Decoder Packet Descriptions
KS8701
3200SPS SYNC SETTING PACKETS
Table 13: 3200sps Sync Setting Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 0 0 CLS7 0
Bit 6 0 0 CLS6 ST6
Bit 5 0 0 CLS5 ST5
Bit 4 1 0 CLS4 ST4
Bit 3 0 LBC CLS3 ST3
Bit 2 1 0 CLS2 ST2
Bit 1 1 0 CLS1 ST1
Bit 0 0 0 CLS0 ST0
LBC: Low Battery Check. If this bit is set, the KS8701 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: ST: 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) Step Time. This is the time the KS8701 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)
32
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
RECEIVER ON SETTING PACKETS
Table 14: Receiver On Setting Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 s: 0 0 CLS7 0
Bit 6 0 0 CLS6 0
Bit 5 0 0 CLS5 0
Bit 4 1 0 CLS4 0
Bit 3 s3 LBC CLS3 0
Bit 2 s2 0 CLS2 0
Bit 1 s1 0 CLS1 0
Bit 0
S0
0 CLS0 0
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 0111 1000 1001 Setting Name 1600sps Sync 3200sps Data 1600sps Data
LBC: Low Battery Check. If this bit is set, the KS8701 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)
FLEXTM Roaming Decoder II
33
Host-to-Decoder Packet Descriptions
KS8701
RECEIVER SHUT DOWN SETTING PACKETS
Table 15: Receiver Shut Down Setting Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 s: 0 SE CLS7 0
Bit 6 0 0 CLS6 0
Bit 5 0 0 CLS5 ST5
Bit 4 1 0 CLS4 ST4
Bit 3 1 LBC CLS3 ST3
Bit 2 0 0 CLS2 ST2
Bit 1 1 0 CLS1 ST1
Bit 0 s 0 CLS0 ST0
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 0 1 Setting Name Shut Down 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 KS8701 will check the status of the LOBAT port just before leaving this receiver state. (value after reset=0) CLS: ST: 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) Step Time. This is the time the KS8701 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)
34
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
FRAME ASSIGNMENT PACKETS
The FLEX protocol defines that each address of a FLEX pager is assigned a home frame and a battery cycle. The KS8701 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 KS8701 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 KS8701 is configured for manual collapse mode by setting the MCM bit in the Roaming Control Packet, the KS8701 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 KS8701 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
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 f: 0 0 AF15 AF7
Bit 6 0 0 AF14 AF6
Bit 5 1 0 AF13 AF5
Bit 4 0 0 AF12 AF4
Bit 3 0 0 AF11 AF3
Bit 2 f2 0 AF10 AF2
Bit 1 f1 0 AF9 AF1
Bit 0 f0 0 AF8 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 KS8701 is turned on by setting the ON bit in the control packet. (value after reset=0) f2 f1 f0 000 001 010 011 100 101 110 111 AF15 Frame 127 Frame 111 Frame 95 Frame 79 Frame 63 Frame 47 Frame 31 Frame 15 AF0 Frame 112 Frame 96 Frame 80 Frame 64 Frame 48 Frame 32 Frame 16 Frame 0
AF:
Assigned Frame. If a bit is set, the KS8701 will consider the corresponding frame to be assigned via an address' s home frame and pager collapse. (value after reset=0)
FLEXTM Roaming Decoder II
35
Host-to-Decoder Packet Descriptions
KS8701
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 KS8701 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 Byte 3 Byte 2 ` Byte 1 Byte 0 UAE: 0 0 UAE15 UAE7
Bit 6 1 0 UAE14 UAE6
Bit 5 1 0 UAE13 UAE5
Bit 4 1 0 UAE12 UAE4
Bit 3 1 0 UAE11 UAE3
Bit 2 0 0 UAE10 UAE2
Bit 1 0 0 UAE9 UAE1
Bit 0 0 0 UAE8 UAE0
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)
36
FLEXTM Roaming Decoder II
KS8701
Host-to-Decoder Packet Descriptions
USER ADDRESS ASSIGNMENT PACKETS
The KS8701 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 KS8701 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
Bit7 Byte 3 Byte 2 Byte 1 Byte 0 a: 1 0 A15 A7
Bit 6 0 LA A14 A6
Bit 5 0 TOA A13 A5
Bit4 0 A20 A12 A4
Bit 3 a3 A19 A11 A3
Bit 2 a2 A18 A10 A2
Bit 1 a1 A17 A9 A1
Bit 0 a0 A16 A8 A0
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 KS8701 when an address is detected. See "Address Packet" on page 41 for a description of the address index field. 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.
LA:
TOA: Tone-Only Address. When this bit is set, the KS8701 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.
FLEXTM Roaming Decoder II
37
Decoder-to-Host Packet Descriptions
KS8701
DECODER-TO-HOST PACKET DESCRIPTIONS
The following sections describe the packets of information that will be sent from the KS8701 to the host. In all cases the packets are sent MSB first (bit 7 of byte 3 = bit 31 of the packet = MSB). The KS8701 decides what data should be sent to the host. If the KS8701 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 KS8701 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 KS8701 will send the Status Packet (which is not buffered). In the event of a buffer overflow, the KS8701 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
32
Receiver Shutdown Register
32
32 Roaming Status Register
MUX
32
32x32 Data Packet FIFO Transmit Buffer
32
SPI Transmit Register Status register 32
MISO
Figure 10: FLEX decoder IC SPI Transmit Functional Block Diagram
38
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
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 KS8701 and is never transmitted to the host with the exception of the system collapse which is sent to the host when the KS8701 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 KS8701 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 KS8701 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 Byte 3 Byte 2 Byte 1 Byte 0 e: p: x: f: 0 e x s7
Bit 6 0 p1 x s6
Bit 5 0 p0 s13 s5
Bit 4 0 x s12 s4
Bit 3 0 x s11 s3
Bit 2 0 f2 s10 s2
Bit 1 0 f1 s9 s1
Bit 0 0 f0 s8 s0
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. Phase on which the block information word was found (0=a, 1=b, 2=c, 3=d) Unused bits. The value of these bits is not guaranteed. 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.
FLEXTM Roaming Decoder II
39
Decoder-to-Host Packet Descriptions
KS8701
s:
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. f2 f1 f0 000a 001b 010 011
b a
s13 s12 s11 s10 s9 s8 s7 s6 s5 s4 s3 s2 s1 s0 i8 i7 i6 i5 i4 i3 i2 i1 i0 C4 C3 C2 C1 C0 Y4 Y3 Y2 Y1 Y0
Description Local ID, Coverage Zone Month ,Day, Year Second ,Minute, Hour
m3 m2 m1 m0 d4 d3 d2 d1 d0
S2 S1 S0 M5 M4 M3 M2 M1 M0 H4 H3 H2 H1 H0 Reserved by FLEX protocol for future use Reserved by FLEX protocol for future use z9 z8 z7 z6 z5 z4 z3 z2 z1 z0 A3 A2 A1 A0
100a 101 110
b a
System Message Country Code, Traffic Management Flags
Reserved by FLEX protocol for future use c9 c8 c7 c6 c5 c4 c3 c2 c1 c0 T3 T2 T1 T0
111a a. b.
Will be decoded only if the ABI bit is set Will be decoded only if the SBI or ABI bit is set
40
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
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 KS8701, 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 Byte 3 Byte 2 Byte 1 Byte 0 PA: p: LA: AI: 0 PA AI7 TOA
Bit 6 0 p1 AI6 WN6
Bit 5 0 p0 AI5 WN5
Bit 4 0 LA AI4 WN4
Bit 3 0 x AI3 WN3
Bit 2 0 x AI2 WN2
Bit 1 0 x AI1 WN1
Bit 0 1 x AI0 WN0
Priority Address. Set if the address was received as a priority address. Phase on which the address was detected (0=a, 1=b, 2=c, 3=d) Long Address type. Set if the address was programmed in the KS8701 as a long address. 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 KS8701 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: x: 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. Unused bits. The value of these bits is not guaranteed.
FLEXTM Roaming Decoder II
41
Decoder-to-Host Packet Descriptions
KS8701
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 KS8701 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 61 and "Operation of a Temporary Address" on page 64 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.
42
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
NUMERIC VECTOR PACKET
Table 21: Numeric Vector Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 V: 0 e x n0
Bit 6 WN6 p1 x b6
Bit 5 WN5 p0 K3 b5
Bit 4 WN4 x K2 b4
Bit 3 WN3 x K1 b3
Bit 2 WN2 V2 K0 b2
Bit 1 WN1 V1 n2 b1
Bit 0 WN0 V0 n1 b0
Vector type identifier. V2 V1 V0 011 100 Name Standard Numeric Vector Special Format Numeric Vector Numbered Numeric Vector Description No special formatting of characters is specified Formatting of the received characters is predetermined by special rules in the host. The received information has been numbered by the service provider to indicate all messages have been properly received
111
WN: e: p: K: n:
Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. 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. Phase on which the vector was found (0=a, 1=b,2=c, 3=d) Beginning check bits of the message. 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. 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. Unused bits. The value of these bits is not guaranteed.
b: x:
FLEXTM Roaming Decoder II
43
Decoder-to-Host Packet Descriptions
KS8701
SHORT MESSAGE / TONE ONLY VECTOR
Table 22: Short Message / Tone Only Vector Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 V: WN: e: p: d: 0 e x d5
Bit 6 WN6 p1 x d4
Bit 5 WN5 p0 d11 d3
Bit 4 WN4 x d10 d2
Bit 3 WN3 x d9 d1
Bit 2 WN2 V2 d8 d0
Bit 1 WN1 V1 d7 t1
Bit 0 WN0 V0 d6 t0
010 for a Short Message / Tone Only Vector Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. Set if more than 2 bit errors are detected in the word or, if after error correction, the check character calculation fails. Phase on which the vector was found (0=a, 1=b, 2=c, 3=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. t1 t0 00 d11 d10 d9 d8 d 7 d6 d5 d 4 d3 d2 d 1 d 0 c3 c2 c1 c0 b3 b2 b1 b0 a3 a2 a1 a0 Description Short Numeric: 3 numeric charsa when on a messaging address Part of NID when on a Network Address Tone Only: 8 source (S) and 9 unused bits(s)
00 01
T3 T 2 T1 T0 M2 M1 M0 A4 A3 A2 A1 A0 s8 s7 s6 s5 s4 s3 s2 s1 s0 S2 S1 S0
10
Tone only: 8 source (s),message s1 s0 R0 N5 N4 N3 N2 N1 N0 S2 S1 S0 number(N),message retrieval flag (R), and 2 unused bits(s) spare message type For long addresses, an extra 5 characters are sent in the Message Packet immediately following the Vector Packet.
11 a. t: x:
Message type. These bits define the meaning of the d bits in this packet. Unused bits. The value of these bits is not guaranteed.
44
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
HEX / BINARY, ALPHANUMERIC, AND SECURE MESSAGE VECTOR
Table 23: HEX / Binary, Alphanumeric, and Secure Message Vector Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 V: 0 e x n0
Bit 6 WN6 p1 x b6
Bit 5 WN5 p0 n6 b5
Bit4 WN4 x n5 b4
Bit 3 WN3 x n4 b3
Bit 2 WN2 V2 n3 b2
Bit 1 WN1 V1 n2 b1
Bit 0 WN0 V0 n1 b0
Vector type identifier. V2 V1 V0 000 101 110 Type Secure Alphanumeric Hex / Binary
WN: e: p: n: b: x:
Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. 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. Phase on which the vector was found (0=a, 1=b, 2=c, 3=d) 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 Word number of message start in the message field. Valid values are 3 through 87 decimal. 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.
FLEXTM Roaming Decoder II
45
Decoder-to-Host Packet Descriptions
KS8701
SHORT INSTRUCTION VECTOR
Table 24: Short Instruction Vector Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 V: WN: e: p: d: 0 e x d4
Bit 6 WN6 p1 x d3
Bit 5 WN5 p0 d10 d2
Bit 4 WN4 x d9 d1
Bit 3 WN3 x d8 d0
Bit 2 WN2 V2 d7 i2
Bit 1 WN1 V1 d6 i1
Bit 0 WN0 V0 d5 i0
001 for a Short Instruction Vector. Word number of vector (2 - 87 decimal). Describes the location of the vector word in the frame. Set if more than 2 bit errors are detected in the word or, if after error correction the check character calculation fails. Phase on which the vector was found (0=a, 1=b, 2=c, 3=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 000 001 010 011 100 101 110 111 a. b. d10 d 9 d8 d 7 d 6 d5 d 4 d3 d 2 d 1 d 0 a3 d10 a3 a2 d9 a2 a1 d8 a1 a0 d7 a0 f6 d6 f6 f5 d5 f4 d4 f3 d3 f2 d2 f1 d1 Description
f 0 Temporary address assignmenta d0 11 Event Flags for System Event Temporary address assignment with MSNb Reserved Reserved Reserved Reserved Reserved for test
N5 N4 N3 N2 N1 N0
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 64 for a description and for details on the use of the other fields.
i: x:
Instruction type. These bits define the meaning of the d bits in this packet. Unused bits. The value of these bits is not guaranteed.
46
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
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 Byte 5 Byte 2 Byte 1 Byte 0 WN: e: p: i: 0 e i15 i7
Bit 6 WN6 p1 i14 i6
Bit 5 WN5 p0 i13 i5
Bit 4 WN4 i20 i12 i4
Bit 3 WN3 i19 i11 i3
Bit 2 WN2 i18 i10 i2
Bit 1 WN1 i17 i9 i1
Bit 0 WN0 i16 i8 i0
Word number of message word (3 - 87 decimal). Describes the location of the message word in the frame. Set if more than 2 bit errors are detected in the word. Phase on which the message word was found (0=a, 1=b, 2=c, 3=d) 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.
FLEXTM Roaming Decoder II
47
Decoder-to-Host Packet Descriptions
KS8701
ROAMING STATUS PACKET
The KS8701 will prompt the host to read a Roaming Status Packet if RSR, MS1, MFI, MS2, MBI, MAW, NBU NDR1, NDR0, or SCU is set.
Table 26: Roaming Status Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 RSR: 0 RSR x x
Bit 6 1 MS1 x x
Bit 5 1 MFI x x
Bit 4 0 MS2 x x
Bit 3 0 MBI x SCU
Bit 2 0 MAW x RSC2
Bit 1 0 NBU NDR1 RSC1
Bit 0 0 n NDR0 RSC0
Re-synchronization Signal Received. Set when the KS8701 detected a re-synchronization signal and the host configured the KS8701 to ignore it via the IRS bit in the roaming control packet. This bit is cleared when read.
MS1: Missed Synchronization 1. Set when the KS8701 failed to detect the first synchronization pattern (A / A) of a FLEX frame and the KS8701 was configured to report missed frame information via the MFC bit in the roaming control packet. This bit is cleared when read. MFI: Missed Frame Information word. Set when the frame information word is received with an uncorrectable number of errors and the KS8701 was configured to report missed frame information via the MFC bit in the roaming control packet. This bit is cleared when read.
MS2: Missed Synchronization 2. Set when the KS8701 failed to detect the second synchronization pattern (C / C) of a frame and the KS8701 was configured to report missed frame information via the MFC bit in the roaming control packet. This bit is cleared when read. MBI: Missed Block Information word 1. Set when at least one of the block information word ones is received with an uncorrectable number of errors and the KS8701 was configured to report missed frame information via the MFC bit in the roaming control packet. This bit is set no more than once per frame regardless of the number of missed block information word 1' s in the frame. This bit is cleared when read. Missed Address Word. Set when any address words in the address field is received with an uncorrectable number of errors and the KS8701 was configured to report missed frame information via the MFC bit in the roaming control packet. This bit is set no more than once per frame regardless of the number of missed address words in the frame. This bit is cleared when read.
MAW:
NBU: Network Bit Update. Set when the NBC bit in the roaming control packet is set and a frame information word is received with a correctable number of errors. This bit will not be set when the frame information word is not received due to missing the first synchronization pattern (A / A). This bit is cleared when read. n: Network bit value. When NBU is set, this is the value of the n bit in the last received frame information word.
48
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
NDR: Noise Detect Result. These bits indicate the result of a noise detect. The results of noise detects initiated by setting the SND bit in the roaming control packet will always be reported. The results of the automatic noise detects performed in asynchronous mode will only be reported if the RND bit is set in the roaming control packet. When continuous noise detects during block data are enabled by setting the CND bit in the roaming control packet, only the "No FLEX signal detected" result will be reported. These bits are cleared when read. NDR 00 01 10 11 Noise Detect Result No Information Noise Detect was abandoned FLEX signal detected FLEX signal not detected
SCU: System Collapse Update. Set when the KS8701 is configured for manual collapse mode by setting the MCM bit in the roaming control packet and the system collapse of a frame is received. This bit is set no more than once per frame regardless of the number of phases in the frame. This bit will not be set in frames in which no block information word ones is received properly. This bit is cleared when read. RSC: Received System Collapse. When SCU is set, this value represents the system collapse value that was received in the frame
FLEXTM Roaming Decoder II
49
Decoder-to-Host Packet Descriptions
KS8701
RECEIVER SHUTDOWN PACKET
The Shutdown Packet is sent in both synchronous and asynchronous mode. It is designed to indicate to the host that the receiver is turned off and how much time there is until the KS8701 will automatically turn it back on.
Table 27: Receiver Shut Down Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 0 FNV TNF7 FCO
Bit 6 1 CF6 TNF6 NAF6
Bit 5 1 CF5 TNF5 NAF5
Bit 4 1 CF4 TNF4 NAF4
Bit 3 1 CF3 TNF3 NAF3
Bit 2 1 CF2 TNF2 NAF2
Bit 1 1 CF1 TNF1 NAF1
Bit 0 0 CF0 TNF0 NAF0
FNV: Frame Number Valid. This bit is set if the last decoded frame info word was correctable and the frame number was the expected value. When in asynchronous mode, this value will be 0. CF: Current Frame. When in synchronous mode, this is the current frame number. This value is latched on the negative edge of the READY line when this packet is sent to the host. The value of this field is valid only if the KS8701 is in synchronous mode and the FIV bit in the status packet is set. When in asynchronous mode, this value will be 0. Time to Next Frame. When in synchronous mode TNF indicates the time to the start of the A-word check if the KS8701 were to warm up for the next frame. When in asynchronous mode TNF indicates the time to the start of the next automatic noise detect. See "Using the Receiver Shutdown Packet" on page 66 for an explanation on how to use this value. This value is latched on the negative edge of the READY line when this packet is sent to the host.
TNF:
FCO: Frame Carried On. Set if the KS8701 is decoding the next frame due to the reception of a non-zero carry-on value in a previous frame. When in synchronous mode, this value will be 0. NAF: Next Assigned Frame. This is the frame number of the next frame the KS8701 was scheduled to decode when the receiver shut down. The value of this field is valid only if the KS8701 is in synchronous mode and the FIV bit in the status packet is set. When in asynchronous mode this value will be 0.
50
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
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 KS8701 is polled and has no other data to send. The KS8701 can also prompt the host to read the Status Packet due to events for which the KS8701 was configured to send it (see "Configuration Packet" on page 18 and "Control Packet" on page 21 for a detailed description of the bits). The KS8701 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 Byte 3 Byte 2 Byte 1 Byte 0 FIV: 0 FIV SM SMU
Bit 6 1 f6 LB LBU
Bit 5 1 f5 x x
Bit 4 1 f4 x MT
Bit 3 1 f3 c3 x
Bit 2 1 f2 c2 EOF
Bit 1 1 f1 c1 EA
Bit 0 1 f0
C0
BOE
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 KS8701 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 KS8701 goes into asynchronous mode. This bit is initialized to 0 when the KS8701 is reset and when the KS8701 is turned off by clearing the ON bit in the Control Packet. Current frame number. This value is updated every frame regardless of whether the KS8701 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. Synchronous Mode. This bit is set when the KS8701 is synchronous to the system. The KS8701 will set this bit when the first synchronization words are received. It will clear this bit when the KS8701 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 KS8701 is reset and when it is turned off by clearing the ON bit in the Control Packet 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 KS8701 is turned on by setting the ON bit in the Control Packet.
f:
SM:
LB:
FLEXTM Roaming Decoder II
51
Decoder-to-Host Packet Descriptions
KS8701
c:
Current system cycle number. This value is updated every frame regardless of whether the KS8701 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 KS8701 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 KS8701 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 KS8701 transitions from/to synchronous mode. Cleared when read. Changes in the SM bit due to turning off the KS8701 will not cause the SMU bit to be set. This bit is initialized to 0 when the KS8701 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 KS8701 will not cause the LBU bit to be set. This bit is initialized to 0 when the KS8701 is reset. MT: Minute Time-out. Set if one minute has elapsed. Cleared when read. This bit is initialized to 0 when the KS8701 is reset.
EOF: End Of Frame. Set when the KS8701 is in all frames mode and the end of frame has been reached. The KS8701 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 KS8701 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 KS8701 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 KS8701 is reset. Buffer Overflow Error. Set when information has been lost due to slow host response time. When the data packet FIFO transmit buffer on the KS8701 overflows, the KS8701 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 KS8701 is reset. Unused bits. The value of these bits is not guaranteed.
BOE:
x:
52
FLEXTM Roaming Decoder II
KS8701
Decoder-to-Host Packet Descriptions
PART ID PACKET
The Part ID Packet is sent by the KS8701 whenever the KS8701 is disabled due to the checksum feature. See "Checksum Packet" on page 16 for a description of the checksum feature. Since the KS8701 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 255 (decimal).
Table 29: Part ID Packet Bit Assignments
Bit 7 Byte 3 Byte 2 Byte 1 Byte 0 MDL: CID: 1 MDL1 CID7 REV7
Bit 6 1 MDL0 CID6 REV6
Bit 5 1 CID13 CID5 REV5
Bit 4 1 CID12 CID4 REV4
Bit 3 1 CID11 CID3 REV3
Bit 2 1 CID10 CID2 REV2
Bit 1 1 CID9 CID1 REV1
Bit 0 1 CID8 CID0 REV0
Model. This identifies the FLEX decoder model. Current value is 0. 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 CID0 CID1 CID2 a. b. Indicates this IC can be used in place of FLEX Alphanumeric Decoder Ia FLEX Roaming Decoder I FLEX Numeric Decoder
b
Value for FLEXTM Roaming Decoder II 1 (TRUE) 1 (TRUE) 0 (FALSE)
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. 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.
FLEXTM Roaming Decoder II
53
Decoder-to-Host Packet Descriptions
KS8701
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) 00 01 03 00 01 04 00 01 06 00 01 07 00 03 03 00 03 05 00 03 09 00 03 14 00 04 01
Revision FLEX Alphanumeric Decoder I FLEX Alphanumeric Decoder I FLEX Alphanumeric Decoder I FLEX Alphanumeric Decoder II FLEX Roaming Decoder I FLEX Roaming Decoder I FLEX Roaming Decoder II FLEX Roaming Decoder II FLEX Numeric Decoder Texas Instruments
Manufacturer
Motorola Semiconductor Products Sector Philips Motorola Semiconductor Products Sector Motorola Semiconductor Products Sector Texas Instruments Motorola Semiconductor Products Sector Samsung Electronics Texas Instruments
54
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
APPENDIX A : APPLICATION NOTES
RECEIVER CONTROL
INTRODUCTION The KS8701 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 KS8701. 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 KS8701 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 KS8701 is reset and until the corresponding FRS bit in the Receiver Line Control Packet is set or until the KS8701 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 KS8701. When the KS8701 is turned on, the receiver control ports are driven to the settings configured by the "Receiver Control Configuration Packets" on page 30 until the KS8701 is reset again.
AUTOMATIC RECEIVER WARM UP SEQUENCE The KS8701 allows for up to 6 steps associated with warming up the receiver. When the KS8701 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 KS8701. 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 KS8701 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 56.
FLEXTM Roaming Decoder II
55
Appendix A: Application Notes
KS8701
160ms
Warm Up Off Time Warm up Time 1 Warm Up setting 1 Warm up Time 2 Warm Up setting 2 Warm up Time 3 Warm Up setting 3 Warm up Time 4 Warm Up setting 4 Warm up Time 5 Warm Up setting 5 1600sps or 3200sps sync setting
RECEIVER CONTROL LINE SETTING
Off
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
EXTS1 & EXTS0 signals are expected to be valid here.
Figure 11: Automatic Receiver Warm Up Sequence
HOST INITIATED RECEIVER WARM UP SEQUENCE The host can cause the KS8701 to warm-up the receiver in three ways: (1) by turning on KS8701 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 KS8701 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 56 the receiver warm up sequence when the host initiates a warm-up sequence and when all warm up settings are enabled is shown.
Warm up Time 1
Warm up Time 2 Warm Up setting 2
Warm up Time 3 Warm Up setting 3
Warm up Time 4 Warm Up setting 4
Warm up Time 5 Warm Up setting 5
3200sps sync Warm up Time 3200sps sync setting
RECEIVER CONTROL LINE SETTING
Off
Possible LOBAT Check
Warm Up setting 1
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Possible EXTS1 & EXTS0 LOBAT signals are Check expected to be valid here.
Figure 12: Host Initiated Receiver Warm Up Sequence
56
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
RECEIVER SHUT DOWN SEQUENCE The KS8701 allows for up to 3 steps associated with shutting down the receiver. When the KS8701 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 KS8701 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 57 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 KS8701 will execute the receiver shutdown sequence. If the KS8701 is executing the shut down sequence when the KS8701 is turned on (by setting the ON bit in the Control Packet), the KS8701 will complete the shut down sequence before starting the warm up sequence.
Shut Down Time 1
Shut Down Time 2 Shut Down Setting 2 Off
RECEIVER CONTROL LINE SETTING
1600sps or 3200sps Sync or Data Setting
Shut Down Setting 1
Possible LOBAT Check
Possible LOBAT Check
Possible LOBAT Check
Figure 13: Receiver Shut Down Sequence
FLEXTM Roaming Decoder II
57
Appendix A: Application Notes
KS8701
MISCELLANEOUS RECEIVER STATES In addition to the warm up and shut down states, the KS8701 has four other receiver states. When these settings are applied to the receiver control lines, the KS8701 will be decoding the EXTS1 and EXTS0 input signals. The timing of these signals and their duration depends on the data the KS8701 decodes. The four settings are as follows: 1600sps Sync Setting: This setting is applied when the KS8701 is searching for a 1600 symbols per second signal. 3200sps Sync Setting: This setting is applied when the KS8701 is searching for a 3200 symbols per second signal. 1600sps Data Setting: This setting is applied after the KS8701 has found the C or C sync word in a 1600 symbols per second frame. 3200sps Data Setting: This setting is applied after the KS8701 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 KS8701 are shown In figure 14 on page 58.
FLEX SIGNAL RECEIVER CONTROL LINE SETTING EXAMPLE #1
Block 10
Sync 1
Frame Info
Sync 2
Block 0
1600sps Data or 3200sps Data or Last Used Warm Up Setting
1600sps Sync Setting
3200sps Sync Setting
3200sps Data Setting
Possible LOBAT Check RECEIVER CONTROL LINE SETTING EXAMPLE #2
Possible LOBAT Check
Possible LOBAT Check
1600sps Data or 3200sps Data or Last Used Warm Up Setting
1600sps Sync Setting
1600sps Data Setting
Possible LOBAT Check
Possible LOBAT Check
Figure 14: Examples of Receiver Control Transitions
LOW BATTERY DETECTION The KS8701 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 KS8701 changes the receiver control lines from that setting to another setting. The KS8701 will send a Status Packet whenever the value on two consecutive reads of the LOBAT pin yields different results.
58
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
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 3200 bps, FLEX frame. Note that the messages shown may be portions of fragmented or group messages. Note further that in the case of a 6400 bps FLEX signal, there would be four phases: A, B, C and D, and in the case of a 1600 bps signal there would be only a single phase A. Table 30 on page 59 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 0 1 3
PHASE A BIW 1
PHASE C BIW 1 BIW
ADDRESS 1 ADDRESS 2
BIW
0
4 5 6 7 8 9 10
LONG ADDRESS 3 WORD 1 LONG ADDRESS 3 WORD 2 VECTOR 1 VECTOR 2 MESSAGE 1,1 MESSAGE 1,2 MESSAGE 1,3 MESSAGE 2,1 MESSAGE 2,2 MESSAGE 2,3 MESSAGE 2,4 MESSAGE 3,2 MESSAGE 3,3 VECTOR 3 MESSAGE 3,1
1
11 12 13 14 15
FLEXTM Roaming Decoder II
59
Appendix A: Application Notes
KS8701
Table 31 on page 60 shows the sequence of packets received by the host. The KS8701 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 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th
PACKET TYPE ADDRESS ADDRESS VECTOR BIW BIW LONG ADDRESS VECTOR MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE VECTOR MESSAGE MESSAGE MESSAGE
PHASE WORD NUMBER A A A C C C A A A A A A A A C C C C N.A. (7) N.A. (8) 7 N.A. N.A. N.A. (10) 8 9 10 11 12 13 14 15 10 11 14 15
COMMENT Address 1 has a vector located at WN 7 Address 2 has a vector located at WN 8 Vector for Address 1: Message Words located at WN =9 to 11, phase A If BIWs enabled, then BIW packet sent If BIWs enabled, then BIW packet sent Long Address 3 has a vector beginning in word 10 of phase C Vector for Address 2: Message Words located at WN = 12 to 15, phase A Message information for Address 1 Message information for Address 1 Message information for Address 1 Message information for Address 2 Message information for Address 2 Message information for Address 2 Message information for Address 2 Vector for Long Address 3: Message Words located at WN = 14 - 15, phase C Second word of Long Vector is first message information word of Address 3 Message information for Address 3 Message information for Address 3
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.
60
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
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 KS8701 required to handle a fragmented message:
l
The host will receive a vector indicating one of the following types: V2V1V0 000 101 110 Type Secure Alphanumeric Hex / Binary
l
The KS8701 will increment the all frame mode counter inside the KS8701 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 KS8701 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 KS8701 returns to normal operation. The KS8701 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 KS8701. 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 KS8701 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.
l
l
l
FLEXTM Roaming Decoder II
61
Appendix A: Application Notes
KS8701
l
When the host receives a Message Packet with the Message Continued Flag "C" = 0, it will send two All Frame Mode Packets to the KS8701 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 KS8701 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.
l
Table 32: Alphanumeric Message without fragmentation
PACKET 1st 2nd 3rd 4th a.
PACKET TYPE ADDRESS 1 VECTOR 1 MESSAGE Variablea
PHASE A A A
All Frame Counter 0 1 1 0
COMMENT Address 1 is received Vector = Alphanumeric Type Message Word received "C" bit = 0, No more fragments are expected. Host writes All Frame Mode Packet to the KS8701 with the "DAF" bit = 1
Host Initiated Packet. The KS8701 returns a packet according to "Decoder-to-Host Packet Descriptions" on page 38.
Table 33: Alphanumeric Message with fragmentation
PACKET 1st 2nd 3rd 4th 5th 6th 7th 8th 9th
PACKET TYPE ADDRESS 1 VECTOR 1 MESSAGE STATUS ADDRESS 1 VECTOR 1 MESSAGE Variablea STATUS
PHASE A A A
All Frame Counter 0 1 1 1
COMMENT Address 1 is received Vector = Alphanumeric Type Message Word received "C" bit = 1, Message is fragmented, more expected End of Frame Indication (EOF = 1) Address 1 is received Vector = Alphanumeric Type Message Word received "C" bit = 1, Message is fragmented, more expected. Host writes All Frame Mode Packet to the KS8701 with the "DAF" bit = 1 End of Frame Indication (EOF = 1 )
B B B
1 2 2 1 1
62
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
Table 33: Alphanumeric Message with fragmentation (Continued)
PACKET 10th 11th 12th 13th 14th a.
PACKET TYPE ADDRESS 1 VECTOR 1 MESSAGE Variablea Variablea
PHASE A A A
All Frame Counter 1 2 2 1 0
COMMENT Address 1 is received Vector = Alphanumeric type Message Word received "C" bit = 0, No more fragments are expected. Host writes All Frame Mode Packet to the KS8701 with the "DAF" bit = 1 Host writes All Frame Mode Packet to the KS8701 with the "DAF" bit = 1
Host Initiated Packet. The KS8701 returns a packet according to "Decoder-to Host Packet Descriptions" on page 38.
FLEXTM Roaming Decoder II
63
Appendix A: Application Notes
KS8701
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 KS8701 required to handle a temporary address:
l
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 KS8701 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 KS8701 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 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 KS8701 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) 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 KS8701 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)
l
l
l
2.
64
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
3.
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)
l
The above operation is repeated for every temporary address.
FLEXTM Roaming Decoder II
65
Appendix A: Application Notes
KS8701
USING THE RECEIVER SHUTDOWN PACKET
CALCULATING TIME LEFT The receiver shutdown packet gives timing information to the host. Two times are of particular interest when implementing a roaming algorithm.
l
Time To Warm Up Start. Defined as the amount of time there is before the receiver will start to warm up (i.e. transition from the off state to the first warm up state). Time To Tasks Disabled. Defined as the amount of time the host has to complete any host initiated tasks (e.g. by setting SND or SAS in the roaming control packet).
l
The formula' s for calculating these times depend on whether the KS8701 is in synchronous mode or asynchronous mode. SYNCHRONOUS MODE:
Time To Warm Up Start (TNF * 80ms) + (Skipped Frames * 1874.375ms) + Receiver Off Time - 167.5ms Time To Tasks Disabled (TNF * 80ms) + (Skipped Frames * 1874.375ms) - 247.5ms ASYNCHRONOUS MODE: Time To Warm Up Start ((TNF - 2) * 80ms) + Receiver Off Time Time To Tasks Disabled ((TNF - 3) * 80ms)
Where, TNF: Skipped Frames: Time to Next Frame. Value from the receiver shutdown packet. The number of frames that won' t be decoded. This can be calculated from the Current Frame (CF) and Next Needed Frame (NAF) fields in the receiver shutdown packet (e.g. If CF is 10 and NAF is 12, then Skipped Frames is 1)
Receiver Off Time: The time programmed in the receiver off setting packet.
66
FLEXTM Roaming Decoder II
KS8701
Appendix A: Application Notes
CALCULATING HOW LONG TASKS TAKE Since the Time To Task Disabled discussed in the previous section limits how much the host can do while the KS8701 is battery saving, it is necessary for the host to know how long it can take the KS8701 to perform a task. The formulas below calculate how long the two types of host initiated tasks take to complete as measured from the last SPI clock of the packet that initiates the task to the time the receiver shutdown sequence starts. Note that the receiver shutdown sequence must start before tasks are disabled. The following formula calculates how long it will take to complete a Noise Detect started by setting the SND bit in the roaming control packet. This formula assumes that (1) the noise detect was performed while in synchronous mode or (2) the noise detect was performed in asynchronous mode and did not find FLEX signal or (3) the noise detect found FLEX signal but the DAS bit of the roaming control packet was set.
Time To Perform Noise Detect Total Warm Up Time + 82ms
Where, Total Warm Up Time: The sum of the times programmed for the used warm up steps plus the time programmed for the 3200sps Sync Setting in the receiver control configuration packets. The following formula calculates how long it will take to complete an A-word search initiated by setting the SAS bit in the roaming control packet. This formula assumes that the A-word search failed to find roaming FLEX channel.
Time To Perform A word Search Total Warm Up Time + AST + 47ms
Where, Total Warm Up Time: The sum of the times programmed for the used warm up steps plus the time programmed for the 3200sps Sync Setting in the receiver control configuration packets. AST: The value configured using the timing control packet.
The following formula calculates how long it will take to complete a Noise Detect/A-word search combination. This can occur when the noise detect is performed while in asynchronous mode, the noise detect finds FLEX signal, and the DAS bit of the roaming control packet is not set.
Time To Perform Both Total Warm Up Time + AST + 127ms
Where, Total Warm Up Time: The sum of the times programmed for the used warm up steps plus the time programmed for the 3200sps Sync Setting in the receiver control configuration packets. AST: The value configured using the timing control packet.
FLEXTM Roaming Decoder II
67
Appendix B: Specifications
KS8701
APPENDIX B: SPECIFICATIONS
ABSOLUTE MAXIMUM RATINGS
Table 34: Absolute Maximum Ratings
Characteristic DC Supply Voltage DC Input Voltage DC Input Current Storage Temperature Operating Temperature
Symbol VDD VIN IIN TSTG TA
Min -0.3 -0.3 -10 -40 -25
Max 3.8 VDD + 0.3 +10 +125 +85
Unit V V mA E E
. 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 Supply Voltage High Level Input Voltage Low Level Input Voltage High Level Input Current Low Level Input Current High Level Output Voltage Low Level Output Voltage Tri-state Output Leakage Current Standby Supply Current a Input Capacitance b Output Capacitance b a. b.
Condition
Symbol VDD VIH VIL IIH IIL
Min 1.8 0.8VDD
Typ 3.0
Max 3.6 0.2VDD
Unit V V V A A V V A A
-1 -1 VDD-0.4
1 1 0.4
IOH=-1mA IOL=1mA @3V, 76.8kHz, 25E
VOH VOL IOZ IDD CIN COUT
-5 18
5
4 4
pF pF
This value depends on the customer application. This value excludes package parasitic capacitances.
68
FLEXTM Roaming Decoder II
KS8701
Appendix B: Specifications
AC CHARACTERISTICS
SPI TIMING The following diagram and table describe the timing specifications of the SPI interface.
SS
t
SSH
READY
t
RDY
t t
LEAD1
LEAD2
t
CYC
t
t
R
LAG2
t
RH
t
F
t
SCK
LAG1
t
SCKL
t
SCKH
MISO
Hi-Z
D31
D0
Hi-Z
t
AC
t
V
t
HO
t
DIS
MOSI
D31
D0
t t
SU
HI
Figure 15: SPI Timing
FLEXTM Roaming Decoder II
69
Appendix B: Specifications
KS8701
Table 36: SPI Timing (VDD = 1.8V to 3.6V, TA = -25E to +85E)
Characteristic Operating Frequency Cycle Time Select Lead Time De-select Lag Time Select-to-Ready Time Select-to-Ready Time Ready High Time Ready Lead Time Not Ready Lag Time MOSI Data Setup Time MOSI Data Hold Time MISO Access Time MISO Disable Time MISO Data Valid Time MISO Data Hold Time SS High Time SCK High Time SCK Low Time SCK Rise Time SCK Fall Time a.
Conditions
Symbol f OP tCYC tLEAD1 tLAG1
Min 0 1000 200 200
Max 1
Unit MHz ns ns ns
previous packet did not program an address word a CL=50pf previous packet programmed an address worda CL=50pf
tRDY tRDY tRH tLEAD2 50 200
80 420
s s s ns
CL=50pf
tLAG2 tSU tHI 200 200 0
200
ns ns ns
CL=50pf CL=50pf
tAC tDIS tV tHO tSSH tSCKH tSCKL
200 300 200
ns ns ns ns ns ns ns s s
0 200 300 300 1 1
20% to 70% VDD 20% to 70% VDD
tR tF
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 KS8701 is ready for another packet.
70
FLEXTM Roaming Decoder II
KS8701
Appendix B: Specifications
START-UP TIMING The following diagram and table describe the timing specifications of the KS8701 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 = -25E to +85E)
Characteristic Oscillator Start-up Time RESET Hold Time RESET High to READY Low a Oscillator Warmed up to READY Low a a.
Conditions
Symbol tSTART tRESET tRHRL
Min
Typ
Max 5
Unit sec ns
200 1 1
sec sec
CL=50pf
tOWRL
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.
FLEXTM Roaming Decoder II
71
Appendix B: Specifications
KS8701
RESET TIMING The following diagram and table describe the timing specifications of the KS8701 when it is reset.
RESET
tRL
READY
tRLRH
tRHRL
Figure 17: Reset Timing
Table 38: Reset Timing (VDD = 1.8V to 3.6V, TA = -25E to 85E)
Characteristic RESET Pulse Width RESET Low to READY High RESET High to READY Low
Conditions
Symbol tRL tRLRH
Min 200 -
Typ
Max 200
Unit ns ns sec
Requires stable clock
tRHRL
1
72
FLEXTM Roaming Decoder II


▲Up To Search▲   

 
Price & Availability of KS8701

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X