Posted on Leave a comment

Application of S87C196MH (MC) microcontroller in inverter mainboard

1. Pinout of the 80-pin S87C196MH (MC) microcontroller in SMD package:

2. Introduction to the structure and functions of the S87C196MH (MC) microcontroller:

The controller is a 16-bit microcontroller produced by Intel. It is widely used in inverter products due to its powerful functions and high versatility.

The internal circuit includes arithmetic logic unit (RLU), registers, internal A/D converter, PWM generator, event processing array (EPA), three-phase to complement SPWM output generator, watchdog, clock and interrupt control circuits, etc. The internal structure schematic is as follows:

 The S87C196MH (MC) microcontroller uses CHMOS technology, has an operating temperature of -40 º C–85 º C, supports 16KB EPROM, and when the crystal oscillation frequency is 16MHz, it only takes 1.75 μs to complete 16-bit by 16-bit multiplication . It is suitable for the rapidity requirements of the control system. There are 7 I/O ports, and each port pin is multifunctional.

The register array has 512B, which is divided into low 256B and high 256B. The low 256B can be used as 256 accumulators during ALU operation, and the high 256B is used as register RAM. The high 256B can also be switched to 256B with accumulator function through unique window technology. The microcontroller has 13 10-bit/8-bit high-speed A/D converters inside, and the conversion time can be set between 1.39-40.2 μs . The A/D can also be used as a programmable comparator to generate an interrupt when the input crosses a threshold level.

The event processing array (EPA) mainly performs input and output functions. In input mode, the EPA monitors the changes in the input pin signal and records its time value when the event occurs. This process is called capture. In output mode, when the timer matches a stored time value, the output pin is set, cleared or triggered. Both capture and compare events can generate normal service processes or interrupts. There are 4 capture/compare modules and 4 compare modules.

EPA also contains two 16-bit bidirectional timer/counters T1 and T2. T1 can be timed according to an external clock source. In this working mode, EPA can directly process two pulse signals with a 90 ° phase difference output by the position sensor (such as a photoelectric encoder) to monitor the speed and direction of the motor.

External event processing server (PTS). The controller has two types of interrupt systems: programmable interrupt controller and PTS. The programmable interrupt can be set to PTS interrupt service mode. PTS has several micro-instruction coded hardware interrupt service processes, which can work in parallel with the CPU and can complete data block transfer, process multi-channel A/D conversion, control serial communication and other functions.

The S87C196MH (MC) microcontroller has a three-phase complementary SPWM waveform generator built in, which directly outputs six SPWM signals through the P6 port. The driving current can reach 20 mA and the driving frequency can reach 8MHz. Each SPWM signal can be independently programmed and the dead zone interlock time can be set.

3. Application of S87C196MH (MC) in INVT inverter motherboard:

(1) Power supply, clock, reset, etc. Pins that meet the basic working conditions of the microcontroller.

(2) Pins for processing digital and analog signals at the control terminals. The start, stop and speed control of the inverter, as well as the monitoring of the working status, are all carried out through the control terminals. The input and output signals of the control terminals directly enter the microcontroller pins.

The output of the analog signal of the inverter control terminal actually comes from the PWM0 (P6 I/O port) pin of the microcontroller. The actual output is a width-modulated pulse signal, which is converted into an analog voltage signal by the subsequent circuit.

(3)Switching control signal, control of charging contactor (relay control), control of cooling fan and reset control of drive circuit (release its fault lock state).

  (5)Processing of various detection and protection signals:

(6) Processing of other functional pins

Some pins are connected to ground, +5V, or +5V via a pull-up resistor according to their functions. Some pins are left unused.

    The specific functions of each pin of the S87C196MH (MC) microcontroller have been explained in detail above. In troubleshooting, the cause of the fault can also be determined and the fault location can be found based on the level status of the relevant pins.

For example, if the signal input of a certain terminal of the inverter is invalid, measure whether there is a 0-5V voltage change on the corresponding pin of the CPU , and then quickly determine whether it is a terminal input circuit fault or a CPU fault.

Leave a Reply

Your email address will not be published. Required fields are marked *