LCD backlight and relay power supply circuit: the
power supply of this part is generated by step-up DC
/ DC chip TPS61040 manufactured by TI. This chip
is an efficient DC / DC step-up chip with an output
current of 400mA, a switching frequency of 1MHz,
an input voltage of (2-6) V, an output voltage of up to
28V and a static power consumption of 28μA.
Analog (PGA) power supply circuit: the power
supply of this part provides analog voltage for PGA,
and its power performance directly affects the
performance index of the whole system, therefore,
higher requirements of this part is necessary. The
power supply of this part is generated by dual output
DC / DC chip TPS65133 manufactured by TI. The
output voltage of the chip is fixed at ± 5V, with the
accuracy of 1%. The output current of the chip from
positive to negative direction is up to 250mA, with
excellent line and load transient response. The power
supply circuit operates in continuous conduction
mode (CCM) to supply noise-free output voltage.
2.5 Operating System
μC / OS II (Micro Control Operation System Two) is
a scalable, preemptive, real-time multitasking kernel
that can run based on ROM. it has high portability,
especially suitable for microprocessors and
controllers. It is a real-time operating system (RTOS)
with the same performance as many business
operating systems. μC / OS II can be roughly divided
into five parts: core, task processing, time processing,
task synchronization & communication, and CPU
transplantation.
1) Core (OSCore. c) is the processing core of the
operating system, including operating system
initialization, operating system operation, leading in
and out of interrupts, clock beat, task scheduling,
event processing and so on. It’s the part that maintains
the basic work of the whole system.
2) Task Processing (OSTask. c) is closely related
to the operation of the task, including task creation,
deletion, suspension, recovery, etc. μC / OS II
dispatches basic unit of task, therefore, this part is
also very important.
c) Clock (OSTime. C) μ The minimum clock unit
in μC / OS II is timetick. Task delay and other
operations are completed here.
d) Task synchronization & communication part is
the event processing part, including semaphore,
mailbox, message queue, event flag, etc. It is mainly
used for the interconnection between tasks and access
to critical resources.
e) The interface with CPU refers to the porting
part of used CPU of μC / OS-II. As a universal
operating system, implementation of key issues still
needs to be transplanted into μC / OS-II according to
the specific contents and requirements of specific
CPU. This part is usually written in assembly
language because it involves system pointers such as
SP. It mainly includes the bottom implementation of
interrupt level task switching, the bottom
implementation of task level task switching, the
generation and processing of clock beat, the related
processing of interrupt and so on.
3 CALIBRATION PROCEDURE
Connect the calibration device presented in Chapter 2
with a nerve and muscle stimulator according to
Figure 2:
Figure 2: Schematic Diagram of Calibration for Nerve and
Muscle Stimulator.
3.1 Error of Output Current RMS
Value
Set the impedance of the calibration device to 500 Ω
and the voltage to 700V, select a channel of the
stimulator, adjust the output power of the stimulator
to the maximum value, observe the output signal
waveform, and record the maximum current RMS
value measured by the calibration device after the
signal waveform is stable. The error of output current
RMS value of the stimulator is calculated according
to equation (1):
△I =
%100
0
0
×
−
I
II
(1)
I——Maximum nominal RMS current of nerve
and muscle stimulator, mA;
△ I——Error of Maximum nominal RMS
current;
I
0
——Maximum nominal RMS current measured
by calibration device, mA.