1 introduction
Along with urban civilising and modernization step’s quickening, elevator’s service request is also getting higher and higher to the building, the people pursue the intellectualization, user-friendly to ride the ladder environment more and more. In the elevator pronunciation service aspect, is mainly the traditional manual service at present, namely informs the floor which as well as other related service information through the elevator manager the passenger must arrive. This article take the monolithic microcomputer and the ISD speech chip as a core, has designed one kind of elevator pronunciation service system, has realized the elevator pronunciation service intellectualization and the automation, adapts each kind to the service request quite high elevator.
2 component function introduction
Winbond Corporation’s ISD series speech chip used “the direct simulation quantity to save” the (DAST) patented technology, the signal does not need after D/A, A/D to transform, the digital compression and the speech synthesis and so on complex digital signal processing process, reduced the distortion, caused its sound storage effect to compare the beforehand product to have enhances largely, the actual audition subjective appraisal might achieve magnetic tape recorder’s level, was in the present market records and sends out one of effect best pronunciation electric circuits.
The ISD4004 speech chip uses the CMOS technology, the content crystal oscillator, against aliasing filter, the smoothing filter, from the sound of something astir chirp, the audio power amplifier and the high density multi-level twinkle memory exhibition and so on (see Figure 1), therefore only need the very few periphery component be possible to constitute a complete sound recording and sending out system. The chip design is based on all operations by the micro controller control, the operational order (SPI or Micwire) sends in through the serial communication connection. The sampling frequency may be 4.0kHz, 5.3kHz, 6.4kHz, the 8.0kHz frequency is lower, the recording and sending out time is longer, but the acoustic fidelity drops. The internal information saves in the twinkle memory, may preserve 100 years in the power failure situation (typical value) to record 100,000 times repeatedly. Component working voltage 3V, operating current 25~30mA, standby current 1uA, monolithic recording and sending out pronunciation time 8~16min, the acoustic fidelity is good, is suitable in moves in the telephone and other portable electronic products.

Figure 1 ISD4004 series speech chip interior diagram
2.1 pin descriptions
ISD4004 series chip pin chart as shown in Figure 2:

Figure 2 ISD4004 series chip pin chart (TSOP and PDIP, SOIC)
The synchronism analog input (ANA IN ) - this is records the signal the synchronism input end, inputs the amplifier available single end or the difference actuation. When single end input, the signal by the coupling capacity input, large scale for Feng Feng value 32mV, the coupling capacity and this end 3kΩ the input impedance has decided the chip frequency low end cut-off frequency. When difference actuation, the signal is largest scale for Feng Feng value 16mV.
When opposition analog input (ANA IN-) - difference actuation, this is records the signal the opposition input end. When signal through coupling capacity input, large scale for Feng Feng value 16mV, this end nominal input impedance for 56kΩ, single end actuation, this end through capacity ground. Under two ways, ANA IN and ANA in- end’s coupling capacitance value should be the same.
· the audio frequency output (AUD OUT) - provides the audio frequency output, may actuate 5Ω load.
· select patches or strips of land as worth saving for seed (SS)- this end to lowly, in being appointed to fill a vacancy ISD4004 series.
· serial input (MOSI)- this is the serial input end, the master-control unit should rise in the serial clock along it the first half cycle puts the data to this end, inputs for ISD.
when · the serial output (MISO)- serial out-port, ISD has not selected, this end assumes the high-impedance state.
· the serial clock (SCLK)-ISD clock input end, by the master-control unit production, uses in synchronized MOSI and the MISO data transmission. The data saves ISD in the SCLK rise along the lock, along emigrates ISD in the drop.
· interrupts (INT)- this end for the drain electrode opening output, ISD when any operation (including enters quickly) examines EOM or OVF, this end changes lowers and maintains. The interruptible state starts in the next SPI cycle to eliminate, interruptible state also available RINT instruction read.
· the good address clock (RAC)- drain electrode starts to output. Each RAC cycle expressed that the ISD memory’s operation carried on a line (in ISD4004 series memory to have 2400 lines). the 8kHz sampling frequency’s component, the RAC cycle is 200ms, 175ms maintains the high level, the low level is 25ms. Enters under quickly the pattern, RAC is the 218.75ms high level, 31.25ms is the low level, this end may use in the store management technology.
· external clock (XCLK)- this end has under the interior to pull the part, the chip internal sampling clock has corrected before leaving the plant, error in 1%, when not external connection clock, this end must earth.
· chirp (AM CAP) - 1μF the electric capacity constitutes an internal peak detection electric circuit’s part from the sound of something astir, examines the peak level does with the internal hypothesis’s threshold value compares, decision automatic silent chain’s work or not. When big signal the automatic silent chain does not weaken, when static sound weakens 6dB. At the same time, 1μF the electric capacity also affects when the automatic silent chain the signal scope’s speed of response, this termination VCCA forbids from the sound of something astir chirp.
2.2 SPI connections
ISD4004 work in the SPI serial interface. The SPI agreement is a synchronization serial data transmission agreement, the agreement supposes the micro controller’s SPI shift register in the SCLK drop along the movement. Therefore, speaking of ISD4004, rises in the clock along the lock saves the MOSI pin data, along delivers in the drop the data to the MISO pin. The agreement actual content is as follows:
(1) all serial data transmission starts in SS drops along;
(2) SS in transmission period must maintain for the low level, maintains for between two instructions the high level;
(3) data rises in the clock along moves, in drop along emigration;
(4) SS changes low, after input order and address, the ISD good talent starts to record and send out the operation;
(5) instruction format is 8 control codes adds 16 addresses;
(6) ISD any operation (including enters quickly), if meets EOM or OVF, then has an interrupt, this interruptible state when the next SPI cycle starts is eliminated;
(7) use “will read” the instruction to cause when the interruptible state will move the ISD MISO pin, the control and the address data also synchronization from the MOSI end move in;
(8) all operations set at 1:00 in movement position (RUN) starts, to set at 0:00 finished;
(9) all instructions carry in SS rise along to start to carry out.
OVF symbolized that instructed the ISD recording and sending out operation arrived at memory’s end. EOM symbolized that only examines the internal EOM symbol when the playback process, this condition position 1, as shown in Figure 3. SPI instruction-code as shown in Table 1.

Figure 3 SPI port’s control position
Table 1 SPI instruction list

The following has enumerated several kinds carries on when the operation to the ISD component the instruction order.
(1) information enters quickly. The user does not need to know that the accurate address, can enter quickly jumps over an information. The information enters quickly only uses in the playback pattern. The playing speed is normal 1600 times, after meeting EOM stops, the dummy home address counter adds 1, under the joining-up the strip information starts place.
(2) on electricity order. When component time delay TPUD(8kHz) sampling, after approximately 25ms, can start to operate. Therefore, after the user sends on the electricity instruction, must wait for TPUD, can issue an operational order. For example from 00 playback, should follow the following succession: Sends power the up order; Waits for on TPUD the electricity time delay); Sends the address value is 00 SETPLAY orders; Sends the PLAY order. The component will start the playback from 00 addresses, when will present EOM, will interrupt immediately, stops the playback. If from 00 sound recordings, according to the below succession: Sends power the up order; Waits for TPUD (on electricity time delay); Sends power the up order; Waits for 2 time of TPUD; Sends the address value is 00 SET the REC order; Sends the REC order. The component then starts from 00 addresses to record, when yizhi dao presents end of the OVF memory), the sound recording stops.
The SPI control register controls component’s each kind of function, like Table 2 arrange in order.
Table 2 SPI control register

Note: IAB sets at 0:00, records, puts the operation from a15A0 address start. For can record coherently, put to the following storage space, before the operation arrives at this line, should issue the second SPI instruction to set IAB 1, principle component on identical address recycle. This characteristic is very useful to the voice prompt function, the RAC foot and the IAB position may use in the information management.
2.3 forms of field orders and succession
8 and 24 forms of field orders like chart 4 and shown in Figure 5. The sound recording, the playback, stop succession as shown in Figure 6.

Figure 4 8 forms of field orders

Figure 5 24 forms of field orders

Figure 6 Sound recording, playback, stop succession
3 elevator phonetic system’s design
3.1 system principle electric circuits
This system is refers to installs in elevator’s playback electric circuit, does not contain the recording part. In the practical application, the content which needs to broadcast opposite party records in the speech chip (each yet higher goal to correspond beforehand a section of pronunciation service, according to floor from low to high smooth sound recording), when the elevator moves, this system then may realize the automatic pronunciation to disseminate news the service. Various floors signal draws out the proceed signal gathering system from the lift control kneading board, passes through the shielding system, enters the monolithic integrated circuit (as shown in Figure 8, isolates component to select TOSHIBA electro-optical coupling chip TLP521-4). The power unit introduces the 220V alternating current supply from the elevator interior, respectively provides 5V and the 3V voltage through the power source module and the voltage regulation module be the monolithic integrated circuit and the speech chip (as shown in Figure 9). The speech chip output’s tonic train signaling outputs through the power amplifier electric circuit to exterior. System gross structure as shown in Figure 7.

Figure 7 System overall structure drawing

Figure 8 Signal gathering electric circuit

Figure 9 Power circuit
3.2 monolithic integrated circuits and ISD chip interface circuits
This article discusses elevator phonetic system’s control and playback part mainly by at89C51 monolithic integrated circuit and ISD4004 speech chip constitution, the monolithic integrated circuit and speech chip’s connection design as shown in Figure 10:

Figure 10 ISD4004 and 89C51 interface circuit
May see from Figure 10, between the monolithic integrated circuit and the ISD4004 segment are few. P1.0 meets ISD4004 to select patches or strips of land as worth saving for seed pin /SS, controls ISD4004 whether to select; P1.1 meets ISD4004 the MOSI serial input pin, the speech chip from this pin read-in playback address; P1.2 meets ISD serial output pin MISO, the monolithic integrated circuit from this pin receive the signal which transmits from the speech chip; Monolithic integrated circuit AT89C51 P1.3 meets ISD4004 serial clock input end SCLK, takes ISD the clock input, uses in synchronized MOSI and the MISO data transmission; P1.4 meets ISD the chip interrupt pin /INT, receives the EOM signal which sends from the speech chip, obtained the pronunciation section conclusion information, controlled its playback or enters the operation quickly; ISD4004 tonic train signaling output pin AUDOUT outputs through a filter electric capacity to the exterior power amplifier.
This system is aims at disseminates news 20 buildings the situation designs, mainly took out three kind of signals the proceed signal gathering system from the lift control kneading board: The floor signal, the ascending-descending signal, closes the signal. And F1 to F20 is the floor signal, UP and DOWN respectively for upward and the downward signal, CLOSE are close the signal, these signals after isolation processing enters the monolithic integrated circuit.
4 software designs
According to the front analysis and the hardware schematic diagram, software part’s duty are mainly discover are going to carry on the pronunciation to disseminate news the service the floor and after finding the floor at the appropriate time carried on the playback.
4.1 software flows including the following step
(1) initialization, determines the current floor;
(2) scanning elevator kneading board, and quantification memory user selection all goal floor information;
(3) for memory goal floor data sorting;
(4) judges whether to have the effective goal floor information, if judgment result for otherwise, then returns step (2);
(5) if the step (4) judgment result for is, examines whether to have closes the signal, if test result for otherwise, then returns step (2);
(6) if in (5) examines the result for is, judges the elevator is upward or downward;
(7) preserved judgment states elevator recent goal floor;
(8) transfer chooses the sound broadcast subroutine;
(9) preservation broadcast the pronunciation the elevator recent goal floor was already the current floor.
4.2 softwares
Software flow chart as shown in Figure 11. Chooses the sound broadcast subroutine to see Figure 12.

Figure 11 System software flow chart

Figure 12 Chooses the sound broadcast subroutine flow chart
Speaking of ISD4004, because two secondary playback’s contents in the memory not necessarily are the neighboring two sections, therefore involves to the speech chip stage extraction pronunciation control, not only but simple playback operation. Regarding this kind of situation, if in knew that each pronunciation section first address in the situation, may use directly “transmits this section of first addresses and starts the playback from the current address” the order realizes, because in the actual recording process, the voice recording equipment not necessarily provides each pronunciation section the physical address (only to demonstrate corresponding generally tier number), therefore in withdraws in the pronunciation section question which the floor corresponds, must adopt other method, adopts the way which in here us the control speech chip enters quickly continuously to realize. Therefore, chooses the sound broadcast subroutine including the following step:
(1) enters the number of times counter quickly according to the elevator recent goal floor establishment;
(2) starts from the first address place to enter one time (this system building not to request pronunciation service) quickly;
(3) starts the order which to the speech chip transmission from the current pronunciation segmented address enters quickly;
(4) examines whether to arrive at the elevator recent goal floor’s pronunciation segmented address, otherwise if returns step (3);
(5) if the step (4) test result for is, then broadcast pronunciation.
This article gives with emphasis chooses the sound broadcast subroutine to be as follows:
FANGYIN:MOV 34H,33H
; Establishes 33H is the counter and does the current broadcast floor a backup
SETMC: CLR SS
MOV R1,#0E8H
; The transmission starts from the first address to enter the order quickly
MOV A, #00H
ACALL SEND
MOV A, #00H
ACALL SEND
MOV A, R1
ACALL SEND
SETB SS
SETMC1: CLR SS
MOV R1, #0F8H
; The transmission starts from the current address to enter the order quickly
MOV A, R1
ACALL SEND
ACALL DELAY125U
; Transfers 12.5 microsecond time delay subroutine
SETB SS
ACALL DELAY125U
JB INT,$
; A section entered the conclusion to receive the low level signal quickly
DJNZ 33H, SETMC1
; The judgment enters the number of times quickly whether to meet the requirements, is downward carries out
ACALL PLAY ; Transfer playback subroutine
MOV 33H,34H
; The preserved broadcast floor is the current floor
RET
PLAY: CLR SS
MOV R1,#0F0H
; The transmission starts the playback order from the current address
MOV A, R1
ACALL SEND
; The transfer transmission subroutine carries on the transmission
SETB SS
JB INT, $
; The playback ended receives the low level signal
RET
Because the length limits, the related subroutine has not given completely.
5 concluding remark
This article introduced the elevator phonetic system has been operational in some big hospital outpatient clinic building’s many elevators, the overall system work is stable, the power loss is small, volume adjustable, the output pronunciation is clear, the timbre was exquisite, has realized the elevator pronunciation service intellectualization and the automation, the user appraisal is good.