摘要 |
PROBLEM TO BE SOLVED: To write a position data without requiring any large-capacity capacitor by equipping a non-volatile memory for converting a motor rotation detection signal to the position data and electrically writing the data before a power switch is opened after the power switch is closed. SOLUTION: A rotary sensor 6 generates a pulsive rotary signal corresponding to the rotation of an armature shaft 5c of a motor 5 and gives it to a pulse signal input block 8 of the rotary sensor 6. In a central-processing circuit MCU, a down command signal given from a switch signal input block 4 to a first input port due to switching-on of an open switch 2 and an up command signal given from the switch signal input block 4 to the second input port due to switching-on of a close switch 3 are given. In the motor 5, when a first brush terminal 5a and a second brush terminal 5b are grounded and connected to a power supply 21, an armature shaft rotates in forward direction and window glass is opened. Then, the window glass is closed due to the backward rotation of the armature shaft. Data is written into an external memory when a power switch is turned off. |