Design of ward call system based on 8051 microcontroller and SC1128 chip

Publisher:yunhaoLatest update time:2024-02-23 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Traditional ward call systems are generally wired, which not only requires cumbersome wiring and installation, inconvenient maintenance, low utilization rate, but also poor real-time performance. Although the wireless call system has no wiring problems, its reliability is poor, and radio waves can interfere with other medical equipment. Most hospitals currently do not use wireless call systems.


With the development of power carrier technology, it has become possible to use low-voltage power lines as transmission media and use technologies such as spread spectrum, digital coding, and microcontroller control to realize ward calls. This article uses power carrier technology to design a ward call system.


1 Basic requirements for ward call system

Clinical help call is an important means of transmitting clinical information. The ward call system is an emergency call tool for patients to request the doctor or nurse on duty for diagnosis or care. It can quickly transmit the patient's request to the doctor or nurse on duty and monitor it in the monitoring center in the duty room. Leaving accurate and complete records on the computer is one of the necessary equipment to improve the level of care in hospitals and wards. The quality of the call system is directly related to the safety of patients, and has always been generally valued by major hospitals. It requires timely, accurate, reliable, simple and feasible, and conducive to promotion. The hospital bed call system, designed using power line carrier communication technology, single-chip multi-machine communication and computer monitoring and management technology, has functions such as calling, ringing, display queuing, priority setting, storage and recording, etc., which meets the hospital's ward management and nursing requirements.


2 Ward call system design

2.1 System composition and working principle

The ward call system consists of several call sources (generally one for each hospital bed), modem carrier module, coupling circuit and monitoring system, as shown in Figure 1. When there is a call signal from the call source, there will be corresponding sound and light call signal indications on the monitoring system, and the call number can be displayed. If the parallel bus expansion method is used, the wiring between hundreds of call sources and the host is too complicated. Therefore, this system uses the serial communication function of the microcontroller to allow the signals between the host and each slave to pass through the power line carrier modulation and demodulation module. Through ~220V civil power line transmission, two-way data transmission between the host and the slave is realized.

pIYBAGB7oGaAUSBMAABD6dieyHk316.png

Figure 1 System block diagram

The system adopts a master-slave structure. The monitoring system (host) is placed in the doctor's duty room (it can be connected to the computer through an interface circuit to form a monitoring center). When there is a call request from the hospital bed, it will give an audible and visual alarm and display the position of the hospital bed on the monitor. . The call source (slave machine) is placed in the ward. When the patient has a call request, press the request button to call the duty room and light up the call indicator light. The master and slaves are connected together through power lines. When the master and the slave communicate, the master sends address information to each slave in turn. Each slave receives the address information sent by the master. If it is the same as its own address, it sends its own alarm information to the master. If there is no alarm information, it sends its own alarm information to the master. The host sends a null number (00).

2.2 Introduction to SC1128 spread spectrum communication chip and transceiver circuit

The SC1128 chip is a dedicated spread spectrum modulator/demodulator circuit developed for the power line carrier communication market. Due to the adoption of new technologies such as direct sequence spread spectrum, digital signal processing, and direct digital frequency synthesis, this circuit has strong anti-interference and anti-attenuation performance in power line communications. The SC1128 chip integrates spread spectrum/despreading, modulation/demodulation, D/A conversion and A/D conversion, built-in electronic meter, output driver, input signal amplification, watchdog, working voltage detection and communication with the microcontroller (MCU). Serial communication and other functions. This chip can reduce system costs and improve system functions in small multi-functional application systems.

The block diagram of the transceiver circuit composed of the SC1128 chip is shown in Figure 2. The signal enters the SC1128 chip from the power line through the coupler, bandpass filter and preamplifier. After processing, it is sent to the power line through the power amplifier and coupler to complete the transmission and reception of the signal on the power line. Box one is a coupling coil, which can couple the signal transmitted in box three to the power line; it can also couple the signal received on the power line to box two. Box 2 is the front-end receiving circuit. After filtering and amplifying the received signal, it is sent to the first-level operational amplifier (pin 13) of SC1128 for processing. Box 3 is the power amplifier, which amplifies the phase modulation signal sent by pin 24 of SC1128 and sends it to the power line through the coupling coil. Box 4 is part of the analog signal processing circuit inside SC1128, including a three-stage operational amplifier, one of which has an adjustable gain.

o4YBAGB7oGCAK-qlAAFAyR7y9JQ200.png

Figure 2 Transceiver circuit block diagram composed of SC1128 chip

2.3 Design of call source circuit

The call source consists of 8051 microcontroller (slave machine), SC1128 spread spectrum communication chip and some peripheral circuits, as shown in Figure 3. Eight request button switches are connected to the P0 port of the microcontroller 8051. When a certain button is pressed, a certain input status of the P0 port corresponding to the button is 0. When the microcontroller confirms that the host calls the machine's address, it scans the 8-bit I/O port status on the P0 port. Once a key is pressed, it immediately sends the request information corresponding to the P0 port to the host and waits for the host's confirmation. When the host returns correct information, the corresponding LED indicator light is driven through the P2 port to indicate which request signal was sent successfully. The eight request button switches are numbered respectively. Each switch represents a type of request information and is defined by the user.

pIYBAGB7oFuAbEKEAABVfK9kuTU171.png

Figure 3 Ward call source circuit

The P1.0 and RST/VPD ports of the 8051 microcontroller are connected to the backup power supply and power-down protection circuit to ensure that the system can be used normally when a power failure such as a power outage occurs. If the system has detected the "power-down failure is about to occur" signal, the signal requests an interrupt to the host through the external interrupt INT0. The host responds to the interrupt and sends the relevant data to the internal RAM for storage, and then writes "0" to P1.0, which is A low level on the .0 pin triggers the 555 timer, and the output pulse of the 555 timer depends on R, C, and VCC. If the 555 timer expires and VCC is still normal, this indicates that the "power down failure is about to occur" signal is a wrong alarm signal, then the positive pulse output by the 555 is added to the RST/VPD to reset the host and start operating again; if the RST/VPD When the 555 timer does become low at the end of the timer, the 555 timer outputs a high level when triggered by the low level of P1.0 and adds it to RST/VPD as a backup power supply until VCC returns to normal, and then maintains a period of R, The positive pulse width time determined by C. Appropriate R and C values ​​should be selected so that there is sufficient power-on reset time after the main power supply VCC returns to normal, so that the host can reliably reset and resume normal operation. The clock of 8051 adopts on-chip clock oscillation mode, and the XTAL1 and XTAL2 pins are externally connected to a quartz crystal (6MHz) and oscillation capacitor. The serial ports RXD (P3.0) and TXD (P3.1) communicate with the host through the SC1128 chip and power lines. The call source interrupt program flow chart is shown in Figure 4.

o4YBAGB7oFOAawWSAAJ5DJ70004442.png

Figure 4 Call source interrupt program flow chart

2.4 Monitoring system design

The monitoring system consists of 8051 microcontroller (host), display device, alarm circuit, SC1128 chip and some peripheral circuits, as shown in Figure 5. The three I/O lines of the P0 port of the 8051 microcontroller provide the clock signal, enable signal and serial data required by the MC14499. The MC14499 drives and controls four LED eight-segment displays. The LED digital tube displays the bed number of the patient who issued the alarm. and alarm category. The first three LEDs indicate the bed number, and the last three LEDs indicate the alarm category.

The P2.0 port drives the alarm speaker through the NOT gate. The host computer is equipped with a button key K, which is directly connected to INT0. K is used to cancel the alarm sound and the alarm source indicated by the LED digital tube. The backup power supply, power-down protection circuit and clock oscillation method used in this circuit are the same as those of the call source circuit. The program flow chart of the monitoring system is shown in Figure 6.

pIYBAGB7oEuAZMzRAABp9DYgRPc970.png

Figure 5 Monitoring system

pIYBAGB7oEKASEebAAAxuuBUi74848.png

Figure 6 Monitoring system program flow chart

2.5 Ward call management system software design

The above circuit combination can complete the ward call function. In order to improve the system and enable the call system to be combined with bed information management, the ward call management system software is designed to form a ward monitoring center composed of computers and corresponding interface circuits. . The call information is processed by the microprocessor and input to the computer through the interface circuit, and then the call information and patient information are managed through computer software. Here we only introduce the ward call management system software based on POWER BUIDER9.0 as follows: This system has a protection function. Non-administrators cannot enter the system to obtain information. Only by obtaining a password can they enter the information interface of the system. The login interface is shown in Figure 7.

[1] [2]
Reference address:Design of ward call system based on 8051 microcontroller and SC1128 chip

Previous article:USB-Controller Area Network (CAN) conversion of CP2102 and C8051
Next article:Generating 3-wire signals using multiple DS1267 digital potentiometers and an 8051 microprocessor

Recommended ReadingLatest update time:2024-11-22 04:55

Technology using highly integrated MCU to implement network support
  Over the past 20 years, the trend in many industrial and automation systems has been to add more and more digital intelligence to individual nodes to make them more responsive. Systems can become more flexible by integrating them into systems of systems using distributed intelligence (also known as the "Internet of
[Microcontroller]
Technology using highly integrated MCU to implement network support
Design of Oscilloscope Monitoring Program Based on C8051F020
  The design uses the high-performance single-chip microcomputer C8051F020 as the control chip to monitor the status of 40 buttons, 3 coding switches and 4 potentiometers on the oscilloscope panel. The working principles of the keyboard, coding switch and potentiometer, as well as the hardware circuit and software pro
[Test Measurement]
Design of Oscilloscope Monitoring Program Based on C8051F020
Extended design of 8051 microcontroller DPTR
  The emergence of single-chip microcomputer is a milestone in the history of computer technology development. It enables computers to enter the field of control from massive numerical calculations. Among microcontrollers, the 8051 series is the most classic and is still the most popular and widely used 8-bit MCU arch
[Microcontroller]
Extended design of 8051 microcontroller DPTR
timer experiment
Experiment Timer Experiment one. Experimental purpose 1. Learn the use and programming methods of 8051 internal timer/counter 2. Learn more about how to write interrupt handlers two. The experiment shows that the programming of the internal timer/counter mainly involves the setting of timing constants and the settin
[Microcontroller]
timer experiment
Microcontroller experience summary - c8051f microcontroller usage tips
The c8051f microcontroller is developed on the basis of the MCS51 microcontroller. It has both inheritance and great innovation. According to the function, it can be divided into special-purpose and general-purpose types. Special-purpose type: 100MHz high-speed type such as f120 chip; 24-bit high-resolution AD such as
[Microcontroller]
ADC Application Elements in C8051F020
F020 has 8-channel 12-bit A/D conversion (ADC) interface and 8-channel 8-bit online programmable (ISP) ADC circuit. There are 15 special function registers (SFR) on the chip related to ADC control, which are: AMUX0SL——AMUX0 channel selection register, the reset value is 00000000; MAX0CF——AMUX0 configuration regist
[Microcontroller]
Design of MPPT controller for photovoltaic cells using microcontroller C8051F310
1 Introduction Energy is an important material basis for the existence and development of human society. With the development of society, energy is decreasing day by day, and as environmental problems become increasingly prominent, more and more countries are turning their attention to renewable energy. As one of the
[Microcontroller]
Design of MPPT controller for photovoltaic cells using microcontroller C8051F310
Design of C8051F320 Train Safety Inspection Instrument
Design of C8051F320 Train Safety Patrol Instrument 1 Introduction With the development of science and technology, traveling by train has become one of the main modes of transportation for people. In order to ensure the safe operation of trains, regular or irregular safety inspections of trains are an extremely import
[Microcontroller]
Design of C8051F320 Train Safety Inspection Instrument
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号