③Interrupt request circuit. In order to extend the battery working time, the CPU is in a power-saving dormant state when in standby mode. When the remote telephone and local machine control the controller function, the CPU is awakened by the interrupt request circuit.
(2) Voice circuit
The voice circuit is shown in Figure 5. It takes the ISD4000 voice chip as its core, mainly stores the alarm voice, and transmits the output to the telephone line after power amplification.
(3) Interface circuit between MT8880 and PIC microcontroller
MT8880 is a DTMF transceiver from Mitel. It has the advantages of powerful functions, low power consumption, stable operation and reliability, so it has been widely used in DTMF signal modulation occasions. The interface circuit between MT8880 and PIC microcontroller is shown in Figure 6.
①Interface circuit between MT8880 and MCU. D0~D3 are 4 data lines. MT8880 demodulates the pre-processed DTMF signal, stores the demodulated signal in the on-chip register, and sends an interrupt signal to the MCU through IRQ. After the MCU responds to the interrupt request, it reads the demodulated data through D0~D3 under the control of R, W, RS0, and RD.
②DTMF signal amplification circuit. When the microprocessor writes the DTMF data to be sent into the corresponding register of MT8880, MT8880 sends out the DTMF signal from the TONE pin. After the signal is amplified by the amplifier circuit, it is sent to the transformer for voltage change.
3 Programming
When the program is running: ① is the electrical controller. If the remote phone operates the controller, it is judged according to the number of ringing tones of the phone; if the local phone operates the controller, it is judged according to the off-hook situation of the local phone. ② is the alarm. The alarm probe detects the alarm at any time and sends a signal to the controller. The controller determines whether to pull out the alarm phone according to the user's settings, whether it is in alert or not. Figure 7 is the program flow chart.
The following mainly introduces the initialization procedure, MT8880 setting subroutine and DTMF signal sending and receiving subroutine.
; Initialize registers
F0 EQU 0H
RTCCEQU 01H
PC EQU 02H
STATUS EQU 03H
FSR EQU 04H
RA EQU 05H
RB EQU 06H
RC EQU 07H
RD EQU 08H
RE EQU 09H
TRISAEQU 85H
TRISB EQU 86H
Previous article:Design of driving 24X24 dot matrix screen with PIC16F877A microcontroller
Next article:How to select memory bank 0 or 1 for PIC microcontroller
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Combining the new 6-axis IMU with DSP to achieve high-performance motion tracking accuracy
- 0 ohm resistor or ferrite bead to isolate digital ground and analog ground?
- Sampling Issues with LTC2325-16
- Editor's Recommendation: Newbies to RF/Wireless should read this first!
- The agent Liyuan has also released an MCU, wow, are you interested?
- C2000 power-on boot mode analysis------[TI FAE experience sharing]
- The epidemic has allowed graphene oxide sensors to show their capabilities
- The last week of 2020 review information~
- The problem of starting success rate of sensorless BLDC motor
- Electric Vehicle Electric Drive Theory and Design (2nd Edition)