The invention relates to an optocoupler packaging method and an optocoupler packaging structure, and the packaging method comprises the following steps: carrying out the preprocessing of a
metal frame of an upper module and a
metal frame of a lower module, and forming one or more preformed cavities in the upper module and the lower module respectively; carrying out
die bonding and wire
welding on the transmitting
chip or the receiving sensing
chip in the pre-forming cavity of the upper module; carrying out
die bonding and wire
welding on the transmitting
chip or the receiving sensing chip in the pre-forming cavity of the lower module; turning over the upper module and covering the upper module on the lower module; high-pressure insulation glue is poured into the first
open hole in the back face of the pre-forming cavity of the upper module until the high-pressure insulation glue overflows from the second
open hole; the upper module and the lower module are heated and cured, so that the black
epoxy covers the pre-forming cavity and the
metal frame, and the black
epoxy is subjected to injection molding; and bending and forming the weld legs. Single-channel, double-channel and multi-channel optocoupler packaging can be easily achieved, the technology is simple, the isolation
voltage is higher, stability and reliability are good, the yield is high, and packaging cost is low.