The invention discloses an anti-clamping mechanism of a TMR magneto-resistance sensor, which comprises an anti-clamping system, wherein the anti-clamping system comprises an isolation shaping circuit,a display circuit, an alarm circuit and a single-chip computer, a signal input port of the single-chip computer is connected with a TMR rotating speed sensor, a TMR current sensor and an infrared scanning inductor, a signal output port of the single-chip computer is connected with a relay, a signal output port of the relay is connected with a motor, the motor comprises a rotor, the motor is fixedly arranged on a side wall of a top end of a door frame through a mounting plate, the motor is connected with a rotating roller, the other end of the rotating roller is rotatably connected with the side wall of the top end of the door frame, an anti-theft rolling door is wound on the rotating roller, and a buffer plate is horizontally and fixedly arranged on the bottom end surface of the anti-theft rolling door. The mechanism uses a mode of outputting pulse counting by using the TMR magneto-resistance sensor, the combination of detecting the rotating speed of the motor and detecting the current change condition of the motor is achieved, and the anti-clamping function is achieved.