Multi-time slot multi-channel photoelectric sensor control chip

By designing a multi-time slot multi-channel photoelectric sensing control chip, the problem of single function and high power consumption of multi-channel sensor circuits in the existing technology has been solved, parallel processing and low-power operation of multi-channel photoelectric signals have been achieved, and the integration level has been improved. and portability.

CN118363343BActive Publication Date: 2024-09-17BEIJING ZETTASENSING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410796242.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing multi-channel sensor circuits and multi-channel ADC front-end detection circuits have single functions, waste of area, low integration, and high power consumption. They are difficult to meet the requirements of hardware parallel processing and internal hardware automatic control and processing of data, and cannot achieve portable multi-functions. design.

Method used

Design a multi-time slot multi-channel photoelectric sensing control chip, which includes a multi-channel photoelectric sensing analog front-end, a two-channel ADC conversion module, a logic control module and a clock generation and processing module to realize the detection, conversion, filtering, integration and summing of optical signals. Data processing, multi-channel detection and low-power operation are achieved through register configuration.

Benefits of technology

It realizes parallel processing and data processing of multi-channel photoelectric signals, reduces power consumption, improves integration, supports hardware automatic control and data access, and meets the requirements of multi-function and portability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363343B
    Figure CN118363343B
Patent Text Reader

Abstract

The present invention discloses a multi-time slot multi-channel photoelectric sensor control chip, which belongs to the field of digital-analog hybrid circuits, including a multi-channel photoelectric sensor analog front end, a two-way ADC conversion module, a logic control module, a photoelectric sensor module, and a clock generation and processing module; it can generate corresponding transceiver link optical signals in parallel, convert the optical signals into electrical signals after passing through human tissue and receive them, and simultaneously perform multi-channel processing and calculation of corresponding electrical signals, filter processing of corresponding signals, and data processing and access of automatic signal accumulation. The present invention can be used alone as a multifunctional multi-channel sensor chip, or integrated in a SoC or MCU system to realize multi-channel sensing, or as an IP module circuit that requires ADC conversion function selection such as electrical impedance and capacitance, and has the advantages of high integration rate, small area, and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of digital-analog hybrid circuits, and in particular to a multi-time slot multi-channel photoelectric sensor control chip. Background Art

[0002] The principle of photoelectric sensing is to convert optical signals into electrical signals. The photoelectric sensor chip integrates a photoelectric sensor structure and a signal processing circuit connected to the photoelectric sensor structure. With the emergence of low-power and highly integrated integrated circuit technology, photoelectric sensor chips are increasingly tending to develop into multi-functional and multi-channel ones.

[0003] The multi-channel sensor circuits and multi-channel ADC front-end detection circuits in the prior art often have single functions, waste area, low integration, and high power consumption. They are difficult to meet the requirements of hardware parallel processing and internal hardware automatic control and data processing, and are difficult to achieve portability as general IP. Summary of the invention

[0004] The purpose of the present invention is to provide a multi-time slot multi-channel photoelectric sensor control chip to solve the problems in the background technology.

[0005] In order to solve the above technical problems, the present invention provides a multi-time slot multi-channel photoelectric sensor control chip, which can generate the corresponding transceiver link optical signal in parallel, convert the optical signal into an electrical signal after passing through human tissue and receive it, perform multi-channel processing and calculation of the corresponding electrical signal at the same time, filter the corresponding signal, and perform data processing and access of automatic signal accumulation;

[0006] The multi-time slot multi-channel photoelectric sensor control chip comprises:

[0007] Multi-channel photoelectric sensing analog front end, used for photoelectric signal detection, ADC data conversion and providing effective data conversion completion signal;

[0008] Two-channel ADC conversion module, which can combine PPG and ECG to measure heart rate, and detect and convert two-channel electrical signals at the same time;

[0009] The logic control module realizes the conversion connection of different analog signals in multiple time slots and multiple channels, the filtering and accumulation processing and control of different channels of digital data, controls the integrator to perform positive and negative integration function pulses according to the timing of the internal state machine, and controls the integrator to perform the corresponding number of integrations according to the number of integrations required, and outputs them to the two ADC conversion modules;

[0010] Photoelectric sensor module, through register configuration to achieve single channel detection, multi-channel simultaneous detection, according to the hardware configuration to enable the channel to perform sequential ADC conversion and data polling scanning, according to the configuration to perform the corresponding low channel filtering algorithm processing, and according to the register configuration of the accumulation function to enable some time slots to implement algorithms including accumulation, accumulation averaging, automatic subtraction;

[0011] The clock generation and processing module generates a low-power operation control signal based on the working status parameters obtained from the current working status of the chip, and controls the power supply and clock of the corresponding internal analog circuit to work in a low-power mode.

[0012] In an achievable implementation, when the photoelectric sensor module uses a single-ended input mode, the photoelectric input IN port is selectively connected to multiple photoelectric sensing devices through a SWITCH switch; the photoelectric sensor module selects single-ended or differential mode connection multiplexing, and selects the connection between the positive and negative ends of the transimpedance amplifier through a register configuration connection relationship;

[0013] The photoelectric sensing module is provided with an interrupt vector and an interrupt flag; the photoelectric sensing module senses and quantifies the received optical signal by measuring the magnitude of the current signal input from the photoelectric sensing device to the transimpedance amplifier; the photoelectric input IN port and the ECG electrode are configured as analog pins, and their inputs are directly connected to the internal analog receiving channel.

[0014] In an achievable implementation, when configured as ECG and PPG simultaneous working mode, the clock generation and processing module generates a corresponding working clock mode for controlling the ECG and PPG logic timing, and configures the basic bias and power reference signals of the two ADC conversion modules, collects and detects the electrical signals in the analog front end according to the configured working mode, completes the processing of the corresponding data and generates the control signal for the running state machine.

[0015] In a feasible implementation, when only the PPG optoelectronic path is configured to work, when it enters sleep mode, the high-frequency clock and the analog power supply of the optoelectronic transceiver link are turned off, and the frequency of the internal counting clock adopts a low-speed 32K clock; after the optoelectronic transceiver link enters sleep mode, there is no need for MCU or logic control module to control it. After the internal low-speed state machine completes the periodic counting, it will automatically wake up from sleep mode and start a new cycle detection.

[0016] In an achievable implementation, the logic control module includes a state control processing module and a register read-write configuration module;

[0017] The state control processing module is used to generate power, clock, reset signals of the analog front end, and mode detection of automatic operation of the internal logic. The state machine controls the low-power state in the sleep mode to enter the low-power state after the corresponding internal power and clock control processing and generates a switch control signal for the operation of the corresponding module; wherein the mode detection of automatic operation of the internal logic is performed according to the periodic detection and sleep of the register configuration;

[0018] The register read and write configuration module configures the register according to the configured operating mode, multi-slot multi-channel transmission link LED current drive control, the enablement and channel configuration of the corresponding module of the receiving link, and the control of the integration number and ADC conversion number mode.

[0019] In an achievable implementation, after the internal state machine performs corresponding multi-slot and multi-channel detection and conversion according to the configuration register value, it generates a low-power operation control mode according to the configured time period, controls the time slot operation function and the sleep mode internal counting clock to count with a low-speed clock.

[0020] In an achievable implementation, the logic control module generates timing control for the PPG optoelectronic transceiver link, logic control generates operation and enable signals for the transimpedance amplifier in the analog front end, and controls the analog electrical signal conversion enable control signal for the anti-aliasing filter in the analog front end to perform DC offset elimination and ambient background light signal elimination, controls the analog electrical signal to be denoised and output to the integrator.

[0021] In a feasible implementation, the logic control module also generates a logic control signal for controlling the ECG to perform ADC conversion and detection. The ECG receiving analog front end is directly connected to the human body, and the ECG detection and measurement are performed by detecting the conversion values ​​of the two electrode voltages and the data processed by digital logic. In addition, the right leg drive function required when the ECG DC or AC is dropped is detected, and the use characteristics and voltage of the ECG electrodes are detected.

[0022] In an achievable implementation, the two-way ADC conversion module generates the conversion function of ADC operation, data processing and conversion of the corresponding digital internal extraction filter, sequential conversion according to the configured number of enabled channels, and data processing and extraction after ADC conversion according to the logic control module during the ADC conversion stage; the logic control module generates the logic required for filtering calculation and algorithm processing, and transmits the digital processing calculation results and control FIFO access signals and corresponding data detection to the interrupt generation and processing module; the interrupt generation and processing module is used to generate data access signals and data calculation processing for controlling different channels in the corresponding operation time slots.

[0023] In a feasible implementation, the two-way ADC conversion module adopts a high-precision and high-performance analog-to-digital conversion circuit and a corresponding interpolation filtering algorithm, and the conversion rate is determined only by the working clock; the working clock of the two-way ADC conversion module can flexibly select the division ratio through register configuration, and the division coefficient can be configured in multiple gears.

[0024] In an achievable implementation, the chip further includes a clock management module and a chip register read and write configuration module;

[0025] The clock management module is used to provide the basic clock and reset signals for the analog and digital logic circuit functions to work in various modes;

[0026] The chip register read and write configuration module is used to configure the control and mode configuration signals for the corresponding work of multi-slot multi-channel, and complete the read and write operations of the FIFO and interrupt registers inside the logic control module.

[0027] In an achievable implementation, the clock management module includes at least a first high-speed clock and a second low-speed clock; in addition, a configured input external clock is selected as a third clock, which is used to provide clock, reset, and synchronization signals for the digital logic circuit function to work in various modes, and to control the analog front-end implementation circuit to obtain the ADC conversion clock and channel conversion control signal at a preset frequency.

[0028] In an achievable implementation, the chip register read / write configuration module controls the chip system to enter a running mode or a sleep mode according to the internal logic of the acquired control parameters;

[0029] In normal mode, both the first clock high-speed clock and the second clock low-speed clock are running; in sleep mode, not all clocks of the clock management module are running.

[0030] In an achievable embodiment, the chip also includes an ECG detection and corresponding interrupt processing module, which is used to generate relevant signals for controlling ECG detection, data calculation and data readout, converting the input electrode voltage signal into transmission data and storing it in the FIFO module, as well as generating a detachment detection interrupt.

[0031] In an achievable implementation, the chip also includes a power management module. When the chip operates in different modes, the power management module controls the internal power management of the analog modules, digital logic and FIFO of the transceiver link to realize the basic working power supply of the digital and analog circuits in the chip system.

[0032] In a feasible implementation, the chip is integrated into a SoC or MCU system as a general hardware IP circuit, and the CPU program in the MCU and SoC is used to control and process the corresponding multi-channel sensor circuits and data.

[0033] The multi-time slot multi-channel photoelectric sensor control chip provided by the present invention can realize multi-channel photoelectric sensing or multi-channel bioelectric signal and resistance and capacitance detection, and can complete the multi-channel photoelectric signal related control function, photoelectric signal conversion and related DC elimination control in the analog front end. In addition, the multi-channel analog front end can also perform AC signal extraction and related effective electrical signal control and data calculation functions of digital-to-analog conversion in parallel. The designed chip circuit contains two ADC conversion modules, which can combine PPG and ECG to measure heart rate at the same time, and can also realize the detection and conversion of two electrical signals at the same time. The internal hardware automatically completes the processing of the corresponding data and accesses it to the corresponding FIFO space. The corresponding data reading and multi-time slot multi-channel detection can be completed by reading the corresponding FIFO address space data. The internal hardware can also set FIFO interrupt control to automatically judge the data signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 It is a schematic diagram of the architecture of a multi-time slot multi-channel photoelectric sensor control chip;

[0036] Figure 2 It is a connection diagram of the analog front end of a multi-channel photoelectric sensing path;

[0037] Figure 3 It is a schematic diagram of the internal clock / reset and low-power system control required for the operation of the system circuit;

[0038] Figure 4 This is a typical PPG application photoelectric sensing multi-slot multi-channel transceiver link control timing diagram;

[0039] Figure 5 It is a schematic diagram of the internal low-speed state machine of the multi-slot multi-channel sensing circuit logic control;

[0040] Figure 6 It is a schematic diagram of the internal high-speed state machine of the multi-slot multi-channel sensing circuit logic control;

[0041] Figure 7It is a schematic diagram of the timing state machine of the photoelectric sensor control multi-slot multi-channel transceiver link;

[0042] Figure 8 This is a schematic diagram of the LED state control state machine jump;

[0043] Fig. 9 This is a schematic diagram of the Modulation state control state machine jump;

[0044] Fig.10 This is the schematic diagram of the LED drive current and integral control circuit;

[0045] Fig.11 It is a schematic block diagram of FIFO, data processing and interrupt generation. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0047] The present invention provides a multi-time slot multi-channel photoelectric sensor control chip, which can be used as a multifunctional multi-channel sensor chip alone, or integrated into a SoC or MCU system to realize multi-channel sensing, or used as an IP module circuit for selecting electrical impedance, capacitance, etc. that requires ADC conversion function.

[0048] Figure 1 It is a schematic diagram of the architecture of a multi-time slot multi-channel photoelectric sensor control chip, which is used to realize the joint sensing measurement of PPG (PhotoPlethysmo Graphy) and ECG (electrocardiogram). It mainly includes a logic control module, an analog reference voltage and power supply, a clock generation module CLK-GEN, a multi-channel LED light driver module (LED DRIVE CONTROL), a two-channel ADC conversion module (one PPG ADC and one ECG ADC), a connection relationship selection module (MUX CONTROL), a control input electrical connection relationship selection module, a multi-channel TIA (transimpedance amplifier), an ambient light elimination BPF module, a multi-channel integrator and other analog front-end modules, ECG function detection input electrodes (ECGIP, ECGIN) and a right leg RLD drive output control module, and corresponding input and output IO control modules.

[0049] The logic control module (LOGIC CONTROLLER) reads and writes registers through the I2C or SPI interface to configure the functions of each register. The interface signal MOS_SEL is used to select the interface protocol; others such as CS, SCLK, MOSI, MISO, etc. are interface signals of the interface communication protocol; AVDD33, IOVDD, AVSS, AVDD18, AVSS2, DVDD18, DVSS, etc. are power signals for related work; GPIO0 and GPIO1 pins can be configured as external clock input pins or external synchronous logic control pins, and can also be configured as some interrupt function output pins.

[0050] Figure 1 The multiple photoelectric sensor input pins in the device can be controlled by internal registers and state machines to realize multiple single-ended inputs or differential inputs to the current input terminal of the TIA. This embodiment is explained with 4 IN terminals (IN0 to IN3) and 4 TIA analog front ends, and the functional principles of other multiple terminals are the same. The IN terminal is controlled by the SWITCH switch to connect and select the photodiode. When the internal SWITCH switch signal is 0 by default, the IN0 terminal connects the photodiode device between VC0, and controls the connection to the TIAN terminal of the first transimpedance amplifier TIA0 through the configuration register. The current of the photodiode between VC0 and IN0 terminals flows into TIA0. The TIAP terminal of TIA0 can be connected to a fixed level signal through the register configured by the logic control module. At this time, the current signal of the photodiode passes through TIA0 and some intermediate analog modules, so that the effective light signal reflected by the LED light through the human tissue to the photoelectric device is converted into an electrical signal, and extracted and ambient light is eliminated. The integrator of the subsequent stage can integrate and accumulate weak signals multiple times. The same is true for other channels. The corresponding photodiode connection and selection are performed through the SWITCH switch. The internal state machine is based on the configured enable channel. After completing the first polling of the channel and conversion, if the connection on the other side of the channel is also configured to be enabled, the next round of polling of the channel will be completed again, and the SWITCH switch will be switched to the connection on the other side of the IN0~IN3 terminals to perform analog front-end conversion processing and data processing of the relevant photodiode current.

[0051] Figure 1 The ECG analog front end can be configured to process data synchronously with the PPG conversion. The analog signal of the ECG channel is converted by the ECG ADC module, and the internal dropout detection function is used to achieve dropout detection and interrupt generation.

[0052] Figure 1The logic control module in the system realizes the conversion connection of different analog signals in multiple time slots and multiple channels, and the processing and control of the filtering and accumulation of different channels of digital data; the analog front end of the multi-channel photoelectric sensor path mainly realizes photoelectric signal detection, ADC data conversion and provides effective data conversion completion signals; the power management module realizes the basic working power supply of digital and analog circuits in the system; the input signal of the logic control module and the internal logic initial control signal are the reset signals generated by the reset management module inside the system. The OP_EN of the register is a bit of the configurable register. After the control state machine is synchronized with the internal low-speed clock, it enters the automatic sensing input detection of multiple time slots. After the internal state machine is synchronized according to the configured OP_EN, it starts to use the high-frequency clock state for control, and the corresponding sending link LED state machine is generated inside the transceiver link to control the drive and current output of the LED lamp. To drive the photoelectric LED tube to emit LED light with the current configured by the register; in addition, the internal high-speed state machine and the internal transceiver link control state machine also control the operation of the relevant analog front-end devices and the start-up conversion signal in several states such as PRECON and ACTIONT. When the register is configured with PEOCON, ACTION, VCSEL and Modulatoin states, the connection is made according to the connection relationship between VC and IN corresponding to the register and state machine timing. After the timing completes the integration stage of several front-end paths, it is controlled by the internal state machine and, according to the enabled channel configuration, the ADC sequentially polls the channel to convert the corresponding voltage signal at the integrator end; the channel signal selected by the internal state machine, the filtering algorithm and the accumulation algorithm selected according to the configuration, etc., are all processed by time-sharing polling of each channel, and are continuously accessed to the FIFO space in the same time slot according to the enabled channel sequence. In the running mode, the conversion and data processing of different channels in different enabled time slots are completed. When entering the corresponding SLEEP state low power mode, the corresponding power supply and clock modules are turned off; the corresponding interrupt signal can be configured as a GPIO output, as the interrupt signal of the sensor chip and MCU responding to the sensor module, and the interrupt signal is judged according to the reference register list of the corresponding function of the interrupt.

[0053] Figure 2This is a connection diagram of the analog front end of a multi-channel photoelectric sensing path. There are 4 current input ports, IN0, IN1, IN2, and IN3, which are usually used to connect photodiodes. By setting the analog input selector MUX, the input port can be configured to work in single-ended or differential mode, and a bias voltage can be provided for the single-ended photodiode. Therefore, these 4 ports can be used as 4 pairs of differential inputs, or as 8 single-ended inputs, or as 4 single-ended inputs plus 4 bias voltage outputs; multiple input currents can be measured independently in the same time slot. For chips or circuit systems with integrated photodiodes, the internal integrated photodiode can be used as a signal source, which can work in different time slots with the external signal input.

[0054] Taking 4 identical analog front-end photoelectric sensor circuits as an example, the register xxxxx_ACT_CON_TSX configured by the logic control module is used to configure the port connection when the system is in the measurement time slot (i.e., active state), and the connection mode can be configured independently for each time slot. In the case of single-ended input, different TIA positive terminals (i.e., TIAP terminals) and TIA negative terminals (i.e., TIAN terminals) are connected during the corresponding timing through registers and internal logic control. When configuring single-ended, the TIAP terminal can be connected to a fixed bias voltage; the TIAN terminal can be connected to VC0 or VC1 according to the internal logic control and register configuration. According to the internal SWITCH switch, if all 8 single-ended terminals are enabled, SWITCH=0 is performed in the first ADC conversion cycle, that is, the current of the single-ended input of VC0 is connected to the TIAN terminal, and the current-to-voltage conversion is performed; in the next ADC conversion cycle, SWITCH=1 is performed, and the current of the single-ended input of VC1 is converted to the TIAN terminal, and the analog front-end current-to-voltage conversion and corresponding filtering and integration processing are performed. In addition, 4 differential inputs can be configured at the same time. When 4 differential inputs are configured, only 4 channels enabled by the register are configured, and the internal state machine will perform periodic ADC conversion on the enabled channels with only differential connections according to the enabled channels of the configuration register. In differential input, if the internal 4 TIAP terminals and TIAN terminals are all configured as differential mode connections, the 4 TIAP terminals and TIAN terminals are connected to VC0 and IN0, VC1 and IN1, VC2 and IN2, VC3 and IN3 respectively; the 4 TIAs convert the current AC differential values ​​between their respective TIAP terminals and TIAN terminals into voltages, and perform a series of analog front-end conversions. The bandpass filter and integrator of the analog front end can be configured in BYPASS mode through the register, that is, the analog front end can also be configured in TIA-ADC working mode.

[0055] When the system is not in the measurement time slot (i.e., sleep state), the connection state of the port is determined by the register xxxxx_SLEEP_CON configured by the logic control module. When switching from the inactive state to the active state, there is an optional preparatory state. The preparatory state time can be changed by the preparatory width signal PRECON_WIDTH. The preparatory state is used to connect the port to a specific bias voltage before measurement to help the sensor on the input port establish an operating point. The preparatory state configures the connection relationship through the register xxxxx_PRE_CON_TSX.

[0056] Figure 3 The internal clock / reset and low-power system control diagram required for the operation of the system circuit. The reset signal is generated by the analog POR (power-on reset) circuit. The corresponding reset signal is generated internally according to the corresponding initialization. It mainly needs to provide the system high-frequency clock sys_clkh required by the state machine jump and FIFO, interrupt data processing module, etc. In addition, it is also necessary to provide the system low-frequency clock sys_clkl for counting cycle operation. There are several relationships between the internal system high-frequency clock sys_clkh and the system low-frequency clock sys_clkl configured by the register. The system high-frequency clock sys_clkh is mainly provided by the internal analog block CLK24M, or the input of the external GPIO configuration and the GPIO input in the external clock mode. The system high-frequency clock sys_clkh generates a low-frequency clock of about 32K through the high-frequency clock divider. The system low-frequency clock sys_clkl can be generated by the three clock sources of high-speed divided clock hclk_div, internal analog 32K clock, and external GPIO configuration input low-frequency clock ext_clk according to the register and the corresponding operation mode. The system high-frequency clock sys_clkh is mainly used to generate the system high-frequency clock counting timing of the internal high-speed state machine, the transceiver link control timing state machine, the LED configuration enable drive state machine, the related enable signal state machine in the MODULATION mode, and control the data processing, FIFO request, interrupt control generation and other modules. The system low-frequency clock sys_clkl is mainly used to control the multi-slot low-speed state machine jump and the corresponding cycle counter count, as well as the external synchronization module after synchronization is enabled for clock synchronization. The register and the internal state machine can control the system to enter the working mode after the OP_EN configuration and enter the low-power mode after the time slot processing is completed. When entering the low-power mode, the corresponding transceiver link reference and analog power module, and the clock module using the internal high-frequency 24M CLK operation mode enter the shutdown mode, that is, the power saving mode. When the internal transceiver link control state machine and LED drive circuit are in the LED light emitting state, the corresponding transmission link power reference and drive module will be turned on to work, and the current output to the multi-channel LED light-emitting tube will work.

[0057] Figure 4 It is a multi-slot multi-channel transceiver link control timing diagram. It works in a time slot mode. After each round of signal sampling, the chip will enter sleep mode and turn off the power of most modules until the next time slot cycle before entering the active state again. The time slot cycle is controlled by a low-speed state machine driven by a low-speed clock. The operation mode of the chip is started by setting the OP_EN register through the logic control module. After OP_EN is set, taking 4 time slots as an example, each group of time slots has different parameter configurations, so that signals can be collected with multiple groups of different parameters. The internal high-speed state machine starts each enabled time slot in sequence in the order of timeslota~timeslotd. The unenabled time slots will be skipped and directly enter the next enabled time slot. When the last enabled time slot is finished, the chip enters sleep mode until the next time slot is active. The time slot period is determined by the register configuration TIMESLOT_PERIOD.

[0058] Figure 4 This is a timing diagram for enabling 8 single-ended optoelectronic inputs. At time a, after the low-speed clock synchronization OP_EN, the internal low-speed state machine automatically starts the internal 24M oscillator to provide a clock reference for the timing in the time slot. At the same time, after synchronizing OP_EN according to the timing diagram, the transceiver link control state machine enters the preparatory state under the control of the system high-frequency clock, that is, the Precotion state in the timing diagram, and the logic control module switches the port connection from the state specified by the register xxxxx_SLEEP_CON to the state specified by the register xxxxx_PRE_CON_TSX (i.e., Precondition), and switches the VC voltage from the state specified by the register VC_SLEEP to the state specified by the register VC_SEL_TSX, and the chip enters the preparatory state from the sleep state; the duration t1 of the preparatory state is specified by the register PRECON_WIDTH_TSX configured by the logic control module. At time b, the chip switches the port connection from the state specified by register xxxxx_PRE_CON_TSX to the state specified by register xxxxx_ACT_CON_TSX (ie, Active), that is, from the preparatory state to the active state.

[0059] After the time t2 configured by the register LED_OFFSET_TSX, at time c, the transmission link works and drives the enabled LED in the current time slot to emit light, and the light emission lasts for the time t3 configured by the register LED_WIDTH_TSX. After the LED emission light is received by the photodiode, the photocurrent is converted into a voltage signal by the transimpedance amplifier TIA. After the ambient light is eliminated, the signal is integrated by the integrator, and the state machine configures the integration to be divided into two positive and negative time windows. The integration time t5 is set by the register INTG_WIDTH_TSX configured by the logic control module, and the integration start time t4 is set by the registers INTG_OFFSET_TSX and INTG_FINE_OFFSET_TSX configured by the logic control module. After the integration window time is over, the ADC starts to sample the output voltage of the integrator. At time n, the chip puts the ADC conversion results into the running time slot FIFO space in turn by channel. After the data processing and storage of different channels in the FIFO processing are completed, if multiple single-ended channels are configured, that is, VC0 and VC1 perform different conversions when the SWITCH switch is selected at different single-ended ends. After completing the multi-channel conversion of SWITCH=0, according to the configured multi-channel multi-single-ended connection relationship, the next state machine will enter the SWITCH=1 stage according to the single-ended selection enabled by the register, and complete the conversion from Precondition to ADC again; when the conversion of all single-ended state machines enabled in the working time slot is completed, the state machine sets the tsx_act_end signal at this time; and after further processing all enabled time slots, and the connection and data of all enabled single-ended input channels are completed, the chip will automatically turn off the 24M oscillator, turn off the module power supply that does not need to continue working, and switch the VC voltage and port connection status back to the sleep mode setting. At this point, the Active work of the configured enabled time slot is completed, and the state machine sets the act_end signal.

[0060] Please continue reading Figure 4It can be seen that Precondition, Active, LED ON, Postive Integrat, and Negative Integrat process sw=0 first, that is, the SWITCH switch generated by the state machine control selects the input of the VC0 connection end, and then processes sw=1 again, that is, the SWITCH switch generated by the state machine control selects the single-ended input of the VC1 connection end, and performs the corresponding channel front-end conversion and ADC data sequential conversion and processing. For the multiple channels selected when sw=0 and sw=1, the above analog front-end processes the Precondition, Active, LED ON, Postive Integrat, and Negative Integrat stages and the corresponding electrical signal conversion and integration in parallel. In the ADC stage, the channel selection of PADC_Sel_Channel0~PADC_Sel_Channel3 and the analog conversion and data processing after the connection will be processed in sequence, and the subsequent data algorithm processing and storage in FIFO in the corresponding time slot will be carried out in sequence.

[0061] Figure 5The figure is a schematic diagram of the internal low-speed state machine controlled by the multi-slot multi-channel sensing circuit logic. The initial state of the low-speed state machine defaults to the 2'b00 state. op_en_sync is a signal after the system low-speed clock synchronization. When the state machine receives this signal, the internal counter, that is, the counter tmslot_cnt_lsm of the low-speed state machine counts, begins to be initialized to the period value tmslot_period_r configured by the register. At this time, the register configuration enables a certain time slot, then the osc24m_en_s signal is set to 1, and the begin_act signal is set to 1. If the sub-period register of a certain time slot is configured to 0 at this time, and the time slot is enabled, the low-speed state machine generates a corresponding tsx_en signal. bit to further set a certain time slot to enable operation. At this time, the low-speed state machine jumps to the 2'b10 state. At this time, the reset initialization osc24m_en_s is 0, the reset initialization begin_act signal is 0, and tmslot_cnt_lsm starts to count down. When the count value is 0, it counts down according to the enabled time slot and the configured time slot sub-cycle count value tsx_subprd_cnt, or tsx_subprd_cnt counts to 0 and updates to the initial value, and jumps to state 2'b11; in this state, according to the enabled time slot configured by the register and the corresponding time slot sub-cycle count value is 0, the low-speed state machine controls the generation of the corresponding time slot enable, that is, a certain time slot tsx_en is set. The tsx_active signal that controls the high-speed state machine jump comes from the tsx_en signal generated by this low-speed state machine, where x is a, b, c, d. The low-speed state machine reinitializes and loads the tmslot_cnt_lsm count value, and if the enable time slot configured by the register and the corresponding time slot sub-cycle count value are 0, the osc24m_en_s and begin_act signals are set, and then jump to the next state and clear the osc24m_en_s and begin_act signals, that is, osc24m_en_s and begin_act are pulse signals of a clock generated by the low-speed system clock.

[0062] Figure 6The internal high-speed state machine diagram of the multi-slot multi-channel sensing circuit logic control controls the judgment and generation of the multi-slot state. The four time slots of timeslota~timeslotd are taken as examples to explain the state machine jump. The high-speed state machine jumps based on the high-frequency 24M clock. The initial state of the state machine when powered on is the idle_sta state. When the start signal begin_act generated by the low-speed state machine is received, the signal jumps to the next state of the high-speed state machine. When in the non-external clock enable mode, it is necessary to first enter the wakeup_sta state and perform self-increment counting of the high-speed state machine counter clkh_cnt; when the clkh_cnt count value is equal to the wake-up value, the active state of the corresponding time slot is entered according to the time slot enable signals tsa_en, tsb_en, tsc_en, and tsd_en generated by the low-speed state machine. Taking all enabled as an example, first jump to tsa_active. In addition, if the external clock function is configured, the high-speed state machine directly jumps from the idle_sta state to the corresponding time slot active state. For example, if all are enabled, it directly jumps to the tsa_active state to enter the control of the time slot state, without waking up the waiting time and state jump. When the tsx_act_end signal generated by the transceiver link timing control state machine controlled by the internal high-speed clock is received, the active state of the next time slot is entered according to the next enabled time slot, that is, the tsa_active state jumps to the tsb_active state. Each time slot in the current active state is controlled by the high-speed state machine. Only when the corresponding tsx_act_end signal is received, the active state of the next time slot is entered according to the enabled time slot. When the last enabled time slot receives tsx_act_end in the active state, it enters the sleep_sta state and further jumps to the initial state, that is, the idle_sta state, through counting control. In the case of non-tsx_active state, the high-speed state machine controls the system to be in low-power working mode.

[0063] Figure 7This is a schematic diagram of the timing state machine for photoelectric sensor control of multi-time slot multi-channel transceiver link. It mainly completes the control of timing. According to the corresponding working timing state and register configuration, it performs hardware connection of the corresponding state, ADC channel selection and generation, and data conversion and processing of the corresponding channel, and further controls the conversion data of multi-time slot and multi-channel so that it can be accessed to the corresponding FIFO space in the corresponding time slot. According to the timing relationship diagram, several timing state controls and corresponding analog front-end connections are mainly generated. After power-on reset or in sleep state, this state machine jumps to the default state rx_idle_sta. When the ts_active signal generated by the phase or logic of several tsx_active signals of the high-speed state machine is valid, the active state jump begins, and tsx_rx_en is set to 1 to enter the rx_precon_sta state; in the rx_precon_sta state, the internal counter tmslotx_cnt of the state machine starts self-counting. When the count value tmslotx_cnt>=precon_width_set, tmslotx_cnt is initialized to 0, and tcnt_en is set to 1, the state machine jumps to the rx_actoffset_sta state, and tmslotx_cnt self-counts; when the count value tmslotx_cnt>=act_offset_set, the integral reset puls is initialized. The e signal tsx_intg_reset is set to 1 and tmslotx_cnt is initialized to 0. The state machine jumps to the rx_tmoffset_sta state and performs tmslotx_cnt self-counting; when the count value tmslotx_cnt>=intg_offset_set, tmslotx_cnt is initialized to 0, and jumps to the rx_intg_reset_sta state, and performs tmslotx_cnt self-counting. When the tmslotx_cnt count is equal to 'd25, tmslotx_cnt is initialized to 0. At this time, the state machine jumps to the positive integration state rx_fst_intg_sta for the first time, and performs tmslotx_cnt self-counting; when the count value tmslotx_cnt>=intg_width_set, tmslotx_cnt is initialized to 0, and jumps to the rx_snd_intg_sta state, that is, the negative integration state, and performs tmslotx_cnt self-counting;When the count value tmslotx_cnt>=intg_width_set, and the relationship between the integral count value intg_cnt and the integral count intg_numb_tsx configured in the register is compared and judged, when the integral count value intg_cnt is less than the integral count intg_numb_tsx value configured in the register, the integral count value intg_cnt is increased by 1, tmslotx_cnt is initialized to 0, and jumps to the rx_fst_intg_sta state again, and then jumps after the intg_numb_tsx integration as before. To rx_snd_intg_sta state, when the count tmslotx_cnt>=intg_width_set, and when the comparison determines that the relationship between the integral count value intg_cnt and the integral count intg_numb_tsx configured by the register is the same, multiple integrations are completed, and the rx_adc_conv_sta state is entered, tmslotx_cnt is initialized to 0, intg_cnt is initialized to 0, deci_filter_en is enabled to 1, and the padc_sel_chx signal for the start conversion of the polling is configured. The design takes 4 channels as an example, that is, there are padc_sel_ch0, padc_sel_ch1, padc_sel_ch2, ​​padc_sel_ch3; that is, when tmslotx_cnt>='d7, it enters the wait_adc_conv_sta state, and the ADC polling is set in sequence. If a certain time slot enables 4 channels at the same time. ;

[0064] After completing the conversion and data processing of all enabled single-ended channels when SWITCH=0 for the first time, according to the configuration enable, first set the SWITCH switch to 0 to convert the enabled first connection path, that is, perform ADC conversion according to the VC0 connection relationship count value generated by the configured first connection relationship. When the ch_cnt channel count value of the data processing completes SWITCH setting 0, the configured number of enabled channel conversions is completed, and the data conversion is completed. When the ADC converts the data and processes the data, each time the deci_flter_finish signal is received, it will judge whether the converted ch_cnt count value has completed the ADC conversion of all enabled channels, thereby entering the state jump judgment. When all configured SWITCHs are completed (after the first state configuration SWITCH=0 is connected, the second state machine polling configuration SWITCH=1 and the connection channel settings are performed according to the configured enable channel), the channel selection completes the ADC conversion. At this time, the deci_flter_en signal is cleared to 0, and padc_sel_chx is set to 0. At this time, the state machine jumps to rx_adc_conv_post_sta, and initializes tmslotx_cnt to 0, and the adc_conv_cnt counter counts up by itself; when the value of numb_repeat_tsx in the register configuration tsx_active running state is not 0, that is, the above state is repeated many times, the value of the adc_conv_cnt counter counts up by itself and jumps to the pre_rx_intg_cal_prd_sta state, and performs tmslotx_cnt self-counting;When the tmslotx_cnt count is equal to 'd25, tmslotx_cnt is initialized to 0, jumps to the rx_tmsoffset_sta state again and repeats the above jump state. When the number of repetitions makes the value of the adc_conv_cnt counter in the adc_conv_post_sta state equal to the numb_repeat_tsx number of the time slot configured by the register, the state machine jumps to the rx_adc_conv_end_sta state, depending on whether the lpf low-pass filter function is enabled in the configured enabled multi-channel. Enter the state jump. When the channel lpf is configured for data operation, the state machine jumps to the rx_lpf_sta state. In this state, the channel lpf characteristics are mainly configured according to the register to control different channels to perform different lpf operations. After processing all channels and the lpf levels selected by the channels, it enters the rx_wrfifo_pre_sta state. In this state, when tmslotx_cnt counts to 'd3, reset initialization is performed, and each time tmslotx_cnt counts to 'd3, ch_cnt is self-incremented and the corresponding enable bits are configured. When ch_cnt counts to the value of the number of channels enabled in the current SWITCH value state, that is, after the FIFO access of the number of enabled channels connected to the current SWITCH is enabled and data processing is completed, it proceeds to the next state, that is, enters the rx_wrfifo_end_sta state. In this state, when SWITCH=0, according to the enabled SWITCH channel value configured by the register, that is, if the channel of the connection relationship of SWITCH=1 is enabled, it jumps to the rx_precon_sta state again and further jumps to the state. When in rx In the _wrfifo_end_sta state, if the count is added to 'd4 at this time, SWITCH is equal to SWITCH_numb, that is, the switch is enabled, SWITCH is set to 0 at this time, and it goes to the rx_act_end_sta state. At this time, last_tsx is set to 1, and according to the current state logic circuit, the tsx_act_end signal sent to the high-speed state machine is set to 1. When tmslotx_cnt counts to 'd3, the state machine jumps to the rx_idle_sta state and initializes tmslotx_cnt to 0. That is, the LED transmission of an enabled time slot and the control of the state and timing of the corresponding receiving link are completed, and the jump selection and control implementation of the above state are completed again according to the next enabled time slot. When all enabled time slots are completed, the state machine jumps to the rx_idle_sta state until the tsx_active signal generated by the enabled time slot controlled by the high-speed state machine is waited for again to perform channel control and enable conversion again. ;

[0065] Figure 8 This is a schematic diagram of the LED state control state machine jump. When the power is on, the LED light state machine and other non-LED working states are controlled by the state machine to jump to the initial state ledtx_idle_sta. Figure 7When the state machine in jumps to the rx_actoffset_sta state and the tmslotx_rxcnt count value>=act_offset_set, or multiple integral conversions make tmslotx_rxact_sta jump to the pre_rx_intg_cal state and the tmslotx_rxcnt count value is'd24, the state machine jumps to the ledtx_offset_sta state, at this time, the led_repeat_cnt count value is initialized to 0, and the tmslotx_ledcnt self-counting is performed. When its count value tmslotx_ledcnt>=led_o When ffset_set, set tsx_txbg_en to 1, and initialize tmslotx_ledcnt to 0, the state machine jumps to the ledtx_txbg_sta state, tmslotx_ledcnt counts itself up, when the tmslotx_ledcnt count is greater than or equal to 'd24, tmslotx_ledcnt is initialized to 0, and jumps to the ledtx_width_sta state, and sets ledx_en to 1, tmslotx_ledcnt counts itself up; when the tmslotx_ledcnt count value is equal to led_width_sta and the product is When the divided count value intg_cnt is less than the time slot integration times numb_int_tsx configured by the register, the state machine jumps to the ledtx_wait_sta state, and tmslotx_ledcnt is initialized to 0. In this state, tmslotx_ledcnt performs self-counting. When the count value of tmslotx_ledcnt is greater than or equal to the value of led_wait_cnt_cal, it jumps back to led_width_sta. The value of led_wait_cnt_cal is When the configured integration width is greater than the value of led_width, led_wait_cnt_cal It is equal to the value of intg_width minus led_width, or when the configured integration width is less than the led_width value, the value of led_wait_cnt_cal is equal to 0; when the register is configured with tia_adc_mode_tsx, or in this state, when tmslotx_ledcnt counts to equal the led_width_set value, the number of integration times is equal to the numb_int_tsx value configured in the register, and the ledtx_wait_adc_sta state is entered from the ledtx_width_sta state, at which time tx_bg_en is set to 0 and ledx_en is set to 0.The led state machine controls the state machine to jump according to the transceiver link. When it is in ledtx_wait_adc_sta, if tmslotx_rxact_sta is in pre_rx_intg_cal state and tmslotx_rxcnt count value is 'd24, the state machine jumps to ledtx_offset_sta state and completes multiple LED control transmission jumps again until it is in ledtx_wait_adc_sta state, tmslotx_rxact_sta state is rx_adc_conv_post_sta, and the value of adc_conv_cnt counter is equal to numb_repeat_tsx, then the state machine of led control transmission link jumps to ledtx_idle_sta state.

[0066] and Figure 8 The LED state control state machine principle is the same as that of the modulation state machine. The state machine control and jump in the modulation state are as follows: Fig. 9 As shown, in modulation mode, the register will set a logic signal en_mod_tsx in an active state to 1 through configuration. When en_mod_tsx configuration is enabled, and Figure 7When the state machine in jumps to the rx_actoffset_sta state and the tmslotx_rxcnt count value>=act_offset_set, or multiple integral conversions make tmslotx_rxact_sta jump to the pre_rx_intg_cal state and the tmslotx_rxcnt count value is'd24, the state machine jumps from the initial state mod_idle_sta to the mod_offset_sta state, at this time, the tmslotx_modcnt count value is initialized to 0, and tmslotx_mod cnt counts by itself. When the tmslotx_modcnt count value is greater than or equal to the mod_offset_set value, it jumps to the mod_txbg_sta state, initializes tmslotx_modcnt to 0, and performs tmslotx_modcnt self-counting. When the tmslotx_modcnt count value is greater than or equal to the 'd24 value, it jumps to the mod_width_sta state, sets mod_conct_en to 1, initializes tmslotx_modcnt to 0, and performs tmslotx_modcnt self-counting. When the count value of tmslotx_modcnt is equal to mod_width_set and the integral count value intg_cnt is less than the integral count of the time slot configured by the register, the state machine jumps to the mod_wait_sta state, sets mod_conct_en to 0, and initializes tmslotx_modcnt to 0. In this state, tmslotx_modcnt performs self-increment counting; when the count value of tmslotx_modcnt is greater than or equal to the value of mod_wait_cnt_cal, it jumps back to the mod_width_sta state, and mod_wait_cnt_cal The value of l is when the configured integration width is greater than the mod_width value, the value of mod_wait_cnt_cal is equal to intg_width_set minus the value of mod_width_set, or when the configured integration width is less than the mod_width value, the value of mod_wait_cnt_cal is equal to 0; in this state, when tmslotx_modcnt counts to equal the mod_width_set value, the number of integration times is equal to the numb_int_tsx value configured in the register, and the mod_wait_adc_sta state is entered, and mod_conct_en is set to 0.The modulation state machine jumps according to the transceiver link control state machine. When in mod_wait_adc_sta, if tmslotx_rxact_sta is in pre_rx_intg_cal state and tmslotx_rxcnt count value is 'd24, the state machine jumps to mod_offset_sta state and re-completes multiple modulation state control transmission jumps until it is in mod_wait_adc_sta state, when tmslotx_rxact_sta is rx_adc_conv_post_sta and adc_conv_cnt is equal to numb_repeat_tsx, the modulation control transmission link state machine jumps to mod_idle_sta state.

[0067] Fig.10 The circuit schematic diagram for generating the tsx_act_end signal, the logic schematic diagram for controlling the LED drive current and enabling the tsx_led_en signal of the transmission link, and the logic for generating the control forward integration signals INTG_POS_ING and INTG_NEG_ING generated by the transceiver link control state machine. The generated INTG_POS_ING and INTG_NEG_ING signals are copied and sent to the input of the integrator in the multi-channel as the integration pulse for controlling the integrator to integrate.

[0068] Fig.11 This is a schematic diagram of the data signal processing principle for ECG and PPG in parallel. After the data converted by the two ADCs pass through the decimation module, the data written into the FIFO space allocated to the corresponding ECG and PPG are generated according to the filter function enabled; and according to the enabled interrupt function, the logic generation and judgment of the interrupt are performed in the corresponding state machine jump state and data, and the corresponding interrupt flag is enabled. The corresponding starting address and space threshold size can be configured for ECG and PPG enabled time slots through the FIFO control register. When writing the FIFO state, the internal transceiver link control state machine will store the corresponding data according to whether the corresponding lpf is enabled, and the generation of the FIFO control write enable of the corresponding time slot.

[0069] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A multi-time slot multi-channel photoelectric sensor control chip, characterized in that: The multi-time slot multi-channel photoelectric sensor control chip performs in parallel the generation of corresponding transceiver link optical signals, the conversion of optical signals into electrical signals after passing through human tissue and the reception, the simultaneous multi-channel processing and calculation of corresponding electrical signals, the filtering processing of corresponding signals and the data processing and storage of automatic signal accumulation; The multi-time slot multi-channel photoelectric sensor control chip comprises: Multi-channel photoelectric sensing analog front end, used for photoelectric signal detection, ADC data conversion and providing effective data conversion completion signal; Two ADC conversion modules, one connected to PPG and the other to ECG, to achieve the combination of PPG and ECG to measure heart rate, and to simultaneously detect and convert two electrical signals; The logic control module realizes the conversion connection of different analog signals in multiple time slots and multiple channels, the filtering and accumulation processing and control of different channels of digital data, controls the integrator to perform positive and negative integration function pulses according to the timing of the internal state machine, and controls the integrator to perform the corresponding number of integrations according to the number of integrations required, and outputs them to the two ADC conversion modules; Photoelectric sensor module, through register configuration to achieve single channel detection, multi-channel simultaneous detection, according to the hardware configuration to enable the channel to perform sequential ADC conversion and data polling scanning, according to the configuration to perform the corresponding low channel filtering algorithm processing, and according to the register configuration of the accumulation function to enable some time slots to implement algorithms including accumulation, accumulation averaging, automatic subtraction; The clock generation and processing module generates a low-power operation control signal based on the working status parameters obtained from the current working status of the chip, and controls the power supply and clock of the corresponding internal analog circuit to work in a low-power mode.

2. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: When the photoelectric sensor module uses the single-ended input mode, the photoelectric input IN port is selectively connected to multiple photoelectric sensing devices through the SWITCH switch; the photoelectric sensor module selects single-ended or differential mode connection multiplexing, and selects the connection between the positive and negative ends of the transimpedance amplifier through the register configuration connection relationship; The photoelectric sensing module is provided with an interrupt vector and an interrupt flag; the photoelectric sensing module senses and quantifies the received optical signal by measuring the magnitude of the current signal input from the photoelectric sensing device to the transimpedance amplifier; the photoelectric input IN port and the ECG electrode are configured as analog pins, and their inputs are directly connected to the internal analog receiving channel.

3. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: When configured as ECG and PPG simultaneous working mode, the clock generation and processing module generates a corresponding working clock mode for controlling the ECG and PPG logic timing, and configures the basic bias and power reference signals of the two ADC conversion modules, collects and detects the electrical signals in the analog front end according to the configured working mode, completes the processing of the corresponding data and generates the control signal for the running state machine.

4. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: When only the PPG optoelectronic path is configured to work, when the PPG optoelectronic path enters the sleep mode, the high-frequency clock and the analog power supply of the optoelectronic transceiver link are turned off, and the frequency of the internal counting clock adopts the low-speed 32K clock. After the optoelectronic transceiver link enters the sleep mode, no external MCU or logic control module is required to control it. After the internal low-speed state machine completes the periodic counting, it will automatically wake it up from the sleep mode and start a new cycle detection.

5. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The logic control module includes a state control processing module and a register read-write configuration module; The state control processing module is used to generate power, clock, reset signals of the analog front end, and mode detection of automatic operation of the internal logic. The state machine controls the low-power state in the sleep mode to enter the low-power state after the corresponding internal power and clock control processing and generates a switch control signal for the operation of the corresponding module; wherein the mode detection of automatic operation of the internal logic is performed according to the periodic detection and sleep of the register configuration; The register read and write configuration module configures the register according to the configured operating mode, multi-slot multi-channel transmission link LED current drive control, the enablement and channel configuration of the corresponding module of the receiving link, and the control of the integration number and ADC conversion number mode.

6. The multi-time slot multi-channel photoelectric sensor control chip as claimed in claim 5, characterized in that: After the internal state machine performs corresponding multi-slot multi-channel detection and conversion according to the configuration register value, it generates a low-power operation control mode according to the configured time period, controls the time slot operation function and the internal counting clock of the sleep mode to count with a low-speed clock.

7. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The logic control module generates the timing control of the PPG optoelectronic transceiver link, the logic control generates the operation and enable signals of the transimpedance amplifier in the analog front end, and the analog electrical signal conversion enable control signal that controls the anti-aliasing filter in the analog front end to eliminate DC offset and ambient background light signals, and controls the analog electrical signal to be denoised and output to the integrator.

8. The multi-time slot multi-channel photoelectric sensor control chip as claimed in claim 7, characterized in that: The logic control module also generates a logic control signal for controlling the ECG to perform ADC conversion and detection. The ECG receiving analog front end is directly connected to the human body, and the ECG detection and measurement are performed by detecting the conversion values ​​of the two electrode voltages and the data processed by digital logic. In addition, when performing ECG DC dropout or AC dropout detection, the right leg drive function needs to be configured to perform ECG electrode usage characteristics and voltage detection.

9. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The two-way ADC conversion module generates the conversion function of ADC operation, data processing and conversion of the corresponding digital internal extraction filter, sequential conversion according to the configured number of enabled channels, and data processing and extraction after ADC conversion according to the logic control module during the ADC conversion stage; the logic control module generates the logic required for filtering calculation and algorithm processing, and transmits the digital processing calculation results and control FIFO access signals and corresponding data detection to the interrupt generation and processing module; the interrupt generation and processing module is used to generate data access signals and data calculation processing for controlling different channels in the corresponding operation time slot.

10. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The two-way ADC conversion module adopts a high-precision and high-performance analog-to-digital conversion circuit and a corresponding interpolation filtering algorithm, and the conversion rate is only determined by the working clock; the working clock of the two-way ADC conversion module can flexibly select the division ratio through register configuration, and the division coefficient can be configured in multiple gears.

11. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The chip also includes a clock management module and a chip register read and write configuration module; The clock management module is used to provide the basic clock and reset signals for the analog and digital logic circuit functions to work in various modes; The chip register read and write configuration module is used to configure the control and mode configuration signals for the corresponding work of multi-slot multi-channel, and complete the read and write operations of the FIFO and interrupt registers inside the logic control module.

12. The multi-time slot multi-channel photoelectric sensor control chip according to claim 11, characterized in that: The clock management module includes at least a first high-speed clock and a second low-speed clock; in addition, a configured input external clock is selected as a third clock, which is used to provide clock, reset, and synchronization signals for the digital logic circuit function to work in various modes, and control the analog front-end implementation circuit to obtain the ADC conversion clock and channel conversion control signal at a preset frequency.

13. The multi-time slot multi-channel photoelectric sensor control chip according to claim 12, characterized in that: The chip register read and write configuration module controls the internal logic of the chip system to enter the running mode or the sleep mode according to the acquired control parameters; In normal mode, both the first clock high-speed clock and the second clock low-speed clock are running; in sleep mode, not all clocks of the clock management module are running.

14. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The chip also includes an ECG detection and corresponding interrupt processing module, which is used to generate relevant signals for controlling the operation of ECG detection, data calculation and data reading, converting the input electrode voltage signal into transmission data and storing it in the FIFO module, and generating a fall-off detection interrupt.

15. The multi-time slot multi-channel photoelectric sensor control chip according to claim 1, characterized in that: The chip also includes a power management module. When the chip works in different modes, the power management module controls the internal power management of the analog modules, digital logic and FIFO of the transceiver link to achieve the basic working power supply of the digital and analog circuits in the chip system.

16. The multi-time slot multi-channel photoelectric sensor control chip according to any one of claims 1 to 15, characterized in that: The chip is integrated into a SoC or MCU system as a general hardware IP circuit, and uses the CPU program in the MCU and SoC to control and process the corresponding multi-channel sensor circuits and data.