KS16112/4 9600/14400 bps FAX MODEM
- 1 -
INTRODUCTION
The KS16112 and KS16114 are synchronous, half - duplex
modems capable of speeds up to 9600 bps ( KS16112 ) or
up to 14400 bps ( KS16114 ).
68 - PLCC - SQ
These modems satisfy the requirements specified in ITU-T re -
commendations V.17 ( KS16114 ), V.29, V.27 ter, V.21 Channel 2
and T.4, and meet the binary signaling requirements of T.30.
These products are intended to be used in
Group 3 facsimile machines or fax processing boards
and can operate at 14400 ( KS16114 ), 12000
( KS16114 ), 9600, 7200, 4800, 2400 or 300 bps
depending on the selected configuration.
These devices also feature V.17 short train
( KS16114 ) and V.27 ter short train and three
programmable tone detectors as well as a pro -
grammable DTMF receiver. Additionally, HDLC
framing ( according to T.30 ) at 14400 ( KS16114 ),
12000 ( KS16114 ), 9600, 7200, 4800, 2400 or 300 bps
is also featured.
Device Package Operating Temperature
68-PLCC-SQ
68-PLCC-SQ
KS16112
KS16114 0 ~ +70 °C
ORDERING INFORMATION
FEATURES
Group 3 facsimile transmission / reception according to :
- ITU-T V.17 short and long train ( KS16114 )
- ITU-T V.29, V.27 ter short and long train, V.21 Ch.2, T.30 and T.4
Half - duplex operation
Receiver dynamic range : 0 dBm to - 43 dBm
Programmable transmit level : 0 dBm to - 15 dBm
Programmable dual tone generation
Programmable tone detection
Programmable interface memory interrupt
Programmable turn on and turn off thresholds
Automatic T/ 2 adaptive equalizer
HDLC capability at all speeds
Diagnostic capability allowing telephone line quality monitoring
ITU-T V.24 compatible interface
TTL and CMOS compatible
Low power consumption, KS16112 : 400mW typical, KS16114 : 550mW typical
Programmable compromise filter for high speed RX modes
These modem devices can operate over the public switched
telephone network ( PSTN ) with the addition of the appropriate
data access arrangement ( DAA ). KS16112/4
KS16112/4 9600/14400 bps FAX MODEM
- 2 -
Host I/F
&
Dual - port
RAM
TXAO
RXAI
Eye
Pattern
I/F
V.24 I/F
&
Timing
Chain
CTS
RLSD
RTS
DCLK
TXDI
RXDO
CS
READ
WRITE
EN85
IRQ
SEPWCLK
SEPCLK
SEPXO
SEPYO
BLOCK DIAGRAM
Digital
Signal
Processor
Analog
Front
End
KS16112/4 9600/14400 bps FAX MODEM
- 3 -
PIN CONFIGURATION
9 8 7 6 5 4 3 2 1 68 67 66 65 64 63 62 61
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PORI
XTALI
XTALO
XCLKO
YCLKO
VDD
DCLKI
SYNCIN2
CTS
TXDI
DCLK
SEPWCLK
SEPCLK
SEPXO
ADIN
DAOUT
SEPYO
RXDO
RLSD
RCVO
GNDA2
VBB
AUXAI
FOUT
TXAO
AES
AEE
NC
ECLKIN
VCC
CABL1
CABL2
RCVI
FIN
D2
D3
D4
D5
D6
D7
GNDD2
AGCIN
GNDA1
PORO
RCI
SYNCIN1
DAIN
ADOUT
ECLKIN2
RXAI
AOUT
EN85
EN85I
RTS
NC
NC
RS0
RS1
RS2
RS3
GNDD1
RS4
READ - Ø2
CS
WRITE - R/W
IRQ
D0
D1
KS16112 / 4
KS16112/4 9600/14400 bps FAX MODEM
- 4 -
PIN DESCRIPTION
Pin No. Symbol Type Description
67
1
2
3
4
55
56
57
58
59
60
61
62
65
66
64
RS4
RS3
RS2
RS1
RS0
D7
D6
D5
D4
D3
D2
D1
D0
CS
READ - Ø2
WRITE -R/W
I
I/O
I
I
I
Register select bus
These lines are used to address interface memory registers within
the modem. When CS is active, the modem decodes RS0 through
RS4 to address one of its 32 internal interface memory registers.
RS4 is the most significant bit. In a typical design, RS0 - RS4 are
connected to A0 - A4 address lines of the host microprocessor.
Data bus
These bi-directional data bus lines provide parallel data transfer
between the modem and the host microprocessor.
D7 is the most significant bit.
The direction of the D0 - D7 data bus is controlled by the
READ - Ø2 and WRITE - R/W signals.
When not being written into or read from, D0 - D7 assume the
high impedance state.
Chip select
The modem is selected and decodes RS0 - RS4 when CS
becomes active at which time data transfer between the modem
and the host can take place over the parallel data bus.
Typically, CS is driven by address decode logic.
Read enable ( bus mode ) or phase2 ( 6500 bus mode )
If 8085 bus mode is selected ( EN85 is connected to ground ), this
signal acts as the READ input.
If 6500 bus mode is selected ( EN85 is pulled - up to +5V ), this signal
acts as the Phase 2 clock input.
Write enable ( bus mode ) or R/W ( 6500 bus mode )
If 8085 bus mode is selected ( EN85 is connected to ground ), this
signal acts as the WRITE input.
If 6500 bus mode is selected ( EN85 is pulled - up to +5V ), this signal
acts as the R/W strobe.
KS16112/4 9600/14400 bps FAX MODEM
- 5 -
Transmit data input
TXDI is the modems transmit data serial input. When configured for
serial data mode ( PDME bit is reset ) the modem accepts data bits
for transmission via this input. When transmitting data, the modem reads
the TXDI pin on the rising edge of DCLK. When the modem is con -
figured for parallel data mode ( PDME bit is set ), the TXDI pin is ig -
nored and transmit data is accepted by the modem via the DBFR register.
Pin No. Symbol Type Description
Interrupt request
The modem can use IRQ to interrupt the host microprocessor
program execution. IRQ can be enabled in the modem interface
memory to be asserted in response to a specified change of
conditions in the modem status. IRQ is an open drain output
and must be connected to an external pull up resistor of suitable
value ( typically, a 5.6 K, 1/4 watt, 5% resistor is adequate ).
63
19
27
7
IRQ
TXDI
RXDO
RTS
O
I
O
I
Receive data output
RXDO is the modem receive data output.
Received data is output to the DTE via the RXDO pin in both
serial and parallel data modes ( PDME bit set or reset ).
When receiving data, the modem outputs a data bit on the falling
edge of DCLK.
The center of RXDO bits coincides with the rising edge of DCLK,
thus, the DTE should read RXDO on the rising edge of DCLK.
Request to send
When the RTS input is forced low, the transmitter starts transmitting
the modem training sequence according to the selected configuration.
Once the training sequence has been transmitted ( signaled by the
CTS pin and CTSB bit becoming active ), data present at either the
TXDI input pin in serial mode ( PDME bit is reset ) or written into the
DBFR register in parallel mode ( PDME bit is set ) is modulated and
transmitted.
The RTS input pin is logically ORed with the RTSB bit in the
interface memory.
PIN DESCRIPTION ( Continued )
KS16112/4 9600/14400 bps FAX MODEM
- 6 -
18
28
20
11
12
O
O
O
I
O
Clear to send
CTS is used to indicate of that the training sequence transmission
has been completed and the modem is ready to transmit any
data present at either the TXDI input pin in serial mode
( PDME bit is reset ) or in DBFR in parallel mode ( PDME bit is set ).
CTS
RLSD
DCLK
XTALI
XTALO
Received line signal detector
RLSD becomes active at the end of the reception of the training
sequence indicating the beginning of data reception.
If no training is detected but the received energy level is above
the RLSD off - to - on threshold, RLSD will become active.
Data clock
DCLK acts as received data clock or transmit data clock depending
on the state of the modem ( transmit or receive mode ).
The frequency of the clock corresponds to the data rate of the
selected modem configuration and is accurate to ± 0.01%.
In receive mode the RXDO pin is clocked out by
the modem on the rising edge of DCLK. In transmit mode, TXDI is
clocked in by the modem on the falling edge of DCLK.
Pin No. Symbol Type Description
Oscillator In / Out
An external 24.00014 MHz ( KS16112 ) or 38.00053 MHz ( KS16114 )
crystal and two capacitors are connected to the XTALI and XTALO.
Alternatively, an external crystal oscillator of the appropriate frequency
can be connected to the XTALI input leaving XTALO unconnected.
In order to minimize electromagnetic emissions and ensure proper
oscillator start up and operation, the crystal and the capacitors should
be placed as close as possible to the XTALI and XTALO pins.
Further, the circuit board traces connecting the crystal and capacitors
to XTALI and XTALO should be as short as possible.
The use of circuit board vias should be avoided in the crystal
oscillator circuitry and circuit board traces should be routed using
curved turns.
PIN DESCRIPTION ( Continued )
KS16112/4 9600/14400 bps FAX MODEM
- 7 -
Pin No. Symbol Type Description
Power On reset In/Out
PORI and PORO must be connected together forming a bi-directional
modem reset signal ( POR ).
When power is first applied to the modem, POR is held low for
approximately 350 ms.
The modem is then ready for normal operation 15 ms after the
low to high transition of POR.
10
51
15
39
31
52
30
9
PORI
PORO
VDD
VCC
VBB
GNDA1
GNDA2
EN85
+ 5V Digital voltage supply
This pin must be connected to +5V ± 5% supply.
The + 5V Digital power supply voltage ripple should not exceed
100mVP - P.
+ 5V Analog voltage supply
This pin must be connected to +5V ± 5% supply.
The + 5V Analog power supply voltage ripple should not exceed
100mVP - P.
- 5V Analog voltage supply
This pin must be connected to -5V ± 5% supply.
The - 5V Analog power supply voltage ripple should not exceed
100mVP - P.
Digital ground
These pin must be connected to digital ground.
Analog ground
These pin must be connected to analog ground.
Enable 8085 bus mode
When EN85 is connected to ground, 8085 bus mode is selected
and the modem can interface directly to an 8085 compatible
microprocessor bus using READ and WRITE.
When EN85 is pulled - up to + 5V, 6500 bus mode is selected and
the modem can interface directly to a 6500 compatible micro -
processor using Ø2 and R/W.
I
O
Power
Power
Power
I
PIN DESCRIPTION ( Continued )
68
54
GNDD1
GNDD2 GND
GND
KS16112/4 9600/14400 bps FAX MODEM
- 8 -
Pin No. Symbol Type Description
Cable 1 and Cable 2 equalizer select
These two inputs are used to select equalization for the following
cable lengths :
CABL2
CABL1
CABL2
XCLKO
YCLKO
SEPXO
SEPYO
SEPCLK
SEPWCLK
XCLK output
This output pin is a 12MHz ( KS16112 ) or 19MHz ( KS16114 )
square wave output derived from XTALI.
YCLK output
This output pin is a 6MHz ( KS16112 ) or 9.5MHz ( KS16114 )
square ware output derived from XTALI.
Serial eye pattern bit data
These two outputs provide two serial bit streams containing eye
pattern display data for the oscilloscope X and Y axis.
The data words are 9 bits long with the sign bit shifted out first
and the bits clocked by the rising edge of SEPCLK.
Serial eye pattern bit clock
SEPCLK is a 230.4KHz clock used to shift the eye pattern data
into the serial-to-parallel converters.
SEPXO and SEPYO are shifted out by the modem on the rising
edge of SEPCLK.
CABLE TYPE LENGTH Gain (dB)
CABL1 LENGTH 700Hz 1500Hz 2000Hz 3000Hz
low
low
high
high
low
high
low
high
0.0Km
1.8Km
3.6Km
7.2Km
0.00
-0.99
-2.39
-3.93
0.00
-0.20
-0.65
-1.22
0.00
0.15
0.87
1.90
0.00
1.43
3.06
4.58
Serial eye pattern word clock
SEPWCLK ( 9600Hz ) provides SEPXO and SEPYO 9 - bit word
timing and its rising edge is used for copying the output of the
serial to parallel converters into the X and Y digital-to-analog
converters.
40
41
13
14
23
26
22
21
I
O
O
O
O
O
O
PIN DESCRIPTION ( Continued )
KS16112/4 9600/14400 bps FAX MODEM
- 9 -
ABSOLUTE MAXIMUM RATINGS ( Ta = 25 °C )
Pin No. Symbol Type Description
Transmitter analog output
The TXAO can supply a maximum of 3.03 VPK into a load
resistance of 10K ( minimum ).
An external analog smoothing filter with transfer function 28735.63 /
( S + 11547.34 ) is required.
Receiver analog input
The input impedance of RXAI is greater them 1M.
An external analog anti - aliasing filter with transfer function
21551.72 / ( S + 11547.43 ) is required between the line interface
and the modem RXAI input.
The maximum input signal level into the anti-aliasing filter should
not exceed 0 dBm.
34
45
32
TXAO
RXAI
AUXAI
O
I
I
Auxiliary analog input
The transmitter output ( TXAO ) can be accessed by user equipment
through AUXAI.
Since this is a sampled input any signals with frequency components
higher than 4800Hz ( half of the sampling rate ) will cause aliasing
errors.
The input impedance of AUXAI is 1M and the gain to TXAO is
0 dB ± 1dB.
Characteristic
Positive Digital Supply Voltage
Positive Analog Supply Voltage
Negative Analog Supply Voltage
Power Dissipation
Operating Temperature
Storage Temperature
Symbol
VDD
VCC
VBB
PD
TOPR
TSTG
Value
5V ± 5%
5V ± 5%
-5V ± 5%
400 (KS16112) 550 (KS16114)
0 ~ 70
-55 ~ 150
Unit
V
V
V
mW
°C
°C
PIN DESCRIPTION ( Continued )
KS16112/4 9600/14400 bps FAX MODEM
- 10 -
ELECTRICAL CHARACTERISTICS
( Ta = 25 °C , VCC = 5V, VBB = -5V, Unless otherwise specified )
VIH
VIL
IIH
IIL
II( LKG )
IO( LKG )
VOH
VOL
IOH( CLK )
IOL( CLK )
CL
CD
Input Voltage
Input Current
Input Leakage
Current
Output Leakage
Current
Output Voltage
V.24 Signals,
V.24 Signals,
Clock Output
Current
Capacitive Load
Capacitive Drive
Characteristic Symbol Test Condition Min Typ Max Unit
VCC = 5.25V, Vin = 5.25V
VCC = 5.25V
VCC = 5.25V
Vin = 0 to 5V
Vin = 0.4 to VCC - 1
ILOAD = -100 µA
ILOAD = -40 µA
ILOAD = 1.6mA
ILOAD = 0.8mA
ILOAD = 0.4mA
-0.3
3.5
2.4
5
20
100
50
0.8
40
-400
± 2.5
± 10
0.4
0.4
0.4
-0.1
100
VCC
VCC V
V
µA
µA
µA
µA
V
V
mA
µA
PF
PF
2.0
0.8VCC
TTL
PORI
TTL
TTL w / p - up
TTL 3 - S
TTL 3 - S
PORO
IRQ
D0 - D7
PORO
TTL and PORI
TTL w / p - up
TTL 3-S and Open
Drain CLOCK
PORITTL and
KS16112/4 9600/14400 bps FAX MODEM
- 11 -
MICROPROCESSOR INTERFACE TIMING CHARACTERISTICS ( Ta = 25 °C )
Characteristics Symbol Min Typ Max Unit
CS Set up time
RSI Set up time
Data access time
Data hold time
Control hold time
Write data set up time
Write data hold time
Phase 2 Clock high
tCS
tRS
tDA
tDHR
tHC
tWDS
tDHW
t2CH
0
25
10
10
20
10
100
75
nSec
nSec
nSec
nSec
nSec
nSec
nSec
nSec
KS16112/4 9600/14400 bps FAX MODEM
- 12 -
CS
tRS tCS tHC tRS tCS tHC
tWDS
tDA
RS0 - RS4
WRITE
READ
D0 - D7
READ WRITE
RS0 - RS4
R / W
Ø2
D0 - D7
tCS
tRS
t2CH
tDHR
tDA
tHC tRS tCS
tWDS
tHC
tDHW
CS READ WRITE
a. 8085 Bus Compatible ( EN85 = L )
b. 6500 Bus Compatible ( EN85 = H )
Figure 1. MICROPROCESSOR BUS INTERFACE TIMING DIAGRAM
tDHW
tDHR
KS16112/4 9600/14400 bps FAX MODEM
- 13 -
TECHNICAL SPECIFICATIONS
1 Configurations, Signaling Rates and Data Rates
The various modem configurations with the corresponding modulation specifications are shown in Table 7.
Table 7. Modulation Specifications
1800
1800
1800
1800
1700
1700
1700
1800
1800
1650, 1850
14400
12000
9600
7200
9600
7200
4800
4800
2400
300
2400
2400
2400
2400
2400
2400
2400
1600
1200
300
6
5
4
3
4
3
2
3
2
1
128
64
32
16
16
8
4
8
4
TCM
TCM
TCM
TCM
QAM
QAM
QAM
DPSK
DPSK
FSK
V.17 14400
( KS16114 )
V.17 12000
( KS16114 )
V.17 9600
( KS16114 )
V.17 7200
( KS 16114 )
V.29 9600
V.29 7200
V.29 4800
V.27 ter 4800
V.27 ter 2400
V.21 Ch2 300
Configuration Modulation
Scheme Carrier Fre -
quency ( Hz ) Data Rate
( Symbols/Sec. ) No of Bits
per Symbol No. of Signal
Points
Data Rate
( bps )
2 Transmitted Data Spectrum
The transmitted data spectrum is shaped with the following characteristics:
At 2400 baud a square root of 25% raised cosine filter is used.
At 1600 baud a square root of 50% raised cosine filter is used.
At 1200 baud a square root of 90% raised cosine filter is used.
KS16112/4 9600/14400 bps FAX MODEM
- 14 -
3 Turn - On Sequence
The transmitter turn - on sequence times are shown in Table 8.
Table 8. Turn - On Sequence Duration
V.17 long train ( all speeds ) ( KS16114 )
V.17 short train ( all speeds ) ( KS16114 )
V.29 ( all speeds )
V.27 ter 4800 bps long train
V.27 ter 4800 bps short train
V.27 ter 2400 bps long train
V.27 ter 2400 bps short train
V.21 Ch2 300 bps
Configuration
1393 ms
142 ms
253 ms
708 ms
50 ms
943 ms
67 ms
< 400 us
EPTE OFF
1600 ms
350 ms
441 ms
915 ms
257 ms
1150 ms
274 ms
< 400 us
EPTE ON
4 Turn - Off Sequence
The turn - off sequence consists of:
- for V.17 ( KS16114 ) approximately 14 ms of remaining data and scrambled ones
followed by 20 ms of silence.
- for V.29 approximately 5 ms of remaining data and scrambled ones followed by 20
ms of silence
- for V.27 ter approximately 10 ms of remaining data and scrambles ones ( 1200 baud )
and 7 ms of data and scrambled ones ( 1600 baud ) and 20 ms of silence.
- for V.21 ch 2 the transmitter turns-off within 7 ms after RTS goes inactive.
5 Data Encoding
The data encoding is in accordance with ITU-T recommendations V.17 ( KS16114 ), V.29, V.27 ter, V.21
Channel 2, and T.3.
6 Equalization
Required line equalization is implemented in V.17 ( KS16114 ), V.29 and V.27 ter modes with an adaptive
48 - tap T/2 transversal equalizer.
KS16112/4 9600/14400 bps FAX MODEM
- 15 -
7 Tone Generation
The modem is capable of generating single or dual tones in the frequency range of 400 to 3200 Hz with a
resolution of 0.15 Hz and accuracy of 0.01%. This feature allows the modem to function as a DTMF dialer.
8 Transmit Level
The transmitter output level is programmable from 0 dBm to - 15.0 dBm and is accurate to ± 1.0 dB.
9 Scrambler / Descrambler
The scrambler and descrambler are in accordance with ITU-T recommendations V.17 ( KS16114 ), V.29 and
V.27ter.
10 Receiver Dynamic Range
The receiver can operate with line signal levels from 0 dBm to - 43 dBm at the receiver analog input
( RXAI ). The RLSD threshold levels are programmable as follows:
Turn on: - 10 dBm to - 47 dBm ( default = - 43 dBm )
Turn off: - 10 dBm to - 52 dBm ( default = - 48 dBm )
11 Receiver Timing
The receiver can track a timing error of up to ± 0.035%
12 Carrier Recovery
The receiver can track a frequency offset up to ± 10 Hz.
13 Received Data
The serial received data output ( RXDO ) is clamped to a constant mark whenever RLSD is off.
14 Tone Detection
The modem features three tone detectors two of which operate in all non - high speed modes. The third
tone detector operates in all receive modes. The three tone detectors can be cascaded to form a single
12th order filter. The filter coefficients of each tone detector are programmable by the host.
KS16112/4 9600/14400 bps FAX MODEM
- 16 -
15 Power Requirements
The power requirements are as follows:
+ 5V ± 5% @ 60 mA ( typical : KS16112 ), @95mA ( typical : KS16114 )
- 5V ± 5% @ 14 mA ( typical )
16 Environmental Requirements
The environmental requirements are as follows:
Temperature operating range from 0 - 70 °C.
17 Differences Between the Samsung KS16112/4 and Rockwell R96DFX/R144EFX
The KS16112/4 are pin - to- pin and software compatible modem devices that can be used to replace
the Rockwell R96DFX /R144EFX modem. Functionally, the Samsung and Rockwell modems are nearly
identical. However, there are a few differences between the two that the user should be aware of.
The KS16112/4 feature an improved equalizer with 48 taps thus allowing better performance without a
compromise equalizer. The KS16112/4 work over 7 Japanese links as well as over all EIA lines.
The equalizer is always T/2 fractionally spaced and there is no provision for a T-spaced equalizer.
Also when reading the equalizer taps from the DSP it should be noted that the direction of the time axis
is different from Rockwells ( i.e the smallest address corresponds to the oldest data ). The tap coefficients
between the Samsung KS16112/4 and Rockwell R96DFX / R144EFX are not interchangeable ( i.e taps
stored from the R96DFX / R144EFX cannot be loaded into the KS16112/4 ).
Instantaneous energy detector ( IED ) does not include state 2.
During DTMF detection the DEDT bit is the same as the DTDT bit.
The following DTMF parameters are not available:
Minimum cycle time
Minimum dropout time ( is always set to 5 ms )
Frequency deviation, low group
Frequency deviation, high group
Maximum energy hit time
Programmable Interrupt does not include dual port interface memory locations 0 and 10.
KS16112/4 9600/14400 bps FAX MODEM
- 17 -
The signal level should be derived from the AGC gain word since the average energy is not implemented.
The carrier detect turn - on and carrier detect turn - off thresholds function differently from the R96DFX /
R144EFX .
The carrier thresholds should be changed by changing MAXG ( MAXG is R96DFX /R144EFX compatible ).
Samsung modem does not support squelch extend.
The host should complete high speed configuration change prior to 30mS before receiving data.
The host should not write data into DBFR during RTS to CTS in HDLC mode
Maximum speed energy ( CR1=1 , ADDR1=1E ) works differently from Rockwell. Maximum speech energy sets
the ratio between the total energy and the DTMF tone energy before valid DTMF digits are detected.
The default is 4000 hex which is 3dB.
1800pF capacitor must be connected between AGCIN and GNDA1 OR GNDA2.
Data speed detection of V.33 is not supported ( KS16114 ).
1700 HZ carrier for V.17 is not supported ( KS16114 ).
Samsung modem provides a host programmable receiver compromise filter.
G2 mode is not supported ( KS16114 ).
Voice mode is not supported ( KS16114 ).
IRQ2 is not supported ( KS16114 ).
KS16112/4 9600/14400 bps FAX MODEM
- 18 -
DSP memory bits that are not supported
KS16112 does not support Rockwell R96DFX DSP memory
07:2 SQEXT
07:1 T2
KS16114 does not support R144EFX DSP memory
1E:4 B2I2E
1E:1 B1I2E
1D:7 SHPR
1D:6 ASPEED
1D:5 PR
1D:4 PRDET
15:6 AREX2
15:4 DR2
0E:7 FSKFLS
0D:3 G2FGC
08:2 FSK7E
08:1 G2CTK
07:2 SQEXT
05:6 AREX1
05:5 PIDR
05:4 DR1
KS16112/4 9600/14400 bps FAX MODEM
- 19 -
SOFTWARE INTERFACE
Communication between the modem and the host microprocessor is accomplished by means of a dual port
interface memory. The dual port memory consists of 32 8-bit registers that both the host microprocessor
and the modem have access to. The host can control modem operation by writing control bits or
parameter values to the dual port interface memory. The host can also monitor modem operation by reading
status bits or data values ( such as the eye quality monitor value or EQM ) from the interface memory.
The dual port read and write procedures are described in section 3.
1. Dual - Port Memory Map
The memory map for the 32 - byte interface memory registers is shown in Table 1. These registers can be
accessed during any host read or write cycle. In order to operate on a single bit or a group of bits, the
host microprocessor must first read the desired register, set or reset the desired bits and then write the
modified and unmodified bits back into the interface memory register.
2 Modem Interface Memory Bit Definitions
This section describes in detail the function of all bits, fields and registers in the interface memory. All bit,
field or register names are listed in alphanumeric order. For each bit, field or register the convention
R :B ( D ) is used to indicate the location of the term and its power up default value. R is the register
number ( hexadecimal ), B is the bit or group of bits within that register and D is the associated power up
default value. A default value of - indicates that the bit state depends on modem operating conditions,
thus, these bits do not truly have a power up default value.
In the transmit mode when ABORT is set the modem will finish sending the current DBFR byte after which
it will send continuous ones ( if ZCLMP is reset ) or continuous zeros ( if ZCLMP is set ). When ABORT
is reset the modem will not send continuous ones or zeros.
Address 1ADR 1
ABORT 09 : 3 ( - )Abort/Idle
04 : 0 - 7 ( 17h )
ADR1 is used to specify the modems internal RAM address to be read or written ( data RAM if CRAM1=0
or coefficient RAM if CRAM1=1) during a RAM access cycle. The 16-bit real and imaginary data to be written
into RAM or read out of RAM is placed in XDM1, XDL1 and YDM1, YDL1. The address value in ADR1 also
determines the data to be output by the modem via the eye pattern interface ( SEPXO and SEPYO ). At
power-up, ADR1 defaults to 17h which corresponds to the rotated equalizer output ( normal eye pattern
output ).
In the receive mode when ABORT is set the modem has received a minimum of seven consecutive ones.
ABORT must then be reset by the host.
KS16112/4 9600/14400 bps FAX MODEM
- 20 -
Table 1. Dual Port Interface Memory Map
Register Function Reg.
Addr.
( Hex )
Default
Value ( Bin ) Bit
6
-
INTA1
-
DTDT
-
-
-
-
-
-
-
5
-
INTE2
-
DOTS
-
-
-
-
-
-
AHEOF
4
PINTE
-
-
DSDET
-
-
-
-
-
-
-
3
PIRQ
BDA2
-
-
-
-
-
-
-
-
2
-
INTE1
-
DTMFW
-
-
-
-
-
-
BRT2
1
-
-
-
-
-
-
-
-
-
WT2
0
CSET
BDA1
-
-
-
-
-
-
-
CRAM2
Interrupt Handling
Not Used
DTMF Status
Not Used
RAM Access2
Control and Status
and Parallel Data
Buffer
1F
1E
1D
1C
1B
1A
19
18
17
16
15
14
13
12
11
10
- XX0 - XX0
- - 0X - 0X -
XXXXXXXX
- - - - - - - -
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
00000000
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
7
PINTA
INTA2
-
DEDT
-
-
-
-
-
-
RA2
RAM ADDRESS2 ( ADR2 )
X RAM DATA2 MSB ( XDM2 )
X RAM DATA2 LSB ( XDL2 )
Y RAM DATA2 MSB ( YDM2 )
Y RAM DATA2 LSB ( YDL2 ) / DATA BUFFER ( DBFR )
ADR2 is used to specify the modems
internal RAM address to be read or written ( data RAM if CRAM2 = 0
or coefficient RAM if CRAM2 = 1 ) during a RAM access cycle. The 16 - bit real and imaginary data to be
written into RAM or read out of RAM is placed in XDM2, XDL2 and YDM2, YDL2.
ADR2 Address2 14 : 0 - 7 ( - )
KS16112/4 9600/14400 bps FAX MODEM
- 21 -
Register Function Reg.
Addr.
( Hex )
Default
Value ( Bin )
0F
0E
0D
0C
0B
0A
09
08
07
06
05
04
03
02
01
00
Modem Status
Not Used
High Speed Status
Programmable
Interrupt Control
High Speed Control
and HDLC Control
and Status
Tone Detect and
High Speed Control
& Status
Mode Control
RAM Access1
Control & Status
and Programmable
Interrupt Control
- - XXXX - -
XXXXXXXX
- - XXXXXX
XX - - - - - -
00000000
00000000
- 000 - - - -
- - - 0 - XXX
00001000
00010100
10000101
00010111
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
7
IED
-
REC
-
ITRG
ORUR
TD3
RTSB
RA1
Bit
6
-
PNDT
-
SAVEQ
TD2
TRND
-
5
-
-
-
DATM
INTML
FRZEQ
TD1
PDME
-
4
-
-
-
SCR1S
ZCLMP
CASC
SHTRN
-
3
-
-
-
PNS
ABORT
PNSX
EPTE
-
2
-
-
-
P2S
INTADR
EOHF
-
-
BRT1
1
CTSB
-
-
P1S
CRCE
-
-
WT1
0
DCDB
-
-
SILIDL
FLG
-
HDLCE
CRAM1
RAM ADDRESS1 ( ADR1 )
X RAM DATA1 MSB ( XDM1 )
X RAM DATA1 LSB ( XDL1 )
Y RAM DATA1 MSB ( YDM1 )
Y RAM DATA1 LSB ( YDL1 )
INTMSK
CONFIG
Table 1. Dual Port Interface Memory Map ( Continued )
KS16112/4 9600/14400 bps FAX MODEM
- 22 -
When AHEOF is set while in HDLC transmit mode, the modem automatically generates and transmits the
FCS ( frame check sequence ) and at least one closing flag upon detecting an underrun condition in the
transmission of data. AHEOF is valid only when the modem is configured for HDLC mode ( HDLCE is set ).
Buffer Data Available No.2
1E : 0 ( - )
When BDA1 has been set by the modem, the modem has either written or read buffer data to/from the
YDL1 register. The setting of the BDA1 bit can be setup to cause an IRQ interrupt ( see INTE1 and
INTA1 bit descriptions ). When the host microprocessor reads or writes the YDL1 register, the modem
automatically resets the BDA1 bit.
BDA 1 Buffer Data Available No.1
1E : 3 ( - )
When BDA2 has been set by the modem and the modem is in parallel data mode ( PDME is set ), with
or without HDLC enabled, transmit data has been read from DBFR by the modem ( transmit mode ) or
received data has been written by the modem into DBFR ( receive mode ). When the modem is in serial
mode ( PDME is reset ), the modem sets BDA2 whenever data has been read from or written into YDL2.
The setting of the BDA2 bit can be setup to cause an IRQ interrupt ( see INTE2 and INTA2 bit descrip -
tions ). When the host microprocessor reads or writes the YDL2/DBFR register, the modem automatically
resets the BDA2 bit.
BRT 1 Baud Rate 1 05 : 2 ( 1 )
When BRT1 is set, RAM access for ADR1 takes place at the baud rate ( the baud rate depends on the se -
lected configuration ), otherwise it occurs at the sample rate ( 9600Hz ). This bit must be zero in FSK, Tone
or DTMF receive modes.
BRT 2 Baud Rate 2 15 : 2 ( 0 )
When BRT2 is set RAM access for ADR2 takes place at the baud rate ( the baud rate depends on the se -
lected configuration ). Otherwise it occurs at the sample rate ( 9600Hz ). This bit must be zero in FSK, Tone
or DTMF receive modes.
CASC Select 12th Order Filter Cascade 08 : 4 ( 0 )
When CASC is set, the tone detectors are cascaded to form one 12th order filter ( TD3 is the output status
bit for the 12th order filter cascade ). When CASC is reset, the three tone detectors operate as three parallel
independent 4th order filters. The 12th order mode is only valid in the FSK , FSK and DTMF receiver
modes when RTS is off and RTSB is reset.
AHEOF Automatic HDLC End of Frame 15 : 5 ( 0 )
BDA 2
KS16112/4 9600/14400 bps FAX MODEM
- 23 -
CONFIG Configuration 06 : 0 - 7 ( 14th )
The contents of CONFIG determine the modem operating configuration. The following table lists all valid
8 - bit configuration codes and the corresponding selected configuration.:
At power up, the modem defaults to V.29 9,600 bps. After changing the contents of CONFIG, the host
must set the CSET bit to instruct the modem to carry out the configuration change. When the configu -
ration change has been completed, the modem resets the CSET bit.
CRAM1 Coefficient RAM 1 Select 05 : 0 ( 1 )
When CRAM1 is set, ADR1 addresses coefficient RAM and when CRAM1 is reset, ADR1 addresses data
RAM. This bit must be set according to the desired RAM address.
CRAM2 Coefficient RAM 2 Select 15 : 0 ( 1 )
31
32
34
38
14
12
11
0A
09
20
21
80
V.17 14,400 bps TCM ( KS16114 )
V.17 12,000 bps TCM ( KS16114 )
V.17 9,600 bps TCM ( KS16114 )
V.17 7,200 bps TCM ( KS16114 )
V.29 9,600 bps
V.29 7,200 bps
V.29 4,800 bps
V.27 ter 4,800 bps
V.27 ter 2,400 bps
Transmit : V.21 Ch 2 300 bps (FSK)
Receive : V.21 Ch 2 300 bps (FSK) and tone detector
Transmit : V.21 Ch 2 300 bps (FSK)
Receive : V.21 Ch 2 300 bps (FSK), tone detector and
DTMF receiver
Transmit : Dual tone
Receive : Tone detector
CONFIG
(Hexadecimal) Selected Modem Configuration
KS16112/4 9600/14400 bps FAX MODEM
- 24 -
DATM Data Mode 0C : 5 ( - )
Status bit DATM is set by the modem to indicate that the transmitter or receiver is in data mode. Data
mode implies that the modem is in a state where user data may be transmitted or received.
DBFR Transmit/Receive Data Buffer 10 : 0 - 7 ( - )
When the modem is configured in parallel data mode ( PDME is set ), the host microprocessor reads parallel
received data from DBFR or writes parallel transmit data into DBFR. DBFR data is transmitted bit 0 first.
Transmission and reception of data is synchronized by polling the BDA2 status bit or by IRQ interrupts
( see INTE2 and INTA2 bit descriptions ).
When CRCE and EOHF are both set, the received frame is erroneous. If CRCE is reset and EOHF is set
the received frame is correct. CRCE becomes valid immediately before EOHF is set.
The host informs the modem to implement a configuration change by setting the CSET bit. The host sets
the CSET bit after writing a configuration code into the CONFIG bits ( register 6:0-7 ).
The CSET bit is reset by the modem after the configuration change has been completed.
CRCE Cyclic Redundancy Check Error 09 : 1 ( - )
CSET Configuration Setup 1F : 0 ( 0 )
CTSB Clear to Send Bit 0F : 1 ( - )
When CTSB is set the modem has completed the training sequence transmission and any data present at
TXDI ( if PDME is reset ) or DBFR ( if PDME is set ) will be transmitted. CTSB parallels the operation of
the CTS output pin.
When CRAM2 is set, ADR2 addresses coefficient RAM and when CRAM2 is reset, ADR2 addresses data
RAM. This bit must be set according to the desired RAM address.
KS16112/4 9600/14400 bps FAX MODEM
- 25 -
Status bit DCDB is set by the modem when the receiver has completed the reception of a training sequence
or has detected energy above the RLSD turn on threshold and is receiving data. DCDB parallels the oper -
ation of the RLSD output pin.
DCDB Data Carrier Detect Bit 0F : 0 ( - )
Status bit DEDT is the same as DTDT.
DEDT DTMF Early Detection 1C : 7 ( - )
Status bit DOTS is set by the modem when the on - time requirements for a DTMF signal is satisfied.
The modem resets this bit either after DSDET is set or if the received signal fails to meet the DTMF
signal requirements.
DOTS DTMF On Time Satisfied 1C : 5 ( - )
Status bit DSDET is set by the modem when a DTMF signal that satisfies all the detection requirements
has been detected. After detection, this bit must be reset by the host.
DSDET DTMF Signal Detected 1C : 4 ( - )
DTDT Dual Tone Detected 1C : 6 ( - )
When a signal that meets all DTMF requirements except on - time, off - time and cycle time is detected, the
modem sets status bit DTDT. The encoded DTMF value is available at this time in DTMFW. This bit is
reset by the modem either after DSDET is set or if the signal fails to meet the DTMF detection require -
ments.
DTMFW DTMF Output Word 1C : 0 - 3 ( - )
The encoded DTMF output is written into this field when a DTMF tone is being received ( status bit DSDET
is set by the modem ). The DTMF output codes are:
KS16112/4 9600/14400 bps FAX MODEM
- 26 -
1
4
7
*
2
5
8
0
0
1
2
3
4
5
6
7
3
6
9
#
A
B
C
D
8
9
A
B
C
D
E
F
DTMF
Symbol Encoded
Output DTMF
Symbol Encoded
Output
EOHF End of HDLC Frame 09 : 2 ( - )
In the transmit mode when AHEOF is reset, the EOHF bit is used to instruct the modem to send the 16 -
bit FCS and ending flag of a HDLC frame. The host must set the EOHF bit after the modem has read the
last byte of the frame from DBFR. The modem will then reset EOHF after generating and sending the end
of frame sequence. If AHEOF is set, the modem will set EOHF and output the 16 bits FCS and at least
one ending flag when an underrun condition occurs. EOHF is reset when the frame closing flag is sent.
EPTE Echo Protector Tone Enable 07 : 3 ( 1 )
In the receive mode, the modem sets EOHF when it has received a frame ending flag and updates CRCE.
The host must reset EOHF before the ending flag of the following frame.
When this bit is set, the modem transmits unmodulated carrier for 187.5 ms followed by 20 ms of silence
prior to sending the training sequence. With EPTE reset the modem will immediately send the training
sequence except in the V.29 configuration. In the V.29 configuration the modem precedes the training
sequence with 20 ms of silence.
When FLG is set while in the HDLC transmitter mode, the modem transmits a flag sequence.
In the HDLC receive mode, the modem sets the FLG bit when it receives a flag sequence.
FLG FLAG Mode 09 : 0 ( 0 )
KS16112/4 9600/14400 bps FAX MODEM
- 27 -
When control bit HDLCE is set, the modem performs HDLC framing. To activate or deactivate HDLC mode
the host must set or reset HDLCE and PDME and then set the CSET bit to instruct the modem to carry
out the configuration change.
FRZEQ Freeze Equalizer 09 : 5 ( 0 )
When control bit FRZEQ is set, equalizer tap updating is disabled freezing the equalizer tap coefficients at
their current value.
IED is a fast responding energy detection status indicator. The received signal level is indicated by the
following codes:
HDLCE HDLC Enable 07 : 0 ( 0 )
IED Instantaneous Energy Detector 0F : 6 - 7( 0 )
0
1
2
3
No Energy Present
Invalid
Invalid
Energy Above Turn - On Threshold
IED Energy Level
If BDA 1 is set by the modem when INTE 1 is set, the modem asserts IRQ and sets status bit INTA 1 to
indicate that BDA 1 caused the interrupt. The host resets INTA 1 by reading or writing register 0.
If BDA 2 is set by the modem when INTE 2 is set, the modem asserts IRQ and sets status bit INTA 2 to
indicate that BDA 2 caused the interrupt. The host resets INTA 2 by reading or writing register 10h.
The contents of INTADR specify the register number on which the programmable interrupt will take effect on.
The host register addresses and the corresponding INTADR 5 - bit codes are provided in the table.
INTA 1 Interrupt Active 1 1E : 6 ( - )
INTA 2 Interrupt Active 2 1E : 7 ( - )
INTADR Interrupt Address OA : 0 - 4 ( 0 )
KS16112/4 9600/14400 bps FAX MODEM
- 28 -
The modem will assert IRQ and set INTA 1 when BDA 1 is set by the modem if control bit INTE 1 is set
( interrupt enabled ). If INTE 1 is reset ( interrupt disabled ) IRQ and INTA 1 are unaffected by BDA 1.
The modem will assert IRQ and set INTA 2 when BDA 2 is set by the modem if control bit INTE 2 is set
( interrupt enabled ). If INTE 2 is reset ( interrupt disabled ) IRQ and INTA 2 are unaffected by BDA 2.
INTE 1
INTE 2
Interrupt Enable 1
Interrupt Enable 2
1E : 2 ( 0 )
1E : 5 ( 0 )
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
01
11
02
12
03
13
04
14
05
15
06
16
07
17
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
18
09
19
0A
1A
0B
1B
0C
1C
0D
1D
0E
1E
0F
1F
Host Register
( Hex ) INTADR
( Hex ) Host Register
( Hex ) INTADR
( Hex )
When control bit INTML is set when programmable interrupts are enabled ( PINTE is set ), the
modem will logically AND the contents of the interface memory register specified by INTADR with the
contents of INTMSK. Thus, the IRQ condition will be met if all the bits in the specified register masked by
INTMSK are set. When control bit INTML is reset when programmable interrupts are enabled
( PINTE is set ), the modem will logically OR the contents of the interface memory register specified by
INTADR with the contents of INTMSK. Thus, the IRQ condition will be met if any the bits in the specified
register masked by INTMSK are set. Note that ITRIG places additional interrupt triggering requirements on
the programmable interrupt which must also be met in order for IRQ to be asserted by the modem.
INTML Interrupt Mask Logic (AND / OR Logic) 0A : 5 ( 0 )
KS16112/4 9600/14400 bps FAX MODEM
- 29 -
A bit mask function is performed by this byte on the register specified by INTADR for the programmable
interrupt. The INTML bit determines whether a logical AND or a logical OR masking operation is performed
with the contents of the register specified by INTADR and the contents of INTMSK. Note that ITRIG places
additional triggering requirements which must also be met in order for IRQ to be asserted by the modem.
Additionally, programmable interrupts must be enabled ( PINTE set ) and PIRQ must have been reset by the
host prior to the occurrence of the interrupt condition in order for IRQ to be asserted by the modem.
ITRIG places triggering polarity requirements on the programmable interrupt which must be met in order for
the modem to assert IRQ. The four possible ITRIG settings and their corresponding function are described
below.
Interrupt Triggering 0A : 6 -7 ( 0 )ITRIG
INTMSK Interrupt Bit Mask 0B : 0 - 7 ( 0 )
During HDLC parallel mode data transmission ( HDLCE and PDME are set ) the host microprocessor must
load DBFR with consecutive transmit data bytes within eight bit times of each other. If more than eight bit
times elapse between transmit data bytes being written into DBFR, an underrun condition is detected by the
modem and is indicated by the ORUR and ABORT bits being set. When an underrun condition occurs, the
modem clamps the transmit data to ones. The clamping of transmit data will continue until the host
microprocessor resets the ABORT bit. When the host microprocessor resets the ABORT bit, the modem will
complete the transmission of the current group of eight binary ones and will then proceed to start the
transmission of the next frame if BA2 has been reset ( the host reading or writing DBFR causes BA2 to
reset ). Otherwise, the modem will transmit continuous HDLC flags.
In the receive mode, the modem indicates an overrun condition by setting ORUR. An overrun condition
occurs when the host microprocessor fails to read the received data in DBFR before it is overwritten by the
next received byte. The host must reset the ORUR bit before the next received data overrun condition can
be indicated by the modem setting ORUR.
ORUR Overrun / Underrun 09 : 7 ( - )
ITRIG (Bin) Description
Continuous interrupt when interrupt condition
Interrupt when interrupt condition from false to true
Interrupt when interrupt condition from true to false
Interrupt when any change in interrupt condition
00
01
10
11
KS16112/4 9600/14400 bps FAX MODEM
- 30 -
In the high speed transmit mode ( all data configurations except FSK ), the modem sets P1S to indicate that
the P1 sequence is being transmitted. The P1 sequence is also referred to as the echo protector tone and
consists of 187.5 ms of unmodulated carrier followed by 20 ms of silence. In the receive mode the P1S bit
has no significance.
In the high speed transmit mode ( all data configurations except FSK ), the modem sets P2S to indicate that
the P2 sequence is being transmitted. In the receive mode, the modem sets P2S to indicate that the modem
has detected an incoming P2 sequence and is in the process of searching for the P2 to PN transition.
When the PDME control bit is set, the modem is configured for parallel data mode. During parallel data
mode transmission, the modem accepts transmit data from DBFR ( 10 : 0 - 7 ) rather than the TXDI serial
input. During the receive mode the modem simultaneously outputs the received data to DBFR ( 10 : 0 - 7 )
and the RXDO serial output. HDLC framing is performed only in parallel data mode. When PDME is reset,
the modem is in serial data mode and the modem accepts transmit data via the TXDI serial input and
issues received data via the RXDO serial output.
PDME Parallel Data Mode Enable 07 : 5 ( 0 )
P2S P2 Sequence 0C : 2 ( - )
P1S P1 Sequence 0C : 1 ( - )
The ORUR function is disabled if the AHEOF control bit is set. The ORUR bit is valid only while the modem
is configured for HDLC mode ( HDLCE is set ).
When programmable interrupts are enabled ( PINTE is set ). PINTA is set by the modem when the interrupt
condition specified by INTMSK, INTADR, ITRIG, and INTML is true. The modem asserts IRQ if PIRQ has
been previously reset by the host. PINTA is automatically reset when the host resets PIRQ.
PINTE Programmable Interrupt Enable 1F : 4 ( 0 )
PINTA Programmable Interrupt Active
When PINTE is set and the interrupt condition as specified by INTMSK, INTADR, ITRIG, and INTML is
true, the modem asserts IRQ if control bit PIRQ has been previously reset by the host. Bits INTMSK,
INTADR, ITRIG, INTML, and PIRQ have no effect on IRQ and PINTA when programmable interrupts are
disabled ( PINTE is reset ).
1F : 7 ( - )
PIRQ Programmable Interrupt Request 1F : 3 ( - )
When PINTE is set and the interrupt condition is true as specified by INTMSK, INTADR, ITRIG, and INTML,
the modem asserts IRQ if control bit PIRQ has been previously reset by the host, PIRQ is set by the
modem when the programmable interrupt condition is true. The host must reset PIRQ after servicing the
interrupt. The modem will not assert IRQ when an interrupt condition is met unless PIRQ is reset.
KS16112/4 9600/14400 bps FAX MODEM
- 31 -
PNDT PN Detected 0D : 6 ( - )
The modem receiver sets the PNDT status bit to indicate that it has detected the beginning of the PN
segment of the training sequence. PNDT remains set during the reception of the PN segment and is reset
at the end of the PN segment.
PNS PN Sequence 0C : 3 ( - )
In the high speed transmit mode, the modem sets the PNS bit to indicate that the PN segment of the
training sequence is being transmitted. In the high speed receive mode, the PNS bit is set by the modem
while it is receiving the PN segment of the training sequence.
The modem sets the PNSX status bit when it has successfully trained at the end of the PN segment of
the high speed training sequence. If training fails, PNSX is reset. PNSX is valid after the DCDB bit is set.
RA1 RAM Access 1 05 : 7 ( 1 )
PNSX PN Success 08 : 3 ( - )
When the host sets the RA1 control bit, the modem accesses the RAM addressed by ADR1 and the
CRAM1 bit and performs a read or write as determined by the WT1 control bit.
SAVEQ Save Equalizer
RTSB Request to Send Bit
09 : 6 ( 0 )
07 : 7 ( 0 )
REC Receive State 0D : 7 ( - )
RA2 RAM Access 2 15 : 7 ( 1 )
When the host sets the RA2 control bit, the modem accesses the RAM addressed by ADR2 and the
CRAM2 bit and performs a read or write as determined by the WT2 control bit.
The modem sets the REC status bit to indicate that the modem is in the receive state. When the REC
bit is reset, the modem is in the transmit state.
The modem begins a transmit sequence when the RTSB bit is set or the RTS input pin is driven low.
The modem will continue to transmit as long as RTSB is set or RTS is low.
When the SAVEQ bit is set by the host, the taps of the adaptive equalizer are not cleared when entering
the training state, thus saving the equalizer tap coefficients obtained during the previous training.
KS16112/4 9600/14400 bps FAX MODEM
- 32 -
In the high speed transmit mode, the modem sets the SCR1S status bit to indicate that the modem is
sending the scrambled ones sequence. In the high speed receive mode, the modem sets the SCR1S status
bit to indicate that the modem is receiving the scrambled ones sequence. In the receive mode, SCR1S is
reset to indicate that the modem is not receiving the scrambled ones sequence.
The KS16114 supports V.17 and V.27ter short train while the KS16112 supports V.27ter short train.
To utilize these short train modes, the receiver must first be trained using a long training sequence at the
same speed as the subsequent short training sequence. After the long training sequence has been success -
fully received, the host may configure the modem for short train mode by setting SHRTN. At this time the
host must also set the SAVEQ bit to preserve the equalizer tap coefficients obtained during the long train.
SHTRN Short Train 07 : 4 ( 0 )
SCR1S Scrambled Ones Sequence 0C : 4 ( - )
SILIDL Silence / Idle 0C : 0 ( - )
When in the high speed transmit mode, the modem sets the SILIDL status bit to indicate that the modem
is transmitting silence. In the high speed receive mode, the modem sets the SILIDL status bit to indicate
that the modem is in the idle state waiting for energy to be received.
The TD1 bit is set when the modem detects energy above the turn - on threshold of tone detector No 1.
As the default, tone detector No.1 is programmed to detect energy in the 2100 Hz ± 25 Hz frequency range.
All three tone detectors ( TD1, TD2 and TD3 ) have host programmable filter coefficients.
Tone detector No. 1 is operational in FSK, FSK and DTMF receiver and Tone configurations and whenever
the modem is not transmitting.
The TD2 bit is set when the modem detects energy above the turn on threshold of tone detector No 2.
As the default, tone detector No. 2 is programmed to detect energy in the 1100 Hz ± 30 Hz frequency range.
All three tone detectors ( TD1, TD2 and TD3 ) have host programmable filter coefficients.
Tone detector No. 2 is operational in FSK, FSK and DTMF receiver and Tone configurations and whenever
the modem is not transmitting.
TD2 Tone Detector No.2 08 : 6 ( - )
TD1 Tone Detector No.1 08 : 5 ( - )
KS16112/4 9600/14400 bps FAX MODEM
- 33 -
The TD3 bit is set when the modem detects energy above the turn on threshold of tone detector No. 3.
As the default, tone detector No. 3 is programmed to detect energy in the 462Hz ± 14Hz frequency range.
All three tone detectors ( TD1, TD2 and TD3 ) have host programmable filter coefficients.
Tone detector No. 3 is operational in FSK, FSK and DTMF receiver and Tone configurations and whenever
the modem is not transmitting. TD3 serves as the output status indicator when the CASC bit is set forming
a 12th order filter using TD1, TD2, and TD3 ( see CASC bit description ).
When the host sets the TRND bit while in the receive mode, the modem will not recognize the training
sequence and will not enter the training state. In the transmit mode, the modem will not transmit the training
sequence when the RTS input is active or the RTSB bit is set.
When the WT1 control bit is set, the modem reads 16 bits of data from the Y RAM Data 1 registers ( YDM 1,
YDL 1 ) and writes it into its internal RAM as addressed by ADR1 and CRAM1 immediately following the
host setting the RA1 control bit. If the MSB of ADR1 is a zero, the data is copied into X RAM, if the MSB
of ADR1 is a one, the data is copied into Y RAM. When WT1 is reset the modem reads real and imaginary
16 - bit data from its internal RAM locations as addressed by ADR1 and CRAM1 and writes it into the
X RAM Data 1 registers ( XDM1, XDL1 ) and Y RAM Data 1 registers ( YDM1, YDL1 ) immediately after the
host sets the RA1 control bit.
WT1 RAM Write 1 05 : 1 ( 0 )
TRND Training Disable 07 : 6( 0 )
TD3 Tone Detector No.3 08 : 7( - )
When the WT2 control bit is set, the modem reads 16 bits of data from the Y RAM Data 2 registers ( YDM1,
YDL1 ) and writes it into its internal RAM as addressed by ADR2 and CRAM2 immediately following the
host setting the RA2 control bit. If the MSB of ADR2 is a zero, the data is copied into X RAM. If the MSB
of ADR2 is a one, the data is copied into Y RAM. When WT2 is reset, the modem reads real and
imaginary 16bits data from its internal RAM locations as addressed by ADR2 and CRAM2 and writes it into
the X RAM Data 1 registers ( XDM1, XDL1 ) and Y RAM Data 1 registers ( YDM1, YDL1 ) immediately after
the host sets the RA2 control bit.
WT2 RAM Write 2 15 : 1 ( 0 )
XDL1 contains the least significant byte of the 16-bit X RAM1 Data word used while reading XRAM locations.
XDL2 X RAM Data 2 LSB 12 : 0 - 7 ( - )
XDL1 X RAM Data 1 LSB 02 : 0 - 7 ( - )
KS16112/4 9600/14400 bps FAX MODEM
- 34 -
XDL2 contains the least significant byte of the 16-bit X RAM2 Data word used while reading XRAM locations.
XDM1 contains the most significant byte of the 16-bit X RAM1 Data word used while reading XRAM locations.
XDM2 contains the most significant byte of the 16-bit X RAM2 Data word used while reading XRAM locations.
YDAL1 contains the least significant byte of the 16-bit Y RAM1 Data word used while reading YRAM locations.
YDAL2 contains the least significant byte of the 16-bit Y RAM2 Data word used while reading YRAM locations.
YDM1 contains the most significant byte of the 16-bit Y RAM1 Data word used while reading YRAM locations.
YDM2 contains the most significant byte of the 16-bit Y RAM2 Data word used while reading YRAM locations.
When both ABORT and ZCLMP are set the modem will transmit continuous zeros. When ZCLMP is reset
and ABORT is set the modem will send continuous ones. With ABORT reset ZCLMP is disabled.
The internal DSP random access memory ( RAM ) is organized into two parts : real ( XRAM ) and
imaginary ( YRAM ). The host processor has access to both the XRAM and the YRAM.
3 Digital Signal Processor ( DSP ) RAM Access
ZCLMP Zero Clamp 09 : 4 ( 0 )
YDM2 Y RAM Data 2 MSB
YDM1 Y RAM Data 1 MSB
11 : 0 - 7 ( - )
01 : 0 - 7 ( - )
YDL2 Y RAM Data 2 LSB 10 : 0 - 7 ( - )
YDL1 Y RAM Data 1 LSB 00 : 0 - 7 ( - )
XDM2 X RAM Data 2 MSB 13 : 0 - 7 ( - )
X RAM Data 1 MSBXDM1 03 : 0 - 7 ( - )
KS16112/4 9600/14400 bps FAX MODEM
- 35 -
The dual port interface memory is used during host-to-DSP RAM or DSP RAM-to-host data transfers.
The DSP RAM address accessed is determined by the address stored in the DSP interface memory ( ADRX,
where X =1 or 2 ). The words (16 bits each ) are transferred once each baud or once each sampling period
( determined by BRTX
bit, where X= 1 or 2 ). The sampling rate is 9,600 Hz for all configurations, but the baud
rate or symbol rate is determined by the selected configuration ( see Table 7). Two RAM access bits in
the modem interface memory instruct the DSP to access the XRAM and/or the YRAM. The host first sets
the RA1 and/or RA2 bits which are tested by the DSP each baud or sample period, as determined by the
corresponding BRTX bit setting. The DSP RAM access functions, codes and registers are listed in Table 2.
Table 2. Modem DSP RAM Access Codes
Item No. Function BRTXCRAMXADRXX,Y
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Received Signal Samples
AGC Gain Word
Carrier Detect Turn on Threshold
Carrier Detect Turn off Threshold
Receiver Sensitivity, MAXG
Tone 1 Frequency
Tone 1 Transmit Output Level
Tone 2 Frequency
Tone 2 Transmit Output Level
Transmit Output Level
Equalizer Tap Coefficients
Rotated Equalizer Output, Eye Pattern
Decision Points, Ideal Points
Error Vector
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
1
1
1
1
1
0
1
0
0
1
1
0
1
15
15
37
B7
24
21
22
22
23
21
3A - 69
17
17
1D
X
X
X
X
X
X
X
X
X
X
X,Y
X,Y
X,Y
X,Y
3.1 Interface Memory Access of DSP RAM
KS16112/4 9600/14400 bps FAX MODEM
- 36 -
3.2 Host DSP Read and Write Procedures
The modem DSP RAM consists of four memory banks : data RAM real, data RAM imaginary, coefficient
RAM real, and coefficient RAM imaginary. When accessing the main RAM the desired RAM access code
needs to be written into ADRX ( X = 1,2 ), with 1 and 2 referring to RAM access 1 and 2 respectively. The
RAM location is specified by bits 0-6 and bit 7, when zero, specifies a real ( XRAM ) RAM location, and
when one, an imaginary ( YRAM ) RAM location. The BRTX ( X = 1,2 ) bit controls whether the data access
takes place at the baud rate or the sampling rate. The CRAMX controls whether the data RAM
( CRAMX is reset ) or the coefficient RAM ( CRAMX is set ) is accessed. In parallel data mode ( PDME
is set 1 ) only RAM access associated with RAM Address1 is available since register 10h is used as the
transmit/receive data buffer ( DBFR ).
Item No. Function BRTXCRAMXADRXX,Y
15
16
17
18
19
20
21
22
23
24
25
26
1
1
1
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
1
1
1
1
1
0C
18
0D
1F
1F
1E
9E
85
25 - 2A
A5 - AA
2B - 30
AB - B0
31 - 36
B1 - B6
IE
Y
X
X
X
X
X
Y
Y
X
Y
X
Y
X
Y
X
Rotation Angle
Frequency Correction
Eye Quality Monitor, EQM
Minimum DTMF On Time
Minimum DTMF Off Time
Negative Twist Control ( DTMF )
Positive Twist Control ( DTMF )
Number of Additional Flags ( HDLC )
TD1 Tone Detector Coefficients
TD2 Tone Detector Coefficients
TD3 Tone Detector Coefficients
Maximum Speech Energy
Table 2. Modem DSP RAM Access Codes ( Continued )
27 RX BPF compromise filter 016A-89
EA-09 X
Y
KS16112/4 9600/14400 bps FAX MODEM
- 37 -
3.3 DSP RAM Read Procedure
The RAM read procedure is a 32 - bit transfer from the DSP RAM to the interface memory. Both the X
and Y RAM data is transferred simultaneously. The sequence of events is as follows:
Before accessing the DSP interface memory, first reset RA1 and/or RA2, then reset BDA1 and/or BDA2
by reading YDL1 and/or YDL2.
Reset WT1 and/or WT2 to instruct the modem that a RAM read operation will take place when RA1
and/or RA2 is set.
Load the RAM address into ADR1 and/or ADR2 and then set CRAMX and BRTX to desired values,
where x = 1 or 2
Set RA1 and/or RA2 to instruct the modem to perform the RAM read operation.
BDA1 and/or BDA2 will be set when the modem has completed the transfer from the DSP RAM to the
interface memory RAM data registers.
When the modem sets BDA1 and/or BDA2, IRQ is also asserted if INTE1 and/or INTE2 is set.
INTA1 and/or INTA2 is set to inform the host that BDA1 and/or BDA2 was the source of the interrupt.
In the order listed, read XDM1, XDL1, YDM1, and YDL1; and/or XDM2, XDL2, YDM2, and YDL2. Reading
YDL1 resets INTA1 and BDA1 and/or reading YDL2 resets INTA2 and BDA2 causing IRQ to go inactive
if no other interrupts are pending.
The DSP RAM write procedure is a 16 - bit transfer from the interface memory to the DSP RAM. Thus
X RAM data or Y RAM data can be transferred each baud or sample time. The sequence of events is
as follows :
3.4 DSP RAM Write Procedure
Before writing to the DSP interface memory, first reset RA1 and/or RA2 and then reset BDA1 and/or
BDA2 by reading YDL1 and/or YDL2, respectively.
Write the RAM address into ADR1 and/or ADR2 and then set CRAM1 and BRT1 and/or CRAM2 and
BRT2 to the desired values.
KS16112/4 9600/14400 bps FAX MODEM
- 38 -
Set WT1 and/or WT2 to instruct the modem that a RAM write operation will take place when RA1 and/or
RA2 is set.
Write the desired data into the interface memory RAM data registers YDL1 and YDM1 and/or YDL2
and YDM2.
Set RA1 and/or RA2 to instruct the modem to perform the RAM write operation.
BDA1 and/or BDA2 will be set when the transfer from the interface memory RAM data registers into
RAM has been completed.
When BDA1 and/or BDA2 is set, IRQ is also asserted if INTE1 and/or INTE2 is set.
Reset INTA1 and BDA1 and/or INTA2 and BDA2 by reading or writing to YDL1 and/or YDL2. Reading or
writing YDL1 and/or YDL2 also causes IRQ to return to the inactive state if no other interrupts are pending.
4 Parallel Data Transfers
Parallel data transfers use register 10h in the interface memory ( DBFR ). The modem and the host can
synchronize data transfers by observing the BDA2 bit in the interface memory. Parallel data transfers may
also be performed under IRQ interrupts ( see INTE2 and INTA2 bit descriptions ).
4.1 Receiving Parallel Data
During parallel data mode ( PDME is set ), the modem writes received data to DBFR once every eight bit
times. When received data is available the modem sets the BDA2 bit. The BDA2 bit is automatically reset
when the host reads DBFR. When BDA2 is set the host must take action within eight bit times or the data
will be lost since the modem will overwrite DBFR ( DBFR overrun condition ).
During parallel data mode ( PDME is set ), the modem reads DBFR once every eight bit times. The BDA2
bit is set by the modem when DBFR has been read, thus requesting the next transmit data byte. The BDA2
bit is reset automatically when the host writes to DBFR. When BDA2 is set the modem must respond within
eight bit times or the modem will retransmit the data in register DBFR ( DBFR underrun condition ).
The least significant bit of register DBFR represents the oldest data and the most significant bit represents
the newest data received.
4.2 Transmitting Parallel Data
The LSB ( bit 0 ) in DBFR is transmitted first in time and the MSB ( bit 7 ) is transmitted last.
KS16112/4 9600/14400 bps FAX MODEM
- 39 -
Start Start
RAx 0
Read YDLx to
to reset BDAx
WTx 0
ADRx Address
CRAMx 1 or 0
BRTx 1 or 0
RAx 1
BDAx = 1 ?
Read
YDMx and YDLx
or
XDMx and XDLx
Read more
RAM ?
Yes
No
End End
Yes
No
RAx 0
Read YDLx to
to reset BDAx
ADRx Address
CRAMx 1 or 0
BRTx 1 or 0
WTx 1
YDMx MSB
YDLx LSB
RAx 1
Write more
RAM ?
No
Yes
BDAx = 1 ?
Yes
No
DSP Ram read DSP RAM Write
Note: x is 1 for RAM access 1
x is 2 for RAM access 2
KS16112/4 9600/14400 bps FAX MODEM
- 40 -
Start
PDME 1
BDA2 = 1 ?
Read DBFR
Read more
?
Yes
No
End
Yes
No
CSET 1
CSET = 0 ?
No
Yes
Clear BDA2 by
reading DBFR
Start
PDME 1
CTSB = 1 ?
Write to DBFR
Write more
?
Yes
No
End
Yes
No
CSET 1
CSET = 0 ?
No
Yes
RTSB 1
BDA2 = 1 ?
No
RTSB 0
Parallel data transmit
Parallel data receive
KS16112/4 9600/14400 bps FAX MODEM
- 41 -
5 Programmable Interrupt Feature
This feature makes it possible for the host to select an interrupt to occur on any combination of bits within
an interface memory register.
5.1 Programmable Interrupt Bits
The programmable interrupt routine is executed at the sampling rate. ( 9,600Hz ) in all configurations. When
the host sets the PINTE bit and the modem sets the PINTA bit, IRQ goes active ( low ) when the interrupt
condition is met. The PIRQ bit must be reset by the host after the interrupt service, since this bit will not
be reset by the modem and no further interrupts will occur until PIRQ has been reset.
An interrupt may occur due to a single interface memory register based on any combination of bits. The
register is selected by specifying the interrupt Address in the INTADR field. The interrupt bit mask register
( INTMSK ) selects the bits to be tested in the interface memory register specified by INTADR.
5.2 Programmable Interrupt Operation Modes
There are two operating logic modes ( AND/OR ) with each having four trigger options. The triggering option
is selected by the ITRIG field and the logic ( AND/OR ) is selected by INTML.
6 DSP RAM Parameter Definitions and Scaling
In the following the DSP RAM parameters are described as they appear in Table 2
Received Signal Sample / Received Signal Sample ( FSK )
Format: 16 bits, signed twos complement
Equation: VINT ( V ) = [( A / D Sample Word ) h * ( 3.03/2 15 )]
VEXT = VINT + LOG 10 -1 {( AGC Gain ( dB )) /20}
AGC Gain Word
Format: 16 bits, unsigned
Equation: AGC Gain ( dB ) = 50 [ 1 - ( AGC Gain Word ) h / 215 ]
KS16112/4 9600/14400 bps FAX MODEM
- 42 -
Carrier Detect Turn - On Threshold
Carrier Detect Turn - Off Threshold
Receiver Sensitivity, MAXG
Format : 16 bits, twos complement, positive value
Equation: Carrier Detect Turn - on Threshold = 2185 [ 10 ( TON + MG ) ]
Carrier Detect Turn - off Threshold = 2185 [ 10 ( TOFF + MG ) ]
Receiver Sensitivity, MAXG = 655.36 [ 50 - Gain Limit ( dB )]
Where: TON is the turn - on threshold in dB/10
TOFF is the turn - off threshold in dB/10
MG = 50 [ 1 - ( MAXG )h/215] /10
MAXG is programmable, default = 0FC0h
Tone 1 Frequency
Tone 2 Frequency
Format: 16 bits, unsigned
Equation: N = 216 / 9600 * ( Frequency in Hz )
Tone 1 Output Level
Tone 2 Output Level
Format: 16 bits. twos complement, positive value
Total power is the result of both tone 1 power and tone 2 power added
together. These can be independently calculated using the equation for
transmit output level ( item 10 ).
KS16112/4 9600/14400 bps FAX MODEM
- 43 -
Transmit Output Level
Format: 16 bits, twos complement, positive
Equation: Transmit Output Level = 18426 [ 10 ( PO / 20 ) ]
Where: Po = Output Power ( dBm ) into 600
Equalizer Tap Coefficients
Format: 16 bits, signed twos complement, complex
These numbers are complex and thus require two write operations per tap.
One for the real part and one for the imaginary part.
Rotated Equalizer Output, Eye Pattern
Decision Points, Ideal Points
Format: 16 bits, twos complement, complex
Error Vector
Format: 16 bits, twos complement, complex
This is the difference between the received point and the nearest ideal point
Rotation Angle
Format: 16 bits, twos complement
Frequency Correction
Format: 16 bits, twos complement
Equation: Frequency Corr. ( Hz ) = [( Frequency Corr. Word )h/2 16] * baud in Hz
Equation: Rotation Angle ( degree ) = [( Rotation Angle Word )h/2 16] * 180 degrees
KS16112/4 9600/14400 bps FAX MODEM
- 44 -
Eye Quality Monitor ( EQM )
Format: 16 bits, twos complement, positive
This is the filtered squared magnitude of the error vector.
Minimum DTMF On - Time
Format: 16 bits, twos complement, positive
Range: 0 to 7FFFh
Minimum DTMF Off - Time
Format: 16 bits, twos complements, positive
Range: 0 to 7FFFh
Negative Twist Control
Positive Twist Control
Format: 16 bits, twos complements, Positive
Range: 0 to 7FFFh
These parameters control the acceptable twist ( negative or positive ) for the
DTMF signals. To increase the acceptable twist ( negative or positive ) level
decrease this parameters from its default value.
Number of Additional Flags ( HDLC )
Format: 16 bits, twos complement, positive
Equation: desired number of flags - 1
This parameter specifies the number of flags between frames or at the end
of the final frame in the HDLC mode.
KS16112/4 9600/14400 bps FAX MODEM
- 45 -
TD1 Tone Detector Coefficient
TD2 Tone Detector Coefficient
TD3 Tone Detector Coefficient
Format: 16 bits, twos complement
These parameters control the frequency responses of the three tone detec -
tors. See Section Tone Detection for a detailed description of the structure
of the tone detectors.
Maximum Speech Energy
Format : 16 bits, twos complement
This parameter sets the ratio between the total energy ( speech energy
plus DTMF energy ) and the DTMF tone energy before valid DTMF
digits are detected. The default is 4000hex which is 3dB.
RX compromise filter
The receivers 32 tap complex FIR BPF filter can be host programmed to include a compromise filter. New filter taps
can be downloaded from the host after the host has configured the modem for high speed operation.
KS16112/4 9600/14400 bps FAX MODEM
- 46 -
HDLC OPERATION
The modem is capable of performing HDLC framing ( High Level Data Link control ). The modem uses the
SDLC ( Synchronous Data Link control ) in an eight bit octet format which is a subset of HDLC.
1 HDLC Frames
Information on an HDLC link is transmitted by means of frames. The information is organized into a format
specified by an international standard that enables the synchronization between the transmitter and the
receiver. An HDLC frame has the following parts :
Flags
Address Field
Control Field
Information Field
Fame Check Sequence
The frame check sequence computation uses the cyclic redundancy check ( CRC ) method and implement a
polynomial specified in ITU-T T.30 and X.25 as follows :
X 16 + X 12 + X 5 +1
The HDLC is functional under the following transmitter and receiver modes:
V.17 ( KS16114 )
V.29
V.27ter
V.21 Ch. 2
V.21 Ch. 2 with DTMF Receiver
KS16112/4 9600/14400 bps FAX MODEM
- 47 -
TONE GENERATION AND DETECTION
1 DTMF Dialing
The modem includes two programmable tone generators that can be used to perform dual tone multifre -
quency ( DTMF ) dialing. The amplitude and frequency of each tone generator are programmable by the host.
1.1 DTMF Requirements
The DTMF tones consist of two sinusoidal signals, one from the high group of frequencies and the other from
the low group of frequencies. The two groups of frequencies and the corresponding push button telephone
characters are shown in Table 3. Signal power is defined for the combined as well as for the individual
tones. The high frequency tone should be transmitted at approximately 2 dB higher power than the low fre -
quency tone. The maximum combined power should not exceed +1 dBm and the minimum steady state
power should not be less than -8 dBm. The required minimum DTMF pulse duration is 50ms, but approxi -
mately 95ms is recommended for better reliability. The required interval between DTMF pulses is 45 ms but
70 ms is preferred.
Table 3. DTMF Frequencies
Low Frequency Group
697 Hz
770 Hz
852 Hz
941 Hz
High Frequency Group
1209 Hz
1
4
7
*
1336 Hz
2
5
8
0
1477 Hz
3
6
9
#
1622 Hz
A
B
C
D
1.2 Setting DTMF Parameters
The amplitude and frequency of the two tones are set by the host in the DSP RAM. To generate a DTMF
tone the modem needs to be in the TONE configuration ( CONFIG = 80h ). The host must then program the
frequencies and levels of each tone. This procedure consists of writing a 16 - bit binary number into RAM
using RAM access code 21h with BRTX = 0 and CRAMX = 1 for tone 1 and RAM access code 22h with
BRTX = 0 and CRAMX = 1 for tone 2. The power levels are programmed by writing a 16 - bit binary number
into RAM using RAM access code 22h with BRTX = 0 and CRAMX = 0 for tone 1 and RAM access code 23h
with BRTX = 0 and CRAMX = 0 for tone 2. The hex numbers in these RAM location are scaled as follows :
Frequency Number = 6.8267 × F ( where F is the desired frequency in Hz )
Power Number = 18426 [ 10 ( PO / 20 ) ] ( where PO is the desired power level in dBm )
The hexadecimal numbers for DTMF generation are listed in Table 4. Power levels are selected to give each
tone the desired output power while compensating for modem filter characteristics.
KS16112/4 9600/14400 bps FAX MODEM
- 48 -
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.
1918
23A0
65AB
7FFF
1296
203D
65AB
7FFF
1296
23A0
65AB
7FFF
1296
2763
65AB
7FFF
1488
203D
65AB
7FFF
1488
23A0
65AB
7FFF
1488
2763
65AB
7FFF
16B8
203D
65AB
7FFF
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
21
22
22
23
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.
16B8
23A0
65AB
7FFF
16B8
2763
65AB
7FFF
1918
203D
65AB
7FFF
1918
2763
65AB
7FFF
1296
2B8C
65AB
7FFF
1488
2B8C
65AB
7FFF
16B8
2B8C
65AB
7FFF
1918
2B8C
65AB
7FFF
0
1
2
3
4
5
6
7
8
9
*
#
A
B
C
D
Digit ADRXCRAMXBRTX Value
( Hex ) Digit ADRXCRAMXBRTX Value
( Hex )
Table 4. DTMF Default Values
KS16112/4 9600/14400 bps FAX MODEM
- 49 -
2 Tone Detection
2.1 Programmable Tone Detection
The modem includes three programmable independent tone detectors ( called TD1, TD2, and TD3 ). All three
tone detectors are operational when the modem is in a non - high speed mode. In the high speed mode
only tone detector TD3 is operational. The default center frequencies for the tone detectors are 2100 Hz
( TD1 ), 1100Hz ( TD2 ), and 462 Hz ( TD3 ). The three tone detectors can be cascaded to form a single
12th order filter by setting the CASC bit in the dual port interface memory.
Each tone detector consists of two second order filters with two zeros and two poles each, a first order
energy averaging filter and a threshold comparator. A block diagram of a tone detector is shown in
Figure 2.
Filter 1 has a transfer function :
2 ( a0 + a1z -1 +a2z -2 )
1 + 2b1z -1 + 2b2z -2
H1 (Z) =
2 ( a0 + a1z -1 +a2z -2 )
1 + 2b1z -1 + 2b2z -2
H2 (Z) =
Filter 2 has transfer function :
The energy averaging filter has a transfer function :
a
1 - bz -1
H3 (Z) =
a1
a2
a0
b1
b2
a1
a2
a0
b1
b2
a
b
output
input
Figure 2. Tone Detector Block Diagram
ABS THRESHOLD
COMPARATOR
2
Z -1
Z -1
M
x2
M
Z -1
Z -1
M
M
x
Z -1
M
x
x x
x
x x
M
x
x
M
x
x
KS16112/4 9600/14400 bps FAX MODEM
- 50 -
The output of the threshold comparator controls the interface memory bits TD 1, TD 2, and TD3. The bits are
set if the output of the energy averaging filter is equal to or greater than 1/8 of full scale. Otherwise the
bits are reset.
Table 5 contains the default filter coefficient values that are loaded into RAM upon power - up. These default
values correspond to default frequencies 2100 Hz (TD1), 1100 Hz (TD2), and 462Hz (TD3). Table 6 contains
the RAM access codes for all filter coefficients.
Table 5. Default Tone Detector Filter Coefficients
Table 6. Filter RAM Access Codes
0198
1A4A
175A
C0C4
011B
60BE
5E9C
C0C4
0048
79F3
7974
C083
0.01245
0.20538
0.18243
-0.49402
0.00854
0.75580
0.73914
-0.49402
0.00220
0.95273
0.94885
-0.49600
a0 = a0
b1
b1
b2 = b2
a0 = a0
b1
b1
b2 = b2
a0 = a0
b1
b1
b2 = b2
Frequency
Detected ( Hz ) Bandwidth ( Hz ) Freq. Offset
( Hz ) Coeff. Name Coeff. Value
( Hex ) Coeff. Value
( Decimal )
2100
1100
462
25
30
14
18
19
10
25
27
27
28
29
2A
A6
A7
A9
AA
A8
A9
2B
2C
2D
2E
2F
30
AC
AD
AF
B0
AE
AB
31
32
33
34
35
36
B2
B3
B5
B6
B4
B1
a0
a1
a2
a0
a1
a2
b1
b2
b1
b2
a
b
Coefficient Name RAM Access Code ( Hex )
X
X
X
X
X
X
Y
Y
Y
Y
Y
Y
X, Y
Tone3Tone1 Tone2
KS16112/4 9600/14400 bps FAX MODEM
- 51 -
3 Fax Transmit/Receive
Phase B, D, and E are transmitted using 300 FSK and the messages are transmitted in HDLC frames. Phase C
is either transmitted in HDLC frame, if error correction is required, or without HDLC. The flowcharts on next pages
illustrate how to implement facsimile transmit and receive for HDLC frames and for normal high speed message
transmission.
ITU-T T.30 recommendation provides procedures for facsimile transmission over the PSTN. T.30 recommendation
supports two modes of transmission, low speed FSK with HDLC, and high speed data transmission for facsimile
message. The high speed may or may not support HDLC which depends on implementations of ECM mode
(Error Correction).
The error correction mode is negotiated in phase B of facsimile establishment phase, as shown below. If both
the originating fax and the answering fax modem support error correction, then the high speed message
transmission must be done using the HDLC.
Facsimile transmission is done in 5 phases as shown below,
Phase A. Call establishment. In phase A the originating fax unit will send the CalliNG (CNG) tone to indicate it is
a non-speech terminal. CNG tone is a 1100 Hz tone for a duration of .5 second on and 3 off. The answering
fax will send the CallED (CED) tone. CED tone is a 2100 Hz tone for a duration of 2.6 to 4 sec.
Phase B. Pre-message procedure. Phase B is for identification and selection of required facilities. In phase B the
answering fax will send the DIS (Digital ID Signal) and the originating fax will send DCS (Digital Command
Signal). The train check (TCF) is then transmitted by the originating fax for a duration of 1.5 second. If the
answering fax receives the TCF, it will send CFR (Confirmation to Receive) and the two modem enter Phase C.
Phase C. Message Transmission. In Phase C the facsimile message will be transmitted form the originating fax
to the answering fax unit.
Phase D. Post-message Procedure. In Phase D the transmitter of fax message will send EOM (End Of Message)
and will wait for a response from the answering fax unit. The answering fax unit will in response return one of
the following messages, MCF (Message Confirmation), RTP, RTN, PIP, or PIN.
Phase E. Call Release. After post message signals where exchanged, the two fax units enter phase E (after last
page of message was transmitted) and the originating fax will send DCN (Disconnect) to indicate the Phase E.
DCN message requires no response.
KS16112/4 9600/14400 bps FAX MODEM
- 52 -
open
modem
TX / RX/
TCF
TX
config modem
W/ HDLC
HDLC
mode ? HDLC
mode ?
TCF
TX / RX
config modem
NO HDLC
config NO HDLC
long train,
high speed
config
NO HDLC
high speed
config modem
W/ HDLC config modem
NO HDLC
YES
NO
TX RX
YES NO
flag end_of_frame
= 0
timed wait
inform T.30 of
end of 1 TX frame
read next frame
from T.30
more
frames ?
RETURN
NO
RETURN
RETURN
inform T.30 of
result
read one frame
error ?
flag end_of_frame
= 0
timed wait
inform T.30 of
end of 1 RX frame
inform T.30 of
error
time out ?
RETURN
NO
YES
NO
YES
NO
read one frame
YES
RX
flag cts_high = 0
timed wait
for CTS
delay 1.5 sec
to send TCF
stop modem
function = receive
W/ HDLC function = receive
NO HDLC
function =transmit
W/ HDLC function = transmit
NO HDLC
function = transmit
TCF function = receive
TCF
flag TCF_received
= 0
timed wait
1.5 sec TCF
Figure 3. Transmitter and Reciever Flow Charts
KS16112/4 9600/14400 bps FAX MODEM
- 53 -
configure
modem(function)
HDLC
Mode ?
enable HDLC
1 ---> HDLCE (7:0)
1 ---> AHEOF (15:5)
YES
NO
disable HDLC
0 ---> HDLCE (7:0)
parallel data mode
1 ---> PDME (7:5)
speed ?
300
HIGH
configure for high speed
speed = 14h, V29 9600
speed = 12h, V29 7200
speed = 0Ah, V27 4800
speed = 09h, V27 2400
speed ---> CONFIG (06:0-7)
TRAIN ?
short train
1 ---> SHTRN (7:4)
1 ---> SAVEQ (9:6)
SHORT
LONG
long train
0 --->SHTRN (7:4)
0 ---> SAVEQ (9:6)
configure for low speed
20h ---> CONFIG (06:0-7)
SETUP (function)
disable
programmable interrupt
0 ---> PINTE (1F:4)
RETURN
disable interrupt
0 ---> INTE2 (1E:5)
Figure 4. Modem Configuration
KS16112/4 9600/14400 bps FAX MODEM
- 54 -
stop modem
disable interrupt
0 ---> INTE2 (1E:5)
drop RTS
0 ---> RTSB (7:7)
RETURN
disable prog int
0 ---> PINTE (1F:4)
infrom dsp of change
1 ---> CSET (1F:0) CSET (1F:0) ?
RETURN
1
SETUP
function
program PINTE to interrupt
on CSET low
modem IRQ = SETUP IRQ
enable prog. int 1 ---> PINTE (1F:4)
RETURN
SETUP
IRQ
function
0
disable prog. int
0 ---> PINTE (1F:4)
Modem Configuration Continued
KS16112/4 9600/14400 bps FAX MODEM
- 55 -
transmit
with HDLC
Raise RTS
1 ---> RTSB (7:7)
HDLC TX
IRQ
BDA2(1E:3) ?
read data from
frame buffer
write to TX BUFF
data ---> DBFR (10:7-0)
RETURN
last
byte ?
YES
NO
1
0
program PINTE to interrupt
on CTSB (F:1) high
disable TX int, 0 ---> INTE2 (1E:5)
modem IRQ = CTSB IRQ
enable prog. int 1 ---> PINTE (1F:4)
program PINTE to interrupt
on FLG (9:0) high
modem IRQ = FLG IRQ
enable prog. int 1 ---> PINTE (1F:4)
RETURN
Figure 5. Transmit HDLC Frame
KS16112/4 9600/14400 bps FAX MODEM
- 56 -
FLG(09:0) ? 0
stop modem
1
FLG IRQ
RETURN
more
frames ?
YES
read data from frame buffer
write to TX BUFF
data ---> DBFR (10:7-0)
modem IRQ = HDLC TX IRQ
enable int 1 ---> INTE2 (1E:5)
disable prog int, 0 ---> PINTE (1F:4)
NO
end of one frame
harden_signal
switch to next frame
delay 1 second
send preamble
enable interrupt,
1 ---> INTE2 (1E:5)
RETURN
modem IRQ =
HDLC TX IRQ
speed = 300 ?
YES
NO
CTSB IRQ
disable prog. int
0 ---> PINTE (1F:4)
CTSB(F:1)
1
0
KS16112/4 9600/14400 bps FAX MODEM
- 57 -
dummy read to start int
DBFR (10:7-0)
receive
with HDLC
drop RTS
0 ---> RTSB (7:7)
enable interrupt 1 ---> INTE2 (1E:5)
enable prog int 1 ---> PINTE(1F:4)
RETURN
modem IRQ =
HDLC RX IRQ
program PINTE to interrupt
on EOHF(9:2) high and
ABORT (9:3) high
0 ---> EOHF (9:2)
time out ?
signal recognition
detect high/low speed
HIGH
speed
detected ?
NO
timeout
error
YES
LOW
speed ?
LOW
HIGH
error, received
low speed
program PINTE to interrupt
on FLG (9:0) high
enable prog int
1 ---> PINTE(1F:4)
modem IRQ =
RX FLG IRQ
HDLC RX
IRQ
RETURN
KS16112/4 9600/14400 bps FAX MODEM
- 58 -
HDLC RX
IRQ
BDA2(1E:3) ?
write to frame buffer
read from RX BUFF
DBFR (10:7-0) ----> data
RETURN
1
0
CRCE (9:1) ?EOHF (9:2) ?
0
1
error BAD frame Mark GOOD Frame
1
0 ---> EOHF
0
end of one frame
harden_signal
ABORT (9:3)? 1
0
start a new frame
Figure 6. Receive HDLC Frame
KS16112/4 9600/14400 bps FAX MODEM
- 59 -
transmit
TCF
RETURN
raise RTS
1 ---> RTSB (7:7)
TCF is 1.5 sec of 0 s
00 ---> DBFR (10:7-0)
cts_high = 1
program PINTE to interrupt
on CTSB (F:1) high
modem IRQ = TCF CTSB IRQ
enable prog. int 1 ---> PINTE (1F:4)
RETURN
TCF
CTSB IRQ
diable prog. int 0 ---> PINTE (1F:4)
CTSB (F:1)
1
0
Figure 7. Transmit TCF - Training Check
KS16112/4 9600/14400 bps FAX MODEM
- 60 -
dummy read to start int
DBFR (10:7-0)
receive
TCF
drop RTS
0 ---> RTSB (7:7)
enable interrupt
1 ---> INTE2 (1E:5)
time out ?
RETURN
FALSE
100 ---> TCFtmr
delay 10 msec
dec TCFtmr
NO
TCFtmr == 0
YES
NO
modem IRQ =
TCF RX IRQ
TCF RX
IRQ
BDA2(1E:3)?
read DBFR (10:7-0)
100 ---> TCFtmr
RETURN
data == 0 ?
NO
YES
1
0
flag TCF_received = 1
stop modem
signal recognition
detect high/low speed
high
speed
detected ?
NO
set time out error flag YES
error, received low
speed
LOW
RETURN
TRUE
stop modem
Figure 8. Receive TCF - Training Check
KS16112/4 9600/14400 bps FAX MODEM
- 61 -
transmit
no HDLC
raise RTS
1 ---> RTSB (7:7)
enable interrupt
1 ---> INTE2 (1E:5)
modem IRQ =
message TX IRQ
RETURN
message TX
IRQ
BDA2(1E:3)?
read data from
frame buffer
write to TX BUFF
data ---> DBFR (10:7-0)
RETURN
last
byte ?
YES
1
0
stop modem
more
frames ?
YES
read data from frame buffer
write to TX BUFF
data ---> DBFR (10:7-0)
modem IRQ = HDLC TX IRQ
enable int 1 ---> INTE2 (1E:5)
disable prog int 0 ---> PINTE (1F:4)
NO
switch to next frame
NO
end of one frame
harden_signal
program PINTE to interrupt
on CTSB (F:1) high
modem IRQ = CTSB IRQ
enable prog. int 1 ---> PINTE (1F:4)
RETURN
CTSB IRQ
disable prog. int
0 ---> PINTE (1F:4)
CTSB (F:1)
1
0
Figure 9. Transmit FAX message (NO HDLC)
KS16112/4 9600/14400 bps FAX MODEM
- 62 -
dummy read to start int
DBFR (10:7-0)
receive
no HDLC
drop RTS
0 ---> RTSB (7:7)
enable prog int
1 ---> PINTE(1F:4)
RETURN
TRUE
RETURN
FALSE
time out ?
signal recognition
detect high/low speed
high
speed
detected ?
NO
set time out error flag YES
LOW
error, received low
speed
program PINTE to interrupt
on DCDB (F:0) high
modem IRQ =
DCDB HIGH
stop modem
dummy read to start int
DBFR (10:7-0)
enable interrupt, 1 ---> INTE2 (1E:5)
enable prog int, 1 ---> PINTE(1F:4)
RETURN
TRUE
modem IRQ =
message RX IRQ
program PINTE to interrupt
on DCDB(F:0) low
DCDB HIGH
DCDB (F:0)
0
1
Figure 10. Receive FAX message (NO HDLC)
KS16112/4 9600/14400 bps FAX MODEM
- 63 -
message
RX IRQ
BDA2(1E:3) ?
write to frame buffer
read from RX BUFF
DBFR (10:7-0) <--- data
RETURN
1
0
DCDB (F:0) ?
1
0
error, carrier dropped
stop modem
1 frame
yet ?
end of one frame
harden_signal
NO
start new frame
YES
KS16112/4 9600/14400 bps FAX MODEM
- 64 -
Nominal Frequency ( 25 °C )
Frequency Tolerance ( 25 °C )
Operating Temperature
Storage Temperature
Temperature Stability ( 0 °C to 60 °C)
Calibration Mode
Shunt Capacitance
Load Capacitance
Drive Level ( at 20 nW )
Aging per Year
Oscillation Mode
Series Resistance
Maximum Frequency Variation
( 16.5pF or 19.5pF load capacitance )
24.00014 MHz
± 0.0015 %
0 °C to 60 °C
-55 °C to 85 °C
± 0.003 %
Parallel Resonant
7 pF ( max.)
18 ± 0.2 pF
2.5 mW ( max. )
0.0005 %
Fundamental
25 ( max.)
± 0.0035 %
Parameter Value
Table 9. KS16112 Crystal Specifications
KS16112/4 9600/14400 bps FAX MODEM
- 65 -
Table 10. KS16114 Fundamental Crystal Specifications
Parameter Value
Nominal Frequency ( 25 °C )
Frequency Tolerance ( 25 °C )
Operating Temperature
Storage Temperature
Temperature Stability ( 0 °C to 60 °C )
Calibration Mode
Shunt Capacitance
Series Capacitance:
at 12.7 MHz
at 38.00053 MHz
Series Inductance :
at 12.7 MHz
at 38.00053 MHz
38.000530 MHz
± 0.0015%
0 °C to 60 °C
-55 °C to 85 °C
± 0.003%
Parallel Resonant
7 pF ( max )
0.024 pF ( typ. )
0.0022 pF ( typ. )
6.58 mH ( typ. )
7.97 mH ( typ. )
Series Resistance:
at 12.7 MHz
at 38.00053 MHz
Load Capacitance
Drive Level
Aging Per Year
Oscillation Mode
Maximum Frequency Variation
( 16.5 pF or 19.5 pF load Capacitance
150 ( max. )
70 ( max. )
18 ± 0.2 pF
1.0 mW ( max. )
0.005% ( max. )
Fundamental
± 0.0035%
KS16112/4 9600/14400 bps FAX MODEM
- 66 -
Table 11. KS16114 Third Overtone Crystal Specifications
Parameter Value
Normal Frequency ( 25 °C )
Frequency Tolerance ( 25 °C )
Operating Temperature
Storage Temperature
Temperature Stability ( 0 °C to 60 °C )
Calibration Mode
Shunt Capacitance
Series Capacitance:
at 12.7 MHz
at 38.00053 MHz
Series Inductance:
at 12.7 MHz
at 38.00053 MHz
38.000530 MHz
± 0.0015%
0 °C to 60 °C
-55 °C to 85 °C
± 0.003%
Parallel Resonant
7 pF ( max )
0.024 pF ( typ. )
0.0022 pF ( typ. )
6.58 mH ( typ. )
7.97 mH ( typ. )
Series Resistance:
at 12.7 MHz
at 38.00053 MHz
Load Capacitance
Drive Level
Aging Per Year
Oscillation Mode
Maximum Frequency Variation
( 16.5 pF or 19.5 pF load Capacitance )
150 ( max. )
70 ( max. )
18 ± 0.2 pF
1.0 mW ( max. )
0.0005% ( max. )
Third Overtone
± 0.0035%
KS16112/4 9600/14400 bps FAX MODEM
- 67 -
MODEM CIRCUIT INTERFACE
The modem is packaged in a 68 - pin PLCC to be designed into OEM circuit boards. An example of a hard-
ware realization is shown in Figure 11. This figure also includes the circuitry needed to display the eye
pattern.
PR VDD
+ 5VD 86.6K 1%
1000PF 5%
0.33
RXA 1% -
+
1458
+ 12V
0.1 10K 1%
3.0K
POR
0.1
36.5K
1%
86.6K 1%
1000PF 5%
TXA 1458
-
+
34.8K 1% 0.1
0.1
- 12V
AUXIN 1K
1K
+ 5V 10K
- 12V 1.0
255 1/4W
0.1
1N4625D
+ 5V
3.0
+ 5VA 2.7M
0.1
0.33
10
25V
High Freq.
Alum. Elect.
Note :
1. All Resistors ± 5%, 1/8W unless noted
2. All capacitors µF, ± 20%, 50V unless noted
15 VDD
54
68
10
51
45
44
53
30
35
36
52
34
25
48
47
24
32
17
9
13
14
31
33
43
29
42
40
41
39
50
GNND2GNND2
GNND1
PORI
POROPORO
RXAI
AOUT
AGCIN
GNDA2
AES
AEE
GNDA1
TXAO
DAOUT
DAIN
ADOUT
ADIN
AUXAI
SYNCIN2
EN85
XCLKO
YCLKO
VBB
FOUT
FIN
RCVO
RCVI
CABL1
CABL2
VCC
RCI
22
38
SEPCLK
ECLKIN
SEPWCLK
SYNCIN1
SEPXO
SEPYO
RS4
RS3
RS2
RS1
RS0
D7
D6
D5
D4
D3
D2
D1
D0
WRITE( R/W )
IRQ
CS
Ø2READ- Ø2
RTS
CTS
TXDI
DCLK
RXDO
RLSD
XTALI XTALO
KS16112/4
21
49
23
26
67
1
2
3
4
55
56
57
58
59
60
61
62
63
64
65
66
7
18
19
20
27
28
V . 24 SERIAL
INTERFACE
74LS74
CLK CL O
74LS164
A
B
CLK
VDD
CLR
GND
LE
ADJ
REF IN
REF OUT
VOUT
SUM
ACOUP
OFFSET
NE5018
LE
ADJ.
REF IN
RET OUT
VOUT
SUM
OFFSET
ACOMP
NE5018
12
11
13
1
2
83 4 5 6 10111213
23 4 5 6 7 8 9
LSB MSB
10
12
13
14
A
B
CLK
VDD
CLR
GND
74LS164
3 4 5 6 10 11 12 13
97 865432
1
2
8
10
12
13
14
8
0.1
14
9
7
4.7K
0.1
16 17
MICRO-
PROCESSOR
INTERFACE
19 1 22
- 12V + 12V
0.1 0.1
18
20
15
21
100PF
22PF
2K
X - OUT
MSB
LSB
14
9
74.7K
+ 5VD
0.1
0.1 0.1
- 12V + 12V
16 17 19 1 22
0.01
18
20
15
21
100PF
22PF
2K
IN9148
Y - OUT
IN9148
Figure 11. Complete Modem Circuit and Eye Pattern Generator
46.4K
4.7K +5VD
+5VD
0.01
1800pF
11
15pF 5%
12
XTALI XTALO
Third Overtone Crystal
10uH
15pF 5%
38.000MHz(KS16114)
68pF 5%
11
18pF 5%
12
Fundamental Crystal
24.000MHZ(KS16112)
38.000MHz(KS16114)
39pF 5%
OPTIONAL EYE PATTERN CIRCUIT
KS16112/4 9600/14400 bps FAX MODEM
- 68 -
Package Dimension
25 15 ± 0.12
24.23 ± 0.10
#1 #68
24.23 ± 0.10
25 15 ± 0.12
23.37 ± 0.50
+0.20
4.32
-0.10
3.76 ± 0.12
+0.10
0.20
-0.05
+0.07
0.46
-0.12
+0.10
0.71
-0.05
1.27
0.1MAX
KS16112/4 9600/14400 bps FAX MODEM
- 69 -
Samsung Preliminary Fax Modem designers guide
Date: July, 1996
Revision: 1.0