The EM78811 is an 8-bit CID (Call Identification) RISC type microprocessor with low power , high speed
CMOS technology. Integrated onto a single chip are on_chip watchdog (WDT) , RAM , ROM , programmable
real time clock /counter , internal interrupt , power down mode , LCD driver , FSK decoder , DTMF generator
and tri-state I/O . The EM78811 provides a single chip solution to design a CID of calling message_display .
FEATURES
CPU
• Operating voltage range : 2.5V~5.5V
• 16K X13 on chip ROM
• 2.8K X 8 on chip RAM
• Up to 32 bi-directional tri-state I/O ports
• 8 level stack for subroutine nesting
• 8-bit real time clock/counter (TCC)
• Two sets of 8 bit counters can be interrupt sources
• Selective signal sources and trigger edges , and with overflow interrupt
• Programmable free running on chip watchdog timer
• 99.9% single instruction cycle commands
• Three modes (internal clock 3.679MHz)
1. sleep mode : CPU and 3.679MHz clock turn off, 32.768KHz clock turn off
2. Idle mode : CPU and 3.679 MHz clock turn off, 32.768KHz clock turn on
3. Green mode : 3.679MHz clock turn off, CPU and 32.768KHz clock turn on
4. Normal mode : 3.679MHz clock turn on , CPU and 32.768KHz clock turn on
• Ring on voltage detector and low battery detector
• Input port wake up function
• 8 interrupt source , 4 external , 4 internal
• 100 QFP or chip
• Port key scan function
• Port interrupt, Pull high and Open drain functions
• Clock frequency 32.768KHz
• Main clock can switch to 1.84MHz by code option
EM78811
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
CID
• Operation Volltage 3.5 ~5.5V for FSK
• Operation Volltage 2.5 ~5.5V for DTMF
• Bell 202 , V.23 FSK demodulator
• DTMF generator
• Ring detector on chip
LCD
• LCD operation voltage chosen by software
• Common driver pins : 16
• Segment driver pins : 60
• 1/4 bias
• 1/8,1/16 duty
* This specification are subject to be changed without notice.
* This specification are subject to be changed without notice.
ROM
RAM
I/O PORT
INPUT PORT
LCD
LATCH
& DRIVER
I/O PORT
INPUT PORT
LCD
OUTPUT
10.12.1998
2
Page 3
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
Xin Xout
Oscillator/Timing
Control
sleep and
wake-up
on I/O ports
Control
WDT Timeout
R1(TCC)
CALLER ID
RAM
COM0˜COM7
SEG0˜SEG35
WDTTimer
Prescaler
RAM
R4
TCC
ROM
Interrupt
Controller
Instruction
register
Instruction
Decoder
DATA & CONTROLL BUS
LCD RAM
LCD Driver
RA
R2
IOC7
R7
Ring det
Carrier det
Data
/FSKPWR
R3
I/O
PORT
Stack
ALU
ACC
FSK
Decoder
P70˜P77
TIP
RING
RING DET1
RING TIME
IOC8
P80˜P87
SEG44˜SEG51
P90˜P97
SEG52˜SEG59
R8
IOC9
R9
I/O
PORT
8
I/O
PORT
9
* This specification are subject to be changed without notice.
IOC6
R6
RB
I/O
PORT
6
Row
Column
low battery
detect
DTMF
P60˜P67
COM8˜COM15
DTMF output
10.12.1998
3
Page 4
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
PIN DESCRIPTIONS
SymbolTypeFunction
VDD1,VDD2POWERdigital power
AVDDanalog power
VSS1,VSS2POWERdigital ground
AVSSanalog ground
XTinIInput pin for 32.768 kHz oscillator
XToutOOutput pin for 32.768 kHz oscillator
COM0..COM7O
COM8..COM15 O (PORT6)Common driver pins of LCD drivers
SEG0..SEG43Segment driver pins of LCD drivers
SEG44..SEG510 (PORT8)
SEG52..SEG59O (PORT9)PORT9 AS FUNCTION KEY CAN WAKE UP WATCHDOG.
PLLCIPhase loop lock capacitor, connect a capacitor 0.01µ to 0.047µ with AVSS.
TIPIShould be connected with TIP side of twisted pair lines
RINGIShould be connected with TIP side of twisted pair lines
RDET1..RDET 2 IDetect the energy on the twisted pair lines.These two pins coupled to the twisted pair
lines through an attenuating network.
/RING TIMEIDetermine if the incoming ring is valid. An RC network may be connected to the pin.
INT0PORT7(0)PORT7(0)~PORT7(3) signal can be interrupt signals.
INT1PORT7(1)
INT2PORT7(2)
INT3PORT7(3)
PORT7(4:7)IO port
P7.0~P7.7PORT7PORT 7 can INPUT or OUTPUT port each bit.
Internal Pull high function.
Key scan function. Bit6,7 has open drain function
P6.0~P6.7PORT6PORT6 can be INPUT or OUTPUT port each bit.
And shared with common signal.
P8.0~P8.7PORT8PORT 8 can be INPUT or OUTPUT port each bit.
And shared with Segment signal.
P9.0~P9.7PORT9PORT 9 can be INPUT or OUTPUT port each bit.
And can be set to wake up watch dog timer.
And shared with Segment signal.
TESTITest pin into test mode , normal low
DTMFODTMF tone output
RESETI
FUNCTION DESCRIPTION
Operational Registers
R0 (Indirect Addressing Register)
* R0 is not a physically implemented register. It is useful as indirect addressing pointer. Any instruction using
R0 as register actually accesses data pointed by the RAM Select Register (R4).
R1 (TCC)
* Increased by an external signal edge applied to TCC , or by the instruction cycle clock Written and read by
the program as any other register.
* This specification are subject to be changed without notice.
10.12.1998
4
Page 5
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
R2 (Program Counter)
* The structure is depicted in Fig. 4.
* Generates 16Kx13 ( 14 on-chip ROM addresses to the relative programming instruction codes.
* "JMP" instruction allows the direct loading of the low 10 program counter bits.
* "CALL" instruction loads the low 10 bits of the PC, PC+1, and then push into the stack.
* "RET'' ("RETL k", "RETI") instruction loads the program counter with the contents at the top of stack.
* "MOV R2,A" allows the loading of an address from the A register to the PC, and the ninth and tenth bits
are cleared to "0''.
* "ADD R2,A" allows a relative address be added to the current PC, and contents of the ninth and tenth bits
are cleared to "0''.
* "TBL" allows a relative address be added to the current PC, and contents of the ninth and tenth bits don't
change. The most significant bit (A10~A13) will be loaded with the content of bit PS0~PS3 in the status
register (R5) upon the execution of a "JMP'', "CALL'', "ADD R2,A'', or "MOV R2,A'' instruction.
CALL
PC
A13 A12 A11 A10
A9 A8
A7~A0
RET
RETL
RETI
Stack 1
Stack 2
Stack 3
Stack 4
Stack 5
1000
2000
Page 8
0000
0000
Page 0
Stack 6
Stack 7
1001
23FF
2400
Page 9
0001
03FF
0400
Page 1
Stack 8
1010
1011
1100
1101
1110
1111
27FF
2800
2CFF
2D00
2FFF
3000
33FF
3400
37FF
3800
3CFF
3D00
3FFF
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
0010
0011
0100
0101
0110
0111
07FF
0800
0CFF
0D00
0FFF
1000
13FF
1400
1CFF
1D00
1FFF
Fig.4 Program counter organization
17FF
1800
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
* This specification are subject to be changed without notice.
• User can use PAGE instruction to change page. To maintain program page by user. Otherwise, user can use
far jump (FJMP) or far call (FCALL) instructions to program user's code. And the program page is maintained
by EMC's complier. It will change user's program by inserting instructions within program.
• Bit2(Read Only)(FSK demodulator output signal)
Fsk data transmitted in a baud rate 1200 Hz. Data from FSK demodulator when /CD is Low.
• Bit3(read/write)(FSK block power up signal)
1/0 : FSK demodulator block power up/FSK demodulator power down
The relation between Bit0 to Bit3 is shown in Fig.6.
* This specification are subject to be changed without notice.
10.12.1998
7
Page 8
/RD and /CD ='1'
/RINGTIME='0'
or EXTERNAL KEYS
PRESSEDsleep mode
/RD and /CD ='1' and
nothing to do for 30
sec , /FSKPWR='0'
/FSKPWR='1'
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
SLEEP MODE
Begin
set /FSKPWR='0'
/RINGTIME ='0'
No
or external keys
pressed
Yes
WAKE UP MODE
8-bit wake up andÁ
wake up
mode
set /FSKPWR='1'
accept data from
FSK decoder
FSK decoder
begin its work
STATE Diagram between 8-bit
and FSK decoder
DATA transfer
DATA transfer
to Micro
/RD and /CD ='1'
Yes
data end and 30
sec nothing to do.
Flow Diagram between 8-bit
and FSK decoder
No
Fig6. The relation between Bit0 to Bit3.
• Bit4(Read Only)(Low battery signal)
0/1 = Battery voltage is low/Normal . If the battery voltage is under 3.6V then sends a ‘0’ signal to RA register
bit4 or sends a '1' signal to this bit.
• Bit5(read/Write)(Low battery detect enable)
0/1 = low battery detect DISABLE/ENABLE. The relation between /LPD,/POVD and /LOW_BAT can see
Fig7.
Vdd
s2
1 on
0 off
1 on
Vref
+
-
/POVD
/LPD
to Low bat
1 on
To reset
s2
1 on
0 off
Fig7. The relation between /LPD,/POVD
• Bit6(read/write)(PLL enable signal)
0/1=DISABLE/ENABLE, The relation between 32.768K and 3.679M can see Fig8.
PLL
32.768K
3.679M
/358E
Fig8. The relation between 32.768K and 3.58K .
* This specification are subject to be changed without notice.
1
switch
0
/LPD
To system clock
10.12.1998
8
Page 9
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
• Bit7 IDLE : Sleep mode selection bit
0/1=sleep mode/IDLE mode. This bit will decide SLEP instruction which mode to go.
These two modes can be waken up by TCC clock or Watch Dog or PORT9 and run from "SLEP" next
instruction.
Disable (turn off LCD)11/81/4
01Blanking::
11LCD display enable::
• Bit3 (/WURING, RING Wake Up Enable): used to enable the wake-up function of /RINGTIME input pin.
(1/0=enable/disable)
• Bit4 (/WUP9L, PORT9 low nibble Wake Up Enable): used to enable the wake-up function of low nibble in
PORT9.(1/0=enable/disable)
• Bit5 (/WUP9H, PORT9 high nibble Wake Up Enable): used to enable the wake-up function of high nibble
in PORT9.(1/0=enable/disable)
• Bit6 (/WDTE,Watch Dog Timer Enable)
Control bit used to enable Watchdog timer.
(1/0=enable/disable)
The relation between Bit3 to Bit6 can see the diagram 9.
• Bit7 unused
/WURING
/RINGTIME
/WUP9L
PORT9(3:0)
/WUP9H
PORT9(7:4)
/WDTE
/WDTEN 1/0=enable/disable
fig.9 Wake up function and control signal
RF (Interrupt Status Register)
76543210
INT3FSKDATAC8_2C8_1INT2INT1INT0TCIF
*“1” means interrupt request, “0” means non-interrupt
* Bit 0 (TCIF) TCC timer overflow interrupt flag. Set when TCC timer overflows.
* Bit 1 (INT0) external INT0 pin interrupt flag .
* Bit 2 (INT1) external INT1 pin interrupt flag .
* Bit 3 (INT2) external INT2 pin interrupt flag .
* Bit 4 (C8_1) internal 8 bit counter interrupt flag .
* Bit 5 (C8_2) internal 8 bit counter interrupt flag .
* Bit 6 (FSKDATA) FSK data interrupt flag.
* Bit 7 (INT3) external INT3 pin interrupt flag.
* High to low edge trigger , Refer to the Interrupt subsection.
* IOCF is the interrupt mask register. User can read and clear.
R10~R3F (General Purpose Register)
• R10~R3F (Banks 0~3) all are general purpose registers.
* This specification are subject to be changed without notice.
10.12.1998
10
Page 11
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
Special Purpose Registers
A (Accumulator)
• Internal data transfer, or instruction operand holding
• It’s not an addressable register.
CONT (Control Register)
76543210
--TSPABPSR2PSR1PSR0
Bit 0 (PSR0) ~ Bit 2 (PSR2) TCC/WDT prescaler bits.
* This specification are subject to be changed without notice.
10.12.1998
12
Page 13
EM78811
VDD
V1
V2
V3
V4
VLCD
GND
VDD
V1
V2
V3
V4
VLCD
GND
30µs
seg
com2
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
IOCE (Bias,PLL Control Register)
PAGE0 :
76543210
P9SHP9SLP6SBias3Bias2Bias1PHRSC
• Bit 0 : SC(SCAN KEY signal) 0/1=disable/enable. once you enablethis bit, all of the LCD signal will have
a low pulse during a common period. This pulse has 30µs width. Please use the procedure to implement the
key scan function.
a. set port7 as input port.
b. set IOCD page0 port7 pull high.
c. enable scan key signal. And enable interruption.
d. Once push a key. Set RA(6)=1 and switch to normal mode.
e. Blank LCD. Disable scan key signal.
f. Set P6S=0. Port6 sent probe signal to port7 nd read port7. Get the key.
g. Note!! A probe signal should be delay a instruction at least to another probe signal.
h. Set P6S=1. Port6 as LCD signal. Enable LCD.
P63
KEY5
KEY1
KEY2
P62
KEY3
P61
KEY4
P60
P73P72P71P70
Fig10. Key scan circuit
Fig11. Key scan signal
* This specification are subject to be changed without notice.
10.12.1998
13
Page 14
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
• Bit 1 :PORT7 PULL HIGH register option. Please use defaut value.
• Bit 2~4 (Bias1~Bias3) Control bits used to choose LCD operation voltage.
There is an 8-bit counter available as prescaler for the TCC or WDT. The prescaler is available for the TCC only
or WDT only at the same time.
• An 8 bit counter is available for TCC or WDT determined by the status of the bit 3 (PAB) of the CONT register.
• See the prescaler ratio in CONT register.
• Fig. 12 depicts the circuit diagram of TCC/WDT.
• Both TCC and prescaler will be cleared by instructions which write to TCC each time.
• The prescaler will be cleared by the WDTC and SLEP instructions, when assigned to WDT mode.
• The prescaler will not be cleared by the SLEP instruction, when assigned to TCC mode.
* This specification are subject to be changed without notice.
10.12.1998
14
Page 15
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
TCC
(16.38KHz CLK)
CLK(=Fosc/2)
TE
WDT
WDTE
0
M
1
U
X
TS
0
1
M
U
X
PAB
1
0
M
U
X
PAB
8-bit Counter
8-to-1 MUX
WDT timeout
SYNC
2 cycle
MUX
Fig. 12 Block diagram of TCC WDT
Data Bus
TCC(R1)
TCC overflow interrupt
PSR0~PSR2
PAB
I/O Ports
The I/O registers, Port 6 ~ Port 9, are bi-directional tri-state I/O ports. Port 7 can be pulled-high internally by
software control. The I/O ports can be defined as “input” or “output” pins by the I/O control registers (IOC6 ~
IOC9 ) under program control. The I/O registers and I/O control registers are both readable and writable. The
I/O interface circuit is shown in Fig.13. Port 7 bit6 and bit7 can be open drain.
PCRD
PR
D
Q
PORT
CLK
Q
CL
PR
Q
CLK
Q
CL
0
M
U
1
X
PCWR
D
PDWR
PDRD
IOD
Fig. 13 The circuit of I/O port and I/O control register
* This specification are subject to be changed without notice.
10.12.1998
15
Page 16
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
RESET and Wake-up
The RESET can be caused by
(1) Power on reset, or Voltage detector
(2) WDT timeout. (if enabled and in GREEN or NORMAL mode)
Note that only Power on reset, or only Voltage detector in Case(1) is enabled in the system by CODE Option bit.
If Voltage detector is disabled, Power on reset is selected in Case (1). Refer to Fig. 14
V
DD
Oscillator
DQ
CLK
CLR
CLK
.
Option
WDTE
Code
Power-on
Reset
Voltage
Detector
/Enable
1
0
WDT
M
U
X
18 ms
RESET
Fig. 14 Block diagram of Reset of controller
Once the RESET occurs, the following functions are performed.
• The oscillator is running, or will be started.
• The Program Counter (R2) is set to all “0”.
• When power on, the upper 3 bits of R3 and the upper 2 bits of R4 are cleared.
* This specification are subject to be changed without notice.
10.12.1998
16
Page 17
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
RA(7)=0 SLEEP mode
RA(7,6)SleepIDLEGreenNormal
0 0+SLEEP1 0+SLEEPx 0 No Slepx 1 No slep
TCCxWakeupintint
+int
+Next ins
WDTRESETwakeupRESETRESET
Next ins
Port 9RESETwakeupRESETRESET
wakeupNext ins
X: No function
The controller can be awakened from SLEEP mode or IDLE mode (execution of “SLEP” instruction, named as
SLEEP MODE or IDLE mode controllered by RA bit 7) by (1) TCC time out (2)WDT time-out (if enabled) or,
(3) external input at PORT9 (4) RINGTIME pin. The four cases will cause the controller wake up and run from
next instruction in IDLE mode, reset in SLEEP mode. After wakeup, user should control WATCH DOG in case
of reset in GREEN mode or NORMAL mode. The last three should be open RE register before into SLEEP mode
or IDLE mode. The first one case should set a flag in IOCF bit0. After time-out, it will go to address 0x08, then
return to next instruction.
Interrupt
The CALLER ID IC has internal interrupts which are falling edge triggered, as followed : TCC timer overflow
interrupt (internal) , two 8-bit counters overflow interrupt .
If these interrupt sources change signal from high to low , then RF register will generate ‘1’ flag to corresponding
register if you enable IOCF register.
RF is the interrupt status register which records the interrupt request in flag bit. IOCF is the interrupt mask
register. Global interrupt is enabled by ENI instruction and is disabled by DISI instruction. When one of the
interrupts (when enabled) generated, will cause the next instruction to be fetched from address 008H. Once in
the interrupt service routine the source of the interrupt can be determined by polling the flag bits in the RF register.
The interrupt flag bit must be cleared in software before leaving the interrupt service routine and enabling
interrupts to avoid recursive interrupts.
There are four external interrupt pins including INT0 , INT1 , INT2 , INT3 . The INT0 to INT3 sent to the different
interrupt flag . And three internal counter interrupt available.
External interrupt INT0 , INT1 , INT2 , INT3 signals are from PORT7 bit0 to bit3 . If IOCF is enable then these
signal will cause interrupt , or these signals will be treated as general input data .
After resetting, the next instruction will be fetched from address 000H, and the software interrupt is 001H and
the hardware interrupt is 008H.
TCC will go to address 0x08 in GREEN mode or NORMAL mode after time out. And it will run next instruction
from "SLEP" instruction. These two cases will set a RF flag.
* This specification are subject to be changed without notice.
10.12.1998
17
Page 18
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
Instruction Set
(1). Every bit of any register can be set, cleared, or tested directly.
(2). The I/O register can be regarded as general register. That is, the same instruction can operates on I/O
register.
The symbol “R” represents a register designator which specifies which one of the 64 registers (including
operational registers and general purpose registers) is to be utilized by the instruction. Bits 6 and 7 in R4
determine the selected register bank. “b’’ represents a bit field designator which selects the number of the bit,
located in the register “R’’, affected by the operation. “k’’ represents an 8 or 10-bit constant or literal value.
The CALLER ID IC has one CODE option register which is not part of the normal program memory. The option
bits cannot be accessed during normal program execution.
76543210
------/POVDMCLK
Bit 0 : main clock selection, 0/1=3.68MHz/1.84MHz
Bit 1 ( /POVD ) : Power on voltage detector.
0 : enable
1 : disable
* This specification are subject to be changed without notice.
10.12.1998
19
Page 20
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
/POVD2.2V resetpower on3.6V detect no 3.6V detect controlsleep mode
resetresetby RA(5)current
1noyesyesyes1µA
0yesyesyesyes20µA
Bit 2~7 : unused, must be "0"s.
EM78811
* This specification are subject to be changed without notice.
10.12.1998
20
Page 21
FSK FUNCTION
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
Tip
Ring
Ring det1
/Ring Time
Ring
Det
Circuit
Band Pass
Filter
OSC in
OSC out
FSK
demodul
Power
Up
Data Valid
Energy Det
Circuit
/FSKPWR
CLOCK
DATA OUT
/CD
/RD
Fig15. FSK Block Diagram
Function Descriptions
The CALLER ID IC is a CMOS device designed to support the Caller Number Deliver feature which is offered
by the Regional Bell Operating Companies.The FSK block comprises two paths: the signal path and the ring
indicator path. The signal path consist of an input differential buffer,a band pass filter, an FSK demodulator and
a data valid with carrier detect circuit. The ring detector path includes a clock generator, a ring detect circuit and
a power-up logic circuit.
In a typical application, the ring detector maintains the line continously while all other functios of the chip are
inhibited. If a ring signal is sent, the /RINGTIME pin will has a low signal. User can use this signal to wake up
whole chip or read /RD signal from RA register.
A /FSKPWR input is provided to active the block regardless of the presence of a power ring signal. If /FSKPWR
is sent low, the FSK block will power down whenever it detects a valid ring signal, it will power on when
/FSKPWR is high.
The input buffer accepts a differential AC coupled input signal through the TIP and RING input and feeds this
signal to a band pass filter. Once the signal is filtered, the FSK demodulator decodes the information and sends
it to a post filter. The output data is then made available at DATA OUT pin. This data, as sent by the central office,
includes the header information (alternate “1” and “0”) and 150 ms of marking which precedes the date , time
and calling number. If no data is present, the DATA OUT pin is held in a high state. This is accomplished by an
carrier detect circuit which determines if the in-band energy is high enough. If the incoming signal is valid and
thus the demodulated data is transferred to DATA OUT pin . If it is not, then the FSK demodulator is blocked.
* This specification are subject to be changed without notice.
10.12.1998
21
Page 22
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
Ring detect circuit
When Vdd is applied to the circuit, the RC netwiok will charge cap C1 to Vdd holding/RING TIME off. The
resistor network R2 to R3 attenuates the incoming power ring applied to the top of R2. The values given have
been chosen to provide a sufficient voltage at DET1 pin, to turn on the Schmitt trigger input. When Vt+ of the
Schmitt is exceeded, cap C1 will discharge.
The value of R1 and C1 must be chosen to hold the /RING TIME pin voltage below the Vt+ of the Schmitt
between the individual cycle of the power ring With /RINGTIME enabled, this signal will be a /RD signal in
RA throught a buffer.
/Ring Time
/Ring Time
Vdd
R1
C1
/RD
det1
R2
R3
Fig16. Ring detect circuit
DTMF ( Dual Tone Multi Frequency ) Tone Generator
Built-in DTMF generator can generate dialing tone signals for telephone of dialing tone type. There are two kinds
of DTMF tone . One is the group of row frequency, the other is the group of column frequency, each group has
4 kinds of frequency , user can get 16 kinds of DTMF frequency totally. DTMF generator contains a row
frequency sine wave generator for generating the DTMF signal which selected by low order 4 bits of RB and a
column frequency sine wave generator for generating the DTMF signal which selected by high order 4 bits
of RB. This block can generate single tone by filling one bit zero to this register.
If all the values are high , the power of DTMF will turn off until one or two low values.
Either high or low 4 bits must be set by an effective value, otherwise, if any ineffective value or both 4 bits are
load effective value, tone output will be disable. Recommend value refer to table as follow please :
* This specification are subject to be changed without notice.
10.12.1998
22
Page 23
SYSTEM CLOCK
Low frequency generator
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
ROW
Register
COLUMN
Register
DTMF low-freq
selection
DTMF high-freq
selection
High frequency generator
Sine wave
generator
Sine wave
generator
Adder
DTMF tone
output
Fig17. DTMF Block Diagram
RB ( DTMF Register )
• Bit 0 - Bit 3 are row-frequency tone.
• Bit 4 - Bit 7 are column-frequency tone.
• Initial RB is equal to HIGH.
• Except below values of RB ,the other values of RB are not effect. If RB is set by ineffective value, the DTMF
output will be disable and there is no tone output.
• Bit 7 ~ 0 are all “1” , turn off DTMF power .
bit 3~0Row freqXin=3.58MHz
1110699.2Hz123A
1101771.6Hz456B
1011854Hz789C
0111940.1Hz*0#D
Column freq1203Hz1331.8Hz1472Hz1645.2Hz
bit 7~41110110110110111
LCD Driver
The CALLER ID IC can drive LCD directly and has 60 segments and 16 commons that can drive 60*16 dots
totally. LCD block is made up of LCD driver , display RAM, segment output pins , common output pins and LCD
operating power supply pins.
Duty , bias , the number of segment , the number of common and frame frequency are determined by LCD mode
register . LCD control register.
The basic structure contains a timing control which uses the basic frequency 32.768KHz to generate the proper
timing for different duty and display access. RE register is a command register for LCD driver, the LCD display(
disable, enable, blanking) is controlled by LCD_C and the driving duty and bias is decided by LCD_M and the
display data is stored in data RAM which address and data access controlled by registers RC and RD.
* This specification are subject to be changed without notice.
10.12.1998
23
Page 24
32.768KHz
LCD timing control
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
RC(address)
RD(data)
RAM
RE(LCD_C,LCD_M)
Bias control
Vdd-Vlcd
LCD duty control
LCD commom control
COM
Display data control
LCD SEGMENT control
SEG
Fig18. LCD DRIVER CONTROL
LCD Driver Control
RE(LCD Driver Control)(initial state “00000000”)
76543210
-----LCD_C2LCD_C1LCD_M
• Bit0 (LCD_M):LCD_M decides the methods, including duty, bias, and frame frequency.
• Bit1~Bit2 (LCD_C#):LCD_C# decides the LCD display enable or blanking.
change the display duty must set the LCD_C to “00”.
* This specification are subject to be changed without notice.
10.12.1998
24
Page 25
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
• IOCB(LCD Display RAM address)
7654321 0
-LCD6LCD5LCD4LCD3LCD2LCDA1LCD0
Bit 0 ~ Bit 6 select LCD Display RAM address up to 120.
LCD RAM can be write whether in enable or disable condition and read only in disable condition.
• IOCC(LCD Display data) : Bit 0 ~ Bit 8 are LCD data.
LCD COM and SEG signal
• COM signal : The number of COM pins varies according to the duty cycle used, as following: in 1/8 duty
mode COM8 ~ COM15 must be open. in 1/16 duty mode COM0 ~ COM15 pins must be used.
• SEG signal: The 60 segment signal pins are connected to the corresponding display RAM address 00h to 3Bh.
The high byte and the low byte bit7 down to bit0 are correlated to COM15 to COM0 respectively .
When a bit of display RAM is 1, a select signal is sent to the corresponding segment pin, and when the bit
is 0 , a non-select signal is sent to the corresponding segment pin.
• COM, SEG and Select/Non-select signal is shown as following:
* This specification are subject to be changed without notice.
10.12.1998
25
Page 26
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
frame
com0
com1
com2
seg
seg
com0 ... com7
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
dark
VDD
V1
V2
V3
VLCD
light
Fig.19 Lcd wave 1/4 bias , 1/8 duty
* This specification are subject to be changed without notice.
10.12.1998
26
Page 27
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
frame
com0
com1
com2
seg
seg
com0 ... com15
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
VDD
V1
V2
V3
VLCD
dark
VDD
V1
V2
V3
VLCD
light
Fig.20 Lcd wave 1/4 bias , 1/16 duty
* This specification are subject to be changed without notice.
10.12.1998
27
Page 28
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
LCD Bias control
IOCE (Bias Control Register)
76543210
Bias3Bias2Bias1
• Bit 2~4 (Bias1~Bias3) Control bits used to choose LCD operation voltage .
Bias3 Bias2 Bias1LCD operate voltageVop (VDD 5V)
0000.60 V
0010.66 V
0100.74 V
0110.82 V
1000.87 V
1010.93 V
1100.96 V
1111.00 V
DD
DD
DD
DD
DD
DD
DD
DD
3.0V
3.3V
3.7V
4.0V
4.4V
4.7V
4.8V
5.00V
EM78811
• Bit 5~7 unused
Vdd
Vss
Vop=Vdd-Vlcd
Vop
Bias3˜1
Fig.19 LCD bias circuit
MUX
R=1K
R
V1
R
V2
R
V3
R
Vlcd
:
000
001
010
011
100
101
110
111
8.2R
0.4R
0.4R
0.3R
0.3R
0.2R
0.1R
0.1R
Vop=Vdd-Vlcd
R=1K
* This specification are subject to be changed without notice.
10.12.1998
28
Page 29
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
ABSOLUTE MAXIMUM RATINGS
ItemsSym.ConditionRatingUnit
EM78811
Temperature under biasV
Input voltageV
Operating temperature rangeT
DC ELECTRICAL CHARACTERISTICS (T
(V
=2.5V to 5.5V for CPU ; VDD=3.5V to 5.5V for FSK ; VDD=2.5V to 5.5V for DTMF)
DD
A
DD
IN
= 0°C~70°C, V
A
-0.3 to 6V
- 0.5 to VDD+ 0.5V
0 to 70°C
= 5V±5%; VSS = 0V)
DD
Parameter Sym.ConditionMin.Typ.Max.Unit
V
Input Leakage CurrentI
IL1
= VDD, V
IN
SS
for input pins
Input Leakage CurrentI
IL2
VIN = V
DD
, V
SS
for bi-directional pins
Input High VoltageV
Input Low voltageV
Input High ThresholdV
IH
IL
RESET, TCC, RDET12.0V
IHT
2.5V
Voltage
Input Low ThresholdV
RESET, TCC, RDET10.8V
ILT
Voltage
Clock Input High Voltage V
Clock Input Low VoltageV
Output High VoltageV
( VDD = 5.0V ± 5%, VSS = 0V TA = operating temperature range, unless otherwise note )
ParameterSym.Min.Typ.Max. Unit
OSC start up(32.768KHz)Tosc—400
(3.679MHz PLL)10
Carrier detect lowTcdl—1014ms
Data out to Carrier det lowTdoc—1020ns
Power up to FSK(setup time) PS(1)Tsup—1520ms
/RD low to Ringtime lowTrd10ms
End of FSK to Carrier Detect highTcdh8——ms
PS (1) : Please watch out the setup time.
ms
* This specification are subject to be changed without notice.
10.12.1998
30
Page 31
TIMING DIAGRAMS
AC Test Input/Output Waveform
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
2.4
2.0
0.8
0.45
2.0
0.8
AC Testing : Input are driven at 2.4V for logic "1", and 0.45V for logic "0". Timing
measurements are made at 2.0V for logic "1", and 0.8V for logic "0".
RESET Timing
NOP
Instruction 1
Executed
TCC Input Timing
CLK
TCC
Tdrh
Tins
Ttcc
Fig.20 AC timing
* This specification are subject to be changed without notice.
10.12.1998
31
Page 32
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
TIP/RING
/RING TIME
/RD
/CD
DATA
OSC
POWER
Trd
FIRST RING
2 SECONDS
Tosc
3.68 MHz
0.5 SEC
Tpd
Tcdl
Tdoc
DATA
Tsup
0.5 SEC
Tcdh
Fig.23 FSK Power Down Mode Timing Diagram
SECOND RING
2 SECONDS
* This specification are subject to be changed without notice.
10.12.1998
32
Page 33
APPLICATION CIRCUIT
1000p
250V
0.1u
250V
0.1u
250V
1000p
250V
TIP
RING
ZNR
250V
FUSE
To Phone
40044004
40044004
470k
30k
30k
30k
EM78811
8-BIT MICRO-CONTROLLER FOR TELECOM PRODUCT
POWER
0.1uF
270k
0.22u
Vdd
TIP
RING
DET1
/RINGTIME
AVSS
TEST
VSS2
VDD1
VDD2
AVDD
K1
K2
K3
K4
DIAL
PLLC
Xin
Xout
100
0.1uF
/PULSE
MUTE
TONE
/HKS
10n
32.768K
Vdd
100K
AVSS
C1
C2
LCD DISPLAY
Fig.24 Application Circuit
* This specification are subject to be changed without notice.
10.12.1998
33
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.