Abstract: Gets off work after the most stores the unattended situation, uses AT89LV51 the Flash monolithic integrated circuit and the new MODEM correspondence chip and the pronunciation electric circuit, realizes the store unattended auto-alarm and the inquiry.
Key word: AT89LV51 SSI73K222AL ISD33060 interrupt warning
Introduction
After many stores get off work unattended, when has the robber police,
the fire-alarm occur, the people hoped that the store can the auto-alarm, simultaneously be able to use the telephone to further inquire, to verify dwellings and so on police sentiment. This article uses AT89LV51 the Flash monolithic integrated circuit, coordinated the new MODEM correspondence chip and the pronunciation electric circuit, the success has realized the store unattended auto-alarm and the inquiry function.
1 main chip synopsis
1.1 AT89LV51 Flash monolithic integrated circuit
AT89LV51 is Atmel Corporation produces compatibly has the Flash memory’s monolithic integrated circuit with the MCS-51 series, the main feature is: Can in the 2.7~6V low voltage scope work; 4K byte programmable Flash EEPROM, third-level program memory security; 128 byte internal RAM; 32 programmable I/O lead wires, 2 16 timer/counters, 6 interrupt sources, 1 full-duplex serial port and so on; The pin and MCS-51 are completely compatible.
1.2 MODEM correspondence chip
SS173K222AL is one kind of high integration rate monolithic integrated circuit which TDK Corporation produces programs the MODEM chip, pin as shown in Figure 1.
This chip easy monolithic integrated circuit control; May the serial transmission data; Standard is compatible with CCITT the V.22, V.21, BELL212A,103; Has the call proceeding, the carrier, the reply sound, long to wind the examination function; Can produce the DTMF signal through the programming and so on. The SSI73K222AL chip interior has 8 register CR0 which, CR1, DR, TR:CR0 4 use in monitoring to use in controlling the telephone channel data transmission the way, CR1 uses in controlling connection between the chip internal behavior and monolithic integrated circuit’s, DR uses in monitoring MODEM the active status, TR uses in controlling the tonic train signaling the production. May produce the DTMF signal, the reply news number to its programming. 4 register everybody’s meaning like table 1 arranges in order.
Table 1 SS173K22 2A interior register each meaning
| Name | Address | Number According to Position | |||||||
| AD2AD0 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | |
| CR | 000 | Modulation choice | 0 | The establishment transmission pattern 1100 express the FSK pattern | Transmission permission | Reply/initial sending | |||
| CR | 001 | Data transmit mode | Interrupt permission | Bypass code | Clock controlling | Replacement operation | Pattern test, 00 Expresses normally |
||
| DR | 010 | Has not used | Has not used | Receive data | The decoding symbolized | Carrier detect | Reply sound | Call proceeding | Long link examination |
| TR | 011 | RXD control | Sends the defense sound | Sends the reply sound | Sends the DTMF sound | Corresponds the 116DTMF signal, for example: 0001=1,0010=2 and so on. | |||
1.3 ISD33060 speech chip
ISD33060 is ISD Corporation’s third generation 3V monolithic pronunciation IC, pin as shown in Figure 2.
This chip total storage time reaches 60s; Uses SPI with the exterior microprocessor’s connection (Serial Peripheral Interface) the serial peripheral device connection or MSI (Microwire Serial Interface) the micro transmission line serial interface, has realized the main engine to the speech chip nimble control and the addressing, reduced the connection lead wire number, enhanced the use flexibility; Records the playback time to be possible to carry on the partition willfully through the control command, each section of shortest lengths are 150ms.
When uses the SPI connection agreement, mainly uses to 5 pilot wires:
the *1 foot (SS) - the chip select input end, the low level is effective;
*2 foot (MOS1) - serial data input end, ISD chip from this foot receive from monolithic integrated circuit’s control command data;
the *3 foot (MISO) - the serial data out-port, the monolithic integrated circuit obtains ISD from this foot the returns data;
the *28 foot (SCLK) - the SPI connection serial clock input, uses in the synchro data the transmission;
*25 foot (INT) -, when pronunciation playbacking finished or recorded the playback overflow, changes the low level, when the next SPI cycle started, this signal is eliminated and returns the high level.
Figure 3 auto-alarm and inquiry circuit diagram
2 hardware circuit design
Hardware line principle as shown in Figure 3. This system’s function mainly has:
* carries on the state, the robber sentiment automatic long-distance pronunciation warning using the telephone channel and monolithic integrated circuit’s look-at-me function;
* may dial many numbers, circulates many times to each number the digit dialing, until dialing;
* is equipped with the fire-alarm, the robber police to have the symbol, depending on password available telephone inquiry, checking warning situation;
* may the scene or eliminates the warning mark using the telephone;
* the available telephone revises the password.
In Figure 3, L1, L2 receive a telegram the telephone line we; U1 is AT89LV51 the Flash monolithic integrated circuit, U2 is MODEM chip SSI73K222AL, U3 is speech chip ISD33060, U4, U5 is the output, the input enlargement transports puts LM358; K is the scene eliminates the warning switch, D7, D8 respectively be the disappearing police and the warning instruction, INT0 and the INT1 interrupt meets the fire-alarm separately and robs the police signal, drops effectively along.
Figure 4 master routine diagram
After the circular telegram, the system first to P1, the P3 mouth and INT0, the INT1 interrupt carries on the initialization, then inquires P1.6, the P1.7 foot unceasingly. In order to avoid the system repeatedly reporting to the police, when each time effective fire, robber warning, the procedure distinguishes to suppose the fire, the robber warning mark automatically, only then cancels the warning mark to be able to accept the recent warning. When presses down K, P1.6 is the low level, cancels the warning mark on the spot, simultaneously the disappearing police instructed that light emitter diode D7 is bright, the warning instructed that light emitter diode D8 extinguishes. If has the telephone to inquire, then the bell class arrives, P1.7 is the low level, programmed control P1.5 is the high level, the relay J movement, the patching, the voice prompt: “please input the alarm system password, finished by # the character”. Then, waits for the input password, if in scheduled time non-password input, then prompts: “the time, invites on-hook”, afterward open-circuit line, withdrawal inquiry. If has the password input, then judgment password to be whether correct, if the password is wrong, and does not surpass three times, may the resume load, surpass three times, then withdrawal inquiry; If the password is correct, then prompts: “please choose: 1 Zha Jingqing, 2 disappear the warning, 3 change the password, 4 withdrawal inquiries”. This time chooses, whether there is can investigate thoroughly the warning according to the warning mark, is the fire-alarm or robs the police; Chooses 2, may eliminate the warning signs, achieves with the switch K same effect; Chooses 3, but individuality password; Chooses 4, relay J replacement, open-circuit line, withdrawal inquiry.
When has the fire, the robber police occurs, monolithic integrated circuit INT0, the INT1 pin separately has the drop along the signal to arrive, changes over to the interrupt processing. The fire, robber police’s processing is completely similar. When if has the fire-alarm arrives, first looks up whether there is the fire-alarm to symbolize, if has the symbol, expresses has reported to the police, system withdrawal interrupt; If does not have the symbol, the system the patching, dials the initialization immediately the telephone number. If has the reply sound, then sends the voice prompt: “the store has the fire-alarm! Has the fire-alarm!”, and supposes the fire-alarm in the memory to symbolize that then the open-circuit line, judges all initialization number again whether to dial. If has not dialed the number, then dials next; If has dialed the number, withdrawal interrupt.
It is noteworthy that for the enhancement warning’s rate of accuracy, reduces reported mistakenly, besides uses certain antijamming measure, also uses many kinds of sensors for the identical kind of police sentiment. If to the fire-alarm, may use the feeling smoke and the infrared sensor develops simultaneously, enhances the warning the reliability and the accuracy.
3 software designs
Because the length limits, leaves out the procedure detailed list. This system master routine diagram like chart 4, fire-alarm interrupt handling routine diagram like chart 5, robs the police interrupt handling routine diagram like chart 6.
Conclusion
Although this installment develops for the general store, but definitely may promote unattended to other needs security’s place.