Switching circuit
By using a microcomputer-type control unit and interrupt processing in the switching circuit of the vehicle seat, the problem of direct current caused by hysteresis of detection is solved, rapid cut-off and efficient current control are achieved, and the life of the switching element is extended. Ensure the installation of the control unit.
Patent Information
- Application Number
- CN202410503309.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-09
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-12
AI Technical Summary
In the switching circuit of the vehicle seat, the hysteresis at the detection time may cause both switching elements to be in a conducting state, generating a direct current and damaging the switching elements.
The microcomputer-type control unit uses the interrupt processing to determine the switch status, ensure that the current is cut off in a very short time, avoiding the through current caused by hysteresis, and use the same interrupt port to process the first and second signals, reduce the number of interrupt ports, and reduce control. cost and volume of the department.
Effectively suppress the generation of straight-through current, extend the service life of the switching element, ensure good installation of the control unit, and quickly respond to user operations.
Smart Images

Figure CN118944391A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a switch circuit for controlling power supply to a load mounted on a vehicle seat. Background Art
[0002] For example, in the switching circuit described in Japanese Patent Application Laid-Open No. 2006-20850, when power cutoff is detected while driving power is being supplied to an electric motor, the control unit turns off a switching element (eg, a field effect transistor) for directly controlling power supply to the electric motor. Summary of the invention
[0003] For example, in a switch circuit that detects the open / closed states of two switches that mechanically open and close and turns two switch elements on or off in accordance with the respective switches, a through current may be generated when the two switches are switched on and off.
[0004] That is, the operation of the two switching elements is controlled by a microcomputer-type control unit. Specifically, the control unit detects a signal indicating the open / closed state of the switch and turns the switching element corresponding to the switch into an on state or an off state.
[0005] When the switch is in a closed state (ON), the control unit turns the corresponding switching element into an on state, and when the switch is in an open state (OFF), the control unit turns the corresponding switching element into an off state.
[0006] In addition, when the switch element is in the on state, the power supply line is in the closed state, so that current flows through the supply line. When the switch element is in the off state, the power supply line is in the open state, so that no current flows through the supply line.
[0007] For example, when the first switch is in a closed state (ON), the first switching element is in a conducting state and the second switch is in an open state (OFF), so the second switching element is in a cut-off state.
[0008] Moreover, when the first switch changes from a closed state (ON) to an open state (OFF) and the second switch switches from an open state (OFF) to a closed state (ON), the control unit detects the change in the open and closed states of the above switches, thereby switching the first switch element from an on state to an off state, and switching the second switch element from an off state to an on state.
[0009] At this time, if the control unit detects that the first switch switches from the closed state (ON) to the open state (OFF) lags behind the control unit detects that the second switch switches from the open state (OFF) to the closed state (ON), it is possible that both switching elements are in the on state.
[0010] Then, when both the switching elements are in the on state, a through current is generated, which causes damage to the switching elements. In view of this problem, the present disclosure discloses an example of a switching circuit that can suppress the generation of a through current.
[0011] A switch circuit for controlling the supply of electric power to a load mounted on a vehicle seat preferably includes, for example, at least one of the following components.
[0012] That is, the constituent elements are: a first switch and a second switch, the first switch and the second switch mechanically performing an opening and closing action; a first switch element, the first switch element connecting / disconnecting a first supply line for supplying electric power from a power source to a load; a second switch element, the second switch element connecting / disconnecting a second supply line for supplying electric power from a power source to a load, the second supply line being arranged in parallel with the first supply line; and a control unit, the control unit being a microcomputer-type control unit, a first signal indicating the opening and closing state of the first switch and a second signal indicating the opening and closing state of the second switch being input to the control unit, the control unit turning on or off the first switch element and the second switch element according to the above-mentioned first signal and second signal, and the control unit causing the first signal and the second signal to be input to the same interrupt port.
[0013] Furthermore, the control unit can execute at least the first determination process, the second determination process, and the cutting process.
[0014] The first determination process is a process for determining whether the first switch is in the closed state and whether the second switch is in the closed state in the polling process (hereinafter referred to as "on determination"). The polling process is a process of sequentially executing one or more processes at a predetermined cycle, for example.
[0015] The second determination process is a process for determining the state represented by either the first signal or the second signal input to the interrupt port, that is, whether the state of either the first switch or the second switch has changed from a closed state to an open state (hereinafter referred to as "Off determination").
[0016] An interrupt port is a port to which a signal for executing an interrupt process is input. An interrupt process is, for example, a process that is immediately executed when a signal input to the interrupt port changes to a predetermined state.
[0017] The cut-off process is a process for turning the first switch element or the second switch element in the on state into the off state when it is determined in the second determination process that the state has changed from the closed state to the open state, that is, when the first switch or the second switch has changed from the closed state to the open state.
[0018] Thus, since the determination as to whether the first switch or the second switch has changed from a closed state to an open state is performed by the interruption process, the determination can be performed in a much shorter time than when the determination is performed by the polling process.
[0019] Therefore, it is possible to suppress the through current generated by the above-mentioned “delay in detection timing” and further suppress the damage of the first switching element and the second switching element.
[0020] In addition, depending on the specifications of the control unit and the vehicle seat, the number of interrupt ports available for off determination may be less than the number of switches. In this regard, in the switch circuit, since the first signal and the second signal are input to the same interrupt port, at least one interrupt port is sufficient.
[0021] Therefore, according to this switch circuit, even when the number of interrupt ports available for OFF determination is smaller than the number of switches, the shutoff process can be executed by using the interrupt process.
[0022] Thus, in the switch circuit, generation of through current can be suppressed without using a control unit having a processing speed capable of preventing generation of through current only by polling processing or an expensive control unit having a sufficient number of interrupt ports.
[0023] Furthermore, in this switch circuit, generation of through current can be suppressed in the control unit having a small number of interruption ports, thereby suppressing increase in size of the control unit and ensuring that the mountability of the control unit in the vehicle seat is not deteriorated.
[0024] Furthermore, when the control unit makes an Off determination, the control unit turns the switching element currently in the On state into the Off state. Therefore, the control unit can immediately turn the switching element into the Off state without determining which switching element's corresponding switch is turned On.
[0025] As a result, the switching element is turned off in a very short time, and thus the generation of a through current can be reliably suppressed.
[0026] In addition, the switch circuit may have the following configuration, for example.
[0027] That is, in the second determination process, it is preferable that when the state is changed from the closed state for the first time, it is determined that the state has changed from the closed state to the open state. In other words, in the second determination process, it is preferable that the determination is made based on the edge portion of the signal.
[0028] Thus, even if chattering occurs in the first switch and the second switch, the OFF determination is not affected by the chattering. Therefore, the OFF determination can be made in a very short time, and the generation of through current can be reliably suppressed.
[0029] In addition, the control unit is capable of executing a sleep mode as a standby power mode. Preferably, during the sleep mode, the control unit is capable of executing a third determination process in addition to the second determination process. The third determination process is used to determine whether the state represented by any one of the first signal and the second signal input to the interrupt port has changed from an open state to a closed state. When the control unit determines through the second determination process or the third determination process that the state represented by any one of the first signal and the second signal has changed, the sleep mode is released and the execution of the third determination process is prohibited.
[0030] Thus, when any one of the first switch and the second switch is operated in a certain manner, the sleep mode is released. Therefore, the control unit can quickly respond to the user's operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a circuit diagram of a switch circuit according to the first embodiment.
[0032] Figure 2 This is a timing chart of the switching circuit according to the first embodiment.
[0033] Figure 3 This is a flowchart showing the operation of the switch circuit according to the first embodiment. DETAILED DESCRIPTION
[0034] Exemplary embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings.
[0035] The embodiment described below is an example of an embodiment to show the technical scope of the present disclosure. That is, the technical solutions and the like described in the claims are not limited to the specific structures or configurations shown in the following embodiment.
[0036] This embodiment is an example of applying the switch circuit of the present disclosure to a seat installed in a vehicle or other transportation tool (hereinafter referred to as a "vehicle seat"). For at least one component or part marked with a symbol for explanation, at least one is provided, unless it is stated in advance that "only one" or the like.
[0037] (First embodiment)
[0038] <1. Overview of the switch circuit (refer to Figure 1 )>
[0039] The switch circuit 1 of the present embodiment is a switch circuit for controlling the supply of electric power to a load 3 mounted on a vehicle seat (not shown). The load 3 of the present embodiment is an electric motor.
[0040] The load 3 (hereinafter referred to as "electric motor 3") is an electric drive source for a drive device (not shown) such as a slide device or a tilt device. That is, the switch circuit 1 controls the power supplied from the power supply 5 installed in the vehicle to the motor bridge circuit 7 driving the electric motor 3.
[0041] <2. Configuration of the switch circuit (refer to Figure 1 )>
[0042] The switch circuit 1 includes at least an operation switch 11 , a first switch circuit 21 , a second switch circuit 22 , a control unit 30 , etc. In addition, the switch circuit 1 of the present embodiment further includes a third switch circuit 23 .
[0043] <Operation switch>
[0044] The operation switch 11 includes at least a first switch 11A and a second switch 11B. The first switch 11A and the second switch 11B are mechanical switches that are turned on and off by a user.
[0045] Specifically, the first switch 11A and the second switch 11B each have a fixed contact and a movable contact. When a user operates an operation unit (not shown) of the operation switch 11, the movable contacts of the first switch 11A and the second switch 11B come into contact with or separate from the corresponding fixed contacts.
[0046] In addition, in the present embodiment, two movable contacts are operated by one operating portion. Therefore, in the operating switch of the present embodiment, the first switch 11A and the second switch 11B are not both in the closed state (ON).
[0047] Specifically, the operation switch 11 has three states. In the first state, the first switch 11A is in a closed state (ON), and the second switch 11B is in an open state (OFF). In the second state, the second switch 11B is in a closed state (ON), and the first switch 11A is in an open state (OFF).
[0048] In the third state, both the first switch 11A and the second switch 11B are in the on state (OFF). Then, when changing from the first state to the second state, and when changing from the second state to the first state, the state must change through the third state. That is, the state of the operation switch 11 changes in the pattern of "first state → third state → second state" or "second state → third state → first state".
[0049] <First switch circuit>
[0050] The first switch circuit 21 includes at least a first switch element 21A. The first switch element 21A switches the first supply line L1 on and off.
[0051] Specifically, when the first switch element 21A is in the on state, the first supply line L1 is in the closed state, and current flows through the first supply line L1. When the first switch element 21A is in the off state, the first supply line L1 is in the open state, and no current flows through the first supply line L1.
[0052] The first switching element 21A of the present embodiment is a field effect transistor. Hereinafter, the first switching element 21A is referred to as a first FET 21A. The first supply line L1 is a supply line for supplying electric power from the power source 5 to the electric motor 3 (the motor bridge circuit 7 in the present embodiment).
[0053] <Second switch circuit>
[0054] The second switch circuit 22 includes at least a second switch element 22A. The second switch element 22A switches the second supply line L2 on and off.
[0055] Specifically, when the second switch element 22A is in the on state, the second supply line L2 is in the closed state, and current flows through the second supply line L2. When the second switch element 22A is in the off state, the second supply line L2 is in the open state, and no current flows through the second supply line L2.
[0056] The second switching element 22A of this embodiment is a field effect transistor. Hereinafter, the second switching element 22A is referred to as a second FET 22A. The second supply line L2 is a supply line for supplying power from the power source 5 to the motor bridge circuit 7, and is a supply line provided in parallel with the first supply line L1.
[0057] <Third switch circuit>
[0058] The third switch circuit 23 includes two third switch elements 23A and 23B, and switches the third supply line L3 on and off. The third switch elements 23A and 23B of the present embodiment are field effect transistors.
[0059] The third supply line L3 is a supply line for supplying electric power from the power source 5 to the motor bridge circuit 7 , and is a supply line provided in parallel with the first supply line L1 and the second supply line L2 .
[0060] <Control Unit>
[0061] The control unit 30 is a controller composed of a microcomputer having at least a CPU, a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The control unit 30 can control the on / off of the first FET 21A and the second FET 22A.
[0062] That is, the first signal S1 and the second signal S2 are input to the control unit 30. The first signal S1 is a signal indicating the open / closed state of the first switch 11A. The second signal S2 is a signal indicating the open / closed state of the second switch 11B. Then, the control unit 30 turns on or off the first FET 21A and the second FET 22A according to the above signals S1 and S2.
[0063] Specifically, the control unit 30 performs the following operations: (a) when the first switch 11A is closed, the first FET 21A is turned on; (b) when the first switch 11A is opened, the first FET 21A is turned off; (c) when the second switch 11B is closed, the second FET 22A is turned on; (d) when the second switch 11B is opened, the second FET 22A is turned off.
[0064] In the present embodiment, when the first switch 11A is in the open state (OFF), the first signal S1 is at a high potential (Hi Level), and when the first switch 11A is in the closed state (ON), the first signal S1 is at a low potential (Lo Level) (see Figure 2 ). The relationship between the second switch 11B and the second signal S2 is also the same as the relationship between the first switch 11A and the first signal S1.
[0065] The control unit 30 has at least one interrupt port P3. The first signal S1 and the second signal S2 are input to the same interrupt port P3. The first signal S1 is input to the interrupt port P3 via a signal line branched from a signal line leading to the input port P1 for the first switch 11A.
[0066] The second signal S2 is input to the interrupt port P3 via a signal line branched from a signal line leading to the input port P2 for the second switch 11B. Therefore, the signal line leading to the interrupt port P3 is provided with diodes D1 and D2 for preventing backflow.
[0067] The diode D1 prevents the first signal S1 from being input to the input port P2. The diode D2 prevents the second signal S2 from being input to the input port P1. Furthermore, the interrupt port P3 is pulled up to a high potential (Hi).
[0068] Therefore, when both input port P1 and input port P2 are at a high potential (Hi Level), interrupt port P3 is maintained at a high potential (Hi Level). When either input port P1 or input port P2 is at a high potential (Hi Level) and the other port is at a low potential (Lo Level), interrupt port P3 is at a low potential (Lo Level).
[0069] In other words, when the first switch 11A and the second switch 11B are in the open state (OFF), the interrupt port P3 is at a high potential (Hi Level). When one of the first switch 11A or the second switch 11B is in the open state (OFF) and the other switch is in the closed state (ON), the interrupt port P3 is at a low potential (Lo Level).
[0070] Therefore, when the first switch 11A is in the closed state (ON) and the second switch 11B is in the open state (OFF), if the first switch 11A becomes the open state (OFF), both the first switch 11A and the second switch 11B are in the open state (OFF), so the interrupt port P3 changes from the low potential (Lo Level) to the high potential (Hi Level).
[0071] Then, when the second switch 11B changes from the open state (OFF) to the closed state (ON), the interrupt port P3 changes from the high potential (Hi Level) to the low potential (Lo Level). That is, when the open and closed state of the first switch 11A or the second switch 11B changes, the potential of the interrupt port P3 changes.
[0072] The control unit 30 also controls the third switch circuit 23, that is, the on / off state of the third switch elements 23A and 23B. When the user selects "automatic control", the control unit 30 controls the third switch circuit 23 according to a pre-stored operation program.
[0073] Furthermore, when the user selects “manual control”, the control unit 30 turns on / off the first switch circuit 21 and the second switch circuit 22 according to the open / closed states of the first switch 11A and the second switch 11B.
[0074] <3. Operation of the switch circuit during manual control>
[0075] The control unit 30 can execute the first determination process, the second determination process, the third determination process, and the cut-off process, and can also execute the sleep mode and the wake-up process. In addition, at least the first determination process, the second determination process, the third determination process, and the cut-off process are implemented by executing software on the CPU. The software is pre-stored in the non-volatile storage unit of the control unit 30.
[0076] <Sleep Mode>
[0077] The sleep mode is, for example, a standby power mode. In the sleep mode, the processing speed of processing other than interrupt processing (for example, polling processing) is reduced, thereby reducing the power consumption of the control unit 30.
[0078] Specifically, in sleep mode, for example, the processing cycle (also referred to as "clock frequency") is smaller than the processing cycle in non-sleep mode (hereinafter referred to as "normal mode"). Therefore, when the control unit 30 switches from normal mode to sleep mode, the processing speed decreases.
[0079] The polling process is a process of sequentially executing one or more processes in a predetermined cycle. The interrupt process is a process that is immediately executed when a signal input to the interrupt port P3 changes to a predetermined state.
[0080] <First determination process>
[0081] The first determination process is a process executed by the polling process during the normal mode. In the first determination process, it is determined whether the first switch 11A is in the closed state and whether the second switch 11B is in the closed state.
[0082] Specifically, in the first determination process, the control unit 30 determines whether the first signal S1 is at a low potential (Lo Level) and whether the second signal S2 is at a low potential (Lo Level) at a predetermined period. Then, the control unit 30 turns on the FET corresponding to the switch detected to be in a closed state.
[0083] <Second determination process>
[0084] The second determination process is executed by the interrupt process and is a process for determining whether the state indicated by the signal input to the interrupt port P3, that is, any one of the first signal S1 and the second signal S2, has changed from the closed state to the open state.
[0085] Specifically, it is determined whether any one of the first signal S1 and the second signal S2 has changed from a low potential (LoLevel) to a high potential (HiLevel). At this time, in the second determination process of the present embodiment, when the interrupt port P3 initially changes from a low potential (LoLevel) to a high potential (HiLevel), it is determined that it has changed from a closed state to an open state.
[0086] That is, in the second determination process of this embodiment, when the rising edge portion of the signal ( Figure 2 When the A part in the figure is shown, it is determined that any one of the first switch 11A and the second switch 11B has changed from the closed state to the open state.
[0087] <Third determination process>
[0088] The third determination process is a process executed by the interrupt process during the sleep mode, and is a process for determining whether the state indicated by the signal input to the interrupt port P3 has changed from the open state to the closed state.
[0089] Specifically, it is determined whether any one of the first signal S1 and the second signal S2 has changed from a high potential (HiLevel) to a low potential (LoLevel). At this time, in the third determination process of the present embodiment, when the interrupt port P3 initially changes from a high potential (HiLevel) to a low potential (LoLevel), it is determined that it has changed from an open state to a closed state.
[0090] That is, in the third determination process of this embodiment, when the falling edge portion of the signal ( Figure 2 When the state of the first switch 11A or the second switch 11B is changed from the open state to the closed state, it is determined that the state of the first switch 11A or the second switch 11B has been changed from the open state to the closed state.
[0091] <Cutting Processing>
[0092] The cut-off process is a process of turning the FET in the on state into the off state when it is determined in the second determination process that the FET has changed from the off state to the on state. Specifically, when the control unit determines in the second determination process that the FET has changed from the off state to the on state, the control unit 30 issues a command to turn both the first FET 21A and the second FET 22A into the off state.
[0093] In the present embodiment, as described above, when the open / closed states of the first switch 11A and the second switch 11B change, both the first switch 11A and the second switch 11B are always in the open state (OFF).
[0094] Therefore, for example, when the first switch 11A changes from a closed state (ON) to an open state (OFF), and the second switch 11B changes from an open state (OFF) to a closed state (ON), Figure 2 As shown, the first switch 11A and the second switch 11B are both in the on state (OFF).
[0095] At this time, in this embodiment, the control unit determines whether the state represented by the signal input to the interrupt port P3 has changed from a closed state (ON) to an open state (OFF), so the control unit 30 detects that the first switch 11A has become an open state (OFF) before detecting that the second switch 11B has become a closed state (ON).
[0096] Therefore, when the control unit 30 detects that the first switch 11A has been turned on (OFF), the control unit 30 does not issue a command to turn on the second FET 22A.
[0097] That is, at the time when the control unit 30 detects that the first switch 11A has been turned on (OFF), the second FET 22A is in the off state, and the first FET 21A is in the on state.
[0098] Therefore, if the control unit 30 issues a command to turn both the first FET 21A and the second FET 22A into the OFF state at this time, the first FET 21A changes from the ON state to the OFF state, while the second FET 22A maintains the OFF state.
[0099] Then, when the control unit 30 detects that the second switch 11B is turned on, the control unit 30 issues a command to turn on the second FET 22A. That is, it is possible to prevent both the first FET 21A and the second FET 22A from being turned on.
[0100] <Wake-up Process>
[0101] The wake-up process is a process executed during the sleep mode, and is a process for canceling the sleep mode and switching to the normal mode, and prohibiting execution of the third determination process.
[0102] The control unit 30 executes the sleep mode after setting at least the second determination process and the third determination process to an executable state. Then, when the control unit 30 determines that the signal has changed through the second determination process or the third determination process during the sleep mode, that is, when it determines that at least one of the first switch 11A and the second switch 11B has been operated, the control unit 30 executes the wake-up process.
[0103] <Operation flow of the switch circuit during manual control>
[0104] Figure 3 1 is a flowchart showing the operation flow of the switch circuit 1 during manual control. When the user selects "manual control", the operation flow is started. When the operation flow is started, the control unit 30 determines whether the condition for transitioning to the sleep mode is satisfied (S01).
[0105] In addition, as a condition for transition to the sleep mode, for example, a state in which the operation switch 11 is not operated continues for a predetermined time or longer.
[0106] Then, when the control unit 30 determines that the condition for transitioning to the sleep mode is satisfied (S01: YES), the control unit 30 sets the second determination process and the third determination process to an executable state (S05), and then transitions to the sleep mode (S10).
[0107] When switching to the sleep mode, the control unit 30 determines whether the input signal of the interrupt port P3 has changed (S15). Then, when the control unit 30 determines that the input signal of the interrupt port P3 has changed (S15: Yes), the control unit 30 prohibits the execution of the third determination process (S20), and then cancels the sleep mode and switches to the normal mode (S25).
[0108] <4. Characteristics of the Switching Circuit of the Present Embodiment>
[0109] In the switch circuit 1 of this embodiment, since the determination as to whether the first switch 11A or the second switch 11B has changed from a closed state to an open state is performed by interrupt processing, the determination can be performed in a much shorter time than when the determination is performed by polling processing.
[0110] Therefore, it is possible to suppress the through current generated due to the “delay in detection timing” and further suppress the damage to the first FET 21A and the second FET 22A.
[0111] In addition, depending on the specifications of the control unit 30 and the specifications of the vehicle seat, the number of interrupt ports P3 available for off determination may be less than the number of switches. In this regard, in the switch circuit 1, since the first signal S1 and the second signal S2 are input to the same interrupt port P3, at least one interrupt port is sufficient.
[0112] Therefore, according to the switch circuit 1, even when the number of interrupt ports available for OFF determination is smaller than the number of switches, the shutoff process can be executed by using the interrupt process.
[0113] As described above, in the switch circuit 1 , generation of through current can be suppressed without using a control section having a processing speed capable of preventing generation of through current only by polling processing or an expensive control section having a sufficient number of interrupt ports or the like.
[0114] In the switch circuit 1 , generation of through current can be suppressed in the control unit 30 having a small number of interrupt ports P3 , thereby suppressing increase in size of the control unit 30 and ensuring that the control unit 30 is not deteriorated in mountability when mounted on a vehicle seat.
[0115] When the control unit 30 makes an Off determination, the control unit 30 can immediately realize the FET's Off state without determining which FET's corresponding switch is turned on. Thus, the FET's Off state can be realized in a very short time, thereby effectively suppressing the generation of through current.
[0116] In the second determination process, when the state is initially changed from the closed state, it is determined that the state has changed from the closed state to the open state. That is, in the second determination process, determination is made based on the edge portion of the signal (see Figure 2 Part A of the .
[0117] Thus, even if chattering occurs in the first switch 11A and the second switch 11B, the OFF determination is not affected by the chattering. Therefore, the OFF determination can be made in a very short time, and the generation of through current can be reliably suppressed.
[0118] During the sleep mode, the control unit 30 can execute the third determination process in addition to the second determination process, and when the control unit 30 determines that the signal has changed through the second determination process or the third determination process, the sleep mode is released and the execution of the third determination process is prohibited.
[0119] Thus, when any one of the first switch 11A and the second switch 11B is operated in a certain manner, the sleep mode is released. Therefore, the control unit 30 can quickly respond to the user's operation.
[0120] (Other embodiments)
[0121] When the control unit 30 of the above-described embodiment determines that the state has been changed from the closed state to the open state in the second determination process, the control unit 30 issues a command to turn both the first FET 21A and the second FET 22A into the OFF state.
[0122] However, the present disclosure is not limited thereto. That is, in the present disclosure, for example, after determining that a switch corresponding to a certain FET has been turned on, the control unit may only issue an instruction to turn off the corresponding FET.
[0123] In the above-mentioned embodiment, FET is used as a switching element. However, the present disclosure is not limited thereto. That is, the present disclosure may be configured to use an electromagnetic relay as a switching element, for example.
[0124] In the second and third determination processes of the above embodiment, determination is made based on the time when the signal first changes, that is, the edge of the signal. However, since the interrupt process is sufficiently faster than the polling process, the present disclosure is not limited thereto.
[0125] The control unit 30 of the above-mentioned embodiment executes the sleep mode after setting at least the second determination process and the third determination process to an executable state. However, the present disclosure is not limited to this. That is, in the present disclosure, for example, the sleep mode can be executed after setting the second determination process or the third determination process to an executable state.
[0126] In the above embodiment, an example using the electric motor 3 as a load is shown. However, the present disclosure is not limited thereto. That is, the present disclosure can also be applied to a switch circuit that uses a heating element such as a heater as a load and controls power supply to the heating element.
[0127] In the above embodiment, the interrupt port P3 is pulled up to a high potential (Hi). However, the present disclosure is not limited thereto. That is, the present disclosure may be configured such that, for example, the interrupt port P3 is pulled down to a low potential (Lo). In addition, in this configuration, the orientation of the diodes D1 and D2 needs to be consistent with the Figure 1 The direction is opposite.
[0128] In the above-mentioned embodiment, the vehicle seat involved in the present disclosure is applied to a vehicle. However, the application of the invention disclosed in this specification is not limited thereto. That is, the present disclosure can also be applied to seats used in vehicles such as railway vehicles, ships, and aircraft, as well as fixed seats used in theaters or homes.
[0129] Furthermore, the present disclosure is not limited to the above-mentioned embodiments as long as it complies with the disclosure of the above-mentioned embodiments. Therefore, the present disclosure may be, for example, a configuration that combines at least two of the above-mentioned multiple embodiments, or may be a configuration that abolishes any of the illustrated constituent elements or constituent elements that are described by marking symbols in the above-mentioned embodiments.
Claims
1. A switch circuit for controlling the supply of electric power to a load mounted on a vehicle seat, the switch circuit comprising: A first switch and a second switch, wherein the first switch and the second switch are configured to mechanically perform an opening and closing action; a first switching element configured to switch on / off a first supply line for supplying electric power from a power source to a load; a second switching element configured to switch on / off a second supply line for supplying electric power from a power source to a load, the second supply line being provided in parallel with the first supply line; and a control unit, the control unit being a microcomputer-type control unit, the control unit being configured such that a first signal indicating an on / off state of the first switch and a second signal indicating an on / off state of the second switch are input to the control unit, the control unit turns on or off the first switch element and the second switch element according to the first signal and the second signal, and the control unit is configured such that the first signal and the second signal are input to the same interrupt port, and The control unit can perform the following processing: a first determination process for determining whether the first switch is in a closed state and whether the second switch is in a closed state in a polling process; a second determination process for determining whether the state indicated by any one of the first signal and the second signal input to the interrupt port has changed from a closed state to an open state; and A cut-off process for, when it is determined in the second determination process that the first switching element and the second switching element in the on state are switched to the off state, the first switching element and the second switching element in the on state are switched to the off state.
2. The switch circuit according to claim 1, characterized in that: In the second determination process, when the state is changed from the closed state for the first time, it is determined that the state has changed from the closed state to the open state.
3. The switch circuit according to claim 1 or 2, characterized in that: The control unit is capable of executing a sleep mode as a standby power mode, During the sleep mode, the control unit is capable of executing, in addition to the second determination process, a third determination process for determining whether the state indicated by any one of the first signal and the second signal input to the interrupt port has changed from an open state to a closed state, Furthermore, the control unit is configured to release the sleep mode and prohibit execution of the third determination process when it is determined by the second determination process or the third determination process that the state represented by any one of the first signal and the second signal has changed.
