[go: up one dir, main page]

JP2010218003A - Medium controller - Google Patents

Medium controller Download PDF

Info

Publication number
JP2010218003A
JP2010218003A JP2009061221A JP2009061221A JP2010218003A JP 2010218003 A JP2010218003 A JP 2010218003A JP 2009061221 A JP2009061221 A JP 2009061221A JP 2009061221 A JP2009061221 A JP 2009061221A JP 2010218003 A JP2010218003 A JP 2010218003A
Authority
JP
Japan
Prior art keywords
power
switch
media
control unit
medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009061221A
Other languages
Japanese (ja)
Inventor
Masayuki Funakoshi
政行 船越
Koji Kameda
浩司 亀田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009061221A priority Critical patent/JP2010218003A/en
Publication of JP2010218003A publication Critical patent/JP2010218003A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

【課題】メディアを過電流から保護するメディアコントローラを提供する。
【解決手段】ホスト機器に搭載され、ホスト機器とホスト機器に接続されたメディア間のデータの送受信を制御するメディアコントローラ100であって、メディアへの電力供給のオン/オフを切り替えるスイッチ31と、スイッチからメディアに流れる過電流を検出する過電流検出回路32と、を備えたパワースイッチ3と、メディアがホスト機器に接続されたときに、電力の供給を開始させるパワー制御信号を出力するメディア制御部2と、パワー制御信号に従って、スイッチのオン/オフの切り替えを制御するパワー制御部4と、を有し、パワー制御部4は、過電流検出回路が過電流を検出してから第1の所定時間が経過したときにスイッチをオンからオフに切り替える。
【選択図】図1
A media controller for protecting a medium from overcurrent is provided.
A media controller 100 that is mounted on a host device and controls transmission / reception of data between the host device and a medium connected to the host device, the switch 31 switching on / off of power supply to the medium; An overcurrent detection circuit 32 that detects an overcurrent flowing from the switch to the medium, and a media control that outputs a power control signal that starts power supply when the medium is connected to the host device. Unit 2 and a power control unit 4 that controls on / off switching of the switch in accordance with the power control signal, and the power control unit 4 detects the first current after the overcurrent detection circuit detects the overcurrent. The switch is switched from on to off when a predetermined time has elapsed.
[Selection] Figure 1

Description

本発明は、メモリカードなどのメディアを制御するメディアコントローラに関する。   The present invention relates to a media controller that controls media such as a memory card.

メディア(例えば、メモリカード)とデータの送受信を行うホスト機器(例えば、パソコン)は、メディアのリード/ライトを制御するメディアコントローラと、メディアへの電力供給のオン/オフを切り替えるパワースイッチと、を備えている。メディアは、ホスト機器に接続されて、ホスト機器のパワースイッチから電力を供給されることにより動作し、ホスト機器とデータの送受信を行っている。   A host device (for example, a personal computer) that transmits / receives data to / from a medium (for example, a memory card) includes a media controller that controls read / write of the medium, and a power switch that switches on / off power supply to the medium. I have. The medium is connected to the host device and operates when power is supplied from the power switch of the host device, and transmits and receives data to and from the host device.

また、モータ駆動用のインバータの分野において、インバータ部を構成するパワースイッチング素子に過電流が流れてパワースイッチング素子が破壊されることを防止する過電流保護回路がある(特許文献1参照)。この過電流保護回路は、インバータ部に流れる過電流を検出し、過電流が所定の時間継続して流れ、且つ、過電流の値の変化率が所定の値より小さくなったときに、パワースイッチング素子のゲート入力を遮断している。すなわち、過電流保護回路とタイマー回路の信号に基づいて、パワースイッチの出力を制御している。   Further, in the field of inverters for driving motors, there is an overcurrent protection circuit that prevents an overcurrent from flowing to a power switching element that constitutes an inverter unit and destroying the power switching element (see Patent Document 1). This overcurrent protection circuit detects the overcurrent flowing through the inverter unit, and when the overcurrent continuously flows for a predetermined time and the rate of change of the overcurrent value becomes smaller than the predetermined value, the power switching The element gate input is shut off. That is, the output of the power switch is controlled based on signals from the overcurrent protection circuit and the timer circuit.

データを格納するメディアとして、PCカード、SDカード、Memory Stick、及びxD_Pictureなどの様々な種類のメモリカードがメーカーにより製造されている。メディアの特性はメーカー毎に異なるため、メディアの特性によって、メディアが動作中にホスト機器からメディアに過電流が流れ続けることがある。過電流が流れ続けると、メディアが破壊されるおそれがある。しかし、メディアを過電流から保護するような機能は従来のホスト機器には存在しなかった。   Various types of memory cards such as PC cards, SD cards, Memory Sticks, and xD_Pictures are manufactured by manufacturers as media for storing data. Since the characteristics of the media vary from manufacturer to manufacturer, overcurrent may continue to flow from the host device to the media while the media is operating, depending on the characteristics of the media. If overcurrent continues to flow, the media may be destroyed. However, there is no function for protecting the media from overcurrent in the conventional host device.

本発明は、上記従来の問題を解決するものであって、その目的とするところは、メディアを過電流から保護するメディアコントローラを提供することにある。   The present invention solves the above-described conventional problems, and an object of the present invention is to provide a media controller that protects media from overcurrent.

本発明は、ホスト機器に搭載され、ホスト機器とホスト機器に接続されたメディア間のデータの送受信を制御するメディアコントローラであって、メディアへの電力供給のオン/オフを切り替えるスイッチと、スイッチからメディアに流れる過電流を検出する過電流検出回路と、を備えたパワースイッチと、メディアがホスト機器に接続されたときに、電力の供給を開始させるパワー制御信号を出力するメディア制御部と、パワー制御信号に従って、スイッチのオン/オフの切り替えを制御するパワー制御部と、を有し、パワー制御部は、過電流検出回路が過電流を検出してから第1の所定時間が経過したときにスイッチをオンからオフに切り替える、ことを特徴とする。   The present invention is a media controller that is mounted on a host device and controls transmission / reception of data between the host device and a medium connected to the host device, and includes a switch that switches on / off of power supply to the medium, and a switch An overcurrent detection circuit that detects an overcurrent flowing through the medium; a media control unit that outputs a power control signal that starts supplying power when the medium is connected to a host device; and a power A power control unit that controls on / off switching of the switch in accordance with the control signal, and the power control unit detects when the first predetermined time has elapsed since the overcurrent detection circuit detected the overcurrent. The switch is switched from on to off.

第1の所定時間は、ユーザにより設定されてもよい。   The first predetermined time may be set by the user.

パワー制御部は、メディアへの電力供給を開始してから第2の所定時間が経過したときのみ、過電流検出回路が過電流を検出してから第1の所定時間が経過したときのスイッチのオンからオフへの切り替えを実行してもよい。   The power control unit switches the switch when the first predetermined time has elapsed after the overcurrent detection circuit detects the overcurrent only when the second predetermined time has elapsed since the start of power supply to the medium. Switching from on to off may be performed.

第2の所定時間は、ユーザにより設定されてもよい。   The second predetermined time may be set by the user.

メディアにデータを送信し且つメディアから送信されるデータを受信するI/Oセルをさらに有し、パワースイッチから出力される電力をI/Oセルに供給してもよい。   An I / O cell that transmits data to the medium and receives data transmitted from the medium may be further provided, and power output from the power switch may be supplied to the I / O cell.

パワー制御部は、過電流検出回路が過電流を検出してから第1の所定時間が経過したときにメディア制御部にエラー割り込み信号を出力し、メディア制御部は、パワー制御部からエラー割り込み信号を受信すると、ホスト機器に対してエラー割り込み信号を出力してもよい。   The power control unit outputs an error interrupt signal to the media control unit when the first predetermined time has elapsed after the overcurrent detection circuit detects the overcurrent, and the media control unit receives the error interrupt signal from the power control unit. When an error interrupt signal is received, an error interrupt signal may be output to the host device.

パワースイッチ、パワー制御部、及びメディア制御部のうち少なくとも一つを制御して、パワースイッチの動作をテストするテスト制御部をさらに有してもよい。   You may further have a test control part which controls at least one among a power switch, a power control part, and a media control part, and tests the operation | movement of a power switch.

本発明によれば、メディアへの電力供給のオン/オフを切り替えるスイッチとメディアに流れる過電流を検出する過電流検出回路とを備えたパワースイッチを備え、過電流検出回路が所定時間以上過電流を検出したときに、メディアへの電力供給を停止するようにしている。よって、過電流がメディアに流れ続けて、メディアが過電流により破壊されることを防止することができる。すなわち、メディアを過電流から保護することができる。   According to the present invention, a power switch is provided that includes a switch that switches on / off of power supply to a medium and an overcurrent detection circuit that detects an overcurrent flowing through the medium, and the overcurrent detection circuit detects an overcurrent for a predetermined time or more. Is detected, the power supply to the media is stopped. Therefore, it is possible to prevent the overcurrent from continuing to flow through the medium and destroy the medium due to the overcurrent. That is, the media can be protected from overcurrent.

本発明の実施形態のメディアコントローラを示すブロック図The block diagram which shows the media controller of embodiment of this invention メディアコントローラのパワー制御部による制御を示すフローチャートFlow chart showing control by power control unit of media controller 種々の波形を示すタイミングチャートTiming chart showing various waveforms

本発明の実施形態のメディアコントローラは、ホスト機器(本実施形態において、パソコン)に設けられて、ホスト機器に接続されたメディア(本実施形態において、メモリカード)を制御するものであって、メディアを過電流から保護する機能を備えたことを特徴とする。   A media controller according to an embodiment of the present invention is provided in a host device (in this embodiment, a personal computer) and controls media (in this embodiment, a memory card) connected to the host device. It is characterized by having a function of protecting from overcurrent.

1. メディアコントローラの構成
図1に、本実施形態のメディアコントローラ及びメディアコントローラにより制御されるメディアを示す。メディアコントローラ100により制御されるメディア200は、PCカード、SDカード、Memory Stick、及びxD_Pictureなどのメモリカードである。
1. Configuration of Media Controller FIG. 1 shows a media controller of this embodiment and media controlled by the media controller. The media 200 controlled by the media controller 100 is a memory card such as a PC card, an SD card, a Memory Stick, and xD_Picture.

メディアコントローラ100は、データの入出力を行うI/Oセル群1と、I/Oセル群1のデータの入出力を制御するメディア制御部2と、を有する。I/Oセル群1は、メディア200と電気的に接続して、ホスト機器内のデータをメディア200に送信し且つメディア200から送信されたデータを受信する。メディア制御部2は、ホスト機器の制御に基づいて、ホスト機器内のデータをI/Oセル群1を介してメディア200に伝送し且つI/Oセル群1に入力されたデータをホスト機器の内部に伝送する。メディア制御部2は、さらに、メディア200への電力供給の開始/停止を制御するパワー制御信号を出力する。具体的には、メディア制御部2は、メディア200がI/Oセル群1に接続されたことを検知すると、メディア200への電力供給を開始するパワー制御信号を出力し、メディア200が非接続状態になったことを検知すると、メディア200への電力供給を停止するパワー制御信号を出力する。また、メディア制御部2は、エラー割り込み信号を入力すると、メディア制御部2内においてエラー処理を行うと共に、ホスト機器に対してエラー割り込み信号を出力する。エラー割り込み信号を受け取ったホスト機器は、エラー割り込み信号をトリガーとして、ホスト機器内のドライバによりエラー処理を行う。例えば、メディア制御部2にデータの送受信を中止させる。   The media controller 100 includes an I / O cell group 1 that performs data input / output and a media control unit 2 that controls data input / output of the I / O cell group 1. The I / O cell group 1 is electrically connected to the medium 200, transmits data in the host device to the medium 200, and receives data transmitted from the medium 200. Based on the control of the host device, the media control unit 2 transmits the data in the host device to the medium 200 via the I / O cell group 1 and transmits the data input to the I / O cell group 1 to the host device. Transmit internally. The media control unit 2 further outputs a power control signal for controlling start / stop of power supply to the media 200. Specifically, when the media control unit 2 detects that the media 200 is connected to the I / O cell group 1, the media control unit 2 outputs a power control signal for starting power supply to the media 200, and the media 200 is disconnected. When it is detected that the state has been reached, a power control signal for stopping the power supply to the medium 200 is output. Further, when an error interrupt signal is input, the media control unit 2 performs error processing in the media control unit 2 and outputs an error interrupt signal to the host device. The host device that has received the error interrupt signal performs error processing by the driver in the host device using the error interrupt signal as a trigger. For example, the media control unit 2 stops data transmission / reception.

メディアコントローラ100は、さらに、メディア200への電力供給のオン/オフを切り替えるパワースイッチ3と、メディア制御部2から出力されるパワー制御信号に基づいてパワースイッチ3を制御するパワー制御部4と、を有する。パワースイッチ3は、パワー制御部4から出力されるスイッチ切替信号に基づいて、メディア200への電力供給のオン/オフを切り替えるスイッチ31と、スイッチ31の両端の電位差を測ることにより、メディア200に流れる過電流を検出する過電流検出回路32と、を有する。本実施形態において、スイッチ31は、トランジスタである。スイッチ31がオンのとき、電源電圧Vccがメディア200に供給される。これと同時に、電源電圧VccがI/Oセル群1に供給される。パワースイッチ3をメディアコントローラ100に内蔵しているため、I/Oセル群1の電源をメディアコントローラ100の内部から供給することが可能になり、I/Oセル群1において外部からの電力を入力するための電源入力端子が不要となる。過電流検出回路32は、メディア200に過電流が流れていることを検出すると、過電流が流れていることを示すエラー信号を出力する。   The media controller 100 further includes a power switch 3 that switches on / off power supply to the medium 200, a power control unit 4 that controls the power switch 3 based on a power control signal output from the media control unit 2, Have Based on the switch switching signal output from the power control unit 4, the power switch 3 measures the potential difference between the switch 31 that switches on / off the power supply to the medium 200 and both ends of the switch 31, thereby An overcurrent detection circuit 32 for detecting a flowing overcurrent. In the present embodiment, the switch 31 is a transistor. When the switch 31 is on, the power supply voltage Vcc is supplied to the medium 200. At the same time, the power supply voltage Vcc is supplied to the I / O cell group 1. Since the power switch 3 is built in the media controller 100, the power of the I / O cell group 1 can be supplied from the inside of the media controller 100, and external power is input to the I / O cell group 1. Power supply input terminals are not required. When the overcurrent detection circuit 32 detects that an overcurrent flows through the medium 200, the overcurrent detection circuit 32 outputs an error signal indicating that the overcurrent is flowing.

パワー制御部4は、メディア制御部2から出力されるパワー制御信号に従って、スイッチ31のオン/オフを切り替えるスイッチ切替信号を出力するパワー切替部41と、内部クロックを用いて時間をカウントするカウンタ42と、を有する。メディアコントローラ100は、所定時間αと所定時間βをそれぞれ示す所定の閾値を格納したレジスタ6をさらに備えている。所定時間αは、電源供給開始直後に過電流検出回路32から出力されるエラー信号を無視するための閾値であって、本実施形態においては16msecである。所定時間βは、電源供給の停止を過電流の検出時間に基づいて設定するための閾値であって、本実施形態においては8msecである。所定時間βが長すぎるとメディア200を破壊してしまうおそれがあり、短すぎるとメディアを安定して動作させることができなくなるため、所定時間βの長さは、メディア200が安定して動作でき、且つ、メディア200の破壊を防ぐ時間に設定することが好ましい。   The power control unit 4 includes a power switching unit 41 that outputs a switch switching signal for switching on / off of the switch 31 according to the power control signal output from the media control unit 2, and a counter 42 that counts time using an internal clock. And having. The media controller 100 further includes a register 6 that stores predetermined threshold values respectively indicating the predetermined time α and the predetermined time β. The predetermined time α is a threshold for ignoring an error signal output from the overcurrent detection circuit 32 immediately after the power supply is started, and is 16 msec in the present embodiment. The predetermined time β is a threshold value for setting the stop of power supply based on the overcurrent detection time, and is 8 msec in the present embodiment. If the predetermined time β is too long, the medium 200 may be destroyed. If the predetermined time β is too short, the medium cannot be stably operated. Therefore, the length of the predetermined time β allows the medium 200 to operate stably. In addition, it is preferable to set the time to prevent destruction of the media 200.

カウンタ42は、電力供給の開始を指示するパワー制御信号を入力してからの時間T1と、過電流検出回路32からエラー信号が出力されている時間T2とをそれぞれ、内部クロックを用いてカウントする。なお、カウンタ42で使用される内部クロックは、他の動作条件で停止しないものであるが、メディアの電源がOFFの時は停止してもよい。パワー切替部41は、レジスタ6に格納されている閾値とカウンタ42のカウント値とを比較して、スイッチ切替信号及びエラー割り込み信号の出力を制御する。具体的には、パワー切替部41は、電力供給の開始を指示するパワー制御信号を入力してからの時間T1(すなわち、スイッチ31をオンに切り替えるスイッチ切替信号を出力してからの時間)が所定時間αを超えており、且つ、エラー信号を入力されている時間T2が所定時間βを超えたときに、スイッチ31をオフに切り替えるスイッチ切替信号をパワースイッチ3に出力する。またこれと同時に、エラー割り込み信号をメディア制御部2に出力する。   The counter 42 counts the time T1 from the input of the power control signal instructing the start of power supply and the time T2 during which the error signal is output from the overcurrent detection circuit 32 using the internal clock. . Note that the internal clock used by the counter 42 is not stopped under other operating conditions, but may be stopped when the power of the medium is OFF. The power switching unit 41 compares the threshold value stored in the register 6 with the count value of the counter 42 and controls the output of the switch switching signal and the error interrupt signal. Specifically, the power switching unit 41 has a time T1 after inputting a power control signal instructing the start of power supply (that is, a time after outputting a switch switching signal for turning on the switch 31). When the predetermined time α is exceeded and the time T2 during which the error signal is input exceeds the predetermined time β, a switch switching signal for turning off the switch 31 is output to the power switch 3. At the same time, an error interrupt signal is output to the media control unit 2.

上記の構成において、過電流検出回路32、パワー切替部41、カウンタ42、及びレジスタ6により、本実施形態における過電流保護機能を実現する。   In the above configuration, the overcurrent detection circuit 32, the power switching unit 41, the counter 42, and the register 6 realize the overcurrent protection function in the present embodiment.

メディアコントローラ100は、さらに、パワースイッチ3、パワー制御部4、及びメディア制御部2を制御することにより、パワースイッチ3の動作をテストするテスト制御部5をさらに有する。テスト制御部5は、ホスト機器が出荷される前に、パワー制御部4、パワースイッチ3、及びメディア制御部2を制御して、パワースイッチ3が正常に動作するかどうかをテストする。具体的には、例えば、テスト制御部5は、過電流検出回路32にエラー信号を強制的に出力させる。また、メディア制御部2に電力供給の開始を指示するパワー制御信号を強制的に出力させたり、又は、パワー制御部4にオンに切り替えるスイッチ切り替え信号を強制的に出力させて、スイッチ31を強制的にオンにさせる。このとき、レジスタ6に格納されている所定時間α及び所定時間βを示す閾値をそれぞれ様々な値に設定して、エラー発生時のテストを行ってもよい。例えば、所定時間α及び所定時間βの値を大きくしておくことにより、パワースイッチ3からエラー信号が出力されていても、エラー信号を強制的に無視して、スイッチ31のオンを指示するスイッチ切り替え信号を出力し続けさせてもよい。   The media controller 100 further includes a test control unit 5 that tests the operation of the power switch 3 by controlling the power switch 3, the power control unit 4, and the media control unit 2. The test control unit 5 controls the power control unit 4, the power switch 3, and the media control unit 2 to test whether the power switch 3 operates normally before the host device is shipped. Specifically, for example, the test control unit 5 causes the overcurrent detection circuit 32 to forcibly output an error signal. In addition, the power control signal for instructing the start of power supply to the media control unit 2 is forcibly output, or the switch control signal for forcibly turning on the power control unit 4 is forcibly output to force the switch 31. To turn on. At this time, the threshold value indicating the predetermined time α and the predetermined time β stored in the register 6 may be set to various values to perform a test when an error occurs. For example, by increasing the values of the predetermined time α and the predetermined time β, even if an error signal is output from the power switch 3, the error signal is forcibly ignored, and a switch that instructs the switch 31 to turn on The switching signal may be continuously output.

2. メディアコントローラの動作
図2に、パワー制御部4の制御を示す。メディア200がホスト機器に挿入されてI/Oセル群1と電気的に接続されると、メディア制御部2は、メディア200への電力供給の開始を指示するパワー制御信号を出力する。パワー制御部4は、メディア制御部2からのメディア200への電力供給の開始を指示するパワー制御信号を入力したかどうかを判断する(S201)。電力供給の開始を指示するパワー制御信号を入力した場合、パワー制御部4は、スイッチ31をオンに切り替えるスイッチ切替信号を出力する(S202)。これにより、スイッチ31はオンに切り替わり、電源電圧Vccによる電力がメディア200に供給される。また、カウンタ42は、内部クロックを用いて、電源を供給してからの時間T1をカウントし始める。
2. Operation of Media Controller FIG. 2 shows control of the power control unit 4. When the medium 200 is inserted into the host device and electrically connected to the I / O cell group 1, the media control unit 2 outputs a power control signal that instructs the start of power supply to the medium 200. The power control unit 4 determines whether a power control signal instructing the start of power supply to the medium 200 from the media control unit 2 is input (S201). When a power control signal for instructing the start of power supply is input, the power control unit 4 outputs a switch switching signal for turning on the switch 31 (S202). As a result, the switch 31 is turned on, and power from the power supply voltage Vcc is supplied to the medium 200. Further, the counter 42 starts counting the time T1 after the power is supplied using the internal clock.

過電流検出回路32は、メディア200に過電流が流れていることを検出すると、エラー信号を出力する。パワー制御部4は、過電流検出回路32からのエラー信号を入力したかどうかを判断する(S203)。エラー信号が入力され始めると、カウンタ42は、エラー信号を入力してからの時間T2をカウントし始める。エラー信号を入力した場合、パワー切替部41は、カウンタ42のカウント値とレジスタ6の閾値とを比較して、電源供給開始後の時間T1が所定時間αを超えたかどうかを判断する(S204)。   When the overcurrent detection circuit 32 detects that an overcurrent flows through the medium 200, the overcurrent detection circuit 32 outputs an error signal. The power control unit 4 determines whether an error signal from the overcurrent detection circuit 32 has been input (S203). When the error signal starts to be input, the counter 42 starts counting the time T2 after the error signal is input. When an error signal is input, the power switching unit 41 compares the count value of the counter 42 with the threshold value of the register 6 and determines whether or not the time T1 after the start of power supply exceeds a predetermined time α (S204). .

電源供給を開始した直後、スイッチ31のオン抵抗が大きいため、メディア200に流れる電流が小さくても、スイッチ31の両端の電位差が大きくなる。そのため、この大きな電位差を検出した過電流検出回路32は、エラー信号を出力する。しかし、実際には、メディア200に過電流が流れているわけではない。よって、電源供給開始後の時間T1が所定時間αを超えていない場合(S204でNo)、エラー信号は過電流によるエラーではないと判断できる。そのため、パワー制御部4は、スイッチ31のオンを指示するスイッチ切替信号を出力し続ける(S202)。   Immediately after the power supply is started, the ON resistance of the switch 31 is large, so that even if the current flowing through the medium 200 is small, the potential difference between both ends of the switch 31 is large. Therefore, the overcurrent detection circuit 32 that detects this large potential difference outputs an error signal. However, actually, an overcurrent does not flow through the medium 200. Therefore, when the time T1 after the start of power supply does not exceed the predetermined time α (No in S204), it can be determined that the error signal is not an error due to overcurrent. Therefore, the power control unit 4 continues to output a switch switching signal instructing to turn on the switch 31 (S202).

一方、電源供給開始後の時間T1が所定時間αを超えた場合(S204でYes)、過電流検出回路32から出力されるエラー信号は過電流のエラーによるものと判断できる。メディア200に過電流が長時間流れ続けると、メディア200が破壊されるおそれがあるため、メディア200への電力供給を停止させなければならない。一方、メディアの種類によっては、メディアの動作中に、非常に短時間の過電流が流れることがあり、過電流が流れる都度、メディア200への電力供給を停止させていると、メディア200を安定して動作させることができなくなる。そこで、パワー制御部4は、カウンタ42のカウント値とレジスタ6の閾値とを比較して、エラー信号を入力してからの時間T2が所定時間βを超えたかどうかを判断する(S205)。   On the other hand, when the time T1 after the start of power supply exceeds the predetermined time α (Yes in S204), it can be determined that the error signal output from the overcurrent detection circuit 32 is due to an overcurrent error. If an overcurrent continues to flow through the medium 200 for a long time, the medium 200 may be destroyed. Therefore, the power supply to the medium 200 must be stopped. On the other hand, depending on the type of media, a very short overcurrent may flow during the operation of the media, and the power supply to the media 200 is stopped each time the overcurrent flows. Cannot be operated. Therefore, the power control unit 4 compares the count value of the counter 42 with the threshold value of the register 6, and determines whether or not the time T2 after the error signal is input exceeds the predetermined time β (S205).

エラー信号を入力してからの時間T2が所定時間βを超えていない場合は(S205でNo)、メディア200が破壊されるおそれがないと判断できるため、スイッチ31をオンに切り替えるスイッチ切り替え信号を出力し続ける(S202)。   If the time T2 after the error signal is input does not exceed the predetermined time β (No in S205), it can be determined that the medium 200 is not likely to be destroyed. The output continues (S202).

エラー信号を入力してからの時間T2が所定時間βを超えた場合は(S205でYes)、メディア200が破壊されるおそれがあると判断できるため、パワー制御部4はスイッチ31をオフに切り替えるスイッチ切替信号を出力すると共に(S206)、エラー割り込み信号をメディア制御部2に対して出力する(S207)。これにより、オフを指示するスイッチ切り替え信号に基づいて、パワースイッチ3のスイッチ31はオフに切り替わる。よって、メディア200に電力が供給されなくなる。また、エラー割り込み信号を受け取ったメディア制御部2は、メディア制御部2内においてエラー処理を行うと共に、ホスト機器に対してエラー割り込み信号を出力する。これにより、ホスト機器からメディア制御部2に対してデータの送受信の中止などが指示される。   If the time T2 after the error signal is input exceeds the predetermined time β (Yes in S205), it can be determined that the medium 200 may be destroyed, and therefore the power control unit 4 switches the switch 31 off. A switch switching signal is output (S206), and an error interrupt signal is output to the media control unit 2 (S207). As a result, the switch 31 of the power switch 3 is switched off based on the switch switching signal instructing to turn off. Therefore, no power is supplied to the medium 200. Also, the media control unit 2 that has received the error interrupt signal performs error processing in the media control unit 2 and outputs an error interrupt signal to the host device. As a result, the host device instructs the media control unit 2 to cancel data transmission / reception.

図3に、上記の制御を行ったときの各波形のタイミングチャートを示す。図3において、(a)はパワー制御部4から出力されるスイッチ切替信号を示し、(b)はパワースイッチ3からメディア200に供給される電力を示し、(c)はパワースイッチ3からメディア200に流れる電流を示し、(d)はパワースイッチ3から出力されるエラー信号を示し、(e)はパワー制御部4から出力されるエラー割り込み信号を示す。   FIG. 3 shows a timing chart of each waveform when the above control is performed. 3, (a) shows a switch switching signal output from the power control unit 4, (b) shows the power supplied from the power switch 3 to the medium 200, and (c) shows the power supplied from the power switch 3 to the medium 200. (D) shows an error signal output from the power switch 3, and (e) shows an error interrupt signal output from the power control unit 4.

時刻t1で、メディア200がホスト機器に挿入され、メディア制御部2は電力供給の
開始を指示するパワー制御信号を出力する。パワー制御部4は、このパワー制御信号に従って、スイッチ31をオンに切り替えるスイッチ切替信号を出力する。これにより、パワースイッチ3からメディア200への電力供給が始まり、パワースイッチ3からメディア200に電流が流れ始める。メディア200への電力供給を開始した直後、過電流検出回路32はエラー信号を出力する(時刻t1〜時刻t2)。しかし、このエラー信号は、過電流によるものではないため、パワー制御部4は、電力供給を開始してからの時間T1が所定時間αを超えるまでの間は、エラー割り込み信号を出力しない。
At time t1, the medium 200 is inserted into the host device, and the media control unit 2 outputs a power control signal instructing the start of power supply. The power control unit 4 outputs a switch switching signal for turning on the switch 31 in accordance with the power control signal. Thereby, power supply from the power switch 3 to the medium 200 starts, and current starts to flow from the power switch 3 to the medium 200. Immediately after starting the power supply to the medium 200, the overcurrent detection circuit 32 outputs an error signal (time t1 to time t2). However, since this error signal is not due to an overcurrent, the power control unit 4 does not output an error interrupt signal until the time T1 after the start of power supply exceeds the predetermined time α.

時刻t3で、過電流が発生している。しかし、過電流が流れている時間T2は、所定時間βより短いため、パワー制御部4はエラー割り込み信号を出力しない(時刻t3〜時刻t4)。   An overcurrent has occurred at time t3. However, since the time T2 during which the overcurrent flows is shorter than the predetermined time β, the power control unit 4 does not output an error interrupt signal (time t3 to time t4).

時刻t5で、再度、過電流が発生している。このときの過電流が流れている時間T2は所定時間βを超えるため、パワー制御部4はエラー割り込み信号を出力すると共に、スイッチ31をオフに切り替える(時刻t6)。   At time t5, overcurrent occurs again. Since the time T2 during which the overcurrent flows at this time exceeds the predetermined time β, the power control unit 4 outputs an error interrupt signal and switches off the switch 31 (time t6).

以上のように、本実施形態によれば、電源供給を開始してから所定時間αが経過した後に、過電流が所定時間βを超えて流れ続けると、スイッチ31への電力供給を停止する。   As described above, according to the present embodiment, the power supply to the switch 31 is stopped when the overcurrent continues to flow beyond the predetermined time β after the elapse of the predetermined time α from the start of power supply.

3.まとめ
本実施形態によれば、過電流が所定時間βを超えてメディア200に流れ続けると、スイッチ31をオフにしてメディア200への電力供給を停止している。よって、メディア200を過電流から保護することができ、メディア200の破壊を防ぐことができる。また、過電流が流れている時間が所定時間β以下の場合は、メディア200への電力供給を継続している。これにより、メディア200の特性に影響されず、メディア200を安定させて動作させることができる。
3. Summary According to the present embodiment, when the overcurrent continues to flow to the medium 200 for a predetermined time β, the switch 31 is turned off and the power supply to the medium 200 is stopped. Therefore, the medium 200 can be protected from overcurrent, and destruction of the medium 200 can be prevented. Further, when the time during which the overcurrent is flowing is equal to or shorter than the predetermined time β, the power supply to the medium 200 is continued. Thereby, the medium 200 can be operated stably without being affected by the characteristics of the medium 200.

また、本実施形態によれば、電源供給を開始してから所定時間αが経過するまでは、エラー信号が過電流検出回路32から出力されていても、メディア200への電力供給を停止させていない。よって、パワースイッチ3の立ち上がり時の不安定な出力電圧に影響されずに、メディア200を正常に動作させることができる。   Further, according to the present embodiment, the power supply to the medium 200 is stopped even if an error signal is output from the overcurrent detection circuit 32 until the predetermined time α elapses after the power supply is started. Absent. Therefore, the medium 200 can be operated normally without being affected by the unstable output voltage when the power switch 3 rises.

パワースイッチ3をメディアコントローラ100に対して外付けにした場合、エラー信号の出力時間を計測するためには、CR遅延などを用いたタイマー回路が必要となる。この場合、タイマー回路の素子のばらつきや周囲の温度変化の影響により、正確な時間を計測することが難しい。しかし、本実施形態によれば、パワースイッチ3をメディアコントローラ100に内蔵しているため、エラー信号の出力時間の計測に内部クロックを使用することができる。よって、正確な時間を計測することができる。これにより、より正確に電源供給の継続及び停止を制御することができる。   When the power switch 3 is externally attached to the media controller 100, a timer circuit using a CR delay or the like is required in order to measure the error signal output time. In this case, it is difficult to accurately measure the time due to variations in the elements of the timer circuit and ambient temperature changes. However, according to this embodiment, since the power switch 3 is built in the media controller 100, the internal clock can be used for measuring the output time of the error signal. Therefore, accurate time can be measured. Thereby, the continuation and stop of power supply can be controlled more accurately.

本実施形態によれば、パワースイッチ3をメディアコントローラ100に内蔵しているため、パワースイッチ3の出力電圧を内部配線によってメディア用I/Oセル群1の電源として使用することができる。そのため、I/Oセル群1の電源入力端子を削減できる。   According to this embodiment, since the power switch 3 is built in the media controller 100, the output voltage of the power switch 3 can be used as a power source for the media I / O cell group 1 by the internal wiring. Therefore, the power input terminals of the I / O cell group 1 can be reduced.

また、本実施形態によれば、スイッチ切替信号をオフに切り替えると同時に、エラー割り込み信号をホスト機器に出力している。よって、ホスト機器内において、メディア200を制御しているソフトウェアがメディア200の電源が過電流によりオフになったことを知ることができる。これにより、メディア200を制御しているソフトウェアがホスト機器内で異常が起こらないように後処理を行うことが可能になる。   According to the present embodiment, the error interrupt signal is output to the host device at the same time as the switch switching signal is switched off. Therefore, in the host device, the software controlling the media 200 can know that the power source of the media 200 has been turned off due to an overcurrent. As a result, the software that controls the media 200 can perform post-processing so that no abnormality occurs in the host device.

また、メディアコントローラ100にテスト制御部5を内蔵したことにより、パワースイッチ3をメディアコントローラ100に内蔵させた構成において、パワースイッチ3のテストを容易に行うことができる。カメラ、パソコンなどのアプリケーションや接続されるメディアカードの種類によって、電源供給環境、たとえば、I/Oセル群1への電源供給やメディア200とパワースイッチ3間の電源供給などに変化が生じる。そのため、パワースイッチ3自体のテストやメディアカードコントローラシステム全体のテストを実施する必要がある。このとき、例えば、パワースイッチ3がメディアコントローラ100に内蔵されていない場合、パワースイッチ3とパワー制御部4に関連する動作テストをそれぞれ単独でしか行えないため、正確な動作テストを行うことができない。具体的には、パワースイッチ側とメディアコントローラ側で端子を用意する必要があり、さらに、アプリケーションや使用するメディアごとにテストの同期がとれないため、パワースイッチ側とメディアクロック側でのテスト信号の同期をとる必要が生じ、正確なメディアシステム全体のテストを正確に実行できない。しかし、本実施形態によれば、パワースイッチ3をメディアコントローラ100に内蔵させているため、動作テストを正確に行うことが可能となる。本実施形態によれば、複数種類のメディアカードが搭載可能なメディアカード制御に関して、パワー制御に関連する回路がいずれのシステムでも同一の回路構成で対応でき、さらに正確なパワー制御と動作テストを実現することができる。このように、正確な動作テストを実現するメディア制御装置は、複数種類のメディアカードに対応したメディアコントローラ回路と、メディアカードに電源を供給するパワースイッチ回路と、パワースイッチの電源供給を制御するパワー制御回路と、を備え、パワースイッチ回路は、メディアコントローラ側電位と電源側電位との電位差を比較する電位差比較回路を有し、パワー制御回路は、電位差比較回路の比較結果が所定の電位差を超えた時間を内部クロックに基づいてカウントするカウンタを用いて、オフ信号を出力するタイミング値を保存するレジスタのタイミング値とカウンタ値を比較してパワースイッチ回路のオンオフを制御し、内部クロックと同期してパワー制御回路とパワースイッチ回路にテスト信号を出力し、動作テストを実行するテスト回路と、を有する。   In addition, since the test controller 5 is built in the media controller 100, the power switch 3 can be easily tested in the configuration in which the power switch 3 is built in the media controller 100. The power supply environment, for example, the power supply to the I / O cell group 1 and the power supply between the medium 200 and the power switch 3 vary depending on the application of the camera, personal computer, or the like and the type of media card to be connected. Therefore, it is necessary to perform a test of the power switch 3 itself and a test of the entire media card controller system. At this time, for example, when the power switch 3 is not built in the media controller 100, the operation test related to the power switch 3 and the power control unit 4 can only be performed independently, so that an accurate operation test cannot be performed. . Specifically, it is necessary to prepare terminals on the power switch side and the media controller side, and further, because the test is not synchronized for each application and media used, the test signal on the power switch side and the media clock side There is a need to synchronize and accurate media system testing cannot be performed accurately. However, according to the present embodiment, since the power switch 3 is built in the media controller 100, an operation test can be accurately performed. According to the present embodiment, regarding media card control in which a plurality of types of media cards can be mounted, the circuit related to power control can be handled with the same circuit configuration in any system, and more accurate power control and operation test are realized. can do. As described above, the media control device that realizes an accurate operation test includes a media controller circuit that supports a plurality of types of media cards, a power switch circuit that supplies power to the media cards, and a power that controls power supply of the power switch. The power switch circuit has a potential difference comparison circuit that compares the potential difference between the media controller side potential and the power source side potential, and the power control circuit has a comparison result of the potential difference comparison circuit exceeding a predetermined potential difference. Using a counter that counts the time based on the internal clock, the timing value of the register that stores the timing value that outputs the OFF signal is compared with the counter value to control the on / off of the power switch circuit and synchronize with the internal clock. Output test signals to the power control circuit and power switch circuit, Having a test circuit for performing.

なお、レジスタ6に格納される所定時間α及び所定時間βを示す閾値は、本実施形態に限定されない。また、所定時間α及び所定時間βは、ユーザにより設定されてもよい。これにより、様々なメディアを安全に動作させることができる。   Note that the threshold values indicating the predetermined time α and the predetermined time β stored in the register 6 are not limited to the present embodiment. Further, the predetermined time α and the predetermined time β may be set by the user. Thereby, various media can be operated safely.

本実施形態のメディアコントローラによれば、メディアを過電流から保護することができるという効果を有し、メディアとの間でデータの送受信を行うホスト機器全般に有用である。   According to the media controller of the present embodiment, the media can be protected from an overcurrent, and is useful for all host devices that transmit / receive data to / from the media.

1 I/Oセル群
2 メディア制御部
3 パワースイッチ
4 パワー制御部
5 テスト制御部
6 レジスタ
31 スイッチ
32 過電流検出回路
41 パワー切替部
42 カウンタ
200 メディア
DESCRIPTION OF SYMBOLS 1 I / O cell group 2 Media control part 3 Power switch 4 Power control part 5 Test control part 6 Register 31 Switch 32 Overcurrent detection circuit 41 Power switching part 42 Counter 200 Media

特許第2985431号公報Japanese Patent No. 2998531

Claims (7)

ホスト機器に搭載され、前記ホスト機器と前記ホスト機器に接続されたメディア間のデータの送受信を制御するメディアコントローラであって、
前記メディアへの電力供給のオン/オフを切り替えるスイッチと、前記スイッチから前記メディアに流れる過電流を検出する過電流検出回路と、を備えたパワースイッチと、
前記メディアが前記ホスト機器に接続されたときに、電力の供給を開始させるパワー制御信号を出力するメディア制御部と、
前記パワー制御信号に従って、前記スイッチのオン/オフの切り替えを制御するパワー制御部と、
を有し、
前記パワー制御部は、前記過電流検出回路が過電流を検出してから第1の所定時間が経過したときに前記スイッチをオンからオフに切り替える、ことを特徴とするメディアコントローラ。
A media controller that is mounted on a host device and controls transmission / reception of data between the host device and a medium connected to the host device,
A power switch comprising: a switch that switches on / off power supply to the medium; and an overcurrent detection circuit that detects an overcurrent flowing from the switch to the medium;
A media control unit for outputting a power control signal for starting supply of power when the media is connected to the host device;
A power control unit for controlling on / off switching of the switch according to the power control signal;
Have
The power controller is configured to switch the switch from on to off when a first predetermined time has elapsed since the overcurrent detection circuit detected an overcurrent.
前記第1の所定時間は、ユーザにより設定される、請求項1に記載のメディアコントローラ。   The media controller according to claim 1, wherein the first predetermined time is set by a user. 前記パワー制御部は、前記メディアへの電力供給を開始してから第2の所定時間が経過したときのみ、前記過電流検出回路が過電流を検出してから第1の所定時間が経過したときの前記スイッチのオンからオフへの切り替えを実行する、請求項1に記載のメディアコントローラ。   When the first predetermined time has elapsed since the overcurrent detection circuit detected an overcurrent only when the second predetermined time has elapsed since the power control unit started supplying power to the medium The media controller according to claim 1, wherein switching of the switch from on to off is performed. 前記第2の所定時間は、ユーザにより設定される、請求項3に記載のメディアコントローラ。   The media controller according to claim 3, wherein the second predetermined time is set by a user. 前記メディアにデータを送信し且つ前記メディアから送信されるデータを受信するI/Oセルをさらに有し、
前記パワースイッチから出力される電力を前記I/Oセルに供給する、請求項1に記載のメディアコントローラ。
An I / O cell that transmits data to the medium and receives data transmitted from the medium;
The media controller according to claim 1, wherein power output from the power switch is supplied to the I / O cell.
前記パワー制御部は、前記過電流検出回路が過電流を検出してから第1の所定時間が経過したときに前記メディア制御部にエラー割り込み信号を出力し、
前記メディア制御部は、前記パワー制御部からエラー割り込み信号を受信すると、前記ホスト機器に対してエラー割り込み信号を出力する、請求項1に記載のメディアコントローラ。
The power control unit outputs an error interrupt signal to the media control unit when a first predetermined time has elapsed since the overcurrent detection circuit detected an overcurrent,
The media controller according to claim 1, wherein the media control unit outputs an error interrupt signal to the host device when receiving an error interrupt signal from the power control unit.
前記パワースイッチ、前記パワー制御部、及び前記メディア制御部のうち少なくとも一つを制御して、前記パワースイッチの動作をテストするテスト制御部をさらに有する、請求項1に記載のメディアコントローラ。   The media controller according to claim 1, further comprising a test control unit that controls at least one of the power switch, the power control unit, and the media control unit to test an operation of the power switch.
JP2009061221A 2009-03-13 2009-03-13 Medium controller Pending JP2010218003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009061221A JP2010218003A (en) 2009-03-13 2009-03-13 Medium controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009061221A JP2010218003A (en) 2009-03-13 2009-03-13 Medium controller

Publications (1)

Publication Number Publication Date
JP2010218003A true JP2010218003A (en) 2010-09-30

Family

ID=42976831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009061221A Pending JP2010218003A (en) 2009-03-13 2009-03-13 Medium controller

Country Status (1)

Country Link
JP (1) JP2010218003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123579A (en) * 2010-12-08 2012-06-28 Nec Access Technica Ltd Host device and power supply method from host device to external device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0496617A (en) * 1990-08-10 1992-03-30 Toshiba Corp Overcurrent detection system
JPH05146049A (en) * 1991-11-22 1993-06-11 Nec Kansai Ltd Load state detection circuit
JPH08185248A (en) * 1994-12-15 1996-07-16 Internatl Business Mach Corp <Ibm> Mechanism and method for control of power supply as well as controller for input/output device
JPH10201092A (en) * 1997-01-13 1998-07-31 Rohm Co Ltd Control circuit with forced operation function and semiconductor device
JPH10201076A (en) * 1997-01-13 1998-07-31 Hino Motors Ltd Overcurrent cutoff circuit
JP2000013991A (en) * 1998-06-22 2000-01-14 Nec Corp Method and circuit for limiting overcurrent using mosfet switch
JP2000227462A (en) * 1999-02-08 2000-08-15 Fujitsu Ltd Semiconductor integrated circuit device and test method therefor
JP2007033108A (en) * 2005-07-25 2007-02-08 Nec Tokin Tochigi Ltd Secondary battery pack
JP2007094963A (en) * 2005-09-30 2007-04-12 Sony Corp Power management device and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0496617A (en) * 1990-08-10 1992-03-30 Toshiba Corp Overcurrent detection system
JPH05146049A (en) * 1991-11-22 1993-06-11 Nec Kansai Ltd Load state detection circuit
JPH08185248A (en) * 1994-12-15 1996-07-16 Internatl Business Mach Corp <Ibm> Mechanism and method for control of power supply as well as controller for input/output device
JPH10201092A (en) * 1997-01-13 1998-07-31 Rohm Co Ltd Control circuit with forced operation function and semiconductor device
JPH10201076A (en) * 1997-01-13 1998-07-31 Hino Motors Ltd Overcurrent cutoff circuit
JP2000013991A (en) * 1998-06-22 2000-01-14 Nec Corp Method and circuit for limiting overcurrent using mosfet switch
JP2000227462A (en) * 1999-02-08 2000-08-15 Fujitsu Ltd Semiconductor integrated circuit device and test method therefor
JP2007033108A (en) * 2005-07-25 2007-02-08 Nec Tokin Tochigi Ltd Secondary battery pack
JP2007094963A (en) * 2005-09-30 2007-04-12 Sony Corp Power management device and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123579A (en) * 2010-12-08 2012-06-28 Nec Access Technica Ltd Host device and power supply method from host device to external device

Similar Documents

Publication Publication Date Title
US9696783B2 (en) Method of sensing connection of USB device in power save mode and image forming apparatus for performing the same
US8904215B2 (en) Electronic device and power consumption measuring method thereof
US9946329B2 (en) Electronic apparatus
US20140084973A1 (en) Semiconductor device
US20150115852A1 (en) Over-current protection circuit and motor driving device
JP4634316B2 (en) Storage device storage device
JP2010218003A (en) Medium controller
US8513979B2 (en) Integrated circuit and related controlling method
US20110004745A1 (en) Method of Controlling a Measurement Instrument
JP7143797B2 (en) Power control device for in-vehicle camera module
JP2005198439A (en) LDO output short protection system
JP2007033108A (en) Secondary battery pack
JP2015176349A (en) Information processor, failure detection method and program
JP5450352B2 (en) Power supply monitoring apparatus and information processing apparatus
JP5428969B2 (en) Image forming apparatus
TWI579685B (en) Fan system and fan control method
JP2007065961A (en) Electronic control device and electronic control method
JP4288705B2 (en) Electronics
CN114550666A (en) Display device and method of driving the same
EP3211508B1 (en) Semiconductor device
JP7652402B1 (en) CONTROL DEVICE, MAGNETIC TAPE DEVICE, AND CONTROL METHOD
JP4507777B2 (en) Power control device
US12319210B2 (en) Electronic control device
CN108388494B (en) Electronic device and control method thereof
JP6047918B2 (en) POWER CONTROL DEVICE, ELECTRONIC DEVICE, AND POWER CONTROL METHOD

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131203