Aimed at the demand of reducing the wiring harness and declining cost in the automobile control system, electrical controlling system of automobile power window is designed with PIC18F258 single chip computer of integrated CAN bus as the core. Hardware structure and flow chart of software are presented. Through the processing of sample current, it can be judged whether the automobile window meets a barrier, thus realizing the anti-pinch function of window. Compared to the point-to-point control, the bus control not only reduces the wiring harness and cost, but also makes the control more flexible and fast. The experiment results show this system can operate normally, the advantage of this system are reliable performance, low cost, low power consumption and easy to maintain.