JPS6358520A - Portable medium - Google Patents

Portable medium

Info

Publication number
JPS6358520A
JPS6358520A JP61203361A JP20336186A JPS6358520A JP S6358520 A JPS6358520 A JP S6358520A JP 61203361 A JP61203361 A JP 61203361A JP 20336186 A JP20336186 A JP 20336186A JP S6358520 A JPS6358520 A JP S6358520A
Authority
JP
Japan
Prior art keywords
circuit
supplied
power supply
output
clock
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
JP61203361A
Other languages
Japanese (ja)
Inventor
Kiyoyoshi Nara
精悦 奈良
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61203361A priority Critical patent/JPS6358520A/en
Publication of JPS6358520A publication Critical patent/JPS6358520A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07749Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card
    • G06K19/07766Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card comprising at least a second communication arrangement in addition to a first non-contact communication arrangement
    • G06K19/07769Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card comprising at least a second communication arrangement in addition to a first non-contact communication arrangement the further communication means being a galvanic interface, e.g. hybrid or mixed smart cards having a contact and a non-contact interface

Abstract

PURPOSE:To eliminate noise produced at the time of switching a power supply and also to prevent changeover of the power supply due to mischief as well as malfunction, of an internal circuit for improvement of reliability, by providing a contact part to which an external power supply is applied and a power supply switching means. CONSTITUTION:When an IC card 10 is not connected to a terminal equipment, the power supply voltage of an internal battery 25 is applied to each part as an output VouT via a semiconductor switch 56. While the external power supply voltage Vcc is applied to the gate of a semiconductor switch 58 together with a clock signal CLK supplied to a counter 52 when the card 10 is connected to the terminal equipment via contact part 11. When the counter 52 has the prescribed count value, an FF 53 is set with the output of the counter 52 together with switches 58 and 56 turned on and off, respectively. Thus the voltage Vcc is applied to each part as the output VouT via the switch 58. Then it is possible to eliminate the noise produced at the time of switching a power supply and to prevent changeover of the power supply due to mischief as well as malfunction of the internal circuit together with improvement of reliability.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、たとえばCPU、データメモリ、内部バッ
テリなどを内蔵し、電卓、時刻などのカード単体で用い
たり、端末機に挿入することにより用いられる多機能の
ICカードなどの携帯可能媒体に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) This invention has a built-in CPU, data memory, internal battery, etc., and can be used as a stand-alone card for calculators, timepieces, etc., or as a terminal device. The present invention relates to a portable medium such as a multifunctional IC card that can be used by inserting the card.

(従来の技術) 従来、CPU、データメモリ、内部バッテリなどを内蔵
し、電卓、時刻などのカード単体で用いたり、端末機に
挿入することにより用いる多機能のICカードが開発さ
れている。このようなICカードにおいて、端末機と接
続するか否かで、外部電源による電圧により駆動される
か、あるいは内部バッテリによる電圧により駆動される
かの切換えを行う必要がある。この切換えは、外部〒u
源と内部バッテリのそれぞれにダイオードをイ:1加し
、各々のダイオードのカソード側を接続したものが考え
られる。
(Prior Art) Conventionally, multifunctional IC cards have been developed that have a built-in CPU, data memory, internal battery, etc., and can be used as a stand-alone card for calculators, time, etc., or can be used by being inserted into a terminal. In such an IC card, depending on whether or not it is connected to a terminal, it is necessary to switch between driving by voltage from an external power source or voltage from an internal battery. This switching is done by external
It is conceivable to add one diode to each of the power source and internal battery, and connect the cathode side of each diode.

ところが、上記のようなものでは、電源切換え時に、コ
ンタクト部によって生じる外部電源に対するチャタリン
グがカード内に受入れられ、またカードのコンタクト部
に悪戯をされた場合に、簡ljに電源が切替わるため、
内部回路が誤動作するという問題がある。これにより、
カードの信頼性が低下していた。
However, in the above-mentioned device, when switching the power supply, chattering caused by the contact section to the external power supply is accepted in the card, and if the contact section of the card is tampered with, the power supply is easily switched.
There is a problem that the internal circuit malfunctions. This results in
The reliability of the card was decreasing.

(発明が解決しようとする問題点) 上記のように、内部回路が誤動作し、信頼性が低下する
という欠点を除去するもので、電源の切換え時に、チャ
タリング、ノイズを除去した電源を受入れることができ
、またいたずらにより電源が切替わることを防止でき、
さらに内部回路の誤動作を防止でき、信頼性の向上が図
れる携帯可能媒体を提供することにある。
(Problems to be Solved by the Invention) As mentioned above, this invention eliminates the drawbacks of malfunctioning internal circuits and reduced reliability, and it is possible to accept a power supply from which chattering and noise have been removed when switching power supplies. It also prevents the power from being switched due to mischief.
Furthermore, it is an object of the present invention to provide a portable medium that can prevent malfunctions of internal circuits and improve reliability.

[発明の構成] (問題点を解決するための手段) この発明の携帯可能媒体は、制御素子とこの制御素子動
作用の内蔵電源とを有するものにおいて、外部からの電
源が供給されるコンタクト部と、このコンタクト部に外
部からの電源が供給されてから、所定時間経過した後、
上記制御素子の動作用電源を上記内蔵電源から外部から
の電源に切換える切換手段から構成されるものである。
[Structure of the Invention] (Means for Solving the Problems) A portable medium of the present invention includes a control element and a built-in power supply for operating the control element, in which a contact portion to which power is supplied from the outside is provided. Then, after a predetermined period of time has passed since external power was supplied to this contact part,
The power source for operating the control element is comprised of switching means for switching the power source for operation of the control element from the built-in power source to an external power source.

(作用) この発明は、コンタクト部に外部からの電源が供給され
てから、所定時間経過した後、制御素子の動作用電源を
内蔵電源から外部からの電源に切換えるようにしたもの
である。
(Function) According to the present invention, after a predetermined period of time has elapsed since external power was supplied to the contact section, the operating power of the control element is switched from the built-in power supply to the external power supply.

(実施例) 以下、この発明の一実施例について、図面を参照して説
明する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第3図において、10は携帯可能媒体としてのICカー
ドであり、種々の機能を存する多機能カードである。た
とえば、後述する端末機を用いて使用するオンライン機
能、ICカード10が単体で動作するオフライン機能、
および時計のみをカウントしている待ち状態を有してい
る。
In FIG. 3, numeral 10 is an IC card as a portable medium, which is a multifunctional card having various functions. For example, an online function that is used using a terminal described below, an offline function that allows the IC card 10 to operate independently,
and has a wait state that only counts the clock.

上記オフライン機能としては、電卓として使用できる電
卓モード、利用者により用いられている時計による時刻
を表示する時刻表示モード、住所、氏名、電話番号等を
登録したり、読出したりする電子幅モード、あるいはI
Cカード10をクレジットカードとして利用する買物モ
ードなどとなっている。
The above offline functions include a calculator mode that can be used as a calculator, a time display mode that displays the time according to the clock used by the user, an electronic width mode that allows you to register and read out addresses, names, phone numbers, etc. I
The mode includes a shopping mode in which the C card 10 is used as a credit card.

上記ICカード10の表面にはカードの規格にあった位
置に配置されたコンタクト部11.20キーからなるキ
ーボード部12、このキーボード部12の上面に配置さ
れ、液晶表示素子で形成される表示部13、および磁気
発生部材14が設けられている。
On the surface of the IC card 10, a contact section 11 is arranged at a position that matches the card specifications.A keyboard section 12 consisting of 20 keys is arranged on the top surface of the keyboard section 12, and a display section is formed of a liquid crystal display element. 13, and a magnetism generating member 14 are provided.

上記コンタクト部11は、たとえば複数の端子11a〜
llhによって構成されている。上記端子11aは動作
用の電源電圧(+5V、Vcc)用、端子11bは接地
用、端子11cはクロック信号用、端子11dはリセッ
ト信号用、端子lie〜llhはデータ入出力用となっ
ている。
The contact portion 11 includes, for example, a plurality of terminals 11a to 11a.
llh. The terminal 11a is for operating power supply voltage (+5V, Vcc), the terminal 11b is for grounding, the terminal 11c is for a clock signal, the terminal 11d is for a reset signal, and the terminals lie to llh are for data input/output.

上記キーボード部12は処理モードを指定するモードキ
ー(Ml、M2、M3、M4)12 a。
The keyboard section 12 has mode keys (Ml, M2, M3, M4) 12a for specifying processing modes.

テンキー12b1および4則演算キー(ファンクション
キー)12cによって構成されている。
It is composed of a numeric keypad 12b1 and four arithmetic operation keys (function keys) 12c.

上記モードキー12aは、オフライン時、つまりICカ
ード10のみで処理を行う時、電卓モード(Ml)、時
刻表示モード(M2)、電子通帳モード(M3) 、あ
るいは買物モード(M4)に対する動作を選択するよう
になっている。
The mode key 12a selects the operation for calculator mode (Ml), time display mode (M2), electronic passbook mode (M3), or shopping mode (M4) when offline, that is, when processing only with the IC card 10. It is supposed to be done.

上記表示部13は、1桁が5×7のドツトマトリクスで
、16桁表示となっている。
The display section 13 is a 16-digit dot matrix with each digit being 5×7.

上記磁気発生部材14は、図示しない読取側の磁気カー
ドリーダ(磁気ヘッド)のトラック位置に合せて、IC
カード10の内部に埋設されている。
The magnetism generating member 14 is inserted into the IC in accordance with the track position of a magnetic card reader (magnetic head) on the reading side (not shown).
It is embedded inside the card 10.

第4図はICカード10を扱う端末機たとえばパーソナ
ルコンピュータ等に用いられるICカード読取書込部1
6の外観を示すものである。すなわち、カード挿入口1
7から挿入されたICカード10におけるコンタクト部
11と接続することにより、ICカード10におけるメ
モリのデータを読取ったり、あるいはメモリ内にデータ
を書込むものである。
FIG. 4 shows an IC card reading/writing unit 1 used in a terminal such as a personal computer that handles an IC card 10.
This shows the appearance of No. 6. In other words, card insertion slot 1
By connecting with the contact part 11 of the IC card 10 inserted from 7, data in the memory of the IC card 10 can be read or data can be written into the memory.

」二記ICカード読取書込部16は、パーソナルコンピ
ュータの本体(図示しない)とケーブルによって接続さ
れるようになっている。
The IC card reading/writing section 16 is connected to the main body of a personal computer (not shown) by a cable.

また、上記ICカード10の電気回路は、第5図に示す
ように構成されている。すなわち、上記コンタクト部1
1、通信制御回路21、リセット制御回路22、電源制
御回路23、たとえば3ボルトの内部バッテリ(内蔵電
源)25、この内部バッテリ25の電圧値が規定以上で
あるか否かをチェックするバッテリチェック回路24、
クロック制御回路26、IMH2の発振周波数の信号を
出力する発振器27、制御用のCPU (セントラルφ
プロセッシング・ユニット)28、制御プログラムが記
録されているプログラムROM29、プログラムワーキ
ング用メモリ30、暗証番号(たとえば4桁)、および
データなどが記録され、FROMで構成されるデータメ
モリ31、処理動作中の計時用に用いるタイマ32、カ
レンダ回路33、常時、32..768KH2の発振周
波数(低周波)の信号を出力している発振器34、表示
部制御回路35、上記表示部13を駆動する表示部ドラ
イバ36、上記キーボード部12のキー入力回路として
のキーボードインターフェイス38、および上記磁気発
生部材14を制御する磁気発生部材制御回路40によっ
て構成されている。
Further, the electric circuit of the IC card 10 is constructed as shown in FIG. That is, the contact portion 1
1. Communication control circuit 21, reset control circuit 22, power supply control circuit 23, for example, a 3-volt internal battery (built-in power supply) 25, and a battery check circuit that checks whether the voltage value of this internal battery 25 is above a specified value. 24,
Clock control circuit 26, oscillator 27 that outputs the oscillation frequency signal of IMH2, control CPU (central φ
processing unit) 28, a program ROM 29 in which a control program is recorded, a program working memory 30, a data memory 31 in which a password (for example, 4 digits), data, etc. are recorded, and is constituted by a FROM; A timer 32 used for time measurement, a calendar circuit 33, always, 32. .. an oscillator 34 outputting a signal with an oscillation frequency (low frequency) of 768 KH2, a display control circuit 35, a display driver 36 for driving the display 13, a keyboard interface 38 as a key input circuit for the keyboard 12, and a magnetism generating member control circuit 40 that controls the magnetism generating member 14.

上記通信制御回路21、CPU28、ROM29、プロ
グラムワーキング用メモリ30、データメモリ31、タ
イマ32、カレンダ回路33、表示部制御回路35、キ
ーボードインターフェイス38、および上記磁気発生部
材14を制御する磁気発生部材制御回路40は、データ
バス20によって接続されるようになっている。
The communication control circuit 21, CPU 28, ROM 29, program working memory 30, data memory 31, timer 32, calendar circuit 33, display control circuit 35, keyboard interface 38, and magnetism generating member control for controlling the magnetism generating member 14. The circuits 40 are adapted to be connected by a data bus 20.

上記通信制御回路21は、受信時つまり上記端末機16
からコンタクト部11を介して供給されたシリアルの入
出力信号を、パラレルのデータに変換してデータバス2
0に出力し、送信時つまり′″−“デ ータバス20から供給されたパラレルのデータをシリア
ルの人出力信号に変換してコンタクト部11を介して端
末機16に出力するようになっている。この場合、その
変換のフォーマット内容は、」−記端末機16と、IC
カード1oとで定められている。
When the communication control circuit 21 receives data, that is, the terminal 16
The serial input/output signals supplied from the contact section 11 are converted into parallel data and sent to the data bus 2.
At the time of transmission, that is, parallel data supplied from the ``''-'' data bus 20 is converted into a serial human output signal and outputted to the terminal 16 via the contact section 11. In this case, the format content of the conversion is
It is defined as card 1o.

リセット制御回路22は、オンラインになった際、リセ
ット信号を発生し、CPU28の起動を行うようになっ
ている。
When the reset control circuit 22 goes online, it generates a reset signal and starts the CPU 28.

上記電源制御回路23は、オンラインとなった際、所定
時間経過後に、内部バッテリ25による駆動から外部電
源駆動に切換え、オフラインとなった際、つまり外部電
圧が低下した際、外部電源による駆動から内部バッテリ
25による駆動に切換えるものである。
When the power supply control circuit 23 goes online, it switches from being driven by the internal battery 25 to being driven by an external power supply after a predetermined period of time has elapsed, and when it goes offline, that is, when the external voltage drops, it switches from being driven by the external power source to being driven by the external power source. This is to switch to driving by the battery 25.

上記クロック制御回路26は、内部バッテリ25でカー
ド動作を行うオフラインモードにおいて、スタンバイ時
、つまりキー人力待機時、後述するIMH2の発振周波
数(高周波)の信号を出力する発振回路67を停止し、
またCPU28へのクロックの供給も停止し、完全なる
停止状態で待機するものである。また、上記クロック制
御回路26は、停止状態からの発振回路67の再起動時
、安定発振が行われるまでの500〜600m5ecの
間、時計用クロックをCPU28用のクロックとして出
力し、第1人カキ−の処理を行わせるようになっている
The clock control circuit 26 stops an oscillation circuit 67 that outputs a signal at an oscillation frequency (high frequency) of the IMH 2, which will be described later, during standby, that is, when the key is in standby mode, in an offline mode in which the card operates with the internal battery 25.
Furthermore, the supply of clocks to the CPU 28 is also stopped, and the CPU 28 stands by in a completely stopped state. Further, when the oscillation circuit 67 is restarted from a stopped state, the clock control circuit 26 outputs the clock for the clock as a clock for the CPU 28 for 500 to 600 m5ec until stable oscillation is performed. - processing is performed.

さらに、上記クロック制御回路26は、オンラインとな
った際、つまりリセット信号が供給された際、安定発振
が行われるまでの500〜6oOmsecの間、時計用
クロックをCPU28用のクロックとして出力し、その
後IMH2のクロックを出力するようになっている。
Furthermore, when the clock control circuit 26 goes online, that is, when a reset signal is supplied, it outputs the clock as a clock for the CPU 28 for 500 to 6 oOmsec until stable oscillation occurs, and then It is designed to output the IMH2 clock.

上記カレンダ回路33は、カードの保持者が自由に設定
変更可能な表示用の時計と、たとえばけ界の標準時間を
カードの発行時にセットし、その後、変更不可能な取引
用の時計とを有している。
The calendar circuit 33 has a display clock that can be freely set and changed by the card holder, and a transaction clock that sets the standard time of escape when the card is issued and cannot be changed thereafter. are doing.

上記表示部制御回路35は、上記CPU28から供給さ
れる表示データを内部のROMで構成されるキャラクタ
ジェネレータ(図示しない)を用いて文字パターンに変
換し、表示部ドライバ36を用いて表示部13で表示す
るものである。
The display unit control circuit 35 converts the display data supplied from the CPU 28 into a character pattern using a character generator (not shown) configured with an internal ROM, and converts the display data supplied from the CPU 28 into a character pattern on the display unit 13 using a display unit driver 36. It is to be displayed.

上記キーボードインターフェイス38は、キ−ボード部
12で入力されたキーに対応するキー人力信号に変換し
てCPU2gに出力するものである。
The keyboard interface 38 converts keys input on the keyboard section 12 into human input signals corresponding to keys, and outputs the signals to the CPU 2g.

上記磁気発生部材制゛御回路40は、買物モードが指定
されている際に、データバス20を介して供給されるデ
ータおよび読取装置が手動式読取りか自動式読取りかに
対応した駆動レートに応じて、上記磁気発生部材14を
駆動制御して磁気情報を出力することにより、従来の磁
気ストライブが存在しているのと同じ状態にしているも
のである。
When the shopping mode is specified, the magnetism generating member control circuit 40 responds to the data supplied via the data bus 20 and the drive rate corresponding to whether the reading device is manual reading or automatic reading. By controlling the drive of the magnetism generating member 14 and outputting magnetic information, the same state as when a conventional magnetic stripe exists is created.

−1−配電源制御回路23について、第1図を用いて詳
細に説明する。すなわち、インバータ回路51.54.
55、カウンタ52、D形フリップフロップ回路(FF
回路)53、MOSFETで構成される半導体スイッチ
56.58、ダイオード57、および内部バッテリ25
によって構成されている。
-1- The power distribution control circuit 23 will be explained in detail using FIG. 1. That is, inverter circuits 51, 54 .
55, counter 52, D-type flip-flop circuit (FF
circuit) 53, semiconductor switch 56, 58 composed of MOSFET, diode 57, and internal battery 25
It is made up of.

上記カウンタ52の計数値は、外部電源のチャタリング
の影響を受けない値となっている。上記ダイオード57
は、電源電圧Voutの保護用であり、外部からの電源
電圧Vccの低下時、半導体スイッチ56がオンする前
に、電源電圧Vccがメモリの駆動電圧より低下した場
合でも、電源電圧Voutが低下しないように、内部バ
ッテリ25で保護しているものである。
The count value of the counter 52 is a value that is not affected by chattering of the external power supply. The above diode 57
is for protecting the power supply voltage Vout, and when the power supply voltage Vcc from the outside decreases, the power supply voltage Vout will not drop even if the power supply voltage Vcc drops below the memory drive voltage before the semiconductor switch 56 is turned on. As shown, it is protected by an internal battery 25.

このような構成おいて、第2図に示すタイミングチャー
トを参照しつつ動作を説明する。すなわち、ICカード
10が上記端末機16とコンタクト部11で接続されて
いない場合、半導体スイッチ56がオンしているので、
内部バッテリ25の電源電圧が半導体スイッチ56を介
して電源制御回路22の出力Voutとして各部に印加
される。
The operation of this configuration will be described with reference to the timing chart shown in FIG. That is, when the IC card 10 is not connected to the terminal device 16 through the contact section 11, the semiconductor switch 56 is turned on.
The power supply voltage of the internal battery 25 is applied to each part via the semiconductor switch 56 as the output Vout of the power supply control circuit 22.

また、ICカード10が上記端末機16とコンタクト部
11で接続された場合、外部からの電源電圧Vccが半
導体スイッチ58のゲートに供給されるとともに、クロ
ック信号CLKがインバータ回路51を介してカウンタ
52のクロック端子ckに供給される。これにより、カ
ウンタ52は計数を開始し、このカウンタ52の値が所
定値となった時、出力端Qnの出力により、FF回路5
3をセットする。このFF回路53のセット出力Qによ
り、半導体スイッチ58のゲートに“0”信号が供給さ
れ、半導体スイッチ56のゲートに“1“信号が供給さ
れ、半導体スイッチ58がオンし、半導体スイッチ56
がオフする。したがって、外部からの電源電圧Vccが
半導体スイッチ58を介して電源制御回路22の出力V
outとして各部に印加される。
Further, when the IC card 10 is connected to the terminal device 16 through the contact section 11, an external power supply voltage Vcc is supplied to the gate of the semiconductor switch 58, and a clock signal CLK is supplied to the counter 52 via the inverter circuit 51. is supplied to the clock terminal ck of. As a result, the counter 52 starts counting, and when the value of the counter 52 reaches a predetermined value, the FF circuit 5
Set 3. Due to the set output Q of the FF circuit 53, a "0" signal is supplied to the gate of the semiconductor switch 58, a "1" signal is supplied to the gate of the semiconductor switch 56, the semiconductor switch 58 is turned on, and the semiconductor switch 56 is turned on.
turns off. Therefore, the external power supply voltage Vcc is applied to the output V of the power supply control circuit 22 via the semiconductor switch 58.
It is applied to each part as out.

なお、オンライン状態からオフライン状態に戻具 る時、外部かり電源電圧Vccが低下したとき、リセッ
ト制御回路22からリセット信号が出力される。これに
より、そのリセット信号により、カウンタ52、FF回
路53がリセットされる。すると、半導体スイッチ58
のゲートに“1“信号が供給され、半導体スイッチ56
のゲートに0゜信号が供給され、半導体スイッチ58が
オフし、半導体スイッチ56がオンする。したがって、
内部バッテリ25の電源電圧が半導体スイッチ56を介
して電源制御回路22の出力Voutとして各部に印加
される。
Note that when returning from the online state to the offline state, a reset signal is output from the reset control circuit 22 when the external power supply voltage Vcc decreases. Thereby, the counter 52 and the FF circuit 53 are reset by the reset signal. Then, the semiconductor switch 58
A “1” signal is supplied to the gate of the semiconductor switch 56.
A 0° signal is supplied to the gate of , the semiconductor switch 58 is turned off, and the semiconductor switch 56 is turned on. therefore,
The power supply voltage of the internal battery 25 is applied to each part via the semiconductor switch 56 as the output Vout of the power supply control circuit 22.

」二記したように、オフライン状態からオンライン状態
になる時、つまり内部バッテリ25による電圧を出力す
る状態から端末機16からの電圧を出力する状態に移る
時、端末機16から供給されるクロックにより所定時間
が経過した際に、上記切換えを行うようにしている。こ
れに°より、端末機16からの電圧が安定してから出力
できるようになっている。つまり、チャタリング、ノイ
ズが除去されて出力されるようになっている。
2, when going from an offline state to an online state, that is, when moving from a state where voltage from the internal battery 25 is output to a state where voltage from the terminal device 16 is output, the clock supplied from the terminal device 16 is used. The above switching is performed when a predetermined time has elapsed. This allows the terminal device 16 to output after the voltage is stabilized. In other words, chattering and noise are removed before output.

したがって、上記のような電源の切換え時に、チャタリ
ング、ノイズを除去した電源をICカード10内に受入
れることができる。また、いたずらにより電源が切替わ
ることを防止できる。これにより、内部回路の誤動作を
防止でき、信頼性の向上が図れる。
Therefore, when switching the power supply as described above, the power supply from which chattering and noise have been removed can be received into the IC card 10. Furthermore, it is possible to prevent the power source from being switched due to mischief. This can prevent malfunctions of the internal circuit and improve reliability.

上記クロック制御回路26について、第6図を用いて詳
細に説明する。すなわち、上記CPU28からの停止信
号HALTはFF回路62のクロック入力端ckに供給
される。このFF回路62のセット出力は、FF回路6
3のデータ入力端りに供給され、このFF回路63のク
ロック入力端ckには上記CPU28からのマシンサイ
クル信号M1が供給される。上記FF回路62.63は
停止モードタイミング用となっている。上記FF回路6
3のセット出力は、FF回路64のデータ入力端りに供
給され、このFF回路64のクロック入力端ckには上
記カレンダ回路33からの32.763KH2の時計用
のクロックが供給される。上記FF回路64のリセット
出力は、FF回路65のデータ入力端りに供給され、こ
のFF回路65のクロック入力端ckには上記カレンダ
回路33からの32.763KH2の時計用のクロック
が供給される。上記FF回路65はクロック発振停止用
となっている。上記FF回路65のセット出力は、ナン
ド回路66の一端に供給され、このナンド回路66の出
力端と他端との間には発振回路67が接続されている。
The clock control circuit 26 will be explained in detail using FIG. 6. That is, the stop signal HALT from the CPU 28 is supplied to the clock input terminal ck of the FF circuit 62. The set output of this FF circuit 62 is
The machine cycle signal M1 from the CPU 28 is supplied to the clock input terminal ck of this FF circuit 63. The FF circuits 62 and 63 are used for stop mode timing. Above FF circuit 6
The set output of 3 is supplied to the data input terminal of the FF circuit 64, and the clock input terminal ck of this FF circuit 64 is supplied with the clock of 32.763KH2 from the calendar circuit 33. The reset output of the FF circuit 64 is supplied to the data input terminal of the FF circuit 65, and the clock input terminal ck of this FF circuit 65 is supplied with the clock of 32.763KH2 from the calendar circuit 33. . The FF circuit 65 is used to stop clock oscillation. The set output of the FF circuit 65 is supplied to one end of a NAND circuit 66, and an oscillation circuit 67 is connected between the output end and the other end of the NAND circuit 66.

また、上記CPU28からのキー人力割込み信号、およ
び」二記リセット制御回路22からのリセット信号は、
オア回路61を介して上記FF回路62.63.64の
リセット入力端Rに供給されるとともに、上記FF回路
65のセット入力端Sに供給される。
In addition, the key manual interrupt signal from the CPU 28 and the reset signal from the reset control circuit 22 are as follows:
It is supplied via the OR circuit 61 to the reset input terminal R of the FF circuits 62, 63, and 64, and also to the set input terminal S of the FF circuit 65.

上記発振回路67は、上記IMH2の発振周波数を有す
る発振器27、抵抗68、コンデンサ70.71によっ
て構成されている。
The oscillation circuit 67 includes an oscillator 27 having an oscillation frequency of IMH2, a resistor 68, and capacitors 70 and 71.

上記ナンド回路66の出力は、インバータ回路72を介
してFF回路74のクロック入力端Ckに供給され、ま
たインバータ回路72.73を介してナンド回路75の
一端に供給される。
The output of the NAND circuit 66 is supplied to the clock input terminal Ck of the FF circuit 74 via the inverter circuit 72, and also to one end of the NAND circuit 75 via the inverter circuits 72 and 73.

また、上記リセット制御回路22からのリセット信号は
FF回路76のセット入力端Sに供給され、このFF回
路76のクロック入力端ckには後述するオア回路84
の出力が供給されている。
Further, the reset signal from the reset control circuit 22 is supplied to the set input terminal S of the FF circuit 76, and the clock input terminal ck of this FF circuit 76 is supplied with an OR circuit 84, which will be described later.
output is supplied.

また、上記FF回路76のデータ入力端D5リセット入
力端Rには、上記CPU28からのクロック選択信号が
供給されている。上記FF回路76のセット出力はFF
回路77のデータ入力端りに供給され、このFF回路7
7のクロック入力端Ckには上記力レンダ回路33から
の32.763KH2の時計用のクロックが供給される
。上記FF回路77のセット出力はナンド回路79の一
端に供給され、このナンド回路79の他端には上記カレ
ンダ回路33からの32.763KH2の時計用のクロ
ックがインバータ回路78を介して供給される。上記ナ
ンド回路79の出力はナンド回路80の一端に供給され
る。
Further, a clock selection signal from the CPU 28 is supplied to the data input terminal D5 and the reset input terminal R of the FF circuit 76. The set output of the FF circuit 76 is FF
It is supplied to the data input end of the circuit 77, and this FF circuit 7
A clock input terminal Ck of 7 is supplied with a clock of 32.763 KH2 from the power render circuit 33. The set output of the FF circuit 77 is supplied to one end of a NAND circuit 79, and the clock of 32.763KH2 from the calendar circuit 33 is supplied to the other end of the NAND circuit 79 via an inverter circuit 78. . The output of the NAND circuit 79 is supplied to one end of a NAND circuit 80.

また、」二足FF回路77のリセット出力は」二足FF
回路74のデータ入力端りに供給され、このFF回路7
4のセット出力はナンド回路75の他端に供給される。
In addition, the reset output of the two-leg FF circuit 77 is the two-leg FF circuit 77.
This FF circuit 7 is supplied to the data input end of the circuit 74.
The set output of 4 is supplied to the other end of the NAND circuit 75.

上記FF回路74はクロック切換用となっている。The FF circuit 74 is used for clock switching.

上記ナンド回路75.79の出力がナンド回路80に供
給され、このナンド回路80の出力はFF回路81.8
3のクロック入力端ckに供給され、上記FF回路81
のデータ入力端には上記FF回路63のセット出力がイ
ンバータ回路82を介して供給される。
The outputs of the NAND circuits 75 and 79 are supplied to the NAND circuit 80, and the outputs of the NAND circuit 80 are fed to the FF circuits 81 and 81.
3 is supplied to the clock input terminal ck of the FF circuit 81.
The set output of the FF circuit 63 is supplied to the data input terminal of the FF circuit 63 via an inverter circuit 82.

上記FF回路81のセット出力、および上記FF回路8
3のリセット出力はオア回路84を介して上記FF回路
76のクロック入力端ckに出力する。
The set output of the FF circuit 81 and the FF circuit 8
The reset output No. 3 is outputted to the clock input terminal ck of the FF circuit 76 via the OR circuit 84.

また、上記FF回路83のセット出力はナンド回路86
の一端に供給され、このナンド回路86の他端には上記
アンド回路80の出力がインバータロ路85を介して供
給される。上記ナンド回路86の出力は、クロック信号
として上t6 c P U28へ出力されるようになっ
ている。
Further, the set output of the FF circuit 83 is provided by a NAND circuit 86.
The output of the AND circuit 80 is supplied to the other end of the NAND circuit 86 via an inverter circuit 85. The output of the NAND circuit 86 is output as a clock signal to the upper t6cP U28.

このような構成において動作を説明する。まず、停止状
態について説明する。すなわち、上記CPU28からク
ロック選択信号として“1 “が供給されている。これ
により、FF回路76.77がセットしている。これに
より、時計用クロック(32,768KHz)はインバ
ータ回路78、ナンド回路79.80を介して、FF回
路81.82、およびインバータ回路85に導かれてい
る。
The operation in such a configuration will be explained. First, the stopped state will be explained. That is, "1" is supplied from the CPU 28 as the clock selection signal. As a result, the FF circuits 76 and 77 are set. Thereby, the watch clock (32,768 KHz) is guided to the FF circuit 81.82 and the inverter circuit 85 via the inverter circuit 78 and the NAND circuit 79.80.

次に、停止状態からの再起動について説明する。Next, restarting from a stopped state will be explained.

すなわち、上記CPU28からキー人力割込み信号が供
給される。するとFF回路62.63、64がリセット
し、FF回路65がセットする。
That is, a key human interrupt signal is supplied from the CPU 28. Then, the FF circuits 62, 63 and 64 are reset, and the FF circuit 65 is set.

二のFF回路65のセット出力により発振回路67をイ
ネーブル状態とする。これにより、発振回路67は発振
を再開子る。
The oscillation circuit 67 is enabled by the set output of the second FF circuit 65. As a result, the oscillation circuit 67 resumes oscillation.

また、上記FF回路63のリセットにより、FF回路8
1のデータ入力端りには“1“が供給されている。これ
により、上記ナンド回路80の出力により、FF回路8
1.83がセ・ソトし、ナンド回路86のゲートを開く
。したがって、インバータ回路85からの時計用クロッ
クがナンド回路86を介してCPU28に出力されてい
る。
Furthermore, by resetting the FF circuit 63, the FF circuit 8
“1” is supplied to the data input end of “1”. As a result, the output of the NAND circuit 80 causes the FF circuit 8 to
1.83 sets and opens the gate of NAND circuit 86. Therefore, the clock from the inverter circuit 85 is output to the CPU 28 via the NAND circuit 86.

このとき、発振回路67が安定発振するまで、通常50
0〜600m5ec必要となっている。
At this time, the oscillation circuit 67 normally oscillates for 50 seconds until it stably oscillates.
0 to 600m5ec is required.

これにより、CPU28は、キー人力割込み信号を出力
してから、500〜600m5ec後に、クロック選択
信号として“0“をFF回路76のデータ入力端りに供
給する。これにより、FF回路76.77がリセットし
、FF回路77のリセット出力つまり“1“信号がFF
回路74のデータ入力端りに供給される。
Thereby, the CPU 28 supplies "0" as a clock selection signal to the data input end of the FF circuit 76 500 to 600 m5ec after outputting the key human interrupt signal. As a result, the FF circuits 76 and 77 are reset, and the reset output of the FF circuit 77, that is, the "1" signal is
It is applied to the data input end of circuit 74.

またこのとき、発振回路67によるクロック(I MH
Z)がインバータ回路72を介してFF回路74のクロ
ック入力端に供給されている。
Also, at this time, the clock (I MH
Z) is supplied to the clock input terminal of the FF circuit 74 via the inverter circuit 72.

したがって、FF回路74がセットし、このセット出力
によりナンド回路75のゲートが開く。
Therefore, the FF circuit 74 is set, and the set output opens the gate of the NAND circuit 75.

この結果、発振回路67によるクロック(IMH2)は
、インバータ回路72.73、ナンド回路75.8o、
インバータ回路85、およびナンド回路86を順次介し
てCPU28に出力されている。
As a result, the clock (IMH2) generated by the oscillation circuit 67 is transmitted to the inverter circuit 72.73, the NAND circuit 75.8o,
The signal is sequentially output to the CPU 28 via an inverter circuit 85 and a NAND circuit 86.

これにより、クロック選択信号を“0“とすることによ
り、FF回路74で同期がとられ、時計用クロックから
高速処理用クロックに切替わるようになっている。
Thereby, by setting the clock selection signal to "0", synchronization is achieved in the FF circuit 74, and the clock is switched from the clock for high-speed processing to the clock for high-speed processing.

次に、処理を終了し、停止状態(スタンバイ状態)とす
る場合について説明する。すなわち、クロック選択信号
を“1“とすることにより、FF回路76.77がセッ
トし、FF回路77のセット出力つまり°1“信号がナ
ンド回路79に供給され、ナンド回路79のゲートが開
いている。したがって、時計用クロックは、インバータ
回路78、ナンド回路79.80、インバータ回路85
、およびナンド回路86を順次介してCPU28に出力
される。
Next, a case will be described in which the processing is ended and the system is placed in a stopped state (standby state). That is, by setting the clock selection signal to "1", the FF circuits 76 and 77 are set, the set output of the FF circuit 77, that is, the °1" signal is supplied to the NAND circuit 79, and the gate of the NAND circuit 79 is opened. Therefore, the clock for the watch consists of the inverter circuit 78, the NAND circuit 79.80, and the inverter circuit 85.
, and is sequentially output to the CPU 28 via the NAND circuit 86.

この結果、再び時計用クロックがCPO28に出力され
る。
As a result, the clock is outputted to the CPO 28 again.

ついで、CPU28から停止信号がFF回路62のデー
タ入力端りに供給される。すると、FF回路62がセッ
トし、このセット出力がFF回路63のデータ入力端り
に供給される。そして、CPU28からのマシンサイク
ル信号M1により、FF回路63がセットし、FF回路
81のデータ入力端りに“0“信号が供給される。これ
により、FF回路63のセット出力をFF回路81.8
3で2パルス分送らせた後、ナンド回路86のゲートを
閉じることにより、CPU28へのクロックの出力を停
止する。これにより、CPU28を停止状態としている
Next, a stop signal is supplied from the CPU 28 to the data input end of the FF circuit 62. Then, the FF circuit 62 is set, and the set output is supplied to the data input end of the FF circuit 63. Then, the FF circuit 63 is set by the machine cycle signal M1 from the CPU 28, and a "0" signal is supplied to the data input terminal of the FF circuit 81. As a result, the set output of the FF circuit 63 is changed to the set output of the FF circuit 81.8.
After sending two pulses in step 3, the gate of the NAND circuit 86 is closed to stop outputting the clock to the CPU 28. As a result, the CPU 28 is brought to a halted state.

また、上記FF回路63のセット出力はFF回路64.
65で2パルス分送らせた後、ナンド回路66のゲート
を閉じることにより、発振回路67による発振を停止し
ている。
Further, the set output of the FF circuit 63 is the FF circuit 64.
After sending two pulses at step 65, the gate of the NAND circuit 66 is closed to stop the oscillation by the oscillation circuit 67.

これにより、上記CPU28へのクロックの出力を停止
した後、発振回路67を停止している。
As a result, after stopping the output of the clock to the CPU 28, the oscillation circuit 67 is stopped.

このように、上記クロック制御両回路26は、発振器2
7による水晶の発振の立上がりをカバーするために、時
計用クロックとIMH2用クロツクロック果的に切換え
るようにしている。
In this way, the clock control circuits 26 are connected to the oscillator 2.
In order to cover the rising edge of crystal oscillation caused by 7, the watch clock and IMH2 clock are effectively switched.

上記カレンダ回路33について、第7図を用いて詳細に
説明する。すなわち、32.768KH2の発振器34
の発振出力を分周することにより、1秒ごとの信号を出
力端a、bから出力する分周回路91、この分周回路9
1の出力端aからの信号を計数することにより、10秒
ごとに信号を出力するカウンタ92、このカウンタ92
からの信号を計数することにより、60秒つまり1分ご
とに信号を出力するカウンタ93、このカウンタ93か
らの信号を計数することにより、10分ごとに信号を出
力するカウンタ94.、このカウンタ94からの信号を
計数することにより、60分つまり1時間ごとに信号を
出力するカウンタ95、このカウンタ95からの信号を
計数することにより、24時間つまり1日ごとに信号を
出力するカウンタ96、上記分周回路91の出力端すか
らの信号を計数することにより、10秒ごとに信号を出
力するカウンタ97、このカウンタ97からの信号を計
数することにより、60秒つまり1分ごとに信号を出力
するカウンタ98、このカウンタ98からの信号を計数
することにより、10分ごとに信号を出力するカウンタ
99、このカウンタ99からの信号を計数することによ
り、60分つまり1時間ごとに信号を出力するカウンタ
100、このカウンタ100からの信号を計数すること
により、24時間つまり1日ごとに信号を出力するカウ
ンタ101から構成されている。
The calendar circuit 33 will be explained in detail using FIG. 7. That is, the oscillator 34 of 32.768 KH2
A frequency dividing circuit 91 outputs signals every second from output terminals a and b by dividing the oscillation output of the frequency dividing circuit 9.
A counter 92 that outputs a signal every 10 seconds by counting the signal from the output terminal a of 1;
A counter 93 outputs a signal every 60 seconds, that is, every minute, by counting the signals from the counter 94. Counter 94 outputs a signal every 10 minutes by counting the signals from the counter 93. , Counter 95 outputs a signal every 60 minutes, that is, every hour, by counting the signal from this counter 94, and outputs a signal every 24 hours, that is, every day, by counting the signal from this counter 95. A counter 96 outputs a signal every 10 seconds by counting the signal from the output terminal of the frequency dividing circuit 91.A counter 97 outputs a signal every 10 seconds by counting the signal from the counter 97. A counter 98 that outputs a signal every 10 minutes by counting the signal from this counter 98. A counter 99 that outputs a signal every 10 minutes by counting the signal from this counter 99. It consists of a counter 100 that outputs a signal, and a counter 101 that outputs a signal every 24 hours, that is, every day by counting the signals from this counter 100.

ここに、上記カウンタ92〜96により秒、分、時を計
数する取引用の時計が構成され、上記カウンタ97〜1
01により秒、分、時を計数する表示用の時計が構成さ
れている。年月日および曜日は、24時間ごとのカウン
タ96.101からの信号により、上記CPU28へ割
込み要求を出力する。これにより、CPU28はデータ
メモリ31を用いて対応するエリアの年月日および曜日
を更新する。また、2つの時計は、第8図に示すように
、基顯となる1秒のクロックの位相をずらしているため
、同時に割込みが発生しないようになっている。
Here, the counters 92 to 96 constitute a transaction clock that counts seconds, minutes, and hours, and the counters 97 to 1 constitute a clock for counting seconds, minutes, and hours.
01 constitutes a display clock that counts seconds, minutes, and hours. For the year, month, day and day of the week, an interrupt request is output to the CPU 28 based on a signal from the counter 96.101 every 24 hours. Thereby, the CPU 28 uses the data memory 31 to update the year, month, day and day of the week of the corresponding area. Furthermore, as shown in FIG. 8, the phases of the two clocks' base clocks of one second are shifted, so that interrupts do not occur at the same time.

−に記磁気発生部材制御回路40について、第9図を用
いて詳細に説明する。すなわち、上記CPU28からデ
ータバス20を介して供給されるコマンドデータはコマ
ンド用のFF回路110に供給される。このFF回路1
10は4つOFF回路からなり、データバス20から供
給されるコマンドデータに応じて、出力端110aから
第1トラツクに対する駆動レートに対応したクロック選
択信号、出力端110bからスタート信号、あるいは出
力端110Cから第2トラツクに対する駆動レート(ミ
対応したクロック選択信号、出力端110dからスター
ト信号を出力するものである。
- The magnetism generating member control circuit 40 will be explained in detail using FIG. 9. That is, command data supplied from the CPU 28 via the data bus 20 is supplied to the command FF circuit 110. This FF circuit 1
10 consists of four OFF circuits, and depending on the command data supplied from the data bus 20, a clock selection signal corresponding to the drive rate for the first track is output from the output terminal 110a, a start signal is output from the output terminal 110b, or a start signal is output from the output terminal 110C. A clock selection signal corresponding to the driving rate (mi) for the second track is output from the output terminal 110d, and a start signal is output from the output terminal 110d.

上記FF回路110のクロック入力端cpには、上記C
PU28からのコマンドライトスタート信号が供給され
ている。上記駆動レートに対応したクロック選択信号は
、端末機の種類が手動式読取りか自動式読取りかを示す
ものである。
The clock input terminal cp of the FF circuit 110 has the above C
A command write start signal from the PU 28 is supplied. The clock selection signal corresponding to the drive rate indicates whether the terminal type is manual reading or automatic reading.

上記FF回路110の出力端1’lOaから出力される
クロック選択信号は、選択回路111の入力端Sに供給
される。この選択回路111の入力端Aには図示しない
発振器から周波数が8KHzの信号が供給され、入力端
Bには図示しない発振器から周波数が4KH2の信号が
供給されている。
The clock selection signal output from the output terminal 1'lOa of the FF circuit 110 is supplied to the input terminal S of the selection circuit 111. The input terminal A of this selection circuit 111 is supplied with a signal having a frequency of 8 KHz from an oscillator (not shown), and the input terminal B is supplied with a signal having a frequency of 4 KH2 from an oscillator (not shown).

上記選択回路111は、上記FF回路110からのクロ
ック選択信号に応じて、端末機の種類が手動式読取りの
場合、入力端Aの信号を選択し、出力端Yから出力し、
端末機の種類が自動式読取りの場合、入力端Bの信号を
選択し、出力端Yから出力するようになっている。
In response to the clock selection signal from the FF circuit 110, the selection circuit 111 selects the signal at the input terminal A and outputs it from the output terminal Y when the terminal type is a manual reading type.
If the type of terminal is automatic reading, the signal at input terminal B is selected and output from output terminal Y.

上記FF回路110の出力端110bから出力されるス
タート信号、および上記選択回路111の出力は、タイ
ミング回路112に供給される。
The start signal output from the output end 110b of the FF circuit 110 and the output of the selection circuit 111 are supplied to a timing circuit 112.

このタイミング回路112は、7進クロツクを発生し、
パラレル/シリアル変換回路115のクロック入力端c
pに供給dS最初のクロックをロード信号としてパラレ
ル/シリアル変換回路115のロード入力端りに供給す
る。また、上記タイミング回路112は、データ“0“
用クロック、データ“1“用クロックを選択回路116
に供給している。
This timing circuit 112 generates a hexadecimal clock,
Clock input terminal c of parallel/serial conversion circuit 115
The first clock dS is supplied to the load input terminal of the parallel/serial conversion circuit 115 as a load signal. Further, the timing circuit 112 has data “0”.
circuit 116 for selecting the clock for data “1” and the clock for data “1”
is supplied to.

また、上記CPU28からデータバス2oを介して供給
される磁気データはデータラッチ回路113に供給され
、このデータラッチ回路113には、CPU28からデ
ータライトスタート信号が供給されている。上記データ
ラッチ回路113は、CPU28からデータライトスタ
ート信号が供給された際、上記データバス20から供給
される7ビツトずつの磁気データをラッチするものであ
る。
Further, magnetic data supplied from the CPU 28 via the data bus 2o is supplied to a data latch circuit 113, and a data write start signal is supplied from the CPU 28 to this data latch circuit 113. The data latch circuit 113 latches 7 bits of magnetic data supplied from the data bus 20 when a data write start signal is supplied from the CPU 28.

上記データラッチ回路113にラッチされたデータは7
ビツト用のパラレル/シリアル変換回路115のデータ
入力端INに供給される。上記パラレル/シリアル変換
回路115は、供給されるロード信号により、上記デー
タラッチ回路113からのデータをロードし、このロー
ドされたデータを順にシフトし、1ビツトずつの1R号
(“1“信号あるいは°0“信号)に変換して出力する
ようになっている。
The data latched in the data latch circuit 113 is 7
It is supplied to the data input terminal IN of the parallel/serial conversion circuit 115 for bits. The parallel/serial conversion circuit 115 loads the data from the data latch circuit 113 in response to the supplied load signal, shifts the loaded data in order, and converts the 1R number (“1” signal or °0" signal) and output.

上記パラレル/シリアル変換回路115の出力は、選択
回路116の入力端Sに供給される。この選択回路11
6は、入力端Sに“1 “信号が供給された場合、上記
タイミング回路112から供給されるデータ゛1 °用
クロックを選択して出力し、入力端Sに“0“信号が供
給された場合、上記タイミング回路112から供給され
るデータ“0°用クロツクを選択して出力するようにな
っている。上記選択回路116の出力はJ−KFF回路
117に供給され、このJ−KFF回路117のセット
出力、リセット出力はドライバ118に供給されるよう
になっている。
The output of the parallel/serial conversion circuit 115 is supplied to the input terminal S of the selection circuit 116. This selection circuit 11
6 selects and outputs the clock for data 1° supplied from the timing circuit 112 when a "1" signal is supplied to the input terminal S, and when a "0" signal is supplied to the input terminal S. , the data "0° clock" supplied from the timing circuit 112 is selected and output. The output of the selection circuit 116 is supplied to the J-KFF circuit 117. The set output and reset output are supplied to the driver 118.

このドライバ118は、上記FF回路117からの信号
に応じて磁気発生部材41aを駆動することにより、磁
界を発生しているものである。たとえば、上記FF回路
117がセットされている場合、矢印Cに示すような磁
界を発生し、リセットされている場合、矢印dに示すよ
うな磁界を発生するようになっている。
This driver 118 generates a magnetic field by driving the magnetism generating member 41a in response to a signal from the FF circuit 117. For example, when the FF circuit 117 is set, it generates a magnetic field as shown by arrow C, and when it is reset, it generates a magnetic field as shown by arrow d.

なお、上記磁気発生部材制御回路40における、要部の
タイミングチャートは第10図に示すようになっている
Incidentally, a timing chart of the main parts of the magnetism generating member control circuit 40 is as shown in FIG.

上記選択回路116において、第11図に示すように、
データm1“と°0°に対して、クロックのサイクルが
、1:2の比率となっている。このクロックでJ−KF
F回路117を反転モードで動かすことにより、磁気デ
ータとして必要なフォーマットの“1°、°0°信号が
得られ、磁気発生部材41gを駆動するようになってい
る。
In the selection circuit 116, as shown in FIG.
The clock cycles are at a ratio of 1:2 for data m1" and °0°. With this clock, J-KF
By operating the F circuit 117 in the inversion mode, "1°, °0° signals in the format required as magnetic data are obtained, and the magnetic field generating member 41g is driven.

また、上記CPυ28からのデータライトスタート信号
はインバートされて空検知用のFF回路114のセット
入力端に供給され、このFF回路114のリセット入力
端には、上記タイミング回路112からの最初のクロッ
クがインバートされて供給されている。これにより、上
記データラッチ回路113のデータが115にロードさ
れた場合、FFl1路114がセットし、このFF回路
114のセット出力つまりバッファエンプティ信号が上
記CPU28に供給される。
Further, the data write start signal from the CPυ28 is inverted and supplied to the set input terminal of the empty detection FF circuit 114, and the reset input terminal of this FF circuit 114 receives the first clock from the timing circuit 112. It is supplied inverted. As a result, when the data of the data latch circuit 113 is loaded into the data latch circuit 115, the FF11 path 114 is set, and the set output of the FF circuit 114, that is, the buffer empty signal is supplied to the CPU 28.

これにより、上記CPO28は、次のデータセ・ット可
能状態であると判断し、次のデータをデータラッチ回路
113に出力する。このように、CPU2Rは空検知用
FF回路114の出力をセンスしながら、データを順に
セットし、すべてのデータを出力した後、コマンドライ
トスタート信号、データライトスタート信号をオフにす
るようになっている。これにより、タイミング回路11
2による信号の発生が停止し、動作終了となる。
As a result, the CPO 28 determines that the next data can be set, and outputs the next data to the data latch circuit 113. In this way, the CPU 2R sets the data in order while sensing the output of the empty detection FF circuit 114, and after outputting all the data, turns off the command write start signal and the data write start signal. There is. As a result, the timing circuit 11
2 stops generating the signal, and the operation ends.

なお、上記各回路111〜118は、第1トラツク用の
回路であり、第2トラツク用のの回路も上記同様に選択
回路119、タイミング回路120、デークラッチ回路
121、空検知用FF回路122、パラレル/シリアル
変換回路123、選択回路124、J−KFF回路12
5、およびドライバ126によって構成されている。但
し、タイミング回路120が5道で動作する箇所が異な
っている。
The circuits 111 to 118 described above are for the first track, and the circuits for the second track also include a selection circuit 119, a timing circuit 120, a day latch circuit 121, an empty detection FF circuit 122, Parallel/serial conversion circuit 123, selection circuit 124, J-KFF circuit 12
5, and a driver 126. However, the locations where the timing circuit 120 operates in five ways are different.

上記したように、磁気発生部材制御回路40は、上記C
Pυ28から供給される所定のクレジットカードの磁気
データに応じて磁界を発生することにより、読取装置側
の磁気ヘッド(図示しない)には、従来の磁気ストライ
ブを読取った場合と同じ信号が供給されるようになって
いる。
As described above, the magnetism generating member control circuit 40
By generating a magnetic field in accordance with the magnetic data of a predetermined credit card supplied from Pυ28, the same signal as when reading a conventional magnetic stripe is supplied to the magnetic head (not shown) on the reader side. It has become so.

次に、このような構成において動作を説明する。Next, the operation in such a configuration will be explained.

まず、カード単体で用いるオフライン機能について説明
する。すなわち、モードキー12aつまりM1キーによ
り、電卓モードを指定した場合、テンキー12bと四則
演算キー12cとによる電卓として使用することができ
る。  。
First, we will explain the offline function used by the card alone. That is, when the calculator mode is designated using the mode key 12a, that is, the M1 key, the calculator can be used as a calculator using the numeric keypad 12b and the four arithmetic operation keys 12c. .

また、モードキー12gつまりM2キーにより、時刻表
示モードを指定した場合、CPU28は上記カレンダ回
路33内のカウンタ97、〜101から表示用時計に対
する秒、分、時を読出し、またデータメモリ31から表
示用時計に対する年月日および曜日を読出し、指定され
たフォーマ・ソトに変換し、表示部制御回路35に出力
する。これにより、表示部制御回路35は、内部のキャ
ラクタジェネレータ(図示しない)を用いて文字パター
ンに変換し、表示部ドライバ36を用いて表示部13で
表示する。
Further, when the time display mode is specified using the mode key 12g, that is, the M2 key, the CPU 28 reads out the seconds, minutes, and hours for the display clock from the counters 97 to 101 in the calendar circuit 33, and displays them from the data memory 31. The year, month, day, and day of the week for the business clock are read out, converted to the specified format and format, and output to the display control circuit 35. Thereby, the display unit control circuit 35 uses an internal character generator (not shown) to convert it into a character pattern, and displays it on the display unit 13 using the display unit driver 36.

また、モードキー12aつまりM3キーにより、電子幅
モードを指定した場合、CPU28はデータメモリ31
に記憶されている住所、氏名、電話番号等を読出し、上
記表示部13で表示する。また、上記住所、氏名等を電
子幅に登録する場合、たとえばテンキー12bを用いて
行っている。すなわち、rAJは「1.1」、rBJは
「1.2」、rCJは「1.3」、rDJは「2.1」
、・・・を投入することにより、指定できるようになっ
ている。
Furthermore, when the electronic width mode is specified using the mode key 12a, that is, the M3 key, the CPU 28 uses the data memory 31
The address, name, telephone number, etc. stored in the computer are read out and displayed on the display section 13. Further, when registering the above-mentioned address, name, etc. in the electronic space, the user uses, for example, the numeric keypad 12b. That is, rAJ is "1.1", rBJ is "1.2", rCJ is "1.3", and rDJ is "2.1".
,... can be specified by entering.

また、モードキー128つまりM4キーにより、買物モ
ードを指定した場合、続けて契約クレジットカードの種
類、および出力端末の種類つまり読取りが手動式か自動
式かを選択する。すると、CPU28は、データメモリ
31より上記選択されたクレジットに対応するデータ(
72キヤラクタ)を読出し、磁気発生部材制御回路40
に出力する。また、CPU28は、上記手動式か自動式
かの選択に対応した駆動レートを磁気発生部材制御回路
40に出力する。さらに、CPU28はコマンドデータ
、コマンドライトスタート信号、データライトスタート
信号を磁気発生部材制御回路40に出力する。
Further, when the shopping mode is specified using the mode key 128, that is, the M4 key, the type of contracted credit card and the type of output terminal, that is, whether reading is manual or automatic, are selected. Then, the CPU 28 retrieves data (from the data memory 31) corresponding to the selected credit.
72 characters), and the magnetism generating member control circuit 40
Output to. Further, the CPU 28 outputs a drive rate corresponding to the selection of manual type or automatic type to the magnetism generating member control circuit 40. Further, the CPU 28 outputs command data, a command write start signal, and a data write start signal to the magnetism generating member control circuit 40.

これにより、磁気発生部材制御回路40は、」−記クレ
ジットの磁気データに応じた磁界を磁気発生部材41a
から発生することにより、読取装置側の磁気ヘッド(図
示しない)に、従来の磁気ストライプを読取った場合と
同じ信号が供給される。
As a result, the magnetic generation member control circuit 40 applies a magnetic field to the magnetic generation member 41a according to the magnetic data of the "-" credit.
As a result, a magnetic head (not shown) on the reader side is supplied with the same signal as when reading a conventional magnetic stripe.

この結果、買物モードでは、従来のクレジットカードと
して使用できるようになっている。
As a result, in shopping mode, it can be used as a conventional credit card.

次に、ICカード10を端末機16に挿入することによ
り用いるオンライン機能について説明する。すなわち、
ICカード10を端末機16の挿入口17に挿入する。
Next, the online function used by inserting the IC card 10 into the terminal 16 will be explained. That is,
Insert the IC card 10 into the insertion slot 17 of the terminal 16.

すると、ICカード10が受入れられ、端末機16内部
の接続部とICカード10のコンタクト部11が接続さ
れる。これにより、コンタクト部11を介して外部から
の電源電圧が供給されると、mi制御回路23は上述し
たように、内部バッテリ25による駆動から外部からの
電源電圧の駆動に切換える。また、リセット制御回路2
2はリセット信号を発生し、CPU28を起動する。こ
の起動の後、CPU28はオンラインで動作しているこ
とを確認した場合、プログラムROM29の内容にした
がってオンライン処理を行う。このオンライン処理とし
ては、端末機16とICカード10との間でデータ更新
を行なうことにより、データの交換を行ったり、ICカ
ード10内に新しいデータを書込むようになっている。
Then, the IC card 10 is accepted, and the connection section inside the terminal 16 and the contact section 11 of the IC card 10 are connected. As a result, when an external power supply voltage is supplied via the contact portion 11, the mi control circuit 23 switches from being driven by the internal battery 25 to being driven by the external power supply voltage, as described above. In addition, the reset control circuit 2
2 generates a reset signal and starts the CPU 28. After this activation, if the CPU 28 confirms that it is operating online, it performs online processing according to the contents of the program ROM 29. This online processing involves exchanging data and writing new data into the IC card 10 by updating data between the terminal 16 and the IC card 10.

なお、前記実施例では、ICカードを用いたが、これに
限らず、データメモリと制御素子とを有し、選択的に外
部から入出力を行うものであれば良く、形状もカード状
でなく、棒状など他の形状であっても良い。
Note that although an IC card is used in the above embodiment, the IC card is not limited to this, as long as it has a data memory and a control element, and selectively performs input/output from the outside, and the shape is not card-like. , or other shapes such as a rod shape.

〔発明の効果] 以上詳述したようにこの発明によれば、電源切換え時に
、チャクリング、ノイズを除去した電源を受入れること
ができ、またいたずらにより電源が切替わることを防止
でき、さらに内部回路の誤動作を防止でき、信頼性の向
上が図れる携帯可能媒体を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, when switching the power supply, it is possible to accept a power supply from which chuckling and noise have been removed, it is possible to prevent the power supply from being switched by mischief, and it is also possible to prevent internal circuits from being switched. It is possible to provide a portable medium that can prevent malfunctions and improve reliability.

【図面の簡単な説明】[Brief explanation of the drawing]

図面はこの発明の一実施例を説明するためのもので、第
1図は電源制御回路の構成例を示す図、第2図は第1図
における要部の動作を説明するだめのタイミングチャー
ト、第3図はICカードの構成を示す平面図、第4図は
ICカードを取扱う端末機を示す図、第5図はICカー
ド2の電気回路の概略構成を示す図、第6図はクロック
制御回路の構成を示す図、第7図はカレンダ回路の概略
構成ブロック図、第8図は分周回路からの信号の出力タ
イミングを示す図、第9図は磁気発生部材制御回路の構
成例を示す図、第10図および第11図は第9図におけ
る要部の動作を説明するためのタイミングチャートであ
る。 10・・・ICカード(携帯可能媒体)、11・・・コ
ンタクト部、12・・・キーボード部、13・・・表示
部、14・・・磁気発生部材、16・・・端末機、21
・・・通信制御回路、23・・・電源制御回路、25・
・・内部バッテリ(内蔵電源)、26・・・クロック制
御回路、27・・・発振器、28・・・CPU (制御
素子)、31・・・データメモリ、33・・・カレンダ
回路、34・・・発振器、38・・・キーボードインタ
ーフェース、40・・・磁気発生部材制御回路、52・
・・カウンタ、56.58・・・半導体スイッチ、67
・・・発振回路。 出願人代理人 弁理士 鈴 江 武 彦第 1 図 第 2 図 絹10図 絹11図
The drawings are for explaining one embodiment of the present invention, and FIG. 1 is a diagram showing an example of the configuration of a power supply control circuit, and FIG. 2 is a timing chart for explaining the operation of the main parts in FIG. 1. FIG. 3 is a plan view showing the configuration of the IC card, FIG. 4 is a diagram showing a terminal that handles the IC card, FIG. 5 is a diagram showing the schematic configuration of the electric circuit of the IC card 2, and FIG. 6 is a clock control diagram. 7 is a schematic block diagram of the calendar circuit, FIG. 8 is a diagram showing the output timing of signals from the frequency dividing circuit, and FIG. 9 is an example of the configuration of the magnetic generation member control circuit. 10 and 11 are timing charts for explaining the operation of the main parts in FIG. 9. DESCRIPTION OF SYMBOLS 10... IC card (portable medium), 11... Contact part, 12... Keyboard part, 13... Display part, 14... Magnetism generating member, 16... Terminal, 21
...Communication control circuit, 23...Power supply control circuit, 25.
... Internal battery (built-in power supply), 26... Clock control circuit, 27... Oscillator, 28... CPU (control element), 31... Data memory, 33... Calendar circuit, 34... - Oscillator, 38... Keyboard interface, 40... Magnetism generating member control circuit, 52.
... Counter, 56.58 ... Semiconductor switch, 67
...Oscillation circuit. Applicant's Representative Patent Attorney Takehiko Suzue Figure 1 Figure 2 Silk Figure 10 Silk Figure 11

Claims (3)

【特許請求の範囲】[Claims] (1)制御素子とこの制御素子動作用の内蔵電源とを有
する携帯可能媒体において、 外部からの電源が供給されるコンタクト部と、このコン
タクト部に外部からの電源が供給されてから、所定時間
経過した後、上記制御素子の動作用電源を上記内蔵電源
から外部からの電源に切換える切換手段と、 を具備したことを特徴とする携帯可能媒体。
(1) In a portable medium having a control element and a built-in power supply for operating the control element, a contact portion to which an external power is supplied, and a predetermined period of time after the external power is supplied to the contact portion. A portable medium comprising: a switching means for switching the operating power source of the control element from the built-in power source to an external power source after a certain period of time has elapsed.
(2)キーボード、表示部、あるいは時計機能を有して
いる多機能なものであることを特徴とする特許請求の範
囲第1項記載の携帯可能媒体。
(2) The portable medium according to claim 1, which is a multifunctional medium having a keyboard, a display section, or a clock function.
(3)切換手段の切換えが、外部からコンタクト部を介
して供給されるクロックを計数し、この計数値が所定値
となった際に行われることを特徴とする特許請求の範囲
第1項記載の携帯可能媒体。
(3) The switching of the switching means is performed by counting clocks supplied from the outside through the contact portion and when this counted value reaches a predetermined value. portable media.
JP61203361A 1986-08-29 1986-08-29 Portable medium Pending JPS6358520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61203361A JPS6358520A (en) 1986-08-29 1986-08-29 Portable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61203361A JPS6358520A (en) 1986-08-29 1986-08-29 Portable medium

Publications (1)

Publication Number Publication Date
JPS6358520A true JPS6358520A (en) 1988-03-14

Family

ID=16472756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61203361A Pending JPS6358520A (en) 1986-08-29 1986-08-29 Portable medium

Country Status (1)

Country Link
JP (1) JPS6358520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998058307A1 (en) * 1997-06-16 1998-12-23 Citizen Watch Co., Ltd. Personal portable information terminal
EP1083517A2 (en) * 1999-09-07 2001-03-14 Nec Corporation Data processing device for switching between terminal mode and RF mode with a digital circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998058307A1 (en) * 1997-06-16 1998-12-23 Citizen Watch Co., Ltd. Personal portable information terminal
US6728812B1 (en) 1997-06-16 2004-04-27 Citizen Watch Co., Ltd. Portable information terminal
EP1083517A2 (en) * 1999-09-07 2001-03-14 Nec Corporation Data processing device for switching between terminal mode and RF mode with a digital circuit
EP1083517A3 (en) * 1999-09-07 2001-09-26 Nec Corporation Data processing device for switching between terminal mode and RF mode with a digital circuit

Similar Documents

Publication Publication Date Title
US4766294A (en) Portable medium
KR910007757B1 (en) Portable electronic medium
US4814591A (en) Portable medium
EP0402759B1 (en) Portable electronic device having versatile program storage
JP2723296B2 (en) Portable media
JPS63157253A (en) Portable medium
JP2597553B2 (en) IC card
JPS6358520A (en) Portable medium
JP2791105B2 (en) Portable storage media
JPS63262783A (en) Portable medium
JPH0746294B2 (en) Portable electronic device
JPS6359596A (en) Portable medium
JPS6362086A (en) Portable medium
JPS6359648A (en) Portable medium
JPS63255787A (en) Portable medium
JPS63262780A (en) Portable medium
JPS63255785A (en) Portable medium
JPS63255786A (en) Portable medium
JPS6362087A (en) Portable medium
JPS63255788A (en) Portable medium
JPS63262781A (en) Portable medium
JPS63255784A (en) Portable medium
JPS6358547A (en) Portable medium
JPH01126787A (en) Portable medium
JPH036718A (en) Portable medium