[go: up one dir, main page]

JPH01126788A - Portable medium - Google Patents

Portable medium

Info

Publication number
JPH01126788A
JPH01126788A JP62285917A JP28591787A JPH01126788A JP H01126788 A JPH01126788 A JP H01126788A JP 62285917 A JP62285917 A JP 62285917A JP 28591787 A JP28591787 A JP 28591787A JP H01126788 A JPH01126788 A JP H01126788A
Authority
JP
Japan
Prior art keywords
circuit
clock
cpu
battery
voltage
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
JP62285917A
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 JP62285917A priority Critical patent/JPH01126788A/en
Priority to EP88310551A priority patent/EP0316157B1/en
Priority to DE3850744T priority patent/DE3850744T2/en
Priority to KR1019880014842A priority patent/KR910007757B1/en
Publication of JPH01126788A publication Critical patent/JPH01126788A/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 always carry out the voltage drop of a battery at a correct detecting point by providing a single resistance to generate the checked battery in a battery checking circuit at the outside of a LSI, and selecting a suitable resistance value at the time of manufacture. CONSTITUTION:When a CPU 28 is activated, the CPU 28 supplies an envelope signal, turns on semiconductor switches 141 and 142, and impresses a reference voltage Vref generated by a Zener diode 149 to the non-inverted input edge of a differential amplifier 145. On the other hand, a checking voltage VCH divided by a variable resistor 148, which provides a voltage VDD of an internal battery 25 at the outside of an IC, and a resistance 147 is impressed on the inverted input edge of the differential amplifier 145. Thus, when the checking voltage VCH is smaller than the reference voltage Vref, the differential amplifier 145 outputs a battery alarm signal through an inverter circuit 143 to the CPU 28.

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、データメモリ、内部バッテリなどを内蔵
し、キーボード、表示部などを有し、電卓、時刻表示な
どでカード単体で用いたり、端1末機に挿入することに
より用いられる多機能のICカードが開発されている。
(Prior technology) Traditionally, cards have a built-in CPU, data memory, internal battery, etc., and have a keyboard, display, etc., and can be used as a standalone card in calculators, time displays, etc., or by being inserted into a single terminal. Multi-functional IC cards have been developed.

このようなICカードにおいて、内部バッテリの低下を
検知する低下検知回路を内部に具備している。このよう
な低下検知回路としては、上記内部バッテリからの電圧
によりツェナーダイオードを用いて発生される基準電圧
と、上記内部バッテリからの電圧を抵抗で分圧した被検
査電圧とを比較し、被検査電圧が基準電圧より低下した
際、バッテリアラーム信号を出力するものが考えられて
いる。
Such an IC card is internally equipped with a deterioration detection circuit for detecting deterioration of the internal battery. Such a drop detection circuit compares the reference voltage generated by the voltage from the internal battery using a Zener diode with the voltage to be tested obtained by dividing the voltage from the internal battery using a resistor, and Some devices are being considered that output a battery alarm signal when the voltage drops below a reference voltage.

ところが、このようなものでは、被検査電圧を作成する
抵抗の抵抗値のばらつきにより、バッテリの低下検知点
が異なり、正確な検知点で検知を行なうことができない
という問題があった。
However, with this type of device, there is a problem in that the low battery detection point differs due to variations in the resistance value of the resistor that creates the voltage to be tested, making it impossible to perform detection at an accurate detection point.

(発明が解決しようとする問題点) 上記のように、電池の電圧低下の検知を正確な検知点で
行なうことができないという欠点を除去するもので、電
池の電圧低下の検知を正確な検知点で行なうことができ
る携帯可能媒体を提供することを目的とする。
(Problems to be Solved by the Invention) As described above, this invention eliminates the drawback that battery voltage drop cannot be detected at an accurate detection point. The aim is to provide a portable medium that can be used in

[発明の構成] (問題点を解決するための手段) この発明の携帯可能媒体は、少なくとも制御素子を有す
るものにおいて、上記制御素子に電力を供給する電池、
製造時にあらかじめ設定可能な抵抗を用いて、上記電池
の電圧から被検査電圧を発生する電圧発生手段、および
この電圧発生手段からの被検査電圧と基準電圧とを比較
することにより、上記電池の電圧を検知する検知手段か
ら構成されるものである。
[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;
Voltage generating means generates a voltage to be tested from the voltage of the battery using a resistor that can be set in advance during manufacturing, and the voltage of the battery is determined by comparing the voltage to be tested from this voltage generating means with a reference voltage. It consists of a detection means for detecting.

(作用) この発明は、製造時にあらかじめ設定可能な抵抗を用い
て、電池の電圧から被検査電圧を発生し、この発生した
被検査電圧と基準電圧とを比較することにより、上記電
池の電圧を検知するようにしたものである。
(Function) This invention generates a voltage to be tested from the voltage of a battery using a resistor that can be set in advance at the time of manufacture, and compares the generated voltage to be tested with a reference voltage to determine the voltage of the battery. It is designed to be detected.

(実施例) 以下、この発明の一実施例について、図面を参照して説
明する。
(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カード10内の残高から差引くととも
に買物情報を記録するものである。上記ICカード10
内の残高および有効期限が切れた場合は、契約銀行より
秘密コードを発行してもらうことにより、更新されるよ
うになっている。
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 makes a purchase, the amount spent is deducted from the balance in the IC card 10, and the shopping information is recorded. It is. The above IC card 10
If the balance in the card 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
It consists of terminals for cc, +5V), write power supply voltage for EEPROM, ground, clock signal, reset signal, and data input/output.

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

上記加算キー12cは、NEXTキーつまりオフライン
における日付、時刻表示中にモードを選択するモード選
択キーとして用いられ、上記減算キー12dはBACK
キーつまり表示部13の表示状態を前に戻すキーとして
用いられ、上記乗算キー12fは開始キーとして用いら
れ、上記少数−6= 点キー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.
This key is used as a key to return the display state of the display section 13 to the previous state, the multiplication key 12f is used as a start key, the decimal -6= point key 12g is used as a NO key and an end key, and the equal key 12h is used as a NO key. is used as a YES key and a NOWARE ON key.

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

この状態で、テンキー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.

さらに、モード選択キーとしての加算キー12cは、上
記日付、時刻表示中の表示部13の表示状態を別のモー
ドへ進めるキーとして用いられ、表示部13にメニュー
として、電子幅、時刻セット、日付セット、買物等の取
引等のモードがそのキーを押すたびに表示される。これ
らのモードを実行する場合に、上記イコールキー12h
としてのYESキーを押すことにより、そのモードへ入
り、実行可能となる。
Further, the addition key 12c 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 width, time set, and date. 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 positions of a magnetic card reader (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回のみチエツクするバッテリチエツク回路2
4(第10図で詳述する)、クロック制御回路26、演
算クロック発振用の水晶発振子であり、200KH2の
発振周波数(高速クロック)の信号を出力する発振器2
7、制御用のCPU (セントラル・プロセッシング・
ユニット)28、制御プログラムが記録されているプロ
グラムROM29、プログラムワーキング用メモリ30
、暗証番号、およびデータなどが記録され、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. Battery check circuit 2 that checks only once when starting to use the
4 (described in detail in FIG. 10), a clock control circuit 26, and an oscillator 2 which is a crystal oscillator for oscillating a calculation clock and outputs a signal with an oscillation frequency of 200KH2 (high-speed clock).
7. CPU for control (central processing
unit) 28, program ROM 29 in which control programs are recorded, program working memory 30
, a password, data, etc., are recorded therein, and are composed of a data memory 31 composed of a FROM, a timer 32 used for timing during processing operations, a calendar circuit 33, and a crystal oscillator for basic clock oscillation. An oscillator 34 outputting a signal with an oscillation frequency (low-speed clock) of 768KH2, 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 members 14a and 14b.

上記通信制御回路21、リセット制御回路22、電源制
御回路23、バッテリチエツク回路24、クロック制御
回路26、CPU28、ROM29、プログラムワーキ
ング用メモリ30、タイマ32、カレンダ回路33、表
示部制御回路35、キーボードインターフェース38、
および磁気発生部材制御回路40は、ワンチップマイコ
ンによって構成され、LS I 150となっている。
The communication control circuit 21, reset control circuit 22, power supply control circuit 23, battery check circuit 24, clock control circuit 26, CPU 28, ROM 29, program working memory 30, timer 32, calendar circuit 33, display control circuit 35, keyboard interface 38,
The magnetism generating member control circuit 40 is constituted by a one-chip microcomputer, and is an LSI 150.

上記通信制御回路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の
電圧値を分圧したチエツク電圧VCHで比較してチエツ
クするものであり、内部バッテリ25の電圧値が2.5
ボルト以乍となった際に、バッテリアラーム信号をCP
U28へ出力するものである。上記バッテリチエツク回
路24は、基準電圧Vrefおよびチエツク電圧VC)
Iを作成する回路に、検知時、つまりオフラインモード
においてパワー・オン・キーを入力して、時刻、日付表
示を行なう前に1回だけ電流が流れるようになっている
。この検知により、バラチリアラームとなった場合、時
刻日付表示でなく、CALL−BANK等の表示をし、
電池の寿命がないことを操作者に報知し、バラチリアラ
ームとなっていない場合は、時刻、日付表示を行い、次
のメニュー選択へ進むようになっている。
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 VCH 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 exceeds 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 VC).
Current flows through the circuit that creates I 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. If a dispersion alarm occurs due to this detection, CALL-BANK etc. will be displayed instead of the time and date.
The system notifies the operator that the battery is at the end of its life, and if no alarm has been activated, the time and date are displayed and the operator can 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 a high-speed clock signal is stopped, and the clock supply to the CPU 28 is also stopped, so that the CPU 28 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 for 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は、力、−ドの保持者が自由に設
定変更可能な表示用の時計と、たとえば世界の標準時間
をカードの発行時にセットし、その=  13 − 後、変更不可能な取引用の時計とを有している。
The calendar circuit 33 has a display clock that can be freely set and changed by the card holder, and, for example, sets the world standard time at the time of card issuance, and then performs transactions that cannot be changed. I have a watch for the day.

上記表示部制御回路35は、上記CPU2gから供給さ
れる表示データを内部のROMで構成されるキャラクタ
ジェネレータ(図示しない)を用いて文字パターンに変
換し、表示部ドライバ36を用いて表示部13で表示す
るものである。
The display unit control circuit 35 converts the display data supplied from the CPU 2g into a character pattern using a character generator (not shown) configured with an internal ROM, and converts the display data supplied from the CPU 2g into a character pattern on the display unit 13 using the 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 designated, the magnetism generating member control circuit 40 sequentially generates magnetic information (data for the first track, data for the second track) from the magnetic generating members 14a and 14b in accordance with the type of card. data).

上記電源制御回路23について、第5図を用いて詳細に
説明する。すなわち、インノく一夕回路51.54.5
5、カウンタ52、D形フリ・ツブフロップ回路(FF
回路)53、MOSFETで構成される半導体スイッチ
56.58、ダイオード57、および内部バッテリ25
によって構成されている。
The power supply control circuit 23 will be explained in detail using FIG. 5. In other words, Inno Ku Ichiyo Circuit 51.54.5
5. 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.

このような構成おいて、第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の出力Vo
utとして各部に印加される。
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 off. Therefore, the external power supply voltage Vcc is applied to the output Vo of the power supply control circuit 22 via the semiconductor switch 58.
It is applied to each part as ut.

なお、オンライン状態からオフライン状態に戻る時、外
部からの電源電圧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について、第1図を用い
て詳細に説明する。すなわち、半導体スイッチ141.
142、インバータ回路143.144、比較器として
の差動増幅器145、抵抗146.147.148、ツ
ェナーダイオード149、およびオア回路150によっ
て構成されている。
The battery check circuit 24 will be explained in detail with reference to FIG. That is, semiconductor switch 141.
142, inverter circuits 143 and 144, a differential amplifier 145 as a comparator, resistors 146, 147, and 148, a Zener diode 149, and an OR circuit 150.

すなわち、上記CPU28からエンベロープ信号がオア
回路150およびインバータ回路144を介して半導体
スイッチ141.142のベースに供給される。すると
、半導体スイッチ141.142がオンし、ツェナーダ
イオード149によって生成される基準電圧Vrefが
差動増幅器145の非反転入力端に印加される。また、
内部バッテリ25の電圧値VDDを抵抗148と抵抗1
47とで分圧したチエツク電圧(被検査電圧)VCHが
差動増幅器145の反転入力端に印加される。これによ
り、差動増幅器145はチエツク電圧V。Hが基準電圧
Vrefよりも小さくなった場合、インバータ回路14
3を介してCPU28に対してバッテリアラーム信号を
出力する。
That is, an envelope signal is supplied from the CPU 28 to the bases of the semiconductor switches 141 and 142 via the OR circuit 150 and 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. Also,
The voltage value VDD of the internal battery 25 is set by the resistor 148 and the resistor 1.
A check voltage (voltage to be inspected) VCH divided by 47 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, the inverter circuit 14
3, outputs a battery alarm signal to the CPU 28.

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

上記抵抗148は、上記LS I 150の外部に接続
される抵抗であり、製造時に、内部バッテリ25の電圧
値VDDが2.5ボルト以下となった場合に、差動増幅
器145の反転入力端に供給されるチエツク電圧VCH
が非反転入力端に供給される基準電圧Vrefより小さ
くなり、差動増幅器145からバッテリアラーム信号が
出力される抵抗値のものが選択されている。
The resistor 148 is a resistor connected to the outside of the LSI 150, and is connected to the inverting input terminal of the differential amplifier 145 when the voltage value VDD of the internal battery 25 becomes 2.5 volts or less during manufacturing. Check voltage VCH supplied
A resistance value is selected such that the voltage becomes smaller than the reference voltage Vref supplied to the non-inverting input terminal, and a battery alarm signal is output from the differential amplifier 145.

この抵抗148の選択について、第11図を参照して説
明する。すなわち、上記L SI 150に外部検査装
置160を接続する。上記外部検査装置160は、図示
しないリレーとこのリレーによって選択される抵抗値の
異なる複数の抵抗などから構成されている。この場合、
上記外部検査装置160は、LS1150の内部バッテ
リ25用のバットp a % pbに2.5ボルトを印
加し、テストバットpcにテスト信号を出力し、上記リ
レーによって選択される抵抗がバットpdSpe間に挿
入されるようになっている。この状態で、リレーを切換
え、抵抗値の異なる抵抗を対応させることにより、出力
バットpfがらバッテリアラーム信号が出力された際、
そのときの抵抗値の抵抗が、抵抗148用として選択さ
れるようになっている。
The selection of this resistor 148 will be explained with reference to FIG. That is, an external testing device 160 is connected to the L SI 150. The external inspection device 160 includes a relay (not shown) and a plurality of resistors having different resistance values selected by the relay. in this case,
The external inspection device 160 applies 2.5 volts to the batt p a % pb for the internal battery 25 of the LS1150, outputs a test signal to the test batt PC, and the resistance selected by the relay is applied between the batts pdSpe. It is meant to be inserted. In this state, by switching the relay and matching resistors with different resistance values, when the battery alarm signal is output from the output batt PF,
A resistor having a resistance value at that time is selected as the resistor 148.

すなわち、上記外部検査装置160がらテスト信号がオ
ア回路150およびインバータ回路144を介して半導
体スイッチ141.142のベースに供給される。する
と、半導体スイッチ141.142がオンし、ツェナー
ダイオード149によって生成される基準電圧Vref
が差動増幅器145の非反転入力端に印加される。また
、内部バッテリ25の電圧値VDD  (2,5V一定
)を上記外部検査装置160内の抵抗(図示しない)と
抵抗147とで分圧したチエツク電圧(被検査電圧)V
CHが差動増幅器145の反転入力端に印加される。こ
れにより、差動増幅器145はチエツク電圧V。Hが基
準電圧Vrefよりも小さくなった場合、インバータ回
路143を介して外部検査装置160に対してバッテリ
アラーム信号を出力する。
That is, a test signal from the external testing device 160 is supplied to the bases of the semiconductor switches 141 and 142 via the OR circuit 150 and 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 turned on.
is applied to the non-inverting input terminal of differential amplifier 145. In addition, a check voltage (voltage to be tested) V obtained by dividing the voltage value VDD (constant 2.5 V) of the internal battery 25 by a resistor (not shown) in the external test device 160 and a resistor 147 is applied.
CH is applied to the inverting input terminal of 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 external inspection device 160 via the inverter circuit 143.

したがって、上記LS I 150内にバッテリチエツ
ク回路24が全て実装されている場合に、ロットごとに
バッテリの低下検知点にばらつきが生じてしまうという
不具合を解消するために、上記のようにバッテリチエツ
ク回路24内の1つの抵抗を外部に設け、製造時に適正
なものを選択するようになっている。これにより、バッ
テリの低下検知点にばらつきがなく、正確な内部バッテ
リ25の電圧低下を検知することができる。
Therefore, in order to solve the problem that when all the battery check circuits 24 are mounted in the LSI 150, the low battery detection point varies from lot to lot, the battery check circuit 24 is installed as described above. One of the resistors 24 is provided externally, and an appropriate resistor is selected at the time of manufacture. Thereby, there is no variation in the battery drop detection point, and it is possible to accurately detect the voltage drop of the internal battery 25.

上記クロック制御回路26について、N7図を用いて詳
細に説明する。すなわち、上記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 diagram N7. 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 small 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.6B、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.6B 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に供給され、このFF
回路131のセット出力としてのレディ信号はCPU2
8へ出力されるようになっている。
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
is supplied to the clock input terminal ck of the circuit 131, and this FF
The ready signal as the set output of the circuit 131 is the CPU2
8.

上記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.76
3KH2の時計用のクロックがインバータ回路78を介
して供給される。上記ナンド回路79の出力はナンド回
路8oの一端に供給される。
Further, the reset signal from the reset control circuit 22 is supplied to the set input terminal S of the FF circuit 77, and the clock selection signal from the CPU 28 is supplied to the data input terminal of the FF circuit 77. A clock of 32.763KH2 from the calendar circuit 33 is supplied to 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 is supplied with 32.76 ms of the calendar circuit 33.
A 3KH2 clock is supplied via an inverter circuit 78. The output of the NAND circuit 79 is supplied to one end of the NAND circuit 8o.

また、上記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 the 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) はイ’、バー
’i’回路78、ナンド回路79.8oを介して、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
Watch clock (32,768KH2) is connected to FF via i', bar'i' circuit 78, and NAND circuit 79.8o.
It is led to circuits 81, 82 and an inverter circuit 85.

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

すなわち、上記パワーオンキーとしてのYESキー(イ
コールキー)12hの投入により、上記CPU28から
キー人カ割込み信号が供給される。
In other words, when the YES key (equal key) 12h is pressed as the power-on key, a key interruption 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″が供給されている。これ
により、上記ナンド回路8oの出力により、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 8o causes the FF circuit 8
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 is operated by 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,
If the FF circuit 131 is set, the oscillation circuit 67 is determined to be normal; if 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
O28は、クロック選択信号として“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
O28 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 outputted to the CPU 28 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 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. 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.

またこのとき、CPU28からの強制ストップ信号(“
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”信
号)をアンド回路−29= 132に供給する。これにより、FF回路86から低速
クロックが出力された状態で、発振回路67がディセー
ブル状態となり、発振回路67は発振を停止する。
Additionally, if it is determined that the oscillation circuit 67 is abnormal, the CPU 28
supplies a forced stop signal (“0” signal) to the AND circuit −29=132 while supplying 1″ as a clock selection signal to the data input end of the FF circuit 77. In the state in which the oscillation circuit 67 is outputted, the oscillation circuit 67 enters a disabled state, and the oscillation circuit 67 stops oscillating.

この結果、時計用クロックがCPU28に出力される。As a result, a clock is output to the CPU 28.

したがって、CPU28はFF回路86からの低速クロ
ックにより動作し、種々の処理を行なう。
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 pinary 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 becomes "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を順次介して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 outputted to the CPU 28 via the inverter circuits 72, 73, the NAND circuits 75, 80, the inverter circuits 85, and the NAND circuits 86 in sequence.

これにより、クロック選択信号をII O#とすること
により、FF回路74で同期がとられ、時計用クロック
(低速クロック)から高速クロックに切替わり、CPU
28は高速クロックにより動作し、上記取引成立コード
の算出を行なうようになっている。
As a result, by setting the clock selection signal to II O#, 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 calculates the transaction completion code.

そのCPU28による取引成立コードの算出の後、CP
U28はクロック選択信号を“1”とすることにより、
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 “1”, 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 clock for the watch is 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.

またこのとき、CPU28からの強制ストップ信号がア
ンド回路132に供給されることにより、アンド回路1
32のゲートが閉じられる。これにより、発振回路67
がディセーブル状態となり、発振回路67は発振を停止
する。
At this time, a forced stop signal from the CPU 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.

−33= 次に、処理を終了し、停止状態(スタンバイ状態)とす
る場合について説明する。すなわち、CPU28は、停
止信号HALTをFF回路62のクロック入力端ckに
供給する。すると、FF回路62がセットし、このセッ
ト出力がFF回路63のデータ入力端りに供給される。
-33= Next, a case will be described in which the processing is ended and the process is brought to a halt 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
001このカウンタ100からの信号を計数することに
より、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.
001 The counter 101 is configured to count the signals from the counter 100 and output a signal every 24 hours, that is, every day.

ここに、上記カウンタ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時間ごとのカウンタ9
6.101からの信号により、上記CPU28へ日付更
新の割込み要求を出力する。
In addition, the year, month, day, and day of the week are displayed on the counter 9 every 24 hours.
6. In response to the signal from 101, an interrupt request for updating the date is output to the CPU 28.

これにより、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は上述したように、停止(HAL
T)状態となっている。
First, we will explain the offline function used by the card alone. That is, in this IC card 10, normally only the clock operates, and the CPU 28 stops (HAL) as described above.
T) 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に供給され、C、P U 28の停止(H
ALT)状態が解除される。この後、前述したような起
動処理が行なわれる。
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 C and P U 28 are stopped (H
ALT) state is released. After this, the startup process as described above is performed.

このCPO28の起動後、CPU28は上記カレンダ回
路33内のカウンタ97〜101から表示用時計に対す
る秒、分、時を読出し、またデータメモリ31から表示
用時計に対する年月日および曜日を読出し、指定された
フォーマットに変換し、表示部制御回路35に出力する
。これにより、表示部制御回路35は、内部のキャラク
タジェネレータ(図示しない)を用いて文字パターンに
変換し、表示部ドライバ36を用いて日付、時刻とを交
互に表示部13で表示する。
After the CPO 28 is activated, 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.

また、上記CPO28の起動時に、バッテリチエツク回
路24をアクセスし、バッテリ25の電圧値をチエツク
する。このチエツクの結果、バッテリ25の電圧値が低
下していた場合、CPU28は表示部13でrCALL
  BANKJなどのメツセージを表示し、これ以後の
オフラインでのICカード10の使用を禁止する。
Furthermore, when the CPO 28 is activated, the battery check circuit 24 is accessed to check the voltage value of the battery 25. 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.

すなわち、」二記CPU28の起動時に、CPU28か
らエンベロープ信号が供給され、インバータ回路144
を介して半導体スイッチ141、142のベースに供給
される。すると、半導体スイッチ141.142がオン
し、ツェナーダイオード149によって生成される基準
電圧Vrefが差動増幅器145の非反転入力端に印加
される。
That is, when the CPU 28 starts up, the envelope signal is supplied from the CPU 28, and the inverter circuit 144
It is supplied to the bases of semiconductor switches 141 and 142 via. 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とで分圧したチエツク電圧V。Hが差
動増幅器145の反転入力端に印加される。
Also, the voltage value VDD of the internal battery 25 is set to the variable resistor 1.
Check voltage V 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カード]
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, informs the operator that the battery has reached the end of its life, and uses the IC card offline from now on]
Prohibit the use of 0.

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

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

上記日付、時刻の表示状態で、モード選択キーとしての
加算キー120を投入することにより、順次別のモード
の表示を行なう。これにより、取引モードを表示してい
る際に、YESキー12hが投入されると、そのモード
が選択され、CPU28は表示部13で受付メツセージ
と暗証番号の入力要求を表示する。
By pressing the addition key 120 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により暗証番号を投入する。すると、
CPU28はカードに登録されている正しい暗証番号の
入力か否かをチエツクし、正しい暗証が投入された場合
、次の動作へ移行する。
When the above-mentioned password input request is displayed, the card user inputs the password using the numeric keypad 12b. Then,
The CPU 28 checks whether 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は乱数により取引成立コード
を発生し、その結果と買物類とを表示部13で交互に表
示する。上記取引成立コードの発生が行なわれた後、C
PU28はクロック制御回路26にクロック選択信号と
して“1”信号を出力する。これにより、クロック制御
回路26からCPU28への駆動クロックを高速クロッ
クから低速クロック(時計用クロック)へ戻して= 4
2− おく。
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 the shopping items alternately on the display unit 13. 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 drive 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) = 4
2- Leave.

この時点で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 the 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からの指令を待 44 一 つ〇 端末機16は通信モードを正常に受取ると、以後、端末
機16のアプリケーションにした力くって、ICカード
10に対してデータの要求を行なったり、データの書換
えをおよび新規登録をしたりする。
In the online mode, the data communication arrangements prepared in the IC card 10 are first sent to the terminal 16, and then the terminal 16 waits for a command from the terminal 16. Once received, the terminal 16 uses the application to request data from the IC card 10, rewrite the 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.

上記したように、バッテリチエ・ツク回路内の被検査電
圧を発生するための1つの抵抗をLSIの外部に設け、
製造時に、適正な抵抗値のものを選択するようにしたの
で、バ・ソテリの電圧低下を常に正確な検知点で行なう
ことができる。
As mentioned above, one resistor for generating the voltage to be tested in the battery check circuit is provided outside the LSI,
Since a suitable resistance value is selected at the time of manufacture, the voltage drop of the battery can always be detected at an accurate detection point.

なお、前記実施例では、ICカードを用(またが、これ
に限らず、データメモリと制御素子とを有し、選択的に
外部から入出力を行うものであれば良く、形状もカード
状でなく、棒状など他の形状であっても良い。
Note that in the above embodiment, an IC card is used (but is not limited to this; any card having a data memory and a control element and capable of selectively inputting/outputting from the outside may be used, and the shape is also card-like). Instead, it may have another shape such as a rod shape.

[発明の効果] 以上詳述したようにこの発明によれば、電池の電圧低下
の検知を正確な検知点で行なうことができる携帯可能媒
体を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, it is possible to provide a portable medium that can detect a battery voltage drop at an accurate detection point.

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

図面はこの発明の一実施例を説明するためのもので、第
1図はバッテリチエツク回路の構成を示す図、第2図は
ICカードの電気回路の概略構成を示す図、第3図はI
Cカードの構成を示す平面図、第4図はICカードを取
扱う端末機を示す図、第5図は電源制御回路の構成例を
示す図、第6図は第5図における要部の動作を説明する
ためのタイミングチャート、第7図はクロック制御回路
の構成を示す図、第8図はカレンダ回路の概略構成ブロ
ック図、第9図は分周回路からの信号の出力タイミング
を示す図、第10図はバッテリ低下検知時の動作を説明
するためのフローチャート、第11図はLSIに対する
外部検査装置の接続状態を説明するための図である。 10・・・ICカード(携帯可能媒体)、11・・・コ
ンタクト部、12・・・キーボード部、12b・・・テ
ンキー、12c・・・加算キー、12h・・・イコール
キー、13・・・表示部、24・・・バッテリチエツク
回路、25・・・内部バッテリ(電池)、28・・・C
PU (制御素子)、141.142・・・半導体スイ
ッチ、147・・・抵抗、150・・・LSI、160
・・・外部検査装置。 出願人代理人 弁理士 鈴江武彦 第10図 第11図
The drawings are for explaining one embodiment of the present invention, and FIG. 1 shows the configuration of the battery check circuit, FIG. 2 shows the schematic configuration of the electric circuit of the IC card, and FIG. 3 shows the I/O circuit.
FIG. 4 is a plan view showing the configuration of a C card, FIG. 4 is a diagram showing a terminal device that handles IC cards, FIG. 5 is a diagram showing an example of the configuration of a power supply control circuit, and FIG. 7 is a diagram showing the configuration of the clock control circuit, FIG. 8 is a schematic block diagram of the calendar circuit, FIG. 9 is a diagram showing the output timing of the signal from the frequency dividing circuit, and FIG. FIG. 10 is a flowchart for explaining the operation when a low battery is detected, and FIG. 11 is a diagram for explaining the connection state of the external testing device to the LSI. DESCRIPTION OF SYMBOLS 10... IC card (portable medium), 11... Contact part, 12... Keyboard part, 12b... Numeric keypad, 12c... Addition key, 12h... Equal key, 13... Display unit, 24...Battery check circuit, 25...Internal battery (battery), 28...C
PU (control element), 141.142...Semiconductor switch, 147...Resistor, 150...LSI, 160
...External inspection equipment. Applicant's agent Patent attorney Takehiko Suzue Figure 10 Figure 11

Claims (3)

【特許請求の範囲】[Claims] (1) 少なくとも制御素子を有する携帯可能媒体にお
いて、 上記制御素子に電力を供給する電池と、 製造時にあらかじめ設定可能な抵抗を用いて、上記電池
の電圧から被検査電圧を発生する電圧発生手段と、 この電圧発生手段からの被検査電圧と基準電圧とを比較
することにより、上記電池の電圧を検知する検知手段と
、 を具備したことを特徴とする携帯可能媒体。
(1) In a portable medium having at least a control element, a battery that supplies power to the control element, and a voltage generating means that generates a voltage to be tested from the voltage of the battery using a resistance that can be set in advance during manufacturing. , a detection means for detecting the voltage of the battery by comparing the voltage to be tested from the voltage generation means with a reference voltage.
(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 detection by the detection means is performed only when necessary.
JP62285917A 1987-11-12 1987-11-12 Portable medium Pending JPH01126788A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62285917A JPH01126788A (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
JP62285917A JPH01126788A (en) 1987-11-12 1987-11-12 Portable medium

Publications (1)

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

Family

ID=17697687

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH01126788A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008533551A (en) * 2005-01-20 2008-08-21 インテリジェント・デバイシーズ・インコーポレーテッド Assembly, production and quality assurance processes for electronic compliance monitor (ECM) tags

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008533551A (en) * 2005-01-20 2008-08-21 インテリジェント・デバイシーズ・インコーポレーテッド Assembly, production and quality assurance processes for electronic compliance monitor (ECM) tags

Similar Documents

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