JPH01126787A - Portable medium - Google Patents

Portable medium

Info

Publication number
JPH01126787A
JPH01126787A JP62285916A JP28591687A JPH01126787A JP H01126787 A JPH01126787 A JP H01126787A JP 62285916 A JP62285916 A JP 62285916A JP 28591687 A JP28591687 A JP 28591687A JP H01126787 A JPH01126787 A JP H01126787A
Authority
JP
Japan
Prior art keywords
circuit
clock
cpu
card
battery
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
JP62285916A
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 JP62285916A priority Critical patent/JPH01126787A/en
Priority to EP88310551A priority patent/EP0316157B1/en
Priority to DE3850744T priority patent/DE3850744T2/en
Priority to KR1019880014842A priority patent/KR910007757B1/en
Publication of JPH01126787A publication Critical patent/JPH01126787A/en
Priority to US07/494,859 priority patent/US5072103A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE:To reduce current consumption and to prolong the life of an internal battery by detecting the voltage drop of the internal battery only for one time before the activation of a CPU and the display of a time and a date. CONSTITUTION:When a power source is inputted, before the date and the time are alternately displayed on a display part 13 with the use of a display part driver 36, a battery checking circuit 24 is accessed, and the voltage value of a battery 25 is checked. As the result of the check, when the voltage value of the battery 25 is dropped, the CPU 28 displays a message by the display part 13, and the use of an IC card 10 thereafter at an OFF-line is prohibited. When the voltage value of the battery 25 is not dropped, a process advances to the next display of the time and date.

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 in calculators, time displays, etc., or as a terminal device. The present invention relates to portable media such as multifunctional IC cards that can be used by inserting them into a computer.

(従来の技術) 従来、CPU、データメモリ、内部バッテリなどを内蔵
し、キーボード、表示部などを有し、電卓、時刻表示な
どでカード単体で用いたり、端末機に挿入することによ
り用いられる多機能のICカードが開発されている。
(Prior Technology) Conventionally, multipurpose cards have a built-in CPU, data memory, internal battery, etc., and have a keyboard, display, etc., and are used as a standalone card in calculators, time displays, etc., or by being inserted into terminals. A functional IC card has been developed.

このようなICカードにおいて、内部バッテリの低下を
検知する低下検知回路を内部に具備しているが、その低
下検知回路を常時、働かせている。
Such an IC card is internally equipped with a deterioration detection circuit for detecting a deterioration of the internal battery, and this depletion detection circuit is always activated.

このため、その低下検知回路自身で相当な消費電流が使
用され、バッテリの寿命が短くなってしまうという欠点
があった。
Therefore, the deterioration detection circuit itself consumes a considerable amount of current, resulting in a shortened battery life.

(発明が解決しようとする問題点) 上記のように、常時、電池の低下検知を行なっていたた
め、相当な消費電流が使用され、電池の寿命が短くなっ
てしまうという欠点を除去するもので、常時、電池の電
圧低下検知を行なわなくて良く、消費電流を少なくする
ことができ、電池の寿命を延ばすことができる携帯可能
媒体を提供することを目的とする。
(Problems to be Solved by the Invention) As mentioned above, the present invention eliminates the drawbacks of constantly detecting low battery power, which consumes a considerable amount of current and shortens battery life. It is an object of the present invention to provide a portable medium that does not require constant battery voltage drop detection, can reduce current consumption, and can extend battery life.

[発明の構成] (問題点を解決するための手段) この発明の携帯可能媒体は、少なくとも制御素子を有す
るものにおいて、上記制御素子に電力を供給する電池、
この電池の電圧を検知する検知手段、および検知の必要
があるときにのみ、上記検知手段による検知を行なう手
段から構成されるものである。
[Structure of the Invention] (Means for Solving the Problems) The portable medium of the present invention has at least a control element, and includes a battery that supplies power to the control element;
It is composed of a detection means for detecting the voltage of the battery, and a means for performing detection by the detection means only when detection is necessary.

(作用) この発明は、常時、電池の電圧低下を検知するものでは
なく、検知の必要があるときにだけ電池の電圧低下検知
を行なうようにしたものである。
(Function) The present invention does not always detect a battery voltage drop, but detects a battery voltage drop only when detection is necessary.

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

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

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

上記買物モードは、ICカード10の中に使用残高、有
効期限、買物記録等を記憶しておき、買物するたびに使
用した金額をICカード1.0内の残高から差引くとと
もに買物情報を記録するものである。上記ICカード1
0内の残高および有効期限が切れた場合は、契約銀行よ
り秘密コードを発行してもらうことにより、更新される
ようになっている。
In the above shopping mode, the used balance, expiration date, shopping record, etc. are stored in the IC card 10, and each time the IC card 10 is used, the amount spent is deducted from the balance in the IC card 1.0, and the shopping information is recorded. It is something to do. Above IC card 1
If the balance is within 0 or the expiration date has expired, it can be updated by having the contracted bank issue a secret code.

上記ICカード10の表面にはカードの規格にあった位
置に配置されたコンタクト部11.20キーからなるキ
ーボード部12、このキーボード部12の上面に配置さ
れ、液晶表示素子で形成される表示部(表示手段)13
、および磁気発生部材14a、14bが設けられている
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. (Display means) 13
, and magnetism generating members 14a and 14b are provided.

上記コンタクト部11は、たとえば複数の端子11a〜
llfによって構成されており、動作用の電源電圧(V
cc、+5V)用、EEPROMの書込電源電圧用、接
地用、クロック信号用、リセット信号用、データ入出力
用の端子からなっている。
The contact portion 11 includes, for example, a plurality of terminals 11a to 11a.
llf, and the operating power supply voltage (V
cc, +5V), EEPROM write power supply voltage, ground, clock signal, reset signal, and data input/output terminals.

上記キーボード部12はカードの種類つまり種々のクレ
ジットカード、キャッシュカードなどに対応する処理を
選択する選択キー(TI、T2、T3、T4)12 a
、テンキー12b1フアンクシヨンキーとしての4則演
算キーつまり加算(+)キー1201減算(−)キー1
2d1除算(÷)キー12e1乗算(X)キー12f1
少数点(、)キー12g1およびイコール(=)キー1
2hによって構成されている。
The keyboard section 12 has selection keys (TI, T2, T3, T4) 12 a for selecting processing corresponding to the card type, ie, various credit cards, cash cards, etc.
, numeric keypad 12b1 four arithmetic operation keys as function keys, i.e. addition (+) key 1201 subtraction (-) key 1
2d1 Division (÷) key 12e1 Multiplication (X) key 12f1
Decimal point (,) key 12g1 and equal (=) key 1
It is composed of 2h.

上記加算キー12cは、NEXTキーつまりオフライン
における日付、時刻表示中にモードを選択するモード選
択キーとして用いられ、上記減算キー12dはBACK
キーつまり表示部13の表示状態を前に戻すキーとして
用いられ、上記乗算キー12fは開始キーとして用いら
れ、上記少数点キー12gはNOキー、終了キーとして
用いられ、上記イコールキー12hはYESキー、パワ
−オンキーとして用いられるようになっている。
The addition key 12c is used as a NEXT key, that is, a mode selection key for selecting a mode during offline date and time display, and the subtraction key 12d is used as a BACK key.
The multiplication key 12f is used as a start key, the decimal point key 12g is used as a NO key and an end key, and the equal key 12h is used as a YES key. , is now used as a power-on key.

たとえば、パワーオンキーとしてのイコールキー12h
が押されると、後述するCPUはHALT状態が解除さ
れ、動作開始用メツセージの時刻、日付を表示部13に
表示する。
For example, equal key 12h as a power-on key
When is pressed, the CPU, which will be described later, is released from the HALT state and displays the time and date of the message for starting the operation on the display section 13.

この状態で、テンキー12bを押すとICカード10は
電卓モードになり、四則演算が行なえるようになってい
る。
In this state, when the numeric keypad 12b is pressed, the IC card 10 enters a calculator mode, and four arithmetic operations can be performed.

さらに、モード選択キーとしての加算キー120は、上
記日付、時刻表示中の表示部13の表示状態を別のモー
ドへ進めるキーとして用いられ、表示部13にメニュー
として、電子帳、時刻セット、日付セット、買物等の取
引等のモードがそのキーを押すたびに表示される。これ
らのモードを実行する場合に、上記イコールキー12h
としてのYESキーを押すことにより、そのモードへ入
り、実行可能となる。
Furthermore, the addition key 120 as a mode selection key is used as a key to advance the display state of the display section 13 which is currently displaying the date and time to another mode, and displays menus on the display section 13 such as electronic book, time set, date, etc. Each time the key is pressed, the transaction mode such as set, purchase, etc. is displayed. When executing these modes, press the equal key 12h above.
By pressing the YES key, the mode is entered and execution becomes possible.

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

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

第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の電気回路は、第2図に示す
ように構成されている。すなわち、上記コンタクト部1
1、通信制御回路21、リセット制御回路22、電源制
御回路23、たとえば3ボルトの内部バッテリ(内蔵電
源)25、この内部バッテリ25の電圧値が規定以上で
あるか否かをオフラインによるICカード10の使用開
始時に、1回のみチエツクするバッテリチエ・ツク回路
24(第10図で詳述する)、クロック制御回路26、
演算クロック発振用の水晶発振子であり、200KH2
の発振周波数(高速クロック)の信号を出力する発振器
27、制御用のCPU (セントラル・プロセッシング
・ユニット)28、制御プログラムが記録されているプ
ログラムROM29、プログラムワーキング用メモリ3
0、暗証番号、およびデータなどが記録され、FROM
で構成されるデータメモリ31、処理動作中の計時用に
用いるタイマ32、カレンダ回路33、基本クロ・ツク
発振用の水晶発振子であり、常時、32.768KH2
の発振周波数(低速クロック)の信号を出力している発
振器34、表示部制御回路35、」二記表示部13を駆
動する表示部ドライバ36、上記キーボード部12のキ
ー入力回路としてのキーボードインターフェース38、
および上記磁気発生部材14a、14bを制御する磁気
発生部材制御回路40によって構成されている。
Further, the electric circuit of the IC card 10 is constructed as shown in FIG. That is, the contact portion 1
1. A communication control circuit 21, a reset control circuit 22, a power supply control circuit 23, an internal battery (built-in power supply) 25 of, for example, 3 volts, and an offline IC card 10 that determines whether the voltage value of this internal battery 25 is higher than a specified value. A battery check circuit 24 (described in detail in FIG. 10) that checks only once at the start of use of the battery, a clock control circuit 26,
A crystal oscillator for calculation clock oscillation, 200KH2
an oscillator 27 that outputs a signal with an oscillation frequency (high-speed clock), a control CPU (central processing unit) 28, a program ROM 29 in which control programs are recorded, and a program working memory 3.
0, PIN number, data, etc. are recorded, FROM
A data memory 31 consisting of a timer 32 used for timing during processing operations, a calendar circuit 33, and a crystal oscillator for basic clock oscillation, which always operates at 32.768 KH2.
an oscillator 34 that outputs a signal with an oscillation frequency (low-speed clock), a display control circuit 35, a display driver 36 that drives the display 13, and 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 members 14a and 14b.

上記通信制御回路21、CPU28、ROM29、プロ
グラムワーキング用メモリ30、データメモリ31、タ
イマ32、カレンダ回路33、表示部制御回路35、キ
ーボードインターフェース38、および上記磁気発生部
材14a、14bを制御する磁気発生部材制御回路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 generation for controlling the magnetism generation members 14a and 14b. Component control circuit 40
are connected by a data bus 20.

上記通信制御回路21は、受信時つまり上記端末機16
からコンタクト部11を介して供給されたシリアルの入
出力信号を、パラレルのデータに変換してデータバス2
0に出力し、送信時つまりデータバス20から供給され
たパラレルのデータを、シリアルの入出力信号に変換し
てコンタクト部11を介して端末機16に出力するよう
になっている。この場合、その変換のフォーマット内容
は、上記端末機16と、ICカード10とで定められて
いる。
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.
0, and during transmission, that is, parallel data supplied from the data bus 20 is converted into a serial input/output signal and output to the terminal 16 via the contact section 11. In this case, the format contents of the conversion are determined by the terminal device 16 and the IC card 10.

リセット制御回路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. The drive is switched to the battery 25.

上記バッテリチエツク回路24は、内部バッテリ25の
電圧からツェナーダイオードを用いて基準となる基準電
圧Vrefを作成し、比較器により内部バッテリ25の
電圧値を分圧したチエツク電圧VCOで比較してチエツ
クするものであり、内部バッテリ25の電圧値が2.5
ボルト以下となった際に、バッテリアラーム信号をCP
U28へ出力するものである。上記バッテリチエツク回
路24は、基準電圧Vrefおよびチエツク電圧VCH
を作成する回路に、検知時、つまりオフラインモードに
おいてパワー・オン・キーを入力して、時刻、日付表示
を行なう前に1回だけ電流が流れるようになっている。
The battery check circuit 24 creates a reference voltage Vref from the voltage of the internal battery 25 using a Zener diode, and compares and checks the voltage value of the internal battery 25 with a check voltage VCO obtained by dividing the voltage value of the internal battery 25 using a comparator. and the voltage value of the internal battery 25 is 2.5
When the voltage drops below volts, the battery alarm signal is set to CP.
It is output to U28. The battery check circuit 24 has a reference voltage Vref and a check voltage VCH.
Current flows through the circuit that creates this only once at the time of detection, that is, when the power-on key is input in offline mode and before the time and date are displayed.

この検知により、バラチリアラームとなった場合、時刻
日付表示でなく、CALL−BANK等の表示をし、電
池の寿命がないことを操作者に報知し、バラチリアラー
ムとなっていない場合は、時刻、日付表示を行い、次の
メニュー選択へ進むようになっている。
If this detection causes a scattering alarm, CALL-BANK, etc. will be displayed instead of the time and date to notify the operator that the battery life is running out, and if there is no scattering alarm, It displays the time and date and allows you to proceed to the next menu selection.

上記クロック制御回路26は、内部バッテリ25でカー
ド動作を行うオフラインモードにおいて、低速クロック
と高速クロックとをタイミングよく切替えるものであり
、またHALT命令実行後、パワーダウンのため後述す
る200KH2の発振周波数(高速クロック)の信号を
出力する発振回路(第2のクロック発生手段)67を停
止し、またCPU28へのクロックの供給も停°止し、
完全なる停止状態で待機するものである。上記クロック
制御回路26は、リセット、HALT命令が実行される
と、基本的には時計用が選択される構成である。
The clock control circuit 26 switches between a low-speed clock and a high-speed clock in a timely manner in the offline mode in which the card operates with the internal battery 25, and also controls the oscillation frequency of 200 KH2 (described later) for power down after executing the HALT command. The oscillation circuit (second clock generation means) 67 that outputs the high-speed clock signal is stopped, and the supply of the clock to the CPU 28 is also stopped,
It stands by in a completely stopped state. The clock control circuit 26 is basically configured to select a clock mode when a reset or HALT command is executed.

上記データメモリ31には、契約している複数のクレジ
ットカード(会社)に対応する情報、キャッシュカード
に対応する情報が記録されており、上記T1キー〜T4
キー12a1・・・により選択されたカードの種類に対
応して読出されるようになっている。上記情報は、各カ
ードごとの従来の磁気ストライプに記録されている情報
と同じ内容となっている。たとえば、カードの第1トラ
ツクに対応する第1トラツク用データと、第2トラツク
に対応する第2トラツク用データとを記憶している。
The data memory 31 records information corresponding to a plurality of contracted credit cards (companies) and information corresponding to a cash card.
The information is read out in accordance with the type of card selected by the keys 12a1, . . . The above information is the same as the information recorded on the conventional magnetic stripe of each card. For example, first track data corresponding to the first track of the card and second track data corresponding to the second track are stored.

上記カレンダ回路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, for example, world standard time when the card is issued and cannot be changed thereafter. ing.

上記表示部制御回路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で入力されたキーに対応するキー人力信号に変換し
てCPU28に出力するものである。
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 28.

上記磁気発生部材制御回路40は、買物モードおよびカ
ードの種類が指定されている際に、そのカードの種類に
対応して上記データメモリ31からデータバス20を介
して供給されるデータおよび読取装置が手動式読取りか
自動搬送式読取りかに対応した駆動レートに応じて、上
記磁気発生部材14a、14bを駆動制御して磁気情報
としての第1トラツク用データ、第2トラツク用データ
を出力することにより、従来の磁気ストライプが存在し
ているのと同じ状態にしているものである。
When a shopping mode and a card type are specified, the magnetism generating member control circuit 40 controls the data and reading device supplied from the data memory 31 via the data bus 20 in accordance with the card type. By controlling the drive of the magnetism generating members 14a and 14b according to the drive rate corresponding to manual reading or automatic conveyance reading, and outputting first track data and second track data as magnetic information. , which is in the same state as a conventional magnetic stripe.

たとえば、手動式読取りの場合、読取速度の速い駆動レ
ートを選択し、自動搬送式読取りの場合、読取速度の遅
い駆動レートを選択するようになっている。
For example, in the case of manual reading, a drive rate with a fast reading speed is selected, and in the case of automatic conveyance reading, a drive rate with a slow reading speed is selected.

上記磁気発生部材制御回路40は、買物モードが指定さ
れている際に、そのカードの種類に対応して磁気発生部
材14a、14bから順に磁気情報(第1トラツク用デ
ータ、第2トラツク用データ)を発生するようになって
いる。
When the shopping mode is specified, the magnetism generating member control circuit 40 sequentially generates magnetic information (data for the first track, data for the second track) from the magnetism generating members 14a and 14b in accordance with the type of card. is starting to occur.

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

上記カウンタ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.

このような構成おいて、第6図に示すタイミングチャー
トを参照しつつ動作を説明する。すなわち、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の出力Vou
tとして各部に印加される。
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. The set output Q of the FF circuit 53 supplies a 0'' signal to the gate of the semiconductor switch 58, a 1'' signal to the gate of the semiconductor switch 56,
The semiconductor switch 58 is turned on and the semiconductor switch 56 is turned off. Therefore, the external power supply voltage Vcc is applied to the output Vou of the power supply control circuit 22 via the semiconductor switch 58.
It is applied to each part as t.

なお、オンライン状態からオフライン状態に戻る時、外
部からの電源電圧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. This results in
The reset signal causes the counter 52 and the FF circuit 53 to
is reset. Then, a "1" signal is supplied to the gate of the semiconductor switch 58, a "0" signal is supplied to the gate of the semiconductor switch 56, 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.

上記バッテリチエツク回路24について、第10図を用
いて詳細に説明する。すなわち、半導体スイッチ141
.142、インバータ回路143.144、比較器とし
ての差動増幅器145、抵抗146.147、可変抵抗
器148、およびツェナーダイオード149によって構
成されている。上記可変抵抗器148の抵抗値は、製造
時に、内部バッテリ25の電圧値VDDが2.5ボルト
以下となった場合に、差動増幅器145の反転入力端に
供給されるチエツク電圧VCHが非反転入力端に供給さ
れる基準電圧Vrefより小さくなり、差動増幅器14
5からバッテリアラーム信号が出力される値に調節され
ている。
The battery check circuit 24 will be explained in detail with reference to FIG. That is, the semiconductor switch 141
.. 142, inverter circuits 143 and 144, a differential amplifier 145 as a comparator, resistors 146 and 147, a variable resistor 148, and a Zener diode 149. The resistance value of the variable resistor 148 is such that when the voltage value VDD of the internal battery 25 becomes 2.5 volts or less during manufacturing, the check voltage VCH supplied to the inverting input terminal of the differential amplifier 145 is non-inverting. It becomes smaller than the reference voltage Vref supplied to the input terminal, and the differential amplifier 14
5 to a value at which a battery alarm signal is output.

たとえば今、上記CPU28からエンベロープ信号がイ
ンバータ回路144を介して半導体スイッチ141.1
42のベースに供給される。すると、半導体スイッチ1
41.142がオンし、ツェナーダイオード149によ
って生成される基準電圧Vrefが差動増幅器145の
非反転入力端に印加される。また、内部バッテリ25の
電圧値VDDを可変抵抗器148と抵抗147とで分圧
したチエツク電圧VCHが差動増幅器145の反転入力
端に印加される。これにより、差動増幅器145はチエ
ツク電圧V。Hが基準電圧Vrefよりも小さくなった
場合、インバータ回路143を介してCPU2gに対し
てバッテリアラーム信号を出力する。
For example, now, an envelope signal is sent from the CPU 28 to the semiconductor switch 141.1 via the inverter circuit 144.
42 bases are supplied. Then, semiconductor switch 1
41 and 142 are turned on, and the reference voltage Vref generated by the Zener diode 149 is applied to the non-inverting input terminal of the differential amplifier 145. Also, a check voltage VCH obtained by dividing the voltage value VDD of the internal battery 25 by a variable resistor 148 and a resistor 147 is applied to the inverting input terminal of the differential amplifier 145. As a result, the differential amplifier 145 receives the check voltage V. When H becomes smaller than the reference voltage Vref, a battery alarm signal is output to the CPU 2g via the inverter circuit 143.

このように、バッテリ電圧のチエツク時にのみツェナー
ダイオード149、および抵抗147に電流を流すよう
にしているので、常時電流を流し= 18− ているのに比して、消費電流を減少できるものである。
In this way, since current is made to flow through the Zener diode 149 and resistor 147 only when checking the battery voltage, current consumption can be reduced compared to when current is constantly passed. .

上記クロック制御回路26について、第7図を用いて詳
細に説明する。すなわち、上記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の一端に供給され、このアンド回路132の
他端には上記CPU28から強制ストップ信号が供給さ
れるようになっている。上記アンド回路132の出力は
、ナンド回路66の一端に供給され、このナンド回路6
6の出力端と他端との間には発振回路67が接続されて
いる。
The clock control circuit 26 will be explained in detail using FIG. 7. 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 an AND circuit 66, and the other end of this AND circuit 132 is supplied with a forced stop signal from the CPU 28. The output of the AND circuit 132 is supplied to one end of the NAND circuit 66.
An oscillation circuit 67 is connected between the output end of 6 and the other end.

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

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

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

上記バイナリカウンタ130は、上記発振回路67によ
る発振クロックを計数し、その計数値が所定値となった
際、出力端Qnから信号を出力するものである。上記バ
イナリカウンタ130の出力端Qnからの信号は、FF
回路131のクロ・ツク入力端ckに供給され、このF
F回路131のセット出力としてのレディ信号はCPU
28へ出力されるようになっている。
The binary counter 130 counts the oscillation clocks generated by the oscillation circuit 67, and outputs a signal from the output terminal Qn when the counted value reaches a predetermined value. The signal from the output terminal Qn of the binary counter 130 is FF
It is supplied to the clock input terminal ck of the circuit 131, and this F
The ready signal as the set output of the F circuit 131 is sent to the CPU
28.

上記FF回路131は、上記バイナリカウンタ130の
出力によりセットされることにより、上記発振回路67
がレディ状態となった際にセットするようになっている
The FF circuit 131 is set by the output of the binary counter 130, so that the oscillation circuit 67
It is set when the is in the ready state.

また、上記リセット制御回路22からのリセ・ソト信号
はFF回路77のセット入力端Sに供給され、このFF
回路77のデータ入力端りには、上記CPU28からの
クロック選択信号が供給され、クロック入力端ckには
上記カレンダ回路33からの32.763KH2の時計
用のクロ・ツクが供給される。上記FF回路77のセッ
ト出力はナンド回路79の一端に供給され、このナンド
回路79の他端には上記カレンダ回路33からの32.
763KH2の時計用のクロックがインバータ回路78
を介して供給される。上記ナンド回路79の出力はナン
ド回路80の一端に供給される。
Further, the reset/sort signal from the reset control circuit 22 is supplied to the set input terminal S of the FF circuit 77, and this FF
A clock selection signal from the CPU 28 is supplied to the data input end of the circuit 77, and a 32.763 KH2 clock from the calendar circuit 33 is supplied to the clock input terminal ck. The set output of the FF circuit 77 is supplied to one end of a NAND circuit 79, and the other end of the NAND circuit 79 receives the 32.
The clock for the 763KH2 watch is the inverter circuit 78.
Supplied via. The output of the NAND circuit 79 is supplied to one end of a NAND circuit 80.

また、上記FF回路77のリセット出力は上記FF回路
74のデータ入力端りに供給され、このFF回路74の
セット出力はナンド回路75の他端に供給される。上記
FF回路74はクロック切替用となっている。
Further, the reset output of the FF circuit 77 is supplied to the data input end of the FF circuit 74, and the set output of this FF circuit 74 is supplied to the other end of the NAND circuit 75. 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回路83のセット出力はナンド回路86
の一端に供給され、このナンド回路86の他端には上記
アンド回路80の出力がインバータ回路85を介して供
給される。上記ナンド回路86の出力は、クロック信号
として上記CPU28へ出力されるようになっている。
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 to the CPU 28 as a clock signal.

このような構成において、動作を説明する。まず、停止
状態について説明する。すなわち、上記CPU28から
クロック選択信号として“1”が供給されている。これ
により、FF回路77がセットしている。これにより、
時計用クロック(32,768KH2)はインバータ回
路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 circuit 77 is set. This results in
The watch clock (32,768KH2) is connected to the FF circuit 81 via an inverter circuit 78 and a NAND circuit 79.80.
.. 82 and an inverter circuit 85 .

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

すなわち、上記パワーオンキーとしてのYESキー(イ
コールキー)12hの投入により、上記CPU28から
キー人力割込み信号が供給される。
That is, when the YES key (equal key) 12h as the power-on key is pressed, a key human interrupt signal is supplied from the CPU 28.

すると、FF回路62.63.64がリセットし、FF
回路65がセットする。このFF回路65のセット出力
により発振回路67をイネーブル状態とする。これによ
り、発振回路67は発振を開始する。
Then, the FF circuits 62, 63, and 64 are reset, and the FF circuits 62, 63, and 64 are reset.
Circuit 65 sets. The set output of the FF circuit 65 enables the oscillation circuit 67. As a result, the oscillation circuit 67 starts oscillating.

また、上記FF回路63のリセットにより、FF回路8
1のデータ入力端りには“1”が供給されている。これ
により、上記ナンド回路80の出力により、FF回路8
1.83がセットし、ナンド回路86のゲートを開く。
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 is set and opens the gate of NAND circuit 86.

したがって、インバータ回路85からの時計用クロック
がナンド回路86を介してCPU28に出力される。し
たがって、CPU28はFF回路86からの低速クロッ
クにより動作し、種々の処理を行なう。
Therefore, the clock from the inverter circuit 85 is output to the CPU 28 via the NAND circuit 86. Therefore, the CPU 28 operates with the low-speed clock from the FF circuit 86 and performs various processes.

また上記発振回路67によるクロック(200KH2)
がインバータ回路72を介してFF回路74のクロック
入力端およびバイナリカウンタ130のクロック入力端
に供給される。
Also, the clock (200KH2) by the oscillation circuit 67
is supplied to the clock input terminal of the FF circuit 74 and the clock input terminal of the binary counter 130 via the inverter circuit 72.

また、上記バイナリカウンタ130により発振回路67
のクロックが計数され、所定の計数値となった際、その
出力によりFF回路131がセットする。
Also, the oscillation circuit 67 is controlled by the binary counter 130.
The clocks are counted, and when a predetermined count value is reached, the FF circuit 131 is set by the output.

そして、上記キー人力信号が出力されてから所定時間経
過した際、CPU28はFF回路131がセットしてい
るか否かをセンスすることにより、発振回路67が正常
に動作(発振)しているか否′かを判断する。すなわち
、FF回路131がセットしている場合、発振回路67
が正常と判断し、FF回路131がセットしていない場
合、発振回路67が異常と判断する。
Then, when a predetermined period of time has elapsed since the key input signal was output, the CPU 28 senses whether the FF circuit 131 is set, thereby determining whether the oscillation circuit 67 is operating normally (oscillating). to judge. That is, when the FF circuit 131 is set, the oscillation circuit 67
If the FF circuit 131 is determined to be normal and the FF circuit 131 is not set, the oscillation circuit 67 is determined to be abnormal.

この判断の結果、CPU28は、発振回路67が正常の
場合、高速クロックでの動作を判断し、発振回路67が
異常の場合、低速クロックのままでの動作を判断する。
As a result of this determination, if the oscillation circuit 67 is normal, the CPU 28 determines to operate with the high speed clock, and if the oscillation circuit 67 is abnormal, the CPU 28 determines to operate with the low speed clock.

上記のように発振回路67の正常を判断した場合、CP
U2gは、クロック選択信号として“0“をFF回路7
7のデータ入力端りに供給する。これにより、FF回路
77がリセットし、FF回路77のリセット出力つまり
“1″信号がFF回路74のデータ入力端りに供給され
る。
If it is determined that the oscillation circuit 67 is normal as described above, the CP
U2g outputs “0” as a clock selection signal to the FF circuit 7.
7 data input end. As a result, the FF circuit 77 is reset, and the reset output of the FF circuit 77, that is, the "1" signal is supplied to the data input end of the FF circuit 74.

すると、FF回路74がセットし、このセット出力によ
りナンド回路75のゲートが開く。この結果、発振回路
67によるクロック(200KH2)は、インバータ回
路72.73、ナンド回路75.80.インバータ回路
85、およびナンド回路86を順次介してCPU28に
出力される。
Then, the FF circuit 74 is set, and the set output opens the gate of the NAND circuit 75. As a result, the clock (200KH2) generated by the oscillation circuit 67 is transmitted to the inverter circuits 72, 73, NAND circuits 75, 80, . The signal is sequentially output to the CPU 28 via an inverter circuit 85 and a NAND circuit 86.

これにより、クロック選択信号を“0”とすることによ
り、FF回路74で同期がとられ、時計用クロック(低
速クロック)から高速クロックに切替わり、CPU28
は高速クロックで起動を行なうようになっている。
As a result, by setting the clock selection signal to "0", synchronization is achieved in the FF circuit 74, the clock clock (low speed clock) is switched to the high speed clock, and the CPU 28
is designed to start up with a high-speed clock.

そのCPU28の起動後、CPU28はクロック選択信
号を“1”とすることにより、FF回路77がセットし
、FF回路77のセット出力つまり“1”信号がナンド
回路79に供給され、ナンド回路79のゲートが開いて
いる。したがって、時計用クロックが、インバータ回路
78、ナンド回路79.80、インバータ回路85、お
よびナンド回路86を順次介してCPU28に出力され
る。この結果、時計用クロックがCPU28に出力され
る。したがって、CPU28はFF回路86からの低速
クロックにより動作し、種々の処理を行なう。
After the CPU 28 is started, the CPU 28 sets the clock selection signal to "1", so that the FF circuit 77 is set, and the set output of the FF circuit 77, that is, the "1" signal is supplied to the NAND circuit 79. The gate is open. Therefore, the watch clock is output to the CPU 28 via the inverter circuit 78, the NAND circuits 79 and 80, the inverter circuit 85, and the NAND circuit 86 in sequence. As a result, a clock is output to the CPU 28. Therefore, the CPU 28 operates with the low-speed clock from the FF circuit 86 and performs various processes.

またこのとき、CPU2gからの強制ストップ信号(“
0”信号)がアンド回路132に供給されることにより
、アンド回路132のゲートが閉じられる。これにより
、発振回路67がディセーブル状態となり、発振回路6
7は発振を停止する。
Also, at this time, a forced stop signal (“
0" signal) is supplied to the AND circuit 132, the gate of the AND circuit 132 is closed. As a result, the oscillation circuit 67 becomes disabled, and the oscillation circuit 6
7 stops oscillation.

また、発振回路67の異常を判断した場合、CPU28
はクロック選択信号として“1”をFF回路77のデー
タ入力端りに供給したまま、強制ストップ信号(“0”
信号)をアンド回路132に供給する。これにより、F
F回路86から低速クロックが出力された状態で、発振
回路67がディセーブル状態となり、発振回路67は発
振を停止する。
Additionally, if it is determined that the oscillation circuit 67 is abnormal, the CPU 28
is a forced stop signal (“0”) while supplying “1” as a clock selection signal to the data input terminal of the FF circuit 77.
signal) is supplied to the AND circuit 132. As a result, F
With the low-speed clock being output from the F circuit 86, the oscillation circuit 67 enters a disabled state, and the oscillation circuit 67 stops oscillating.

この結果、時計用クロ゛ツクがCPU28に出力される
。したがって、CPU28はFF回路86からの低速ク
ロックにより動作し、種々の処理を行なう。
As a result, a watch clock is output to the CPU 28. Therefore, the CPU 28 operates with the low-speed clock from the FF circuit 86 and performs various processes.

次に、上記処理として特定の処理たとえば取引モードが
選択された場合の動作について説明する。
Next, an explanation will be given of the operation when a specific process such as a transaction mode is selected as the above process.

すなわち、まず、取引モードが選択されると、CPU2
8はアンド回路132への強制ストップ信号の供給を停
止する。
That is, first, when the transaction mode is selected, the CPU 2
8 stops supplying the forced stop signal to the AND circuit 132.

すると、再びFF回路65のセット出力がアンド回路1
32を介して発振回路67に供給され、発振回路67が
イネーブル状態となる。これにより、発振回路67は発
振を開始する。
Then, the set output of the FF circuit 65 is output to the AND circuit 1 again.
32 to the oscillation circuit 67, and the oscillation circuit 67 is enabled. As a result, the oscillation circuit 67 starts oscillating.

これにより、上記発振回路67によるクロック(200
KH2)がインバータ回路72を介してFF回路74の
クロック入力端およびバイナリカウンタ130のクロッ
ク入力端に供給される。
As a result, the clock (200
KH2) is supplied to the clock input terminal of the FF circuit 74 and the clock input terminal of the binary counter 130 via the inverter circuit 72.

また、上記バイナリカウンタ130により発振回路67
のクロックが計数され、所定の計数値となった際、その
出力によりFF回路131がセットする。
Also, the oscillation circuit 67 is controlled by the binary counter 130.
The clocks are counted, and when a predetermined count value is reached, the FF circuit 131 is set by the output.

そして、買物モードにおける取引成立コードを算出する
際、CPU28はFF回路131がセットしているか否
かをセンスすることにより、発振回路67が正常に動作
(発振)しているか否かを判断する。すなわち、FF回
路131がセットしている場合、発振回路67が正常と
判断し、FF回路131がセットしていない場合、発振
回路67が異常と判断する。
When calculating the transaction completion code in the shopping mode, the CPU 28 determines whether the oscillation circuit 67 is operating normally (oscillating) by sensing whether the FF circuit 131 is set. That is, if the FF circuit 131 is set, the oscillation circuit 67 is determined to be normal, and if the FF circuit 131 is not set, the oscillation circuit 67 is determined to be abnormal.

この判断の結果、発振回路67が正常の場合、CPU2
8はクロック選択信号として”0”をFF回路77のデ
ータ入力端りに供給する。これにより、FF回路77が
リセットし、FF回路77のリセット出力つまり“1″
信号がFF回路74のデータ入力端りに供給される。
As a result of this judgment, if the oscillation circuit 67 is normal, the CPU 2
8 supplies "0" to the data input end of the FF circuit 77 as a clock selection signal. As a result, the FF circuit 77 is reset, and the reset output of the FF circuit 77 is "1".
A signal is supplied to the data input end of the FF circuit 74.

すると、FF回路74がセットし、このセット出力によ
りナンド回路75のゲートが開く。この結果、発振回路
67によるクロック(200KH2)は、インバータ回
路72.73、ナンド回路75.80、インバータ回路
85、およびナンド回路86を順次介してCPU2gに
出力される。
Then, the FF circuit 74 is set, and the set output opens the gate of the NAND circuit 75. As a result, the clock (200KH2) generated by the oscillation circuit 67 is output to the CPU 2g via the inverter circuits 72, 73, the NAND circuits 75, 80, the inverter circuits 85, and the NAND circuits 86 in sequence.

これにより、クロック選択信号を“0”とすることによ
り、FF回路74で同期がとられ、時計用クロック(低
速クロック)から高速クロックに切替わり、CPU28
は高速クロックにより動作し、上記取引成立コードの算
出を行なうようになっている。
As a result, by setting the clock selection signal to "0", synchronization is achieved in the FF circuit 74, the clock clock (low speed clock) is switched to the high speed clock, and the CPU 28
is operated by a high-speed clock and is designed to calculate the above-mentioned transaction completion code.

そのCPU28による取引成立コードの算出の後、CP
U28はクロック選択信号を“12とすることにより、
FF回路77がセットし、FF回路77のセット出力つ
まり“1″信号がナンド回路79に供給され、ナンド回
路79のゲートが開いている。したがって、時計用クロ
ックが、インバータ回路78、ナンド回路79.80.
インバータ回路85、およびナンド回路86を順次介し
てCPU28に出力される。この結果、時計用クロック
がCPU28に出力される。したがって、CPU28は
FF回路86がらの低速クロックにより動作を行なう。
After calculating the transaction completion code by the CPU 28, the CP
By setting the clock selection signal to "12", U28
The FF circuit 77 is 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 open. Therefore, the watch clock is connected to the inverter circuit 78, the NAND circuit 79, 80 .
The signal is sequentially output to the CPU 28 via an inverter circuit 85 and a NAND circuit 86. As a result, a clock is output to the CPU 28. Therefore, the CPU 28 operates using the low-speed clock from the FF circuit 86.

またこのとき、CPO28からの強制ストップ信号がア
ンド回路132に供給されることにより、アンド回路1
32のゲートが閉じられる。これにより、発振回路67
がディセーブル状態となり、発振回路67は発振を停止
する。
Also, at this time, the forced stop signal from the CPO 28 is supplied to the AND circuit 132, so that the AND circuit 1
32 gates are closed. As a result, the oscillation circuit 67
becomes disabled, and the oscillation circuit 67 stops oscillating.

なお、上記判断の結果、発振回路67が異常の場合、C
PU28はクロック選択信号“1”をFF回路77のデ
ータ入力端りに供給したまま、強制ストップ信号をアン
ド回路132に供給する。
Note that if the oscillation circuit 67 is abnormal as a result of the above judgment, C
The PU 28 supplies a forced stop signal to the AND circuit 132 while supplying the clock selection signal "1" to the data input end of the FF circuit 77.

これにより、FF回路86から低速クロックが出力され
た状態で、発振回路67がディセーブル状態となり、発
振回路67は発振を停止する。
As a result, while the low-speed clock is being output from the FF circuit 86, the oscillation circuit 67 becomes a disabled state, and the oscillation circuit 67 stops oscillating.

この結果、再び時計用クロックがCPU28に出力され
る。したがって、CPU28はFF回路86からの低速
クロックにより動作し、上記取引成立コードの算出を行
なう。
As a result, the watch clock is output to the CPU 28 again. Therefore, the CPU 28 operates based on the low-speed clock from the FF circuit 86 and calculates the transaction completion code.

次に、処理を終了し、停止状態(スタンバイ状態)とす
る場合について説明する。すなわち、CPU28は、停
止信号HALTをFF回路62のクロック入力端ckに
供給する。すると、FF回路62がセットし、このセッ
ト出力がFF回路63のデータ入力端りに供給される。
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, the CPU 28 supplies the stop signal HALT to the clock input terminal ck 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.

そして、CPU28からのマシンサイクル信号M1によ
り、FF回路63がセットし、FF回路81のデータ入
力端りに“0”信号が供給される。これにより、FF回
路63のセット出力をFF回路81.83で2パルス分
送らせた後、ナンド回路86のゲートを閉じることによ
り、CPU28へのクロックの出力を停止する。これに
より、CPU28を停止状態としている。
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, after the set output of the FF circuit 63 is sent for two pulses to the FF circuits 81 and 83, the gate of the NAND circuit 86 is closed, thereby stopping the output of the clock to the CPU 28. As a result, the CPU 28 is brought to a halted state.

上記カレンダ回路33について、第8図を用いて詳細に
説明する。すなわち、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分ごとに信号を出力するカウンタ9
9、このカウンタ99からの信号を計数することにより
、60分つまり1時間ごとに信号を出力するカウンタ1
00、このカウンタ10’0からの信号を計数すること
により、24時間つまり1日ごとに信号を出力するカウ
ンタ101から構成されている。
The calendar circuit 33 will be explained in detail using FIG. 8. 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 that outputs a signal every 60 seconds, that is, every minute, by counting the signals from this counter 93, a counter 94 that outputs a signal every 10 minutes by counting the signals from this counter 93, and a counter 94 that outputs a signal every 10 minutes by counting the signals from this counter 93. A counter 95 that outputs a signal every 60 minutes, that is, every hour, by counting the signals from this counter 95, and a counter 96 that outputs a signal every 24 hours, that is, every day, by counting the signals from this counter 95. A counter 97 outputs a signal every 10 seconds by counting the signal from the output terminal of the circuit 91, and a signal is output every 60 seconds, that is, every minute by counting the signal from this counter 97. Counter 98, which outputs a signal every 10 minutes by counting the signal from this counter 98.
9. A counter 1 that outputs a signal every 60 minutes, that is, every hour, by counting the signal from this counter 99.
00, and a counter 101 that outputs a signal every 24 hours, that is, every day, by counting the signal from this counter 10'0.

ここに、上記カウンタ92〜96により秒、分、時を計
数する取引用の時計が構成され、上記カウンタ97〜1
01により秒、分、時を計数する表示用の時計が構成さ
れている。上記カウンタ97〜101の内容つまり計数
値は上記キーボード部12により変更できるようになっ
ており、上記カウンタ92〜96の内容つまり計数値は
上記キーボード部12により変更できないようになって
いる。
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. The contents of the counters 97 to 101, that is, the counted values, can be changed using the keyboard section 12, while the contents of the counters 92 to 96, that is, the counted values cannot be changed using the keyboard section 12.

また、年月日および曜日は、24時間ごとのカー 33
 = ウンタ96.101からの信号により、上記CPU28
へ日付更新の割込み要求を出力する。
In addition, the year, month, day, and day of the week are shown in the car every 24 hours.
= According to the signal from the counter 96.101, the CPU 28
Outputs an interrupt request to update the date.

これにより、CPU28はデータメモリ31を用いて対
応するエリアの年月日および曜日を更新する。また、2
つの時計は、第9図に示すように、基準となる1秒のク
ロックの位相をずらしているため、同時に割込みが発生
しないようになっている。
Thereby, the CPU 28 uses the data memory 31 to update the year, month, day and day of the week of the corresponding area. Also, 2
As shown in FIG. 9, the two clocks shift the phase of the one-second reference clock, so that interrupts do not occur at the same time.

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

まず、カード単体で用いるオフライン機能について説明
する。すなわち、本IC,カード10は、通常、時計の
みが動作し、CPU28は上述したように、停止(HA
LT)状態となっている。
First, we will explain the offline function used by the card alone. That is, in this IC and card 10, normally only the clock operates, and the CPU 28 stops (HA) as described above.
LT) state.

この状態では、ICカード10はパワーオンキーとして
のYESキー12hの投入とオンラインモードでしか外
部から制御できないようになっている。
In this state, the IC card 10 can only be controlled from the outside by pressing the YES key 12h as a power-on key and in online mode.

これにより、パワーオンキーとしてのYESキー12h
を投入する。すると、キーボードインターフェース38
はキー人力割込み信号をクロック制御回路26に出力す
る。すると、クロック制御回路26から時計用クロック
がCPU28に供給され、CPU28の停止(HALT
)状態が解除される。この後、前述したような起動処理
が行なわれる。
This allows the YES key 12h to be used as a power-on key.
Insert. Then, the keyboard interface 38
outputs a key human interrupt signal to the clock control circuit 26. Then, the clock for the clock is supplied from the clock control circuit 26 to the CPU 28, and the CPU 28 is stopped (HALT).
) condition is cleared. After this, the startup process as described above is performed.

このCPU28の起動後、CPU28は上記カレンダ回
路33内のカウンタ97〜101から表示用時計に対す
る秒、分、時を読出し、またデータメモリ31から表示
用時計に対する年月日および曜日を読出し、指定された
フォーマットに変換し、表示部制御回路35に出力する
。これにより、表示部制御回路35は、内部のキャラク
タジェネレータ(図示しない)を用いて文字パターンに
変換し、表示部ドライバ36を用いて日付、時刻とを交
互に表示部13で表示する。
After the CPU 28 is started, 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 also reads the year, month, day, and day of the week for the display clock from the data memory 31, and It is converted into a format and output to the display control circuit 35. As a result, the display control circuit 35 uses an internal character generator (not shown) to convert it into a character pattern, and uses the display driver 36 to alternately display the date and time on the display 13.

これにより、動作開始用メツセージとしての日付、時刻
を表示部13で表示する。
As a result, the date and time as a message for starting the operation are displayed on the display section 13.

そして、CPU28はキーボード部12の全キーを受付
可能として待機する。
Then, the CPU 28 stands by with all the keys on the keyboard section 12 ready for reception.

また、上記CPU28の起動時に、バッテリチニック回
路24をアクセスし、バッテリ25の電圧値をチエツク
する。このチエツクの結果、バッテリ25の電圧値が低
下していた場合、CPU28は表示部13でrCALL
  BANKJなどのメツセージを表示し、これ以後の
オフラインでのICカード10の使用を禁止する。
Further, when the CPU 28 is activated, the battery check circuit 24 is accessed and the voltage value of the battery 25 is checked. As a result of this check, if the voltage value of the battery 25 has decreased, the CPU 28 displays the rCALL on the display section 13.
A message such as BANKJ is displayed, and subsequent offline use of the IC card 10 is prohibited.

すなわち、上記CPU2gの起動時に、CPU28から
エンベロープ信号が供給され、インバータ回路144を
介して半導体スイッチ141.142のベースに供給さ
れる。すると、半導体スイッチ141.142がオンし
、ツェナーダイオード149によって生成される基準電
圧Vrefが差動増幅器145の非反転入力端に印加さ
れる。
That is, when the CPU 2g is activated, an envelope signal is supplied from the CPU 28, and is supplied to the bases of the semiconductor switches 141 and 142 via the inverter circuit 144. Then, the semiconductor switches 141 and 142 are turned on, and the reference voltage Vref generated by the Zener diode 149 is applied to the non-inverting input terminal of the differential amplifier 145.

また、内部バッテリ25の電圧値VDDを可変抵抗器1
48と抵抗147とで分圧したチエツク電圧■。Hが差
動増幅器145の反転入力端に印加される。
Also, the voltage value VDD of the internal battery 25 is set to the variable resistor 1.
Check voltage (■) divided by 48 and resistor 147. H is applied to the inverting input terminal of differential amplifier 145.

これにより、差動増幅器145はチエツク電圧VCHが
基準電圧Vrefよりも小さくなった場合、インバータ
回路143を介してCPU28に対してバッテリアラー
ム信号を出力する。このバッテリアラーム信号により、
CPU28は表示部13でrCALL  BANKJな
どのメツセージを表示し、操作者に電池が寿命となった
ことを知らせ、これ以後のオフラインでのICカード1
0の使用を禁止する。
As a result, the differential amplifier 145 outputs a battery alarm signal to the CPU 28 via the inverter circuit 143 when the check voltage VCH becomes smaller than the reference voltage Vref. This battery alarm signal causes
The CPU 28 displays a message such as rCALL BANKJ on the display unit 13 to inform the operator that the battery has reached the end of its service life, and the IC card 1
Prohibit the use of 0.

また、差動増幅器145はチエツク電圧V。Hが基準電
圧Vrefよりも大きい場合、バッテリアラーム信号を
出力しない。この場合、次の時刻、日付表示に進む。
Also, the differential amplifier 145 receives a check voltage V. If H is greater than the reference voltage Vref, no battery alarm signal is output. In this case, the display advances to the next time and date display.

なお、上記バッテリチエツク回路24による低下検知動
作は、第1図に示すフローチャートのようになっている
Note that the battery check circuit 24 performs the battery drop detection operation as shown in the flowchart shown in FIG.

上記日付、時刻の表示状態で、モード選択キーとしての
加算キー12cを投入することにより、順次別のモード
の表示を行なう。これにより、取引モードを表示してい
る際に、YESキー12hが投入されると、そのモード
が選択され、CPU28は表示部13で受付メツセージ
と暗証番号の入力要求を表示する。
By pressing the addition key 12c as a mode selection key while the date and time are displayed, different modes are sequentially displayed. Accordingly, when the YES key 12h is pressed while the transaction mode is being displayed, that mode is selected and the CPU 28 displays a reception message and a password input request on the display unit 13.

また、前述したように、上記取引モードの選択に応じて
、CPU28はクロック制御回路26内の発振回路67
による高速クロックの発振を開始する。
Further, as described above, depending on the selection of the transaction mode, the CPU 28 controls the oscillation circuit 67 in the clock control circuit 26.
starts high-speed clock oscillation.

上記暗証番号の入力要求の表示により、カード使用者は
、テンキー12bにより暗証番号を投入する。すると、
CPU2gはカードに登録されている正しい暗証番号の
入力か否かをチエツクし、正しい暗証が投入された場合
、次の動作へ移行する。
When the above-mentioned password input request is displayed, the card user inputs the password using the numeric keypad 12b. Then,
The CPU 2g checks whether or not the correct password registered on the card has been input, and if the correct password has been entered, the process moves to the next operation.

また、誤った暗証番号の入力を判断した場合、3回まで
のうちに正しい番号が入力されれば、ICカード10内
のPINエラーのカウンタはリセットされ、次の動作へ
写る。しかし、3回とも誤って入力された場合、表示部
13にrPINERRORJが表示され、これ以後、こ
のモードでの使用は、契約銀行から秘密コードを発行し
てもらい、カードのPIN  ERRORを解除するま
で、ICカード10での買物ができなくなる。
Furthermore, if it is determined that an incorrect PIN number has been input, if the correct number is input within three times, the PIN error counter in the IC card 10 is reset and the process proceeds to the next operation. However, if you enter the wrong information all three times, rPINERRORJ will be displayed on the display 13, and you will not be able to use this mode from now on until you have your contracted bank issue a secret code and cancel the PIN ERROR on your card. , shopping with the IC card 10 will no longer be possible.

このような方法は、カードの安全性を向上させるための
手段である。
Such a method is a means to improve the security of the card.

上記暗証番号が正しく入力されると、CPU28は取引
モードでの最初のメニューである「買物をしますか?」
が表示部13で表示される。このとき、YESキー12
hを投入すると、買物モードとなる。ここで、モード選
択キー12cを投入するごとに取引モード内のメニュー
が順次表示部13に表示される。
If the above PIN is entered correctly, the CPU 28 will display the first menu in transaction mode, ``Do you want to shop?''
is displayed on the display unit 13. At this time, YES key 12
When you input h, it becomes shopping mode. Here, each time the mode selection key 12c is pressed, menus within the transaction mode are sequentially displayed on the display section 13.

買物モードに入ると、現在、選択されている通貨単位で
の買物金額の入力要求が表示部13に表示される。この
際、CPU28は前述したように、クロック制御回路2
6内の高速クロックが正常か否か判断し、高速クロック
が正常の場合、クロック選択信号として“0”信号を出
力する。これにより、クロック制御回路26からCPU
28への駆動クロックを低速クロック(時計用クロック
)から高速クロックへ変更しておく。
When entering the shopping mode, a request to input the shopping amount in the currently selected currency unit is displayed on the display section 13. At this time, as described above, the CPU 28 controls the clock control circuit 2.
It is determined whether the high-speed clock in 6 is normal or not, and if the high-speed clock is normal, a "0" signal is output as a clock selection signal. This allows the clock control circuit 26 to
Change the drive clock to 28 from a low-speed clock (watch clock) to a high-speed clock.

また、上記高速クロックが異常の場合、CPU28の駆
動クロックは低速クロックのままとしておく。
Furthermore, if the high speed clock is abnormal, the drive clock for the CPU 28 is left as the low speed clock.

上記表示に応じて買物金額をテンキー12bにより入力
する。すると、CPU28は乱数により取引成立コード
を発生し、その結果と買物類とを表示部]3で交互に表
示する。上記取引成立コードの発生が行なわれた後、C
PU28はクロック制御回路26にクロック選択信号と
して“1”信号を出力する。これにより、クロック制御
回路26からCPU28への駆動クロックを高速クロッ
クから低速クロック(時計用クロック)へ戻しておく。
The purchase amount is input using the numeric keypad 12b according to the above display. Then, the CPU 28 generates a transaction completion code using random numbers, and displays the result and shopping items alternately on the display section]3. After the above transaction completion code is generated, C
The PU 28 outputs a "1" signal to the clock control circuit 26 as a clock selection signal. As a result, the driving clock from the clock control circuit 26 to the CPU 28 is returned from the high speed clock to the low speed clock (clock for clock).

この時点でICカード10を店員に渡す。店員は、IC
カード10を受取ると磁気テープリーダ付の端末機(図
示しない)にICカード10をセットする。そして、I
Cカード10のYESキー12hを投入する。すると、
CPU28は従来の磁気テープカードと同様のデータを
磁気発生部材制御回路40を制御することにより、磁気
発生部材14a、14bから、端末機の磁気ヘッドに対
して送出する。端末機がこのデータを正しく受取ると買
物は成立し、このモードは終了する。
At this point, the IC card 10 is handed over to the store clerk. The clerk is an IC
When the card 10 is received, the IC card 10 is set in a terminal (not shown) equipped with a magnetic tape reader. And I
Insert the YES key 12h of the C card 10. Then,
The CPU 28 sends data similar to that of a conventional magnetic tape card from the magnetism generating members 14a and 14b to the magnetic head of the terminal by controlling the magnetism generating member control circuit 40. If the terminal correctly receives this data, the purchase is completed and this mode ends.

また、端末機の無い店では、ICカード10で発生した
取引成立コードを控えたり、ICカード表面のエンボス
文字を指定された伝票にインプリントすることにより、
記録される。
In addition, in stores without terminals, by recording the transaction completion code generated by the IC card 10 or imprinting the embossed characters on the surface of the IC card on a designated slip,
recorded.

次に、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を介して外部から
の電源電圧クロック、リセットが供給されると、電源制
御回路23は上述したように、電源電圧のレベルをチエ
ツクし、内部バッテリ25による駆動から外部からの電
源電圧の駆動に切替える。また、上記リセットによりリ
セット制御回路22はリセット信号を発生し、CPU2
8を起動する。この際、CPU28は端末機16からの
まクロックを駆動クロックとして用いる。
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 the power supply voltage clock and reset are supplied from the outside via the contact portion 11, the power supply control circuit 23 checks the level of the power supply voltage as described above, and changes the power supply voltage from the internal battery 25 to the external power supply. Switch to power supply voltage drive. Further, due to the above reset, the reset control circuit 22 generates a reset signal, and the CPU 2
8. At this time, the CPU 28 uses the clock from the terminal 16 as a driving clock.

リセットが解除されると、CPU28は外部クロックで
プログラムROM29の0番地から実行する。ICカー
ド10は0番地からスタートした場合、外部電圧の状態
をチエツクし、外部電圧がオン中で外部電圧の低下を検
出するパワーダウンがセットしていなければ、オンライ
ンモードのプログラムを実行する。
When the reset is released, the CPU 28 executes the program from address 0 of the program ROM 29 using an external clock. When the IC card 10 starts from address 0, it checks the state of the external voltage, and if the external voltage is on and the power down for detecting a drop in the external voltage is not set, it executes the online mode program.

オンラインモードは、最初にICカード10内で準備し
ているデータ通信の取決め事項を端末機16へ送り、そ
のあと端末機16からの指令を待つ0 端末機16は通信モードを正常に受取ると、以後、端末
機16のアプリケーションにしたがって、ICカード1
0に対してデータの要求を行なったり、データの書換え
をおよび新規登録をしたりする。
In the online mode, the data communication arrangements prepared in the IC card 10 are first sent to the terminal device 16, and then the terminal device 16 waits for a command from the terminal device 16. When the terminal device 16 receives the communication mode normally, Thereafter, according to the application on the terminal 16, the IC card 1
Request data from 0, rewrite data, and register new data.

オンラインモードの終了は、端末機16からの電源電圧
が供給ストップし、ICカード10が排出された時であ
る。
The online mode ends when the power supply voltage from the terminal 16 is stopped and the IC card 10 is ejected.

上記したように、常時、内部バッテリの低下を検知する
ものではなく、カードをオフラインで用いる使用開始時
、つまりCPUを起動して時刻、日付表示を行なう前に
1回だけ内部バッテリの電圧低下検知を行なうようにし
たものである。
As mentioned above, the internal battery voltage drop is not detected all the time, but only once when the card is used offline, that is, before the CPU is started and the time and date are displayed. It was designed to do this.

これにより、常時、内部バッテリの電圧低下検知を行な
うものに比して、消費電流を少なくすることができ、内
部バッテリの寿命を延ばすことができる。
This makes it possible to reduce current consumption and extend the life of the internal battery, compared to a system that constantly detects voltage drops in the internal battery.

また、常時、内部バッテリの低下検知を行なう必要がな
いため、バッテリチエツク回路に十分電流を流すことが
でき、内部バッテリの低下検知点をより正確に設定でき
る。
Furthermore, since it is not necessary to constantly detect the low level of the internal battery, a sufficient current can be passed through the battery check circuit, and the low internal battery detection point can be set more accurately.

また、内部バッテリの電圧低下の検知を、1日に一回、
たとえばカレンダ回路33における日付の変更ごとに行
なうようにしても良い。
In addition, the internal battery voltage drop is detected once a day.
For example, the process may be performed every time the date in the calendar circuit 33 is changed.

なお、前記実施例では、ICカードを用いたが、これに
限らず、データメモリと制御素子とを有し、選択的に外
部から入出力を行うものであれば良く、形状もカード状
でなく、棒状など他の形状であっても良い。
In the above embodiment, an IC card is used, but 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, the battery voltage drop is not constantly detected, so that the portable medium can reduce the current consumption and extend the battery life. Can be provided.

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

図面はこの発明の一実施例を説明するためのもので、第
1図はバッテリ低下検知時の動作を説明するためのフロ
ーチャート、第2図はICカードの電気回路の概略構成
を示す図、第3図はICカードの構成を示す平面図、第
4図はICカードを取扱う端末機を示す図、第5図は電
源制御回路の構成例を示す図、第6図は第5図における
要部の動作を説明するためのタイミングチャート、第7
図はクロック制御回路の構成を示す図、第8図はカレン
ダ回路の概略構成ブロック図、第9図は分周回路からの
信号の出力タイミングを示す図、第10図はバッテリチ
エツク回路の構成を示す図である。 10・・・ICカード(携帯可能媒体)、11・・・−
44= コンタクト部、12・・・キーボード部、12b・・・
テンキー、12c・・・加算キー、12h・・・イコー
ルキー、13・・・表示部、24・・・バッテリチエツ
ク回路、25・・・内部バッテリ(電池)、28・・・
CPU (制御素子)、141.142・・・半導体ス
イッチ。 出願人代理人 弁理士 鈴江武彦 第1図
The drawings are for explaining one embodiment of the present invention, and FIG. 1 is a flowchart for explaining the operation when low battery is detected, FIG. 2 is a diagram showing a schematic configuration of an electric circuit of an IC card, and FIG. Figure 3 is a plan view showing the configuration of an IC card, Figure 4 is a diagram showing a terminal that handles the IC card, Figure 5 is a diagram showing an example of the configuration of a power supply control circuit, and Figure 6 is the main part in Figure 5. Timing chart for explaining the operation of
Figure 8 shows the configuration of the clock control circuit, Figure 8 is a schematic block diagram of the calendar circuit, Figure 9 shows the output timing of signals from the frequency divider circuit, and Figure 10 shows the configuration of the battery check circuit. FIG. 10...IC card (portable medium), 11...-
44 = contact section, 12...keyboard section, 12b...
Numeric keypad, 12c...addition key, 12h...equal key, 13...display section, 24...battery check circuit, 25...internal battery (battery), 28...
CPU (control element), 141.142... semiconductor switch. Applicant's agent Patent attorney Takehiko Suzue Figure 1

Claims (6)

【特許請求の範囲】[Claims] (1) 少なくとも制御素子を有する携帯可能媒体にお
いて、 上記制御素子に電力を供給する電池と、 この電池の電圧を検知する検知手段と、 検知の必要があるときにのみ、上記検知手段による検知
を行なう手段と、 を具備したことを特徴とする携帯可能媒体。
(1) In a portable medium having at least a control element, a battery that supplies power to the control element, a detection means for detecting the voltage of the battery, and a detection means that performs detection by the detection means only when detection is necessary. A portable medium characterized by comprising a means for performing the same.
(2) 制御素子が、CPUであることを特徴とする特
許請求の範囲第1項記載の携帯可能媒体。
(2) The portable medium according to claim 1, wherein the control element is a CPU.
(3) 検知の必要があるときが、使用開始の指示時で
あることを特徴とする特許請求の範囲第1項記載の携帯
可能媒体。
(3) The portable medium according to claim 1, wherein the time when the detection is necessary is when the start of use is instructed.
(4) 検知の必要があるときが、一日1回であること
を特徴とする特許請求の範囲第1項記載の携帯可能媒体
(4) The portable medium according to claim 1, wherein the detection is required once a day.
(5) 検知手段に半導体スイッチを設け、上記検知の
必要があるときに、上記半導体スイッチをオンすること
により、上記電池電圧の検知を行なうものであることを
特徴とする特許請求の範囲第1項記載の携帯可能媒体。
(5) The detection means is provided with a semiconductor switch, and the battery voltage is detected by turning on the semiconductor switch when the detection is necessary. PORTABLE MEDIA AS DESCRIBED IN SECTION.
(6) 検知手段が、上記電池の電圧と基準電圧とを比
較するものであることを特徴とする特許請求の範囲第1
項記載の携帯可能媒体。
(6) Claim 1, wherein the detection means compares the voltage of the battery with a reference voltage.
PORTABLE MEDIA AS DESCRIBED IN SECTION.
JP62285916A 1987-11-12 1987-11-12 Portable medium Pending JPH01126787A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62285916A JPH01126787A (en) 1987-11-12 1987-11-12 Portable medium
EP88310551A EP0316157B1 (en) 1987-11-12 1988-11-09 An electrically powered portable medium
DE3850744T DE3850744T2 (en) 1987-11-12 1988-11-09 Portable medium with electrical power supply.
KR1019880014842A KR910007757B1 (en) 1987-11-12 1988-11-11 Portable electronic medium
US07/494,859 US5072103A (en) 1987-11-12 1990-03-14 Electrically powered portable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62285916A JPH01126787A (en) 1987-11-12 1987-11-12 Portable medium

Publications (1)

Publication Number Publication Date
JPH01126787A true JPH01126787A (en) 1989-05-18

Family

ID=17697674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62285916A Pending JPH01126787A (en) 1987-11-12 1987-11-12 Portable medium

Country Status (1)

Country Link
JP (1) JPH01126787A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06501802A (en) * 1990-10-01 1994-02-24 ブッシュ,トーマス,エイ. transaction processing system
KR100432996B1 (en) * 1997-07-04 2004-07-16 삼성에스디아이 주식회사 Smart card equipped with display tool and power supply device
KR100467671B1 (en) * 1997-06-09 2005-03-16 삼성에스디아이 주식회사 Smart card

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06501802A (en) * 1990-10-01 1994-02-24 ブッシュ,トーマス,エイ. transaction processing system
KR100467671B1 (en) * 1997-06-09 2005-03-16 삼성에스디아이 주식회사 Smart card
KR100432996B1 (en) * 1997-07-04 2004-07-16 삼성에스디아이 주식회사 Smart card equipped with display tool and power supply device

Similar Documents

Publication Publication Date Title
US4814591A (en) Portable medium
KR910007757B1 (en) Portable electronic medium
KR910001263B1 (en) Portable medium
EP0402759B1 (en) Portable electronic device having versatile program storage
US4924075A (en) Smart IC card
JP2723296B2 (en) Portable media
JPH01126787A (en) Portable medium
JP2597553B2 (en) IC card
JPH01112350A (en) Portable medium
JPH01126788A (en) Portable medium
JPH01126790A (en) Portable medium
JPH01112389A (en) Portable medium
JPH01112390A (en) Portable medium
JPS63157253A (en) Portable medium
JP2791105B2 (en) Portable storage media
JPH036718A (en) Portable medium
JPH01126789A (en) Portable medium
JPS63262783A (en) Portable medium
JP2554676B2 (en) Portable electronic devices
JPS6362086A (en) Portable medium
JPS6358520A (en) Portable medium
JPS6358524A (en) Portable medium
JPS63262781A (en) Portable medium
JPS63255788A (en) Portable medium
JPS63255784A (en) Portable medium