The invention relates to an anti-clamp circuit of an electric skylight. The common electric skylight is easy to heart passengers, and has serious safety hazard. A small part of skylight with the anti-clamp function has simple anti-clamp circuit, and has the problems of low precision, large error and the like. The invention comprises a microcontroller, a motor driving circuit, a LIN driving circuit, a signal sampling circuit, a power supply circuit, a position sensing circuit, a press key circuit, a status indicating circuit, a debugging interface circuit and a data storage circuit. The motor driving circuit is connected with a signal at the signal end of the microcontroller, and the LIN driving circuit is connected with a serial communication port of the microcontroller through signals. The signal sampling circuit is connected with an analog and digital sampling port of the microcontroller through signals. The position sensing circuit is connected with a position I / O port of the microcontroller through signals. The storage circuit is connected with a storage I / O port of the microcontroller through signals. The invention has the advantages of high anti-clamp precision, small error, strong uniformity and low cost.