JP4757715B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP4757715B2
JP4757715B2 JP2006159241A JP2006159241A JP4757715B2 JP 4757715 B2 JP4757715 B2 JP 4757715B2 JP 2006159241 A JP2006159241 A JP 2006159241A JP 2006159241 A JP2006159241 A JP 2006159241A JP 4757715 B2 JP4757715 B2 JP 4757715B2
Authority
JP
Japan
Prior art keywords
control
power supply
power
main
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.)
Active
Application number
JP2006159241A
Other languages
Japanese (ja)
Other versions
JP2007325745A (en
Inventor
信夫 海老原
一 青木
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.)
Universal Entertainment Corp
Original Assignee
Universal Entertainment 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 Universal Entertainment Corp filed Critical Universal Entertainment Corp
Priority to JP2006159241A priority Critical patent/JP4757715B2/en
Publication of JP2007325745A publication Critical patent/JP2007325745A/en
Application granted granted Critical
Publication of JP4757715B2 publication Critical patent/JP4757715B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、電源供給が遮断されるとレジスタの値をスタックエリアへ退避させ、電源供給が復帰すると、退避させておいたレジスタの値を復帰させて制御状態を電源断時前の状態に復旧させる処理を行う遊技機に関するものである。   The present invention saves the register value to the stack area when the power supply is cut off, and restores the saved register value when the power supply is restored to restore the control state to the state before the power cut off. The present invention relates to a gaming machine that performs processing.

従来この種の遊技機としては、例えば、下記の特許文献1に開示されている遊技機がある。この従来の遊技機では、電源基板に設けられた電源監視用ICによって供給電源であるVSL電源の電圧が監視され、VSL電源の電圧が所定の電圧に低下すると、主基板および払出制御基板に設けられた各CPUのマスク不能割込み(NMI)端子へ電源断信号が出力される。この電源断信号の出力により、主基板および払出制御基板において、バックアップRAMにレジスタなどの記憶内容を退避させるための電源断時処理が行われる。また供給電源電圧が低下し、電源供給が不安定な状態においてバックアップRAMに記憶された記憶内容が破壊されないように、電源断時処理においてバックアップRAMへのアクセスが禁止される。   Conventionally, as this type of gaming machine, for example, there is a gaming machine disclosed in Patent Document 1 below. In this conventional gaming machine, the voltage of the VSL power supply, which is the power supply, is monitored by the power monitoring IC provided on the power supply board. When the voltage of the VSL power supply drops to a predetermined voltage, it is provided on the main board and the payout control board. A power-off signal is output to the non-maskable interrupt (NMI) terminal of each CPU. By the output of the power-off signal, a power-off process for saving stored contents such as a register in the backup RAM is performed on the main board and the payout control board. Further, access to the backup RAM is prohibited in the power-off process so that the stored contents stored in the backup RAM are not destroyed when the power supply voltage is lowered and the power supply is unstable.

また、電源が復帰し、システムリセット回路におけるVSL電源の電圧が一定値以上となったことを条件としてリセットICから出力されるシステムリセット信号の出力を停止することにより、CPUへのシステムリセットが解除されてプログラムが実行され、これに伴ってバックアップRAMへのアクセスが許可される。このとき、スタックエリアに退避されているレジスタの値を復帰させる復旧処理が行なわれ、各CPUによる制御が電源断時前の状態へ復帰する。
特開2002−085655号公報
In addition, the system reset to the CPU is canceled by stopping the output of the system reset signal output from the reset IC on condition that the power supply is restored and the voltage of the VSL power supply in the system reset circuit becomes a certain value or more. Then, the program is executed, and access to the backup RAM is permitted accordingly. At this time, a restoration process for restoring the value of the register saved in the stack area is performed, and the control by each CPU is restored to the state before the power-off.
Japanese Patent Application Laid-Open No. 2002-085655

上記従来の遊技機では、電源断信号が出力されるVSL電源の電圧よりもシステムリセット信号がローレベルになってシステムリセット状態となるVSL電源の電圧の方が低いため、電源断時、電源断信号の出力に応じて電源断時処理が確実に行われて完了してから、リセットICよりシステムリセット信号が出力されてシステムリセット状態となるように構成されている。また、電源復帰時には、リセットICに接続されたコンデンサ等による遅延回路によってリセットICに電源が投入されて主基板へシステムリセット信号が出力された後、一定遅延時間の経過後に、システムリセット信号の出力を停止させて主基板の起動を遅延させているため、先に起動した演出制御基板や払出制御基板が主基板からの制御コマンドを確実に受信して実行させるために、電源復帰とともに復旧処理が実行されないように構成されている。   In the conventional gaming machine described above, since the voltage of the VSL power supply that enters the system reset state because the system reset signal is at a low level is lower than the voltage of the VSL power supply from which the power cut-off signal is output. A system reset signal is output from the reset IC to enter a system reset state after the power-off process is reliably performed and completed according to the signal output. When power is restored, the reset IC is turned on by a delay circuit such as a capacitor connected to the reset IC and the system reset signal is output to the main board. After a certain delay time has elapsed, the system reset signal is output. Since the activation of the main board is delayed and the effect control board and the payout control board that have been activated first receive and execute control commands from the main board without fail, recovery processing is performed when the power is restored. It is configured not to run.

しかしながら、例えば、電源供給が開始された直後等に、システムリセットが解除されてプログラムが開始し始めた状態であるにもかかわらず、電源供給状態が不安定な状態で電源の瞬断等の不測の事故やノイズが発生して、供給電源の電圧が十分でないことにより、或いは、不正行為等により、電源断信号がNMI端子へ出力され、電断時処理が実行されてしまうおそれがある。   However, for example, immediately after the power supply is started, the system reset is released and the program starts. There is a possibility that a power-off signal is output to the NMI terminal due to an accident or noise, the voltage of the power supply is not sufficient, or an illegal action, etc., and the process at the time of power-off is executed.

システムリセットが解除されてバックアップRAMへのアクセスが許可された状態で上記したような事象が発生すると、スタックエリアにおけるレジスタの値が復旧処理によって復帰されない状態で電断時処理が実行されることがある。この場合、既に退避されたレジスタの値がスタックエリアにある状態で、さらにレジスタの値がスタックされることとなり、スタックの容量をオーバー(スタックオーバーフロー)してしまうことになる。このスタックオーバーフローを起こすと、バックアップRAMに記憶された内容が破壊され、正常なバックアップ復帰が行われないばかりか、遊技機自体の制御の破壊を招くこととなる。   If an event such as that described above occurs while the system reset is released and access to the backup RAM is permitted, the power interruption process may be executed in a state where the register values in the stack area are not restored by the recovery process. is there. In this case, in the state where the saved register value is in the stack area, the register value is further stacked, and the stack capacity is exceeded (stack overflow). When this stack overflow occurs, the contents stored in the backup RAM are destroyed, and not only normal backup recovery is not performed, but also control of the gaming machine itself is destroyed.

本発明はこのような課題を解決するためになされたもので、遊技処理を制御する制御手段と、この制御手段の制御に用いられるレジスタの値が退避されるスタックエリアを有する記憶手段と、供給電源からの電源供給が遮断された時でも記憶手段へその動作電源を供給して記憶手段の記憶内容を保持させるバックアップ電源と、供給電源の電圧を監視し、供給電源の電圧が所定の電圧に低下したときに制御手段へ検出信号を出力する電源監視手段とを備え、制御手段は、電源監視手段から検出信号が出力されるとレジスタの値を記憶手段のスタックエリアへ退避させるとともに、制御状態を検知信号が検知されたときの状態に復旧するために必要なデータを記憶手段に保存した後、記憶手段へのアクセスを禁止する処理を行う電源断時処理と、所定の復帰条件が成立したときに記憶手段のスタックエリアに退避されていたレジスタの値をレジスタに復帰させるとともに、記憶手段に保存しておいたデータに基づいて制御状態を検知信号が検知されたときの状態に復旧させる復旧処理とを行う遊技機において、制御手段が、供給電源から電源供給が開始されて制御を開始した後、供給電源の電圧が所定の電圧に低下していない状態を確保して、記憶手段へのアクセスを許可するアクセス許可制御手段を有し、前記遊技機は、制御手段からの制御コマンドによって制御を行うサブCPUを有し、前記サブCPUは、副制御基板に設けられ、前記副制御基板は、グラフィックアクセラレータを含むデバイスを備え、前記アクセス許可制御手段は、前記制御手段が前記供給電源から電源供給が開始されて制御を開始した後、予め設定された所定時間が経過するまでは前記制御手段の制御を待機させ、所定時間が経過したことを条件に前記記憶手段へのアクセスを許可し、これにより、前記制御手段は、前記サブCPUの初期化処理が終わってから前記記憶手段へのアクセスを行い、制御を開始させることを特徴とする。 The present invention has been made to solve such a problem, and includes a control means for controlling game processing, a storage means having a stack area in which a register value used for control of the control means is saved, and supply Even when the power supply from the power supply is cut off, the operating power supply to the storage means is supplied to maintain the stored contents of the storage means, and the voltage of the supply power supply is monitored. Power supply monitoring means for outputting a detection signal to the control means when the voltage drops, and when the detection signal is output from the power supply monitoring means, the control means saves the register value to the stack area of the storage means and Power-off processing for performing processing for prohibiting access to the storage means after storing the data necessary to restore the state when the detection signal is detected in the storage means The value of the register saved in the stack area of the storage means is restored to the register when a predetermined return condition is satisfied, and the control state detection signal is detected based on the data saved in the storage means In gaming machines that perform recovery processing to restore to the current state, the control means ensures that the power supply voltage has not dropped to a predetermined voltage after the power supply is started from the power supply and, have a permission control means for permitting access to the storage means, the gaming machine includes a sub CPU for controlling the control command from the control means, the sub-CPU is provided to the sub control board The sub-control board includes a device including a graphic accelerator, and the access permission control means supplies power from the supply power by the control means. After the start and control is started, the control means waits until a predetermined time elapses, and access to the storage means is permitted on the condition that the predetermined time elapses. the control unit performs access after the end initialization process of the sub-CPU to said memory means and Rukoto to start the control.

この構成によれば、供給電源から電源供給が開始されて制御手段が制御を開始した後、電源断時処理が実行されても、供給電源の電圧が所定の電圧に低下していない状態に確保されるまでは、記憶手段へのアクセスが許可されない。このため、記憶手段のスタックエリアへ退避したレジスタの値の復帰が行われていない状態において、既に退避したデータがあるスタックエリアに対し、再度レジスタの値が退避されてしまう多重スタックが起こることが防止できる。この結果、スタックオーバーフローを起こすことが無くなり、記憶手段に記憶された内容が破壊されてしまうことが無くなる。また、電源供給の開始時、記憶手段に記憶された内容が書き換えられないため、電源断時処理が実行された後、電源供給が復帰した場合には、電源断時処理によって記憶手段に保存しておいたデータに基づいて、制御状態を検知信号が検知されたときの状態に復旧させることが出来る。
さらに、制御手段は、所定時間が経過するまで制御を待機する。このため、供給電源の電圧が所定の電圧に低下していない状態となるまでの時間を確保してから、記憶手段へのアクセスが許可されるので、不安定な電圧状態で記憶手段へのアクセスが行なわれてしまうことが確実に防止される。また、制御手段からの制御コマンドによって制御を行なう他の制御手段を有する遊技機に適用した場合には、デバイスの高機能化に伴ってそのデバイスを制御する他の制御手段の初期化処理にかかる時間が長くなっても、制御コマンドを出力する制御手段は初期化処理にかかる時間が長い他の制御手段の初期化処理が終わってから記憶手段へのアクセスを行ない、制御を開始させることが可能となる。従って、各制御手段の間での交信処理が確実に行なわれるようになる。また、制御手段の起動を制御によって遅延させることができるため、遅延回路の性能の限界を超えて制御手段の制御開始を遅延させることができ、ハードウェアの変更が不要となる。従って、遊技機の製造コストが低く抑えられる。
According to this configuration, after the power supply from the power supply is started and the control means starts control, the power supply voltage is ensured not to be lowered to the predetermined voltage even when the power-off process is executed. Until this is done, access to the storage means is not permitted. For this reason, in a state where the value of the register saved in the stack area of the storage means is not restored, multiple stacks may occur in which the register value is saved again for the stack area that already contains saved data. Can be prevented. As a result, stack overflow does not occur, and contents stored in the storage means are not destroyed. In addition, since the contents stored in the storage means cannot be rewritten at the start of power supply, if the power supply is restored after the power-off process is executed, it is saved in the storage means by the power-off process. Based on the stored data, the control state can be restored to the state when the detection signal is detected.
Further, the control unit waits for control until a predetermined time elapses. For this reason, since access to the storage means is permitted after securing the time until the voltage of the power supply does not drop to the predetermined voltage, access to the storage means in an unstable voltage state Is reliably prevented. In addition, when applied to a gaming machine having other control means that performs control according to a control command from the control means, it takes an initialization process of other control means that controls the device as the function of the device increases. Even if the time is long, the control means that outputs the control command can start the control by accessing the storage means after the initialization process of the other control means that takes a long time to complete the initialization process. It becomes. Therefore, the communication process between the control means is surely performed. In addition, since the activation of the control means can be delayed by control, the control start of the control means can be delayed beyond the limit of the performance of the delay circuit, and no hardware change is required. Therefore, the manufacturing cost of the gaming machine can be kept low.

また、本発明は、制御手段が、電源断時処理において、電源監視手段の出力を再度検出し、検出信号の出力があったときには電源断時処理を続行し、検出信号の出力がなかったときには電源断時処理が実行される前の処理に復帰することを特徴とする。   Further, according to the present invention, when the control means detects again the output of the power monitoring means in the power-off process, and when the detection signal is output, the power-off process is continued, and when the detection signal is not output. It returns to the process before a process at the time of power-off is performed, It is characterized by the above-mentioned.

この構成によれば、供給電源の電圧が所定の電圧に低下していないのにもかかわらず、ノイズ等によって検出信号が制御手段に入力されて電源断時処理が行なわれてしまう誤動作を防止できる。   According to this configuration, it is possible to prevent a malfunction in which the detection signal is input to the control unit due to noise or the like and the process when the power is cut off is performed even though the voltage of the power supply is not reduced to a predetermined voltage. .

本発明によれば、記憶手段のスタックエリアへ退避したレジスタの値の復帰が行われていない状態において、既に退避したデータがあるスタックエリアに対し、再度レジスタの値が退避されてしまう多重スタックが起こることが防止できる。この結果、スタックオーバーフローを起こすことが無くなり、記憶手段に記憶された内容が破壊されてしまうことが無くなる。また、電源供給の開始時、記憶手段に記憶された内容が書き換えられないため、電源断時処理が実行された後、電源供給が復帰した場合には、電源断時処理によって記憶手段に保存しておいてデータに基づいて、制御状態を検知信号が検知されたときの状態に復旧させることが出来る。   According to the present invention, in a state where the value of the register saved in the stack area of the storage means has not been restored, there is a multiple stack in which the register value is saved again in the stack area where there is already saved data. It can be prevented from happening. As a result, stack overflow does not occur, and contents stored in the storage means are not destroyed. In addition, since the contents stored in the storage means cannot be rewritten at the start of power supply, if the power supply is restored after the power-off process is executed, it is saved in the storage means by the power-off process. The control state can be restored to the state when the detection signal is detected based on the data.

次に、本発明を実施するための最良の形態について説明する。   Next, the best mode for carrying out the present invention will be described.

図1は、本実施形態によるパチンコ機1の正面図である。   FIG. 1 is a front view of a pachinko machine 1 according to the present embodiment.

パチンコ機1の正面には遊技球であるパチンコ球を流下させる遊技盤2が設けられている。この遊技盤2の表面には、流下するパチンコ球の流下方向を変化させる多数の釘が植設されている。なお、同図においては一部の釘のみが記載されている。遊技盤2の下方には上皿3が設けられており、上皿3の下方右側には、レール4を介して遊技盤2へパチンコ球を打ち込む際に操作される発射ハンドル5が設けられている。また、遊技盤2の上方には枠上部飾りランプ6が設けられている。   A game board 2 is provided in front of the pachinko machine 1 to allow the pachinko balls, which are game balls, to flow down. On the surface of the game board 2, a large number of nails for changing the flow direction of the pachinko balls flowing down are implanted. In the figure, only some nails are shown. An upper plate 3 is provided below the game board 2, and a launch handle 5 that is operated when a pachinko ball is driven into the game board 2 via the rail 4 is provided on the lower right side of the upper plate 3. Yes. Further, an upper frame decoration lamp 6 is provided above the game board 2.

遊技盤2の盤面中央には、特別図柄を識別情報として3列に変動表示する液晶表示装置からなる特別図柄表示装置10が設けられている。この特別図柄表示装置10の上方には、普通図柄を構成する緑色LED(発光ダイオード)および赤色LEDが左右に並設された普通図柄表示装置11が設けられている。普通図柄表示装置11の左右には4つのLEDからなる普通図柄始動記憶個数表示部13が設けられている。また、特別図柄表示装置10の下側には4つのLEDからなる特別図柄始動記憶個数表示部12が設けられており、特別図柄表示装置10の左右には普通図柄始動通過口を構成する通過ゲート14が設けられている。また、特別図柄表示装置10の下方には特別図柄始動入賞口を構成する普通電動役物15が設けられている。   In the center of the game board 2 is provided a special symbol display device 10 composed of a liquid crystal display device that displays the special symbols as identification information in three rows. Above the special symbol display device 10 is provided a normal symbol display device 11 in which green LEDs (light emitting diodes) and red LEDs constituting the normal symbol are arranged side by side. On the left and right of the normal symbol display device 11, there are provided normal symbol start memorized number display units 13 made up of four LEDs. Also, a special symbol start memorized number display section 12 made up of four LEDs is provided on the lower side of the special symbol display device 10, and a passage gate that constitutes a normal symbol start passage on the left and right of the special symbol display device 10. 14 is provided. Also, below the special symbol display device 10, a normal electric accessory 15 constituting a special symbol start winning opening is provided.

また、上皿3の上方には、球貸しボタン7a、返却ボタン7b、選択ボタン7c、および決定ボタン7dが設けられている。球貸しボタン7aは、併設されるカードユニット65(図2参照)に挿入されたプリペイドカードの残高の範囲内で、パチンコ球の貸し出しを受けるときに、操作される。返却ボタン7bは、カードユニット65に挿入されているカードを返却させるときに操作される。選択ボタン7cは、特別図柄表示装置10に表示される情報項目を選択するときに操作される。決定ボタン7dは、特別図柄表示装置10に表示される情報項目を決定するときに操作される。   Above the upper plate 3, a ball lending button 7a, a return button 7b, a selection button 7c, and a decision button 7d are provided. The ball lending button 7a is operated when lending a pachinko ball within the range of the balance of the prepaid card inserted in the card unit 65 (see FIG. 2) provided side by side. The return button 7b is operated when the card inserted in the card unit 65 is returned. The selection button 7c is operated when an information item displayed on the special symbol display device 10 is selected. The determination button 7d is operated when determining an information item to be displayed on the special symbol display device 10.

図2は、本実施形態によるパチンコ機1の遊技動作を処理制御する電子回路の主な構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a main configuration of an electronic circuit that controls the gaming operation of the pachinko machine 1 according to the present embodiment.

この電子回路は、主制御基板30に設けられた主制御回路、副制御基板40に設けられた副制御回路、発射制御基板60に設けられた発射制御回路および払出制御基板61に設けられた払出制御回路などから構成されている。主制御基板30は、遊技盤2におけるパチンコ遊技の進行に関する電気的制御を行う遊技制御基板であり、副制御基板40は、主制御基板30からの制御信号および遊技情報に基づいて、各種演出装置による遊技演出の電気的制御を行う演出制御基板である。発射制御基板60の発射制御回路および払出制御基板61の払出制御回路は、主制御基板30からの制御信号および遊技情報に基づいて、パチンコ球の発射や賞球および貸球の払い出しを制御する。   The electronic circuit includes a main control circuit provided on the main control board 30, a sub control circuit provided on the sub control board 40, a launch control circuit provided on the launch control board 60, and a payout provided on the payout control board 61. It consists of a control circuit. The main control board 30 is a game control board that performs electrical control related to the progress of the pachinko game on the game board 2, and the sub control board 40 is based on control signals and game information from the main control board 30, and various effect devices It is an effect control board which performs electrical control of the game effect by. The launch control circuit of the launch control board 60 and the payout control circuit of the payout control board 61 control the launch of pachinko balls and the payout of prize balls and rental balls based on control signals and game information from the main control board 30.

主制御基板30には、遊技処理を制御する制御手段としてメインCPU31が実装されている。メインCPU31は、パチンコ機1の遊技動作を処理制御するためのプログラムが記憶格納されたメインROM(リードオンリメモリ)33や、メインCPU31の制御に用いられるレジスタの値が退避されるスタックエリアを有する記憶手段としてメインRAM(ランダムアクセスメモリ)34を内蔵している。このメインCPU31は、後述するように、電源監視IC71から電断検知信号が出力されると、レジスタの値をメインRAM34のスタックエリアへ退避させるとともに、制御状態を電断検知信号が検知されたときの状態に復旧するために必要なデータをメインRAM34に保存した後、メインRAM34へのアクセスを禁止する処理を行う電源断時処理と、所定の復帰条件が成立したときに、メインRAM34のスタックエリアに退避されていたレジスタの値をレジスタに復帰させるとともに、メインRAM34に保存しておいたデータに基づいて制御状態を電断検知信号が検知されたときの状態に復旧させる復旧処理とを行う。   A main CPU 31 is mounted on the main control board 30 as control means for controlling game processing. The main CPU 31 has a main ROM (read only memory) 33 in which a program for controlling the game operation of the pachinko machine 1 is stored and a stack area in which register values used for the control of the main CPU 31 are saved. A main RAM (random access memory) 34 is incorporated as a storage means. As will be described later, when a power interruption detection signal is output from the power supply monitoring IC 71, the main CPU 31 saves the register value to the stack area of the main RAM 34, and the control state is detected when the power interruption detection signal is detected. After the data necessary for recovering to the above state is stored in the main RAM 34, a power-off process for performing a process for prohibiting access to the main RAM 34, and a stack area of the main RAM 34 when a predetermined return condition is satisfied. Then, the value of the register saved in is restored to the register, and the control process is restored based on the data saved in the main RAM 34 to restore the state when the power failure detection signal is detected.

この復旧処理が行われる上記の所定の復帰条件は、本実施形態では、後述するリセットIC32の入力電圧Vccが4.3[V]を超え、所定時間(3300[msec])が経過し、システムリセット信号Rがローレベル(L)からハイレベル(H)に変化してシステムリセット状態が解除されて、メインCPU31が制御を開始した後、メインRAM34へのアクセスが許可され(図7,S109参照)、バックアップクリアスイッチ19の入力が無く(S110参照)、電断検知フラグが存在し(S111参照)、メインRAM34の作業領域のデータに損傷が無かったとき(S113参照)に、成立する。   In the present embodiment, the above-described predetermined return condition for performing this recovery process is that the input voltage Vcc of a reset IC 32 (to be described later) exceeds 4.3 [V] and a predetermined time (3300 [msec]) elapses. After the reset signal R changes from the low level (L) to the high level (H) and the system reset state is released and the main CPU 31 starts control, access to the main RAM 34 is permitted (see S109 in FIG. 7). This is established when there is no input from the backup clear switch 19 (see S110), the power interruption detection flag is present (see S111), and the work area data in the main RAM 34 is not damaged (see S113).

また、パチンコ機1には、電源基板70に供給電源として電源回路が備えられている。この電源回路は、AC24Vを入力し、各基板30,40,60,61等に直流電源を供給する。電源基板70には図示しないバックアップ電源としての大容量のコンデンサが搭載されており、このコンデンサは、メインCPU31の図示しないバックアップ端子VBBと接続されている。このコンデンサは、電源供給時には充電され、電源供給の遮断時には、充電されたコンデンサから5[V]の電源がメインCPU31に供給されることにより、メインCPU31に内蔵されたメインRAM34への記憶内容が保持される。なお、このメインRAM34はスタックエリアを有しており、このスタックエリアへレジスタ値を退避させ、電源供給の遮断時においてもその内容を保持している。   Further, the pachinko machine 1 is provided with a power supply circuit as a power supply for the power supply board 70. This power supply circuit inputs AC 24V and supplies DC power to each of the substrates 30, 40, 60, 61 and the like. A large capacity capacitor as a backup power source (not shown) is mounted on the power supply board 70, and this capacitor is connected to a backup terminal VBB (not shown) of the main CPU 31. This capacitor is charged when power is supplied, and when the power supply is cut off, 5 [V] power is supplied from the charged capacitor to the main CPU 31, so that the content stored in the main RAM 34 built in the main CPU 31 is stored. Retained. The main RAM 34 has a stack area. Register values are saved in the stack area, and the contents are retained even when the power supply is shut off.

また、電源基板70には、電源回路が出力する供給電源の電圧を監視し、供給電源の電圧が所定の電圧に低下したときに、主制御基板30のメインCPU31および払出制御基板61の払出制御CPU68へ検出信号を出力する電源監視手段として、電源監視IC71が実装されている。この電源監視IC71は、図3に示され、上記のVSB端子およびRESET端子を有している。このRESET端子は、主制御基板30のメインCPU31および払出制御基板61の払出制御CPU68の各NMI端子に接続されている。AC24Vに基づいて生成された供給電源の電圧33[V]が17.2[V]を下回ると、図4(a)に示すように、電源監視IC71のVSB端子に入力される電源電圧Vが33[V]から17.2[V]に低下する。電源監視IC71は、このVSB端子に入力される電源電圧Vの低下によって、供給電源の電圧33[V]の低下を検出し、図4(b)に示すように、電断検知信号Dの電圧レベルを(H)から(L)に低下させ、これを上記の検出信号として各NMI端子へ出力する。メインCPU31および払出制御CPU68は、電断検知信号Dの立下りをそのNMI端子にて検出すると、上記の電源断時処理を実行する。   The power supply board 70 monitors the voltage of the power supply output from the power supply circuit, and when the voltage of the power supply drops to a predetermined voltage, the payout control of the main CPU 31 and the payout control board 61 of the main control board 30. A power monitoring IC 71 is mounted as power monitoring means for outputting a detection signal to the CPU 68. This power supply monitoring IC 71 is shown in FIG. 3, and has the VSB terminal and the RESET terminal. This RESET terminal is connected to each NMI terminal of the main CPU 31 of the main control board 30 and the payout control CPU 68 of the payout control board 61. When the voltage 33 [V] of the power supply generated based on AC24V falls below 17.2 [V], the power supply voltage V input to the VSB terminal of the power supply monitoring IC 71 is changed as shown in FIG. The voltage drops from 33 [V] to 17.2 [V]. The power supply monitoring IC 71 detects a drop in the power supply voltage 33 [V] due to the drop in the power supply voltage V input to the VSB terminal, and the voltage of the power interruption detection signal D as shown in FIG. The level is lowered from (H) to (L), and this is output to each NMI terminal as the detection signal. When the main CPU 31 and the payout control CPU 68 detect the falling edge of the power interruption detection signal D at the NMI terminal, the main CPU 31 and the payout control CPU 68 execute the above-described power-off process.

また、電源の投入時または復帰時に、電源電圧Vの値が17.2[V]を上回ると、電源監視IC71のCT端子に接続されたコンデンサの充電が開始される。コンデンサが充電されてCT端子に印加される電圧が所定の電圧まで上昇すると、電断検知信号Dは、図4(b)に示すように、電源電圧Vの値が17.2[V]を上回ってから所定時間遅れて、その電圧レベルが(L)から(H)に立上がる。メインCPU31は、アクセス許可制御手段を構成しており、電源回路から電源供給が開始されて制御を開始した後、電源監視IC71のRESET端子から電断検知信号Dの立ち下がりがNMI端子に入力されるかを監視することにより、供給電源の電圧33[V]が所定の電圧つまり17.2[V]に低下していない状態を確保して、メインRAM34へのアクセスを許可する(図7,S108,S109参照)。   Further, when the value of the power supply voltage V exceeds 17.2 [V] at the time of turning on or returning the power, charging of the capacitor connected to the CT terminal of the power supply monitoring IC 71 is started. When the capacitor is charged and the voltage applied to the CT terminal rises to a predetermined voltage, the power interruption detection signal D has a value of the power supply voltage V of 17.2 [V] as shown in FIG. The voltage level rises from (L) to (H) after a predetermined time delay. The main CPU 31 constitutes an access permission control means. After power supply is started from the power supply circuit and control is started, the falling edge of the power interruption detection signal D is input to the NMI terminal from the RESET terminal of the power supply monitoring IC 71. By monitoring whether or not the voltage 33 [V] of the power supply is not reduced to a predetermined voltage, that is, 17.2 [V], access to the main RAM 34 is permitted (FIG. 7, (See S108 and S109).

なお、供給電源の電圧33[V]の低下を検出する閾値を17.2[V]としているのは、次の理由による。つまり、遊技球の検出に用いられる後述する各スイッチ14s,15s,16sからメインCPU31へ入力される電圧は12[V]であり、この12[V]の入力電圧が(H)から(L)と立下がることにより、各スイッチ14s,15s,16sでの遊技球の検出が検知される。このため、供給電源の電圧33[V]が12[V]を下回ると、スイッチ入力が無いのにスイッチ入力ありと誤検出する不具合が発生するので、供給電源の電圧33[V]の低下を検出する閾値VSHを12[V]よりも高い17.2[V]とすることにより、この不具合を防止している。 The reason why the threshold value for detecting a decrease in the voltage 33 [V] of the power supply is set to 17.2 [V] is as follows. That is, the voltage input to the main CPU 31 from switches 14s, 15s, and 16s, which will be described later, used for detecting the game ball is 12 [V], and the input voltage of 12 [V] is from (H) to (L). , The detection of the game ball by each of the switches 14s, 15s, 16s is detected. For this reason, if the voltage 33 [V] of the power supply falls below 12 [V], there is a problem of erroneously detecting that there is a switch input even though there is no switch input. This problem is prevented by setting the detected threshold V SH to 17.2 [V] higher than 12 [V].

また、図2に示すように、メインCPU31はSRST端子を有しており、このSRST端子は、主制御基板30に実装されているリセットIC32のRESET端子に接続されている。   As shown in FIG. 2, the main CPU 31 has an SRST terminal, and this SRST terminal is connected to the RESET terminal of the reset IC 32 mounted on the main control board 30.

リセットIC32は、図5に示され、図6(a)に示す入力電圧Vccが印加されるVCC端子、図6(b)に示すウォッチドッグクリア信号Cが入力されるCK端子、3.3[μF]のコンデンサが充電されることによって図6(c)に示すウォッチドッグタイマ信号Tが入力されるTC端子、システムリセット信号RをメインCPU31に出力するRESET端子を有している。   The reset IC 32 is shown in FIG. 5, the VCC terminal to which the input voltage Vcc shown in FIG. 6A is applied, the CK terminal to which the watchdog clear signal C shown in FIG. When the capacitor [μF] is charged, it has a TC terminal to which the watchdog timer signal T shown in FIG. 6C is input, and a RESET terminal for outputting the system reset signal R to the main CPU 31.

電源基板70の電源回路からVCC端子に印加されている入力電圧Vccは、定常的には電源回路から5[V]の電圧が供給されている。VCC端子に印加されている入力電圧Vccが4.3[V]を上回ると、同図(b)に示すように、TC端子に接続されたコンデンサに充電が開始される。TC端子に与えられるウォッチドッグタイマ信号Tは、コンデンサの容量3.3[μF]を1000倍した3300[msec]の遅延時間経過時に所定電圧に達する。ウォッチドッグタイマ信号Tがこの所定電圧に達すると、リセットIC32は、そのRESET端子から出力する同図(d)に示すシステムリセット信号Rを(H)にする。このシステムリセット信号Rの電圧レベル変化がメインCPU31のSRST端子に与えられると、メインCPU31のシステムリセット状態が解除され、メインCPU31はメインROM33に記憶されたプログラムに従って後述するメイン処理(図7参照)の制御を開始する。   The input voltage Vcc applied to the VCC terminal from the power supply circuit of the power supply substrate 70 is constantly supplied with a voltage of 5 [V] from the power supply circuit. When the input voltage Vcc applied to the VCC terminal exceeds 4.3 [V], the capacitor connected to the TC terminal starts to be charged as shown in FIG. The watchdog timer signal T applied to the TC terminal reaches a predetermined voltage when a delay time of 3300 [msec], which is 1000 times the capacitance 3.3 [μF] of the capacitor, has elapsed. When the watchdog timer signal T reaches the predetermined voltage, the reset IC 32 sets the system reset signal R output from the RESET terminal shown in FIG. When the voltage level change of the system reset signal R is applied to the SRST terminal of the main CPU 31, the system reset state of the main CPU 31 is released, and the main CPU 31 performs main processing (to be described later) according to a program stored in the main ROM 33 (see FIG. 7). Start controlling.

なお、システムリセット状態が解除されるまでの時間3300[msec]は、図4(b)に示した電断検知信号Dが(L)から(H)へ立ち上がるまでの時間よりも長く、正常な状態においては、メインCPU31によるメイン処理が実行される際には電断検知信号Dが確実に(H)になっている。   The time 3300 [msec] until the system reset state is released is longer than the time until the power failure detection signal D shown in FIG. 4B rises from (L) to (H), and is normal. In the state, when the main processing by the main CPU 31 is executed, the power interruption detection signal D is reliably (H).

また、本実施形態では、メインCPU31のシステムリセット解除時間が上記のように3300[msec]であるのに対し、払出制御基板61における払出制御CPU68のシステムリセット解除時間は280[msec]と短く設定されている。このため、メインCPU31から送信されるコマンドは、払出制御基板61がコマンド受信可能な状態となった後に送られ、確実に払出制御基板61で受信される。   In the present embodiment, the system reset release time of the main CPU 31 is 3300 [msec] as described above, whereas the system reset release time of the payout control CPU 68 in the payout control board 61 is set as short as 280 [msec]. Has been. For this reason, the command transmitted from the main CPU 31 is sent after the dispensing control board 61 is ready to receive the command, and is reliably received by the dispensing control board 61.

メインCPU31は、その制御を開始すると、2[msec]毎に行う後述するタイマ割込処理(図10参照)により、リセットIC32のCK端子に同図(b)に示すウォッチドッグクリア信号Cを出力する。このウォッチドッグクリア信号Cは、タイマ割込処理によって2[msec]毎にその電圧レベルが(H)と(L)とに交互に変化する。ウォッチドッグタイマ信号Tは、CK端子に入力されるこのウォッチドッグクリア信号Cの立ち下がり変化時にリセットがかけられて、その電圧レベルがゼロに低下する。そして、その後再度TC端子に接続されたコンデンサの充電に伴って電圧レベルを上昇させるが、その次に入力されるウォッチドッグクリア信号Cによって再び、リセットがかけられ、その電圧レベルがゼロに低下した後、再度コンデンサの充電に伴って電圧レベルを上昇させる。   When the control is started, the main CPU 31 outputs a watchdog clear signal C shown in FIG. 5B to the CK terminal of the reset IC 32 by a timer interrupt process (see FIG. 10) described later every 2 [msec]. To do. The voltage level of the watchdog clear signal C alternately changes between (H) and (L) every 2 [msec] by the timer interrupt process. The watchdog timer signal T is reset when the falling edge of the watchdog clear signal C input to the CK terminal changes, and its voltage level drops to zero. Then, the voltage level is raised again with the charge of the capacitor connected to the TC terminal again, but the reset is applied again by the watchdog clear signal C inputted next, and the voltage level is reduced to zero. Thereafter, the voltage level is increased again with the charging of the capacitor.

従って、メインCPU31によってリセットIC32のCK端子にウォッチドッグクリア信号Cが出力されている限り、ウォッチドッグタイマ信号Tは所定電圧に達しないため、リセットIC32のRESET端子からメインCPU31のSRST端子にシステムリセット信号が出力されることはない。しかし、メインCPU31の制御が何らかの原因によって暴走すると、メインCPU31からリセットIC32のCK端子にウォッチドッグクリア信号Cが出力されなくなる。このため、ウォッチドッグタイマ信号Tは図6(c)に示すように所定電圧に達し、システムリセット信号Rは同図(d)に示すようにその電圧レベルが(H)から(L)に変化する。システムリセット信号Rのこの電圧変化がメインCPU31のSRST端子に入力されると、メインCPU31に所定時間システムリセットがかけられ、メインCPU31は処理をプログラムの先頭に戻し、メイン処理を再開する。すなわち、メインCPU31が暴走すると、自動的にシステムリセットがかかってメインCPU31の処理が再開される。   Therefore, as long as the watchdog clear signal C is output to the CK terminal of the reset IC 32 by the main CPU 31, the watchdog timer signal T does not reach a predetermined voltage, so that the system reset is performed from the RESET terminal of the reset IC 32 to the SRST terminal of the main CPU 31. No signal is output. However, if the control of the main CPU 31 runs away for some reason, the watchdog clear signal C is not output from the main CPU 31 to the CK terminal of the reset IC 32. For this reason, the watchdog timer signal T reaches a predetermined voltage as shown in FIG. 6C, and the voltage level of the system reset signal R changes from (H) to (L) as shown in FIG. To do. When this voltage change of the system reset signal R is input to the SRST terminal of the main CPU 31, a system reset is applied to the main CPU 31 for a predetermined time, and the main CPU 31 returns the process to the beginning of the program and resumes the main process. That is, when the main CPU 31 runs out of control, the system is automatically reset and the processing of the main CPU 31 is resumed.

また、メインCPU31には、図2に示すように、後述する各種スイッチやソレノイド等の周辺装置との間で信号を授受するI/Oポート(入出力ポート)35、副制御基板40の副制御回路や発射制御基板60の発射制御回路および払出制御基板61の払出制御回路に制御信号や遊技情報を含んだコマンドを出力するコマンド出力ポート36が接続されている。I/Oポート35およびコマンド出力ポート36からは、メインCPU31から送出される制御信号や遊技情報が周辺装置や各制御基板40,60,61へシリアルに送信される。   Further, as shown in FIG. 2, the main CPU 31 has an I / O port (input / output port) 35 for transmitting / receiving signals to / from peripheral devices such as various switches and solenoids described later, and a sub-control of the sub-control board 40. A command output port 36 for outputting a command including a control signal and game information is connected to the circuit and the launch control circuit of the launch control board 60 and the payout control circuit of the payout control board 61. From the I / O port 35 and the command output port 36, control signals and game information sent from the main CPU 31 are serially transmitted to the peripheral devices and the control boards 40, 60, 61.

また、主制御基板30には、上述した通過ゲート14の内側に設けられ、パチンコ球が通過ゲート14を通過するのを検出する通過ゲートスイッチ14sや、普通電動役物15に入賞したパチンコ球を検出する始動入賞口スイッチ15sが接続されている。また、大入賞口16に入賞したパチンコ球を検出するカウントスイッチ16s、一般入賞口17へ入賞したパチンコ球を検出する一般入賞口スイッチ17sが接続されている。また、主制御基板30には、アクチュエータとして、普通電動役物15の球受入口を拡張する始動入賞口ソレノイド15v、大入賞口16の扉を開閉する大入賞口ソレノイド16vなどが接続されている。また、主制御基板30には、バックアップクリアスイッチ基板が接続されている。バックアップクリアスイッチ基板には、バックアップクリアスイッチ19が実装されている。バックアップクリアスイッチ19は、主制御基板30の主制御回路を構成するメインCPU31に備えられたメインRAM34、および払出制御基板61の払出制御回路を構成する図示しないRAMのバックアップ内容のクリアを指令するバックアップクリア信号を出力する。   Further, the main control board 30 is provided with a passing gate switch 14 s that is provided inside the passing gate 14 described above and detects that the pachinko ball passes through the passing gate 14, and a pachinko ball that has won the ordinary electric accessory 15. A start winning port switch 15s to be detected is connected. Further, a count switch 16 s that detects a pachinko ball that has won a prize winning opening 16 and a general prize opening switch 17 s that detects a pachinko ball that has won a prize in the general winning opening 17 are connected. Further, the main control board 30 is connected with an actuating winning port solenoid 15v for expanding the ball receiving port of the ordinary electric accessory 15 and a large winning port solenoid 16v for opening and closing the door of the large winning port 16 as actuators. . In addition, a backup clear switch board is connected to the main control board 30. A backup clear switch 19 is mounted on the backup clear switch board. The backup clear switch 19 is a backup that instructs to clear the backup contents of the main RAM 34 provided in the main CPU 31 constituting the main control circuit of the main control board 30 and the RAM (not shown) constituting the payout control circuit of the payout control board 61. Output a clear signal.

上記各スイッチ14s,16s,17s、および各アクチュエータ15v,16vは、盤面中継基板80を介して主制御基板30に接続されている。各スイッチ14s,15s,16s,17sがパチンコ球を検出すると、その検出信号は主制御基板30のメインCPU31に入力され、入力される検出信号に応じて、メインCPU31は上記各アクチュエータ15v,16vをそれぞれ駆動制御する。   The switches 14 s, 16 s, 17 s and the actuators 15 v, 16 v are connected to the main control board 30 via the panel relay board 80. When the switches 14s, 15s, 16s, and 17s detect pachinko balls, the detection signals are input to the main CPU 31 of the main control board 30, and the main CPU 31 controls the actuators 15v and 16v according to the input detection signals. Each drive is controlled.

副制御基板40は、特別図柄表示装置(LCD)10に接続されており、LCD10における画像表示を行う画像表示制御を行う。また、副制御基板40は、ランプ・LED48、およびスピーカ49に接続されており、遊技状態に応じてランプ・LED48の発光を制御する電飾制御、およびスピーカ49から効果音を放音させる音制御を行う。ランプ・LED48は、枠上部飾りランプ6,普通図柄表示装置11,特別図柄始動記憶個数表示部12,普通図柄始動記憶個数表示部13等を表している。この副制御基板40には、サブCPU41、プログラムROM42、およびワークRAM43が実装されている。サブCPU41は、中継基板37およびコマンド入力ポート47を介して主制御基板30から受信したコマンドの解釈や、画像制御回路44、ランプ制御回路45、および音声制御回路46への制御指令を行う。プログラムROM42には、サブCPU41がLCD10や、ランプ・LED48、スピーカ49の各動作を処理制御するための制御プログラムが記憶格納されている。ワークRAM43は、サブCPU41が上記制御プログラムに従って処理制御を行う際の一時的な記憶手段となる。   The sub control board 40 is connected to a special symbol display device (LCD) 10 and performs image display control for displaying an image on the LCD 10. In addition, the sub-control board 40 is connected to the lamp / LED 48 and the speaker 49, and the lighting control for controlling the light emission of the lamp / LED 48 according to the gaming state and the sound control for emitting the sound effect from the speaker 49. I do. The lamp / LED 48 represents a frame upper decoration lamp 6, a normal symbol display device 11, a special symbol start memory number display unit 12, a normal symbol start memory number display unit 13, and the like. A sub CPU 41, a program ROM 42, and a work RAM 43 are mounted on the sub control board 40. The sub CPU 41 interprets commands received from the main control board 30 via the relay board 37 and the command input port 47 and issues control commands to the image control circuit 44, the lamp control circuit 45, and the sound control circuit 46. The program ROM 42 stores a control program for the sub CPU 41 to control the operations of the LCD 10, the lamp / LED 48, and the speaker 49. The work RAM 43 serves as a temporary storage unit when the sub CPU 41 performs processing control according to the control program.

画像制御回路44は、サブCPU41からの制御指令に応じてLCD10に表示するための画像データを生成する。メインCPU31は、普通電動役物15へパチンコ球が入賞して始動入賞が発生すると大当り判定を行う。副制御回路は、この大当り判定の結果に対応する態様でLCD10に特別図柄を順次停止表示させ、左図柄と右図柄とが同一図柄で揃って停止表示されるリーチ状態になると、LCD10に特別図柄および演出画を用いてリーチ演出を行う。ランプ制御回路45は、サブCPU41からの駆動信号により、パチンコ機1の遊技状態に応じてランプ・LED48の発光を制御する。音声制御回路46は、サブCPU41からの駆動信号により、スピーカ49を制御する。   The image control circuit 44 generates image data to be displayed on the LCD 10 in accordance with a control command from the sub CPU 41. The main CPU 31 performs a jackpot determination when a pachinko ball wins the normal electric accessory 15 and a start win occurs. The sub control circuit sequentially stops and displays the special symbols on the LCD 10 in a manner corresponding to the result of the big hit determination, and when the left symbol and the right symbol are stopped together and displayed in the same design, the special symbol is displayed on the LCD 10. Reach production is performed using production images. The lamp control circuit 45 controls the light emission of the lamp / LED 48 according to the gaming state of the pachinko machine 1 according to the drive signal from the sub CPU 41. The sound control circuit 46 controls the speaker 49 by a drive signal from the sub CPU 41.

プログラムROM42は複数の演出態様をパターン化して記憶した演出記憶手段を構成しており、主制御基板30におけるメインCPU31,メインROM33,およびメインRAM34、並びに副制御基板40におけるサブCPU41,プログラムROM42,およびワークRAM43は、この演出記憶手段に記憶された演出態様の中から、実行させる演出に応じた演出態様を決定する演出決定手段を構成している。また、LCD10および画像制御回路44、ランプ・LED48およびランプ制御回路45、並びにスピーカ49および音声制御回路46は、演出決定手段によって決定された演出態様に対応した演出を実行する演出手段を構成している。   The program ROM 42 constitutes an effect storage means that stores a plurality of effect modes in a pattern, and stores the main CPU 31, main ROM 33, and main RAM 34 on the main control board 30, and the sub CPU 41, program ROM 42 on the sub control board 40, and The work RAM 43 constitutes an effect determining unit that determines an effect mode corresponding to the effect to be executed from the effect modes stored in the effect storage unit. The LCD 10, the image control circuit 44, the lamp / LED 48, the lamp control circuit 45, the speaker 49, and the audio control circuit 46 constitute an effect unit that executes an effect corresponding to the effect mode determined by the effect determination unit. Yes.

発射制御基板60には、発射ハンドル5の操作に応じて駆動される発射装置64が接続されている。発射制御基板60に構成された発射制御回路は、遊技者による発射ハンドル5の操作に応じて発射装置64を駆動制御し、パチンコ球を遊技盤2へ発射させる。   A launch device 64 that is driven in response to an operation of the launch handle 5 is connected to the launch control board 60. The launch control circuit configured on the launch control board 60 drives and controls the launch device 64 according to the operation of the launch handle 5 by the player, and launches the pachinko ball to the game board 2.

また、払出制御基板61には、払出制御に関わる遊技処理を制御する制御手段としてCPU68が実装されており、また、賞球および貸球を払い出す払出装置63が接続されている。払出制御基板61に構成された払出制御回路は、各種入賞に応じて枠中継基板62を介して主制御基板30から出力される払出コマンドに応じ、払出装置63を駆動制御して賞球を払い出させる。また、払出制御基板61には、パチンコ球の球貸しを要求するカードユニット65が接続されており、このカードユニット65には、前述した球貸しボタン7aおよび返却ボタン7bを備えた球貸し操作パネル66が接続されている。カードユニット65は、球貸しボタン7aおよび返却ボタン7bの操作に応じて払出制御基板61の払出制御回路との間で通信を行う。払出制御回路は、パチンコ球の球貸し要求に応じてカードユニット65から出力される信号に応じて払出装置63を駆動制御して、貸球を払い出させる。   The payout control board 61 is mounted with a CPU 68 as a control means for controlling game processing related to payout control, and is connected to a payout device 63 for paying out winning balls and rental balls. The payout control circuit configured on the payout control board 61 drives and controls the payout device 63 in accordance with a payout command output from the main control board 30 via the frame relay board 62 according to various winnings, and pays out a prize ball. Let it come out. The payout control board 61 is connected to a card unit 65 for requesting the lending of a pachinko ball, and the card lending operation panel having the above-described ball lending button 7a and the return button 7b is connected to the card unit 65. 66 is connected. The card unit 65 communicates with the payout control circuit of the payout control board 61 according to the operation of the ball lending button 7a and the return button 7b. The payout control circuit drives and controls the payout device 63 in accordance with a signal output from the card unit 65 in response to a ball rental request for a pachinko ball, thereby paying out a ball.

次に、本実施形態によるパチンコ機1の遊技動作の処理について説明する。   Next, the game operation process of the pachinko machine 1 according to the present embodiment will be described.

図7は、メインCPU31によって行われるメイン処理のフローチャートである。   FIG. 7 is a flowchart of main processing performed by the main CPU 31.

メイン処理では、まず、メインCPU31によってウォッチドックタイマ初期設定処理が行われ(図7,ステップ(以下Sと記す)101参照)、続いてチップセレクト初期設定処理が行われる(S102)。その後、メインCPU31からリセットIC32へ出力されるウォッチドッグクリア信号Cにクリアデータ(01H)がセットされ、ウォッチドッグクリア信号Cの電圧レベルが(H)にされる(S103)。次に、ウェイト時間(500[msec])がメインRAM34にセットされる(S104)。このウェイト時間は、副制御基板40における初期設定処理が終了するまで、メインCPU31の実質的な制御に待機をかけるためのものである。次に、ウォッチドッグクリア信号Cの電圧レベルが反転させられ(S105)、引き続いてこのウォッチドッグクリア信号CがリセットIC32のCK端子へ出力される(S106)。   In the main process, first, the watchdog timer initial setting process is performed by the main CPU 31 (see FIG. 7, step (hereinafter referred to as S) 101), and then the chip select initial setting process is performed (S102). Thereafter, the clear data (01H) is set in the watchdog clear signal C output from the main CPU 31 to the reset IC 32, and the voltage level of the watchdog clear signal C is set to (H) (S103). Next, a wait time (500 [msec]) is set in the main RAM 34 (S104). This wait time is for waiting for the substantial control of the main CPU 31 until the initial setting process in the sub-control board 40 is completed. Next, the voltage level of the watchdog clear signal C is inverted (S105), and then the watchdog clear signal C is output to the CK terminal of the reset IC 32 (S106).

次に、S104でセットされた500[msec]のウェイト時間が経過したか否かが判断される(S105)。セットしたウェイト時間が経過していない場合には、S105〜S107の処理が繰り返される。この処理により、ウォッチドッグクリア信号Cの電圧レベルが(H)、(L)、(H)、(L)と交互に変化させられて、リセットIC32のCK端子へ出力される。これにより、メインCPU31に不測のシステムリセットがかかるのが防止される。また、S105〜S107の処理が繰り返されることにより、メインCPU31によるメイン処理は、ウェイト時間が経過するまで待機させられる。   Next, it is determined whether or not the wait time of 500 [msec] set in S104 has elapsed (S105). If the set wait time has not elapsed, the processes of S105 to S107 are repeated. By this process, the voltage level of the watchdog clear signal C is alternately changed to (H), (L), (H), and (L), and is output to the CK terminal of the reset IC 32. This prevents an unexpected system reset from being applied to the main CPU 31. Further, by repeating the processes of S105 to S107, the main process by the main CPU 31 is made to wait until the wait time elapses.

次に、S107の判別でウェイト時間が経過したと判別されると、メインCPU31のNMI端子に入力される電断検知信号Dの電圧レベルが、(H)であるか否かが判別される(S108)。電断検知信号Dが(H)になっていなければ電断検知信号Dが(H)となるまでS108の処理が繰り返される。電断検知信号Dが(H)となったことがメインCPU31に検出されると、メインCPU31によってメインRAM34へのアクセスが許可される(S109)。   Next, if it is determined in S107 that the wait time has elapsed, it is determined whether or not the voltage level of the power interruption detection signal D input to the NMI terminal of the main CPU 31 is (H) ( S108). If the power interruption detection signal D is not (H), the process of S108 is repeated until the power interruption detection signal D becomes (H). When the main CPU 31 detects that the power interruption detection signal D has become (H), the main CPU 31 permits access to the main RAM 34 (S109).

次に、バックアップクリアスイッチ19の入力があるか否かが判別される(S110)。バックアップクリアスイッチ19の入力がない場合は、電断検知フラグが有るか否かが判別される(S111)。電断検知フラグは、後述する電源断時処理(図11参照)が正常に実施された場合にセットされる。電断検知フラグが有った場合は、次に、メインRAM34の作業領域損傷チェック処理が行われ(S112)、続いて、このチェック処理で、メインRAM34の作業領域に損傷が有ったか否かが判別される(S113)。メインRAM34の作業領域に損傷が無かった場合には、後述する電源断時処理(図11参照)でメインRAM34に退避させていたスタックポインタが復帰させられる(図8,S114参照)。   Next, it is determined whether or not there is an input from the backup clear switch 19 (S110). If there is no input from the backup clear switch 19, it is determined whether or not there is a power interruption detection flag (S111). The power interruption detection flag is set when a power interruption process (see FIG. 11) described later is normally performed. If there is a power failure detection flag, a work area damage check process of the main RAM 34 is performed (S112). Subsequently, whether or not the work area of the main RAM 34 has been damaged by this check process. Is discriminated (S113). If the work area of the main RAM 34 is not damaged, the stack pointer saved in the main RAM 34 in the power-off process described later (see FIG. 11) is restored (see S114 in FIG. 8).

次に、スイッチ入力バッファのクリア処理が行われ(S115)、続いて、2[msec]で割込発生させる内蔵クロックの動作を設定するCTC動作設定処理が行われる(S116)。次に、副制御基板40等へのシリアル通信を正常に行えるようにするシリアル・イン・アウトの動作設定をするSIO動作設定処理が行われる(S117)。次に、LED出力ポートリフレッシュ処理が行われ(S118)、電源遮断前における遊技状態に応じて状態報知LED(図示しない)が点灯させられる(S119)。その後、電断復帰コマンドの送信が副制御基板40に対して行われる(S120)。   Next, a clear process of the switch input buffer is performed (S115), and then a CTC operation setting process for setting the operation of the internal clock that generates an interrupt at 2 [msec] is performed (S116). Next, an SIO operation setting process is performed for setting the serial in / out operation so that serial communication to the sub-control board 40 and the like can be performed normally (S117). Next, an LED output port refresh process is performed (S118), and a state notification LED (not shown) is turned on according to the gaming state before power-off (S119). Thereafter, a power failure recovery command is transmitted to the sub control board 40 (S120).

次に、割込フラグが禁止状態になっているか否かが判別され(S121)、割込フラグが禁止状態になっていない場合には禁止状態が解除されて割込みが許可される(S122)。S121で割込フラグが禁止状態になっている場合、またはS122の処理が終了すると、後述する電源断時処理(図11参照)でメインRAM34のスタックエリアに退避させられていたレジスタの値がレジスタに復帰させられる(S123)。その後、メインCPU31の処理は、電断検出信号Dが検出された時の処理、すなわち、復帰されたレジスタに含まれるAFレジスタの値に対応するプログラムカウンタの値が示すプログラムアドレスに復帰し、電断時前の処理が再開される。   Next, it is determined whether or not the interrupt flag is in a prohibited state (S121). If the interrupt flag is not in a prohibited state, the prohibited state is released and an interrupt is permitted (S122). When the interrupt flag is disabled in S121, or when the process of S122 ends, the value of the register that has been saved in the stack area of the main RAM 34 in the power-off process (see FIG. 11) described later is stored in the register. (S123). Thereafter, the processing of the main CPU 31 returns to the program address indicated by the value of the program counter corresponding to the value of the AF register included in the restored register, that is, the processing when the power interruption detection signal D is detected. Processing before the interruption is resumed.

S110の判別でバックアップクリアスイッチ19の入力が有った場合、またはS111の判別で電断検知フラグが無かった場合、またはS113の判別でメインRAM34の作業領域に損傷が有った場合には、メインRAM34に記憶されているスタックポインタが初期化され(図9,S124)、メインRAM34の作業領域の先頭アドレスがセットされる(S125)。その後、クリアデータがセットされ(S126)、S125でセットされたアドレスのデータがクリアされたか否かが判別される(S127)。セットされたアドレスのデータがクリアされていなかった場合には、再度、S124〜S126の処理が行われる。一方、セットされたアドレスのデータがクリアされていた場合には、クリアしたアドレスの次のアドレスがセットされる(S128)。そして、このセットされたアドレスが、メインRAM34の作業領域の最終アドレスであるか否かが判別される(129)。最終アドレスでなかった場合には、再度、S126〜S128の処理が行われ、メインRAM34の作業領域の全てがクリアされる。   If the backup clear switch 19 is input in the determination of S110, or if there is no power interruption detection flag in the determination of S111, or if the work area of the main RAM 34 is damaged in the determination of S113, The stack pointer stored in the main RAM 34 is initialized (FIG. 9, S124), and the start address of the work area of the main RAM 34 is set (S125). Thereafter, clear data is set (S126), and it is determined whether or not the data at the address set in S125 has been cleared (S127). If the data at the set address has not been cleared, the processes of S124 to S126 are performed again. On the other hand, if the data at the set address has been cleared, the next address after the cleared address is set (S128). Then, it is determined whether or not the set address is the final address of the work area of the main RAM 34 (129). If it is not the final address, the processing of S126 to S128 is performed again, and all the work area of the main RAM 34 is cleared.

このようにしてメインRAM34の作業領域のクリア処理が終えられると、次に、特別図柄に関するデータの初期化処理が行われる(S130)。続いて、上述したCTC動作設定処理が行われ(S131)、次に、上述したSIO動作設定処理が行われる(S132)。そして、LED出力ポートリフレッシュ処理(S133)、状態報知LEDのクリアデータ出力処理(S134)が行われて、初期化コマンドが副制御基板40へ送信される(S135)。   When the clearing process of the work area of the main RAM 34 is finished in this way, next, the initialization process of data relating to special symbols is performed (S130). Subsequently, the above-described CTC operation setting process is performed (S131), and then the above-described SIO operation setting process is performed (S132). Then, an LED output port refresh process (S133) and a status notification LED clear data output process (S134) are performed, and an initialization command is transmitted to the sub-control board 40 (S135).

次に、割込みが許可され(S136)、後述するタイマ割込処理(図10参照)が実行可能な状態となる。次に、割込み処理の実行をマスクするように割込禁止処理が行われ(S137)、初期値乱数が更新されて(S138)、再度、割込みが許可される(S139)。従って、S138の初期値乱数更新処理(S138)において、後述するタイマ割込処理による乱数更新処理(図10,S4)が同時に行われることはない。   Next, an interrupt is permitted (S136), and a timer interrupt process (see FIG. 10) described later becomes executable. Next, an interrupt prohibition process is performed so as to mask execution of the interrupt process (S137), the initial value random number is updated (S138), and an interrupt is permitted again (S139). Therefore, in the initial value random number update process (S138) of S138, the random number update process (FIG. 10, S4) by the timer interrupt process described later is not performed simultaneously.

次に、システムタイマ監視タイマの値が3であるか否かが判別される(S140)。このシステムタイマ監視タイマの値が3でなければ、S137〜S139の処理が繰り返し行われ。一方、システムタイマ監視タイマの値が3になった場合、つまり、2[msec]の3倍の6[msec]が経過した場合には、システムタイマ監視タイマがリセットされる(S141)。続いて、メインCPU31により、主制御基板30の主制御回路と副制御基板40の副制御回路との同期をとるための待ち時間タイマや、大入賞口開放時間タイマ等、各種のタイマの更新処理が実行される(S142)。次に、メインCPU31によって特別図柄制御処理が行われ(S143)、続いて、普通図柄制御処理が行われる(S144)。   Next, it is determined whether or not the value of the system timer monitoring timer is 3 (S140). If the value of the system timer monitoring timer is not 3, the processes of S137 to S139 are repeated. On the other hand, when the value of the system timer monitoring timer becomes 3, that is, when 6 [msec], which is three times 2 [msec], has elapsed, the system timer monitoring timer is reset (S141). Subsequently, the main CPU 31 performs update processing of various timers such as a waiting time timer for synchronizing the main control circuit of the main control board 30 and the sub control circuit of the sub control board 40, and a prize opening opening time timer. Is executed (S142). Next, a special symbol control process is performed by the main CPU 31 (S143), and then a normal symbol control process is performed (S144).

S143およびS144の各図柄制御処理が終わると、続いて、遊技情報データ生成処理(S145)が行われ、その後、ポート出力処理(S146)が行われる。そして、大入賞口16や一般入賞口17等の制御が行われる入賞口関連コマンド制御処理が行われ(S147)、続いて、記憶・遊技状態コマンド制御処理が行われる(S148)。次に、コマンド出力制御処理(S149)、払出処理(S150)が行われる。この処理が終了すると、S137の処理に戻り、S137〜S150の処理が繰り返して実行される。   When each symbol control process of S143 and S144 is completed, a game information data generation process (S145) is subsequently performed, and then a port output process (S146) is performed. Then, a winning opening related command control process is performed in which the control of the big winning opening 16 and the general winning opening 17 is performed (S147), and then a storage / game state command control process is performed (S148). Next, command output control processing (S149) and payout processing (S150) are performed. When this process ends, the process returns to S137, and the processes of S137 to S150 are repeatedly executed.

図10は、上述したメイン処理が実行される間にメインCPU31によって2[msec]毎に割り込んで行われる、タイマ割込処理の流れを示したフローチャートである。   FIG. 10 is a flowchart showing the flow of the timer interrupt process performed by the main CPU 31 interrupting every 2 [msec] while the main process described above is executed.

このタイマ割込処理では、最初に、メインCPU31によって、割込発生時の各レジスタの値がメインRAM34のスタックエリアに退避させられる(図10,S1参照)。次に、システムタイマ監視タイマに1が加算させられ(S2)、続いて、ウォッチドッグクリア信号Cの電圧レベルが反転させられて、リセットIC32のCK端子へ出力される(S3)。これにより、図6(c)に示したように、ウォッチドッグタイマ信号Tが所定の電圧に達する前にリセットされる。   In this timer interrupt process, first, the main CPU 31 saves the value of each register when an interrupt occurs in the stack area of the main RAM 34 (see S1 in FIG. 10). Next, 1 is added to the system timer monitoring timer (S2), and then the voltage level of the watchdog clear signal C is inverted and output to the CK terminal of the reset IC 32 (S3). As a result, as shown in FIG. 6C, the watchdog timer signal T is reset before reaching a predetermined voltage.

次に、大当り判定等に用いられる大当り判定用乱数値や、上述した初期値乱数値が更新される乱数更新処理が実行される(S4)。この大当り判定用乱数値は、上述した特別図柄制御処理(図9,S143参照)において大当り遊技を行うか否かを決定する際に、メインCPU31によって参照される。次に、メインCPU31によってスイッチ入力処理が行われる(S5)。このスイッチ入力処理では、上述した各スイッチ14s〜17sから出力される検出信号に基づいて、通過ゲート14をパチンコ球が通過したか否かや、普通電動役物15や大入賞口16、一般入賞口17などにパチンコ球が入賞したか否かを検出する処理が行われる。   Next, a random number update process for updating the big hit determination random number value used for the big hit determination and the initial value random value described above is executed (S4). This random number for jackpot determination is referred to by the main CPU 31 when determining whether or not to perform a big hit game in the special symbol control process (see S143 in FIG. 9). Next, switch input processing is performed by the main CPU 31 (S5). In this switch input process, based on the detection signals output from the switches 14s to 17s described above, whether or not the pachinko ball has passed through the passage gate 14, the ordinary electric accessory 15, the big prize opening 16, and the general prize. A process for detecting whether or not a pachinko ball has won a prize in the mouth 17 or the like is performed.

その後、割込発生時の状態へ復帰させるために、メインRAM34のスタックエリアに退避させておいたレジスタの値をレジスタに復帰させるレジスタ復帰処理が行われ(S6)、タイマ割込処理が終了する。このタイマ割込処理が終了すると、本サブルーチンが終了し、メインCPU31によるメイン処理が割込発生時の状態から再び実行される。   Thereafter, in order to return to the state at the time of the occurrence of the interrupt, a register return process for returning the register value saved in the stack area of the main RAM 34 to the register is performed (S6), and the timer interrupt process ends. . When this timer interrupt process ends, this subroutine ends, and the main process by the main CPU 31 is executed again from the state at the time of occurrence of the interrupt.

次に、図11のフローチャートを参照して、メインCPU31によって行われる電源断時処理について説明する。   Next, with reference to the flowchart of FIG. 11, the power-off process performed by the main CPU 31 will be described.

この電源断時処理は、前述したように、電源監視IC71のRESET端子からメインCPU31のNMI端子に入力される電断検知信号Dが(H)から(L)へ立下がると、実行される。   As described above, the power-off process is executed when the power-off detection signal D input from the RESET terminal of the power supply monitoring IC 71 to the NMI terminal of the main CPU 31 falls from (H) to (L).

この電源断時処理においては、まず、電断発生時のプログラムカウンタの値を示すAFレジスタの値がメインRAM34のスタックエリアへ退避される(図11,S11参照)。次に、前述した図7,S108で行った、NMI端子に入力される電断検知信号Dの検出が再度行われる(S12)。この電断検知信号が(H)であった場合には、S11で退避したAFレジスタの値が復帰させられ(S13)、電源断時処理が発生する直前の状態から遊技処理が再開される。   In this power-off process, first, the value of the AF register indicating the value of the program counter at the time of power interruption is saved in the stack area of the main RAM 34 (see S11 in FIG. 11). Next, the detection of the power interruption detection signal D input to the NMI terminal performed in the above-described FIG. 7, S108 is performed again (S12). When the power interruption detection signal is (H), the value of the AF register saved in S11 is restored (S13), and the game process is resumed from the state immediately before the power interruption process occurs.

また、S12の判別で、電断検知信号が(L)であった場合には、既に退避させたAFレジスタ以外のレジスタの各値がメインRAM34のスタックエリアへ退避させられ(S14)、割込状態が割込フラグに反映させられて(S15)、スタックポインタがメインRAM34へ退避させられる(S16)。そして、制御状態を電断検知信号Dが検知されたときの状態に復旧するために必要なデータがメインRAM34に保存された後、作業領域損傷チェック用データ生成処理が行われ(S17)、電断検知フラグがセットされる(S18)。次に、メインRAM34へのアクセスが禁止され(S19)、その後は、メインRAM34へのアクセスが禁止された状態のまま、処理が待機され続けるホールト状態になる。   If it is determined in S12 that the power interruption detection signal is (L), the values of registers other than the previously saved AF register are saved in the stack area of the main RAM 34 (S14), and an interrupt is generated. The state is reflected in the interrupt flag (S15), and the stack pointer is saved in the main RAM 34 (S16). Then, after data necessary for restoring the control state to the state when the power interruption detection signal D is detected is stored in the main RAM 34, a work area damage check data generation process is performed (S17). A disconnection detection flag is set (S18). Next, access to the main RAM 34 is prohibited (S19), and thereafter, a halt state in which the process continues to be waited while the access to the main RAM 34 is prohibited.

このような本実施形態によるパチンコ機1では、電源基板70の電源回路から電源供給が開始されてメインCPU31が制御を開始した後、図11に示す電源断時処理が実行されても、電源監視IC71のVSB端子に入力される電源電圧Vが所定の電圧(17.2[V])に低下していない状態に確保されるまでは、図7,S108およびS109の処理により、メインRAM34へのアクセスが許可されない。このため、メインRAM34のスタックエリアへ退避したレジスタの値の復帰が行われていない状態において、既に退避したデータがあるスタックエリアに対し、再度レジスタの値が退避されてしまう多重スタックが起こることが防止できる。この結果、スタックオーバーフローを起こすことが無くなり、メインRAM34に記憶された内容が破壊されてしまうことが無くなる。また、電源供給の開始時、図7,S109の処理が実施されるまで、メインRAM34に記憶された内容が書き換えられない。このため、電源断時処理が実行された後、電源供給が復帰した場合には、電源断時処理によってメインRAM34に保存しておいたデータに基づいて、制御状態を電断検知信号Dが検知されたときの状態に復旧させることが出来る。   In such a pachinko machine 1 according to the present embodiment, power supply monitoring is performed even when the power-off process shown in FIG. 11 is executed after power supply is started from the power supply circuit of the power supply board 70 and the main CPU 31 starts control. Until the power supply voltage V input to the VSB terminal of the IC 71 is not reduced to a predetermined voltage (17.2 [V]), the processing to the main RAM 34 is performed by the processing of FIGS. Access is not allowed. For this reason, in a state where the value of the register saved in the stack area of the main RAM 34 is not restored, a multiple stack in which the register value is saved again for the stack area where the saved data already exists may occur. Can be prevented. As a result, stack overflow does not occur, and the contents stored in the main RAM 34 are not destroyed. Further, at the start of power supply, the contents stored in the main RAM 34 are not rewritten until the processing of FIG. 7, S109 is performed. Therefore, when the power supply is restored after the power-off process is executed, the power-off detection signal D detects the control state based on the data stored in the main RAM 34 by the power-off process. It can be restored to the state when it was done.

また、本実施形態によるパチンコ機1では、メインCPU31が、電源監視IC71から電断検知信号Dが出力される間は制御を待機し、電源監視IC71から電断検知信号Dが出力されないことを条件にメインRAM34へのアクセスを許可する(図7,S108およびS109参照)ことにより、電源監視IC71のVSB端子に入力される電源電圧Vが17.2[V]に低下していない状態を確保している。このため、電源電圧Vが17.2[V]に低下していない状態を確実に検出することが出来る。このため、不安定な電圧状態でメインRAM34へのアクセスが行われてしまうことが確実に防止される。   In the pachinko machine 1 according to the present embodiment, the main CPU 31 waits for control while the power failure detection signal D is output from the power monitoring IC 71, and the power failure detection signal D is not output from the power monitoring IC 71. By permitting access to the main RAM 34 (see S108 and S109 in FIG. 7), it is ensured that the power supply voltage V input to the VSB terminal of the power supply monitoring IC 71 has not dropped to 17.2 [V]. ing. For this reason, it is possible to reliably detect a state in which the power supply voltage V has not decreased to 17.2 [V]. For this reason, it is reliably prevented that the main RAM 34 is accessed in an unstable voltage state.

また、本実施形態によるパチンコ機1では、メインCPU31が、電源断時処理において、電源監視IC71の出力を再度検出し(図11,S12参照)、電断検知信号Dの出力があったときには電源断時処理を続行し、電断検知信号Dの出力がなかったときには電源断時処理が実行される前の処理に復帰する(図11,S13参照)。このため、電源電圧Vが17.2[V]に低下していないのにもかかわらず、ノイズ等によって電断検知信号DがメインCPU31に入力されて電源断時処理が行なわれてしまう誤動作を防止できる。   Further, in the pachinko machine 1 according to the present embodiment, the main CPU 31 detects again the output of the power monitoring IC 71 in the power-off process (see S12 in FIG. 11), and when the power-off detection signal D is output, When the power interruption detection signal D is not output, the interruption process is continued, and the process returns to the process before the power interruption process is executed (see S13 in FIG. 11). For this reason, even though the power supply voltage V has not decreased to 17.2 [V], a malfunction in which the power failure detection signal D is input to the main CPU 31 due to noise or the like and the power failure processing is performed. Can be prevented.

また、演出制御基板で用いられるグラフィックアクセラレータ等のデバイスについては、近年、高機能化が進んでおり、その初期設定に多大な時間を要する場合がある。このため、コンデンサ等による遅延回路といったハードウェア構成で、主制御基板30におけるメインCPU31の起動を遅延させるには限界がある。そこで、本実施形態によるパチンコ機1では、メインCPU31が、電源基板70の電源回路から電源供給が開始されて制御を開始した後、500[msec]のウェイト時間が経過するまでは制御を待機し(図7,S107参照)、ウェイト時間が経過したことを条件にメインRAM34へのアクセスを許可する(図7,S109参照)ことにより、電源電圧Vが17.2[V]に低下していない状態を確保する。このため、電源電圧Vが17.2[V]に低下していない状態となるまでの時間をウェイト時間によって確保してから、メインRAM34へのアクセスが許可されるので、不安定な電圧状態でメインRAM34へのアクセスが行なわれてしまうことが確実に防止される。また、メインCPU31からの制御コマンドによって制御を行なうサブCPU41を有するパチンコ機1に適用した場合には、副制御基板40におけるグラフィックアクセラレータ等のデバイスの高機能化に伴って、そのデバイスを制御するサブCPU41の初期化処理にかかる時間が長くなっても、制御コマンドを出力するメインCPU31は初期化処理にかかる時間が長いサブCPU41の初期化処理が終わってからメインRAM34へのアクセスを行ない、制御を開始させることが可能になる。従って、メインCPU31およびサブCPU41の間での交信処理が確実に行なわれるようになる。また、メインCPU31の起動を制御によって遅延させることができるため、遅延回路の性能の限界を超えてメインCPU31の制御開始を遅延させることができ、ハードウェアの変更が不要となる。従って、パチンコ機1の製造コストが低く抑えられる。   In addition, devices such as graphic accelerators used in the production control board have been advanced in functionality in recent years, and initial settings thereof can take a lot of time. For this reason, there is a limit in delaying the activation of the main CPU 31 in the main control board 30 with a hardware configuration such as a delay circuit using a capacitor or the like. Therefore, in the pachinko machine 1 according to the present embodiment, the main CPU 31 waits for control until a wait time of 500 [msec] elapses after power supply is started from the power supply circuit of the power supply board 70 and control is started. (Refer to FIG. 7, S107) By permitting access to the main RAM 34 on condition that the wait time has elapsed (see FIG. 7, S109), the power supply voltage V has not decreased to 17.2 [V]. Ensure state. For this reason, since the time until the power supply voltage V is not lowered to 17.2 [V] is secured by the wait time, access to the main RAM 34 is permitted, so that the power supply voltage V is in an unstable voltage state. Access to the main RAM 34 is reliably prevented. Further, when applied to a pachinko machine 1 having a sub CPU 41 that performs control according to a control command from the main CPU 31, a sub-control that controls the device as the graphic accelerator or the like on the sub-control board 40 becomes more sophisticated. Even if the time required for the initialization process of the CPU 41 becomes long, the main CPU 31 that outputs the control command accesses the main RAM 34 after the initialization process of the sub CPU 41 that takes a long time for the initialization process is completed, and performs control. It becomes possible to start. Therefore, the communication process between the main CPU 31 and the sub CPU 41 is surely performed. In addition, since the activation of the main CPU 31 can be delayed by control, the start of control of the main CPU 31 can be delayed beyond the limit of the performance of the delay circuit, and no hardware change is required. Therefore, the manufacturing cost of the pachinko machine 1 can be kept low.

なお、本実施形態においては、図7のS107やS108によってウェイト時間を設けたり、電断検知信号Dの(H)入力を検出することによって、電源電圧Vが17.2[V]に低下していない状態を確保してメインRAM34へのアクセスを許可するようにしたが、この構成に限らず、メインRAM34へのアクセスを許可するときに電源電圧Vが17.2[V]に低下していない状態が確保される構成であればよい。また、本実施形態においては、S104によってウェイト時間を500[msec]に設定したが、この設定に限らず、ウェイト時間は任意に設定することが可能である。   In this embodiment, the power supply voltage V is reduced to 17.2 [V] by setting a wait time in S107 or S108 in FIG. 7 or detecting the (H) input of the power interruption detection signal D. In this case, the power supply voltage V is reduced to 17.2 [V] when access to the main RAM 34 is permitted. It is sufficient if the configuration is such that no state is ensured. In this embodiment, the wait time is set to 500 [msec] in S104. However, the present invention is not limited to this setting, and the wait time can be set arbitrarily.

また、電源断時処理(図11参照)において、電断検知信号Dの再確認処理(図11,S12)を行っていたが、必ずしもこの処理を実行しなくてもよい。   In the power-off process (see FIG. 11), the reconfirmation process (S12 in FIG. 11) of the power interruption detection signal D is performed. However, this process need not necessarily be executed.

また、ウォッチドッグ機能を有するリセットIC32を主制御基板30に実装する構成としたが、電源基板70に実装してもよく、また、ウォッチドッグ機能を有しないで、電源電圧Vが4.3[V]に低下するのを監視する機能のみを備えた構成としてもよい。   In addition, the reset IC 32 having the watchdog function is mounted on the main control board 30, but it may be mounted on the power supply board 70, and the power supply voltage V is 4.3 [ It is good also as a structure provided only with the function which monitors that it falls to V].

また、メイン処理の実行開始時間をウォッチドッグタイマ信号Tによって3300[msec]遅延させるように構成したが(図6(c)参照)、ウォッチドッグ回路だけでなく、ゲート回路等の遅延回路をさらに実装しても良い。または、ゲート回路等の遅延回路をのみを実装して、メイン処理の実行開始時間を遅らすようにしても良い。   Further, the execution start time of the main processing is configured to be delayed by 3300 [msec] by the watchdog timer signal T (see FIG. 6C), but not only the watchdog circuit but also a delay circuit such as a gate circuit is further provided. May be implemented. Alternatively, only a delay circuit such as a gate circuit may be mounted to delay the execution start time of the main process.

上記実施形態においては、本発明による遊技機をパチンコ機1に適用した場合について説明したが、電源供給が遮断されるとレジスタの値をスタックエリアへ退避させ、電源供給が復帰すると、退避させておいたレジスタの値を復帰させて制御状態を電源断時前の状態に復旧させる処理を行うスロットマシンといった他の遊技機に、本発明を適用することも可能である。このような遊技機に本発明を適用した場合においても、上記実施形態と同様な作用効果が奏される。   In the above embodiment, the case where the gaming machine according to the present invention is applied to the pachinko machine 1 has been described. However, when the power supply is cut off, the register value is saved to the stack area, and when the power supply is restored, the value is saved. The present invention can also be applied to other gaming machines such as a slot machine that performs processing to restore the value of the registered register and restore the control state to the state before power-off. Even when the present invention is applied to such a gaming machine, the same effects as the above-described embodiment can be obtained.

本発明の一実施形態によるパチンコ機の外観を示す正面図である。It is a front view which shows the external appearance of the pachinko machine by one Embodiment of this invention. 図1に示すパチンコ機の遊技動作を処理制御する電子回路の主な構成を示すブロック図である。It is a block diagram which shows the main structures of the electronic circuit which carries out process control of the game operation | movement of the pachinko machine shown in FIG. 電源監視ICの入出力端子を示す図である。It is a figure which shows the input / output terminal of power supply monitoring IC. 電源監視ICの動作を示した図である。It is the figure which showed operation | movement of the power supply monitoring IC. リセットICの入出力端子を示す図である。It is a figure which shows the input / output terminal of reset IC. リセットICの動作を示した図である。It is the figure which showed the operation | movement of reset IC. 図1に示すパチンコ機のメイン処理の第1のフローチャートである。It is a 1st flowchart of the main process of the pachinko machine shown in FIG. 図1に示すパチンコ機のメイン処理の第2のフローチャートである。It is a 2nd flowchart of the main process of the pachinko machine shown in FIG. 図1に示すパチンコ機のメイン処理の第3のフローチャートである。It is a 3rd flowchart of the main process of the pachinko machine shown in FIG. 図1に示すパチンコ機のタイマ割込処理のフローチャートである。It is a flowchart of the timer interruption process of the pachinko machine shown in FIG. 図1に示すパチンコ機の電源断時処理のフローチャートである。It is a flowchart of the power-off process of the pachinko machine shown in FIG.

符号の説明Explanation of symbols

1…パチンコ機
2…遊技盤
10…特別図柄表示装置
11…普通図柄表示装置
15…普通電動役物(特別図柄始動入賞口)
30…主制御基板
31…メインCPU(中央演算処理装置)
32…リセットIC
33…メインROM(読み出し専用メモリ)
34…メインRAM(読み書き可能メモリ)
40…副制御基板
61…払出制御基板
70…電源基板
71…電源監視IC
DESCRIPTION OF SYMBOLS 1 ... Pachinko machine 2 ... Game board 10 ... Special symbol display device 11 ... Normal symbol display device 15 ... Normal electric accessory (special symbol start winning opening)
30 ... main control board 31 ... main CPU (central processing unit)
32 ... Reset IC
33 ... Main ROM (read only memory)
34 ... Main RAM (read-write memory)
40 ... Sub-control board 61 ... Discharge control board 70 ... Power supply board 71 ... Power supply monitoring IC

Claims (2)

遊技処理を制御する制御手段と、
この制御手段の制御に用いられるレジスタの値が退避されるスタックエリアを有する記憶手段と、
供給電源からの電源供給が遮断された時でも前記記憶手段へその動作電源を供給して前記記憶手段の記憶内容を保持させるバックアップ電源と、
前記供給電源の電圧を監視し、前記供給電源の電圧が所定の電圧に低下したときに前記制御手段へ検出信号を出力する電源監視手段とを備え、
前記制御手段は、
前記電源監視手段から前記検出信号が出力されると前記レジスタの値を前記記憶手段のスタックエリアへ退避させるとともに、制御状態を前記検知信号が検知されたときの状態に復旧するために必要なデータを前記記憶手段に保存した後、前記記憶手段へのアクセスを禁止する処理を行う電源断時処理と、
所定の復帰条件が成立したときに前記記憶手段のスタックエリアに退避されていたレジスタの値を前記レジスタに復帰させるとともに、前記記憶手段に保存しておいた前記データに基づいて制御状態を前記検知信号が検知されたときの状態に復旧させる復旧処理と
を行う遊技機において、
前記制御手段は、前記記憶手段へのアクセスを許可するアクセス許可制御手段を有し、
前記遊技機は、制御手段からの制御コマンドによって制御を行うサブCPUを有し、
前記サブCPUは、副制御基板に設けられ、前記副制御基板は、グラフィックアクセラレータを含むデバイスを備え、
前記アクセス許可制御手段は、前記制御手段が前記供給電源から電源供給が開始されて制御を開始した後、予め設定された所定時間が経過するまでは前記制御手段の制御を待機させ、所定時間が経過したことを条件に前記記憶手段へのアクセスを許可し、これにより、前記制御手段は、前記サブCPUの初期化処理が終わってから前記記憶手段へのアクセスを行い、制御を開始させることを特徴とした遊技機。
Control means for controlling game processing;
A storage unit having a stack area in which a register value used for control of the control unit is saved;
A backup power supply for supplying the operating power to the storage means and retaining the storage contents of the storage means even when the power supply from the supply power supply is interrupted;
Power supply monitoring means for monitoring the voltage of the power supply and outputting a detection signal to the control means when the voltage of the power supply drops to a predetermined voltage;
The control means includes
When the detection signal is output from the power supply monitoring unit, the value of the register is saved in the stack area of the storage unit, and the data necessary for restoring the control state to the state when the detection signal is detected Power off processing for performing processing for prohibiting access to the storage means after storing the storage means in the storage means;
The value of the register saved in the stack area of the storage means when the predetermined return condition is satisfied is returned to the register, and the control state is detected based on the data saved in the storage means In a gaming machine that performs recovery processing to restore the state when the signal was detected,
The control means have a permission control means for permitting access to pre-term memory unit,
The gaming machine has a sub CPU that performs control according to a control command from a control means,
The sub CPU is provided on a sub control board, and the sub control board includes a device including a graphic accelerator,
The access permission control means waits for the control means to wait until a predetermined time elapses after the control means starts supplying power from the power supply and starts control, and the predetermined time elapsed to allow access to the storage means on condition that, thereby, the control means performs access after completing initialization process of the sub-CPU to said memory means, to start the control Rukoto A gaming machine characterized by
前記制御手段は、前記電源断時処理において、前記電源監視手段の出力を再度検出し、前記検出信号の出力があったときには前記電源断時処理を続行し、前記検出信号の出力がなかったときには前記電源断時処理が実行される前の処理に復帰することを特徴とした請求項1に記載の遊技機。 The control means detects again the output of the power monitoring means in the power-off process, and continues the power-off process when the detection signal is output, and when the detection signal is not output. The gaming machine according to claim 1, wherein the game machine returns to the process before the power-off process is executed.
JP2006159241A 2006-06-08 2006-06-08 Game machine Active JP4757715B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006159241A JP4757715B2 (en) 2006-06-08 2006-06-08 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006159241A JP4757715B2 (en) 2006-06-08 2006-06-08 Game machine

Publications (2)

Publication Number Publication Date
JP2007325745A JP2007325745A (en) 2007-12-20
JP4757715B2 true JP4757715B2 (en) 2011-08-24

Family

ID=38926661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006159241A Active JP4757715B2 (en) 2006-06-08 2006-06-08 Game machine

Country Status (1)

Country Link
JP (1) JP4757715B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5554582B2 (en) * 2010-02-12 2014-07-23 株式会社ユニバーサルエンターテインメント Game machine
JP5024843B1 (en) * 2011-07-26 2012-09-12 株式会社大都技研 Amusement stand
JP5332029B2 (en) * 2012-06-13 2013-11-06 株式会社大都技研 Amusement stand
JP5938677B2 (en) * 2012-08-02 2016-06-22 株式会社ソフイア Game machine
JP5805740B2 (en) * 2013-12-18 2015-11-04 株式会社藤商事 Game machine
JP5805741B2 (en) * 2013-12-18 2015-11-04 株式会社藤商事 Game machine
JP5674228B2 (en) * 2013-12-27 2015-02-25 株式会社三共 Game equipment
JP5890861B2 (en) * 2014-05-28 2016-03-22 株式会社ユニバーサルエンターテインメント Game machine
JP6105772B2 (en) * 2016-02-18 2017-03-29 株式会社ユニバーサルエンターテインメント Game machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4493297B2 (en) * 2003-07-28 2010-06-30 株式会社三共 Game machine

Also Published As

Publication number Publication date
JP2007325745A (en) 2007-12-20

Similar Documents

Publication Publication Date Title
JP4757715B2 (en) Game machine
JP4764442B2 (en) Game machine
JP2004337246A (en) Game machine
JP5282211B2 (en) Game machine
JP2003071093A (en) Game machine
JP2008061707A (en) Game machine
JP4721652B2 (en) Game machine
JP2008029476A (en) Pachinko machine
JP4632375B2 (en) Game machine
JP4493297B2 (en) Game machine
JP5043087B2 (en) Game machine
JP2001300013A (en) Game machine
JP6040350B2 (en) Game machine
JP4493298B2 (en) Game machine
JP5661906B2 (en) Game machine
JP2003164634A (en) Pachinko game machine
JP2007229041A (en) Game machine
JP2006167486A (en) Pinball game machine
JP4085145B2 (en) Game machine
JP2002239110A (en) Game machine
JP2002095802A (en) Game machine
JP4048250B2 (en) Game machine
JP4452698B2 (en) Game machine
JP2001300014A (en) Game machine
JP3817639B2 (en) Game machine

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090413

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090423

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090519

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110317

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110531

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110601

R150 Certificate of patent or registration of utility model

Ref document number: 4757715

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140610

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D02

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D04

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250