An emergency descent method for implementing transcranial electrical stimulation waveforms

The symmetric slow-down current stimulation waveform is generated by DAC and DMA, which solves the problem of current mutation in the transcranial electrical stimulator during emergency shutdown, and achieves a safe and comfortable slow-down current and adapts to different stimulation modes.

CN115518292BActive Publication Date: 2025-08-05ZHEJIANG NEWROS MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211087799.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2025-08-05
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

When the existing transcranial electrical stimulator is closed urgently, the current mutation causes the patient's sting and lacks an effective slow-down mechanism.

Method used

DAC and DMA functions are used to generate a symmetric slow-down current stimulation waveform. By judging the emergency button, the symmetric slow-down of the current to 0mA is achieved, and different stimulation modes are adapted to different stimulation modes.

Benefits of technology

It effectively eliminates the stinging sensation during emergency closure, improves patient safety and comfort, is low in cost and fast response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115518292B_ABST
    Figure CN115518292B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for realizing an emergency slow-down of a transcranial electrical stimulation waveform, comprising the following steps: A. generating different stimulation waveform data according to different stimulation modes and storing the data in an SRAM; B. activating the DMA function of a DAC to generate a corresponding voltage waveform from the stimulation waveform data in the SRAM to drive a constant current source and generate a corresponding current stimulation waveform; C. judging whether an emergency button is pressed: when the emergency button is pressed, the current stimulation waveform adopts a symmetrical slow-down method to reduce the current to 0 mA; otherwise, the stimulation continues until the set stimulation time is reached.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an emergency processing method for a transcranial electrical stimulation waveform, in particular to an emergency slow-down method for achieving a transcranial electrical stimulation waveform. Background Art

[0002] Most transcranial electrical stimulators on the market implement a slow ramp-up and ramp-down stimulation waveform to adapt to the patient's tolerance for current and prevent sudden current changes that can cause tingling. However, when an emergency occurs during stimulation and an emergency stop is required, most stimulators will simply shut off the output current. This sudden current change can cause tingling in the patient. Therefore, existing technologies have the problem of transcranial electrical stimulators causing tingling in patients when they are shut down in an emergency. Summary of the Invention

[0003] The purpose of the present invention is to provide a method for achieving an emergency ramp-down of a transcranial electrical stimulation waveform. The present invention has the characteristic of being able to effectively eliminate the tingling sensation caused to the patient by the transcranial electrical stimulation device in the event of an emergency shutdown.

[0004] The technical solution of the present invention is a method for realizing an emergency slow-down of a transcranial electrical stimulation waveform, comprising the following steps:

[0005] A. Generate different stimulation waveform data according to different stimulation modes and store them in SRAM;

[0006] B. Start the DMA function of the DAC to generate the corresponding voltage waveform from the stimulation waveform data in the SRAM to drive the constant current source and generate the corresponding current stimulation waveform;

[0007] C. Determine whether the emergency button is pressed:

[0008] When the emergency button is pressed, the current stimulation waveform adopts a symmetrical slow-down method to reduce the current to 0mA;

[0009] Otherwise, the stimulation will continue until the set stimulation time is reached.

[0010] In the aforementioned method for realizing an emergency ramp-down of a transcranial electrical stimulation waveform, when the current stimulation waveform is a DC stimulation waveform, the specific method for symmetrical ramp-down is:

[0011] After pressing the emergency button, compare the CVa value with the Vmax value and the DS value. The Vmax value is less than the DS value.

[0012] If the CVa value is less than the Vmax value, the current is in the rising phase, and the DMA will immediately stop the transmission. The DMA will reset the data in the DB to be transmitted, the starting address DB[VOL_COE-CVa], and the number of transmissions CVa. After the setting is completed, the transmission will start immediately. The data in this DB is the current slow-down data, and it is symmetrical with the rising phase. After the transmission is completed, the current drops to 0mA, ending the stimulation.

[0013] If the CVa value is between the Vmax value and the DS value, and the current is in the holding stage, DMA will immediately stop transmitting. DMA will reset the data in the DB to be transmitted, with the starting address of the transmitted data being DB[VOL_COE-Vmax], and the number of transmitted data being Vmax. After the setting is completed, transmission will start immediately. The data in this DB is the current slowly decreasing data, and is symmetrical with the rising stage of the waveform. After the transmission is completed, the current drops to 0mA, and the stimulation ends.

[0014] If the CVa value is ≥ the DS value, the current is in the decreasing stage, and the DMA continues to transmit the data of the current slowly decreasing until the transmission is completed, that is, the current drops to 0mA, and the stimulation ends;

[0015] Among them, CVa value: During the process of DMA transmitting DAC data, it is completed under the drive of tr, that is, an overflow interrupt of the timer is a point of DMA transmission. After the transmission of a data point is completed, tr will interrupt once and accumulate a count value CVa in the interruption, CVa=CVa+1.

[0016] In the aforementioned method for realizing an emergency ramp-down of a transcranial electrical stimulation waveform, the calculation process of the Vmax value and the DS value is as follows:

[0017] 1) The time it takes for tr to record a number is 1us,

[0018] ARR = ((Srt / VOL_COE)-1) / 1;

[0019] Among them, ARR: the count value required for tr to overflow once, this value is used to configure tr;

[0020] Srt: The maximum rise time corresponding to the maximum current that the device can be set to;

[0021] VOL_COE: The maximum value of the DAC corresponding to the maximum current that the device can set. This value is a constant 4096;

[0022] 2)Vmax=VOL_COE*CV / MAX_OUT_CUR;

[0023] Where Vmax: The current preset value corresponds to the value output by the DAC; MAX_OUT_CUR: The maximum current value set: This value is a constant: 2mA;

[0024] CV: preset current value (0--2mA), <= MAX_OUT_CUR;

[0025] 3)Tt=t*60*1000000 / ((ARR+1)*1);

[0026] Where, Tt: the total number of tr overflow interruptions; t: the user-preset stimulation time (minutes), t*60*1000000 (us); (ARR+1)*1: the time required for tr overflow once (us);

[0027] 4) SS = Vmax - 1; where SS is the number of tr overflows corresponding to time T1;

[0028] DS=Tt-SS; where DS is the number of tr overflows corresponding to time T2.

[0029] In the aforementioned method for realizing an emergency ramp-down of a transcranial electrical stimulation waveform, when the current stimulation waveform is an AC stimulation waveform, the specific method for symmetrical ramp-down is as follows: after pressing the emergency button, first determine whether the CVa value is less than (ADP / 2). If the CVa value is less than (ADP / 2), then determine the data of the currently used buf, and then stop DMA transmission based on the number of DNA transmission data points recorded by the CVa value. Set the DMA data at the DAC_Buf1[ADP-CVa] position, and the number of transmission data points is CVa for transmission. This value is exactly the symmetrical value at the start of stimulation, and it is a ramp-down waveform. This transmission is completed, that is, the current ramp-down is 0mA, and this stimulation ends.

[0030] If the CVa value is ≥ (ADP / 2), it means that the sine wave is slowly descending to 0 point. It is only necessary to record the emergency button pressing mark bit and stop the stimulation after the data transmission is completed.

[0031] In the aforementioned method for realizing an emergency ramp-down of a transcranial electrical stimulation waveform, DAC_Buf1 is filled with half-wave data of a sine wave of 200 discrete points, and the buf used is recorded, BF=1. When the stimulation is started, the half-wave data is generated by DAC to control the constant current source using the DAC+DMA method. When DMA transmits a point, an overflow interrupt will be generated in tr. In the tr interrupt, the value CVa is accumulated and recorded once to determine the moment when the waveform is dotted. After the half-wave transmission is completed, CVa is cleared to 0, and the electrode current is controlled to reverse, and the half-wave data is transmitted again, BF=0, RSt plus 1, and Buf2 data is filled; in the tr interrupt, the value CVa is accumulated and recorded once, and CVa is cleared to 0 after the half-wave transmission is completed.

[0032] In the aforementioned method for realizing an emergency ramp-down of a transcranial electrical stimulation waveform, the value of ADP is 200, that is, one half-sine wave is 200 points.

[0033] Compared with the prior art, the present invention adopts a method of symmetrically slowly decreasing the stimulation current, which realizes that in an emergency, the stimulation current waveform is symmetrically slowly decreased to 0mA, which can effectively solve the phenomenon of tingling sensation caused by the transcranial electrical stimulation device to the patient in the case of emergency shutdown, ensure the safety of the patient, and improve the comfort of using the stimulator. At the same time, the method of the present invention is not only low in cost, but also has a fast reaction speed and good safety performance. In summary, the present invention has the characteristic of being able to effectively eliminate the tingling phenomenon caused by the transcranial electrical stimulation device to the patient in the case of emergency shutdown. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is the overall flow chart of the present invention;

[0035] Figure 2 is the DC stimulation waveform;

[0036] Figure 3 is the pseudo-stimulation waveform;

[0037] Figure 4 It is the AC stimulation waveform. DETAILED DESCRIPTION

[0038] The present invention will be further described below with reference to the accompanying drawings and examples, but they are not intended to limit the present invention.

[0039] Embodiment. A method for realizing an emergency slow-down of a transcranial electrical stimulation waveform, comprising: Figure 1 As shown, the following steps are included:

[0040] A. Generate different stimulation waveform data according to different stimulation modes and store them in SRAM;

[0041] B. Start the DMA function of the DAC to generate the corresponding voltage waveform from the stimulation waveform data in the SRAM to drive the constant current source and generate the corresponding current stimulation waveform;

[0042] C. Determine whether the emergency button is pressed:

[0043] When the emergency button is pressed, the current stimulation waveform adopts a symmetrical slow-down method to reduce the current to 0mA;

[0044] Otherwise, the stimulation will continue until the set stimulation time is reached.

[0045] When the current stimulation waveform is a DC stimulation waveform, the specific method of symmetrical ramp-down is as follows:

[0046] like Figure 2 As shown in the figure: DC stimulation waveform, ①->②->③ are defined as a complete stimulation waveform, with a time interval of (T0--T). T0--T1(①) is the current rising phase, and the rise time T1 is linearly related to the set current value. For example, if the set current value is 1mA, then T1 = 30s, and 0.5mA is 15ms; T1--T2(②) is the phase where the current reaches the preset value and is maintained, and T2--T(③) is the current falling phase. This waveform is symmetrical with the current rising phase.

[0047] If the emergency stop button is pressed at time t0 in the T0--T1(①) interval, the current waveform will slowly decrease to 0 mA along the waveform shown in ①-1 at this moment, ending the stimulation and ensuring that the patient does not feel any stinging. The waveform in ①-1 is symmetrical with the waveform in T0--t0.

[0048] If the emergency stop button is pressed at time t1 in the T1--T2 (②) interval, the current waveform will slowly decrease to 0 mA along the waveform shown in ②-2 at this moment, ending the stimulation.

[0049] If the emergency stop button is pressed at time t2 in the T2--T(③) interval, the current waveform will continue to slowly decrease to 0mA along the waveform shown in ③ at this moment, ending the stimulation;

[0050] Specific implementation method:

[0051] This method uses the DAC+DMA mode. During the DAC data transmission process, DMA is driven by tr. That is, an overflow interrupt of the timer is a point of DMA transmission. Therefore, when setting the parameters, it is necessary to calculate:

[0052] 1) The time it takes for tr to record a number is 1us,

[0053] ARR = ((Srt / VOL_COE)-1) / 1;

[0054] ARR: The count value required for tr to overflow once. This value is used to configure tr;

[0055] Srt: The maximum rise time corresponding to the maximum current that the device can be set to, such as 2mA corresponds to 60s; Srt = 60*1000(us).

[0056] VOL_COE: The maximum value of the DAC corresponding to the maximum current that the device can set. This value is a constant 4096;

[0057] 2)Vmax=VOL_COE*CV / MAX_OUT_CUR;

[0058] Vmax: The current preset value corresponds to the value output by the DAC;

[0059] MAX_OUT_CUR: Set the maximum current value: This value is a constant: 2mA;

[0060] CV: preset current value (0--2mA); (<=MAX_OUT_CUR);

[0061] This value is pre-loaded in DACV_Buf

[200] and is used for the transmission value of DAC+DMA in phase ②;

[0062] 3)Tt=t*60*1000000 / ((ARR+1)*1);

[0063] Tt: total number of tr overflow interruptions; t: user-preset stimulation time (minutes)

[0064] t*60*1000000(us);(ARR+1)*1: the time required for tr to overflow once (us);

[0065] This value is used to determine whether the stimulation is completed;

[0066] 4) SS = Vmax - 1;

[0067] SS: The number of tr overflows corresponding to time T1;

[0068] DS = Tt-SS;

[0069] DS: the number of tr overflows corresponding to time T2;

[0070] This value is used to determine the current stage after the emergency stop is pressed; ① stage ② stage ③ stage.

[0071] In the static RAM, there are 2 bufs, which store RB[VOL_COE] value 0--4095, corresponding to the current ramp-up data, and DB[VOL_COE] value 4095--0, corresponding to the current ramp-down data, and are symmetrical with the ramp-up data. When the device starts stimulating, the waveform is in stage ①, the rising stage, DAC+DMA will transfer the data in RB, the data length is VOL_COE; when the transmission is completed, tr will interrupt once, and accumulate a count value CVa in the interrupt, CVa=CVa+1; when the transmission of VOL_COE is completed, it will trigger a transmission completion interrupt and continue to transmit stage ②. After the DACV_Buf data is transmitted, the transmission completion interrupt is entered again to determine whether it has entered stage 3. If not, the data of stage ② will continue to be transmitted. If it is determined to enter stage ③, the data in DB will be transmitted; until the transmission is completed, that is, the current drops to 0mA, and the stimulation ends; if the emergency stop button is pressed at time t0 in stage ①, CVa is compared with Vmax. If it is less than Vmax, it is in the rising stage, and DMA will stop transmitting immediately. DMA will reset the data in DB to be transmitted, the starting address DB[VOL_COE-CVa], and the number of transmissions CVa. After the setting is completed, the transmission will be started immediately. This DB contains data on current slow-down, and is symmetrical with the rising stage. After the transmission is completed, the current drops to 0mA, and the stimulation ends. If the emergency stop button is pressed at time t1 in stage ②, CVa is compared with Vmax and DS. The CVa value is between Vmax and DS, and it is judged to be stage ②. DMA will immediately stop transmission and reset the data in the DB to be transmitted. The starting address of the transmitted data is DB[VOL_COE-Vmax], and the number of transmissions is Vmax. After the setting is completed, the transmission is started immediately. This DB contains data on current slow-down, and is symmetrical with the rising stage. After the transmission is completed, the current drops to 0mA, and the stimulation ends. If the emergency stop button is pressed at time t2 in stage ③, DMA will immediately stop transmission. CVa is compared with Vmax and DS. The CVa value is greater than or equal to the DS value, and it is judged to be stage ③. DMA continues to transmit data on current slow-down until the transmission is completed, that is, the current drops to 0mA, and the stimulation ends.

[0072] This method also works with sham stimulus waveforms; e.g. Figure 3 shown.

[0073] Figure 3In the figure, if the button is pressed at time t0, the stimulation waveform will slowly decrease to 0mA along the dotted current waveform at time t0, and the stimulation ends; if the button is pressed at time t1, the stimulation waveform will continue to slowly decrease to 0mA along the current waveform, and the stimulation ends; if the button is pressed at time t2, the stimulation ends directly; if the button is pressed at time t3, the processing method is the same as at time t0; if the button is pressed at time t4, the processing method is the same as at time t1;

[0074] When the current stimulation waveform is an AC stimulation waveform, the specific method of symmetrical ramp-down is as follows:

[0075] like Figure 4 As shown: If you press the emergency stop button at any time during the entire stimulation cycle, the time point will fall within the periodic waveform of a sine wave, such as Figure 4 As shown, it is divided into 4 stages: T0--T1 is stage ①; T1--T2 is stage ②; T2--T3 is stage ③, and T3--T4 is stage ④; if the emergency stop keyboard is pressed at stage ① t0, the stimulation current will stop rising immediately, and the symmetrical wave of the rising stimulation waveform will slowly drop to 0mA at this point; if the emergency stop button is pressed at stage ② t1, because the stimulation current itself is in a slow-down stage at this stage, the stimulation current will continue to stimulate until the end of time T2; if the emergency stop button is pressed at stage ③ t2, the stimulation current will stop immediately, and slowly drop to 0mA along the symmetrical waveform to end the stimulation; if the emergency stop button is pressed at stage ④ t3, the waveform at this time is in a slow-down trend, so the stimulation current will continue to stimulate until the end of time T4;

[0076] Specific implementation method:

[0077] In the DAC+DMA mode, DMA is driven by tr during the transmission of DAC data, that is, an overflow interrupt of the timer is a point of DMA transmission; so when setting parameters, it is necessary to calculate:

[0078] 1) The time it takes for tr to record a number is 1us.

[0079] ARR=(uint16_t)(1000000 / (2*ADP*FV))-1;

[0080] ARR: The count value required for tr to overflow once. This value is used to configure tr; ADP: 200, a sine half wave is 200 points; FV: The preset period value;

[0081] 2), Buf[i]=k*sin(x*(Pi / 180))i:[1--ADP]

[0082] k = CV*VOL_COE / MAX_OUT_CUR;

[0083] x=uAng*i;

[0084] uAng=180 / ADP;

[0085] 3), RS=(Srt)*FV*CV / MAX_OUT_CUR

[0086] RS: number of slowly rising waveform cycles; Srt: 60s

[0087] FV: preset frequency value; MAX_OUT_CUR: 2mA

[0088] DS=RS; DS: the number of falling cycle waveforms;

[0089] 4), Buf1[i]=Buf[i]*RSt / RS;

[0090] Buf2[i]=Buf[i]*RSt / RS;

[0091] i:[1--ADP];

[0092] Fill value of double buf in the rising phase;

[0093] 5), Buf1[i]=Buf[i]*DSt / DS;

[0094] Buf2[i]=Buf[i]*DSt / DS;

[0095] i:[1--ADP]

[0096] In the descending phase, the fill value of the double buf;

[0097] 6) MPN=t*FV-2*RS-1

[0098] MPN: The number of waveform cycles at the end of the AC hold phase; t: Preset time in seconds

[0099] FV: Preset frequency.

[0100] Fill DAC_Buf1 with half-wave data of a sine wave with 200 discrete points. To improve transmission efficiency, this transmission mechanism uses a dual-buf transmission mechanism. BF is used to determine which buf is currently needed and which buf needs to be filled with data. The rising phase buf used is recorded. When BF = 1, the initial data of Buf1 and Buf2 are calculated and filled. When stimulation is started, Buf1 data is transmitted for the first time. The DAC+DMA method is used to generate an analog voltage from the DAC to control the constant current source. When DMA transmits a point, an overflow interrupt will be generated in tr. In the tr interrupt, the value CVa is accumulated and recorded once to determine the moment when the waveform is dotted. After the half-wave transmission is completed, CVa is cleared to 0. The electrode current is reversed and the half-wave Buf1 data is transmitted again. RSt is increased by 1, and the BF value is alternately 0 and 1. The data of Buf1 or Buf2 is calculated and filled, and the buf data is used for transmission in the next cycle. In the tr interrupt, the value CVa is accumulated and recorded once. After the half-wave transmission is completed, CVa is cleared to 0.

[0101] After the transmission of two half waves is completed, the CVa value is used to determine whether the maximum value RS has been reached; if not, the transmission continues in the above manner. If it has been reached, it enters the T1--T2 stage, and buf is filled with the maximum waveform data value; the data value is transmitted cycle by cycle again, and MPN decreases by 1 after each cycle until MPN decreases to 0, exiting the T1--T2 stage and entering the T3--T stage;

[0102] In the T3--T stage, the lowering stage buf used is recorded, and the double buf mechanism is also adopted. After each transmission cycle, DSt decreases by 1, and BF0 and 1 are alternately calculated and filled with Buf1 or Buf2 data. The filling value and transmission value in buf will continue to decrease until DSt = 0, and then the stimulation ends.

[0103] For example, if the key is pressed at time t0, first determine whether the CVa value is less than (ADP / 2). If so, it can be concluded that time t0 is between T0 and T1. Determine which buf data is currently being used. For example, if BF=1, the data of Buf1 is being used. Then, based on the value of CVa, record how many points have been marked, stop DMA transmission, set the DMA data at the position of DAC_Buf1[ADP-CVa], and the number of transmissions is CVa. Transmission is carried out. The value of this part is exactly the symmetrical value at the beginning of stimulation, and it is a slowly decreasing waveform. This transmission is completed, that is, the current slowly decreases to 0mA, and this stimulation ends.

[0104] If the button is pressed at time t1, according to the value of CVa, compared with (ADP / 2), CVa>(ADP / 2); this indicates that the sine wave is slowly descending to 0 point. This time, only the emergency button press mark is recorded. After the data transmission is completed, the stimulation is stopped.

[0105] The judgment mechanism of reverse half-enclosure and forward half-enclosure is the same.

Claims

1. A waveform emergency descent method, characterized by: The following steps are involved: A. Generate different stimulation waveform data according to different stimulation modes and store them in SRAM; B. Start the DMA function of the DAC to generate the corresponding voltage waveform from the stimulation waveform data in the SRAM to drive the constant current source and generate the corresponding current stimulation waveform; C. Determine whether the emergency button is pressed: When the emergency button is pressed, the current stimulation waveform adopts a symmetrical slow-down method to reduce the current to 0mA; Otherwise, the waveform will continue to be output until the set time is reached; When the current stimulation waveform is a DC stimulation waveform, the specific method of symmetrical ramp-down is as follows: After pressing the emergency button, compare the CVa value with the Vmax value and the DS value. The Vmax value is less than the DS value. If the CVa value is less than the Vmax value, the current is in the rising phase, and the DMA will immediately stop the transmission. The DMA will reset the data in the DB to be transmitted, the starting address DB[VOL_COE-CVa], and the number of transmissions CVa. After the setting is completed, the transmission will start immediately. The data in this DB is the current slow-down data, and it is symmetrical with the rising phase. After the transmission is completed, the current drops to 0mA, ending the stimulation. If the CVa value is between the Vmax value and the DS value, and the current is in the holding stage, DMA will immediately stop transmitting. DMA will reset the data in the DB to be transmitted, with the starting address of the transmitted data being DB[VOL_COE-Vmax], and the number of transmitted data being Vmax. After the setting is completed, transmission will start immediately. The data in this DB is the current slowly decreasing data, and is symmetrical with the rising stage of the waveform. After the transmission is completed, the current drops to 0mA, and the stimulation ends. If the CVa value is greater than or equal to the DS value, the current is in the decreasing stage, and the DMA continues to transmit the data of the current slowly decreasing until the transmission is completed, that is, the current drops to 0mA, and the stimulation ends; Among them, CVa value: the initial value is 0. During the DAC data transmission process, DMA is completed under the drive of tr. That is, an overflow interrupt of the timer is a point of DMA transmission. After the transmission of a data point is completed, tr will interrupt once and accumulate a count value CVa in the interruption, CVa=CVa+1; DS: The number of tr overflows corresponding to time T2. T2 represents the moment when the current starts to decrease from the preset value. Vmax: The current preset value corresponds to the value output by the DAC.

2. The method for emergency descent of a waveform according to claim 1, characterized in that: Calculation process of Vmax value and DS value: 1) The time it takes for tr to record a number is 1us, ARR= ((Srt / VOL_COE)-1) / 1; Among them, ARR: the count value required for tr to overflow once, this value is used to configure tr; Srt: The maximum rise time corresponding to the maximum current that the device can be set to; VOL_COE: The maximum value of the DAC corresponding to the maximum current that the device can set. This value is a constant 4096; 2) Vmax = VOL_COE*CV / MAX_OUT_CUR; Where, Vmax: The current preset value corresponds to the value output by the DAC; MAX_OUT_CUR: Set the maximum current value: This value is a constant: 2mA; CV: preset current value, ranging from 0--2mA; 3) Tt = t*60*1000000 / ((ARR+1)*1); Where, Tt: the total number of tr overflow interrupts; t: the stimulation time preset by the user; 4) SS = Vmax-1; where SS is the number of tr overflows corresponding to time T1, and T1 is the time when the current reaches the preset value; DS = Tt - SS; where DS is the number of tr overflows corresponding to time T2, and T2 is the moment when the current starts to decrease from the preset value.

3. The method for emergency descent of a waveform according to claim 1, characterized in that: When the current stimulation waveform is an AC stimulation waveform, the specific method of symmetrical ramp-down is as follows: after pressing the emergency button, first determine whether the CVa value is less than (ADP / 2). If the CVa value is less than (ADP / 2), then determine the data of the currently used buf, and then stop DMA transmission based on the number of DNA transmission data points recorded by the CVa value. Set the DMA data at the DAC_Buf1[ADP-CVa] position, and the number of transmission data points to CVa, and then transmit. This value is exactly the symmetrical value at the start of stimulation, and it is a ramp-down waveform. This transmission is completed, that is, the current ramp-down reaches 0mA, and this stimulation ends. If the CVa value is ≥ (ADP / 2), ADP represents the discrete points of the sine half wave, indicating that the sine wave is slowly descending to 0. Simply record the emergency button press mark and stop stimulation after the data transmission is completed.

4. The method for emergency descent of a waveform according to claim 3, characterized in that: Fill DAC_Buf1 with half-wave data of a sine wave with 200 discrete points, record the buf used, BF=1, and when stimulation is started, use the DAC+DMA method to generate an analog voltage from the DAC to control the constant current source. When DMA transmits a point, an overflow interrupt will be generated in tr. In the tr interrupt, the value CVa is accumulated and recorded once to determine the moment when the waveform is dotted. After the half-wave transmission is completed, CVa is cleared to 0, the control electrode current is reversed, and the half-wave data is transmitted again, BF=0, RSt plus 1, and the Buf2 data is filled; in the tr interrupt, the value CVa is accumulated and recorded once, and CVa is cleared to 0 after the half-wave transmission is completed.

5. The waveform emergency descent method according to claim 3, characterized in that: The value of ADP is 200, that is, one half sine wave is 200 points.

Citation Information

Patent Citations

  • Electrical stimulation massage device and gear adjusting method thereof

    CN114984447A

  • Electrical stimulation device

    CN214018920U