JP6231052B2 - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP6231052B2
JP6231052B2 JP2015147355A JP2015147355A JP6231052B2 JP 6231052 B2 JP6231052 B2 JP 6231052B2 JP 2015147355 A JP2015147355 A JP 2015147355A JP 2015147355 A JP2015147355 A JP 2015147355A JP 6231052 B2 JP6231052 B2 JP 6231052B2
Authority
JP
Japan
Prior art keywords
data
transmission
serial
register
board
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
JP2015147355A
Other languages
Japanese (ja)
Other versions
JP2015213799A (en
Inventor
大野 秀樹
秀樹 大野
Original Assignee
株式会社藤商事
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 株式会社藤商事 filed Critical 株式会社藤商事
Priority to JP2015147355A priority Critical patent/JP6231052B2/en
Publication of JP2015213799A publication Critical patent/JP2015213799A/en
Application granted granted Critical
Publication of JP6231052B2 publication Critical patent/JP6231052B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、遊技動作に起因する抽選処理によって大当り状態を発生させる遊技機に関し、特に、高度な演出動作を安定して実行できる遊技機に関する。   The present invention relates to a gaming machine that generates a big hit state by a lottery process caused by a gaming operation, and more particularly to a gaming machine that can stably execute an advanced performance operation.

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示図柄が所定時間変動される。その後、7・7・7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。   A ball game machine such as a pachinko machine has a symbol start opening provided on the game board, a symbol display section for displaying a series of symbol variation patterns by a plurality of display symbols, and a big winning opening for opening and closing the opening and closing plate. Configured. When the detection switch provided at the symbol start port detects the passage of the game ball, the winning state is entered, and after the game ball is paid out as a prize ball, the display symbol is changed for a predetermined time in the symbol display section. Thereafter, when the symbol is stopped in a predetermined manner such as 7, 7, 7, etc., a big hit state is established, and the big winning opening is repeatedly opened to generate a gaming state advantageous to the player.

このような遊技状態を発生させるか否かは、図柄始動口に遊技球が入賞したことを条件に実行される大当り抽選で決定されており、上記の図柄変動動作は、この抽選結果を踏まえたものとなっている。例えば、抽選結果が当選状態である場合には、リーチアクションなどと称される演出動作を20秒前後実行し、その後、特別図柄を整列させている。一方、ハズレ状態の場合にも、同様のリーチアクションが実行されることがあり、この場合には、遊技者は、大当り状態になることを強く念じつつ演出動作の推移を注視することになる。そして、図柄変動動作の終了時に、停止ラインに所定図柄が揃えば、大当り状態であることが遊技者に保証されたことになる。   Whether or not to generate such a game state is determined by a jackpot lottery executed on the condition that a game ball has won at the symbol start opening, and the above symbol variation operation is based on this lottery result. It has become a thing. For example, when the lottery result is in a winning state, an effect operation called reach action or the like is executed for about 20 seconds, and then the special symbols are aligned. On the other hand, a similar reach action may be executed even in the case of a lost state. In this case, the player pays close attention to the big hit state and pays close attention to the transition of the performance operation. When the predetermined symbols are aligned on the stop line at the end of the symbol variation operation, the player is guaranteed to be in the big hit state.

特開2009−11368号公報JP 2009-11368 A

上記した演出動作は、液晶表示装置での画像演出が中心となるが、この画像演出に連動して、各種のランプを点滅させるランプ演出や、遊技者を盛り上げる音声を出力する音声演出や、可動物が移動する可動演出などが実行される。そして、これらの遊技演出を豊富化すればするほど、各制御動作に時間を要するので、回路構成や制御動作を最適化することが望まれる。   The above-mentioned performance operation is centered on the image production on the liquid crystal display device. In conjunction with this image production, a lamp production that blinks various lamps, an audio production that outputs a sound that excites the player, Movable effects such as moving animals are executed. And as these game effects are enriched, it takes time for each control operation, so it is desirable to optimize the circuit configuration and control operation.

本発明は、上記の問題点に鑑みてなされたものであって、CPUの処理負担が増加することなく、複雑高度な演出動作が可能な遊技機を提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a gaming machine capable of performing a complex and advanced performance operation without increasing the processing load on the CPU.

上記の目的を達成するため、本発明は、他の制御手段から受けた制御コマンドに基づいて、ランプを所定態様で発光させてランプ演出を実行する演出制御手段を設けた遊技機であって、前記演出制御手段は、CPUコアからパラレルデータが書込まれる送信データレジスタと、送信データレジスタから転送されたパラレルデータをシリアル出力する送信シフトレジスタと、を有して、クロックパルスに同期して送信シフトレジスタからシリアル信号を出力するシリアル出力ポートを、CPUコアと共に内蔵する単一素子のコンピュータ回路と、前記シリアル出力ポートを経由して、前記コンピュータ回路と一方向通信路で接続されており、各々に固有のアドレスが付与されて、前記シリアル出力ポートに並列接続されてシリアル信号とクロックパルスを共通して受ける複数のドライバと、複数のドライバによって駆動される多数のランプと、を有して構成されており、前記各ドライバは、必要なデータを保持可能な内蔵レジスタを内蔵し、前記一方向通信路を経由して、前記シリアル出力ポートの送信シフトレジスタからシリアル信号を一方向に受けることでランプを発光駆動しており、前記コンピュータ回路のCPUコアは、出力動作を許可設定した前記シリアル出力ポートから、一連のシリアル信号の送信開始を意味する開始コマンドを送信データレジスタに書込むことで、送信シフトレジスタから開始コマンドの出力を開始させる開始手段と、ランプを所定態様で発光駆動するための一連のシリアル信号を、所定のドライバアドレスと、そのドライバの内蔵レジスタを特定して、前記シリアル出力ポートの送信シフトレジスタから出力した後、一連のシリアル信号の送信終了を意味する終了コマンドを送信データレジスタに書込むことで、送信シフトレジスタから終了コマンドの出力を開始させる終了手段と、を実現している。 In order to achieve the above object, the present invention is a gaming machine provided with effect control means for causing a lamp to emit light in a predetermined manner based on a control command received from another control means, the presentation control means comprises a transmission data register parallel data is written from the CPU core, and a transmitting shift register for serially outputting the parallel data transferred from the transmission data register, transmitted in synchronism with the clock pulses A serial output port for outputting a serial signal from the shift register is connected to the computer circuit via a single-element computer circuit built in together with the CPU core and the serial output port through a one-way communication path, A unique address is assigned to the serial output port and connected to the serial output port in parallel. A plurality of drivers commonly receiving a pulse and a plurality of lamps driven by the plurality of drivers, each driver having a built-in register capable of holding necessary data; The lamp is driven to emit light by receiving a serial signal in one direction from the transmission shift register of the serial output port via the one-way communication path, and the CPU core of the computer circuit permits the output operation. from the serial output port, by writing a start command, which means the transmission start of a series of serial signals to the transmission data register, and starting means for Ru to start output of the start command from the transmit shift register, the light-emitting lamp in a predetermined manner Specify a series of serial signals to drive, a predetermined driver address and the internal register of that driver. The after output from the transmission shift register serial output port, by writing end command that means the transmission end of a series of serial signals to the transmission data register, termination means from the transmit shift register Ru to start output of the end command And have been realized .

上記した通り、本発明の遊技機によれば、CPUの処理負担が増加することなく、複雑高度な演出動作が可能な遊技機を実現することができる。   As described above, according to the gaming machine of the present invention, it is possible to realize a gaming machine capable of performing a complex and advanced performance operation without increasing the processing load on the CPU.

実施例に示すパチンコ機の斜視図である。It is a perspective view of the pachinko machine shown in an example. 図1のパチンコ機の遊技盤を図示した正面図である。It is the front view which illustrated the game board of the pachinko machine of FIG. 図1のパチンコ機の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the pachinko machine of FIG. 演出制御部の回路構成を例示するブロック図である。It is a block diagram illustrating a circuit configuration of an effect control unit. デジタルアンプの内部構成を例示するブロック図である。It is a block diagram which illustrates the internal structure of a digital amplifier. 演出制御部のワンチップマイコンの内部構成の要部と動作内容を説明する図面である。It is drawing explaining the principal part and operation | movement content of the internal structure of the one-chip microcomputer of an effect control part. 3つのランプ駆動基板の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of three lamp drive boards. ランプ駆動基板に伝送されるシリアル信号を示すタイムチャートである。It is a time chart which shows the serial signal transmitted to a lamp drive board | substrate. 演出制御部の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of an effect control part. 図9の一部を詳細に示すフローチャートである。10 is a flowchart showing a part of FIG. 9 in detail. センサ信号伝送基板TRNSを説明する回路図及びタイムチャートである。It is the circuit diagram and time chart explaining the sensor signal transmission board | substrate TRNS. 受信動作を実行するシリアルポートの内部構成や動作を説明する図面である。It is a figure explaining the internal structure and operation | movement of a serial port which performs reception operation | movement.

以下、実施例に基づいて本発明を詳細に説明する。図1は、本実施例のパチンコ機GMを示す斜視図である。このパチンコ機GMは、島構造体に着脱可能に装着される矩形枠状の木製外枠1と、外枠1に固着されたヒンジ2を介して開閉可能に枢着される前枠3とで構成されている。この前枠3には、遊技盤5が、裏側からではなく、表側から着脱自在に装着され、その前側には、ガラス扉6と前面板7とが夫々開閉自在に枢着されている。   Hereinafter, the present invention will be described in detail based on examples. FIG. 1 is a perspective view showing a pachinko machine GM of the present embodiment. This pachinko machine GM includes a rectangular frame-shaped wooden outer frame 1 that is detachably mounted on an island structure, and a front frame 3 that is pivotably mounted via a hinge 2 fixed to the outer frame 1. It is configured. A game board 5 is detachably attached to the front frame 3 from the front side, not from the back side, and a glass door 6 and a front plate 7 are pivotally attached to the front side so as to be openable and closable.

ガラス扉6の外周には、LEDランプなどによる電飾ランプが、略C字状に配置されている。一方、ガラス扉6の上部左右位置と下側には、全3個のスピーカが配置されている。上部に配置された2個のスピーカは、各々、左右チャネルR,Lの音声を出力し、下側のスピーカは重低音を出力するよう構成されている。   On the outer periphery of the glass door 6, an electric lamp such as an LED lamp is arranged in a substantially C shape. On the other hand, at the upper left and right positions and the lower side of the glass door 6, all three speakers are arranged. The two speakers arranged in the upper part are each configured to output sound of the left and right channels R and L, and the lower speaker is configured to output heavy bass.

前面板7には、発射用の遊技球を貯留する上皿8が装着され、前枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。   The front plate 7 is provided with an upper plate 8 for storing game balls for launching, and a lower plate 9 for storing game balls overflowing or extracted from the upper plate 8 and a launch handle at the lower part of the front frame 3. 10 are provided. The launch handle 10 is interlocked with the launch motor, and a game ball is launched by a striking rod that operates according to the rotation angle of the launch handle 10.

上皿8の外周面には、チャンスボタン11が設けられている。このチャンスボタン11は、遊技者の左手で操作できる位置に設けられており、遊技者は、発射ハンドル10から右手を離すことなくチャンスボタン11を操作できる。このチャンスボタン11は、通常時には機能していないが、ゲーム状態がボタンチャンス状態となると内蔵ランプが点灯されて操作可能となる。なお、ボタンチャンス状態は、必要に応じて設けられるゲーム状態である。   A chance button 11 is provided on the outer peripheral surface of the upper plate 8. The chance button 11 is provided at a position where it can be operated with the left hand of the player, and the player can operate the chance button 11 without releasing the right hand from the firing handle 10. The chance button 11 does not function normally, but when the game state becomes the button chance state, the built-in lamp is turned on and can be operated. The button chance state is a game state provided as necessary.

上皿8の右部には、カード式球貸し機に対する球貸し操作用の操作パネル12が設けられ、カード残額を3桁の数字で表示する度数表示部と、所定金額分の遊技球の球貸しを指示する球貸しスイッチと、ゲーム終了時にカードの返却を指令する返却スイッチとが設けられている。   On the right side of the upper plate 8, an operation panel 12 for ball lending operation with respect to the card-type ball lending machine is provided, a frequency display unit for displaying the remaining amount of the card with a three-digit number, and a ball of game balls for a predetermined amount A ball lending switch for instructing lending and a return switch for instructing to return the card at the end of the game are provided.

図2に示すように、遊技盤5の表面には、金属製の外レールと内レールとからなるガイドレール13が環状に設けられ、その略中央には、中央開口HOが設けられている。そして、中央開口HOには、大型の液晶カラーディスプレイ(LCD)で構成された表示装置DSが配置されている。   As shown in FIG. 2, a guide rail 13 made of a metal outer rail and an inner rail is provided on the surface of the game board 5 in an annular shape, and a central opening HO is provided at the approximate center thereof. A display device DS composed of a large liquid crystal color display (LCD) is disposed in the central opening HO.

表示装置DSは、大当り状態に係わる特定図柄を変動表示すると共に背景画像や各種のキャラクタなどをアニメーション的に表示する装置である。この表示装置DSは、中央部に特別図柄表示部Da〜Dcと右上部に普通図柄表示部19とを有している。そして、特別図柄表示部Da〜Dcでは、大当り状態の招来を期待させるリーチ演出が実行されることがあり、特別図柄表示部Da〜Dc及びその周りでは、適宜な予告演出などが実行される。   The display device DS is a device that variably displays a specific symbol related to the big hit state and displays a background image and various characters in an animated manner. This display device DS has special symbol display portions Da to Dc in the center portion and a normal symbol display portion 19 in the upper right portion. In the special symbol display portions Da to Dc, there is a case where a reach effect that expects a big hit state is invited, and in the special symbol display portions Da to Dc and the surroundings, an appropriate notice effect is executed.

遊技球が落下移動する遊技領域には、図柄始動口15、大入賞口16、普通入賞口17、及び、ゲート18が配設されている。これらの入賞口15〜18は、それぞれ内部に検出スイッチを有しており、遊技球の通過を検出できるようになっている。   In the game area where the game ball falls and moves, a symbol start port 15, a big winning port 16, a normal winning port 17, and a gate 18 are arranged. Each of these winning openings 15 to 18 has a detection switch inside, and can detect the passage of a game ball.

図柄始動口15は、左右一対の開閉爪15aを備えた電動式チューリップで開閉されるように構成され、普通図柄表示部17の変動後の停止図柄が当り図柄を表示した場合には、所定時間だけ、若しくは、所定個数の遊技球を検出するまで、開閉爪15aが開放されるようになっている。   The symbol start port 15 is configured to be opened and closed by an electric tulip having a pair of left and right opening and closing claws 15a, and when the stop symbol after fluctuation of the normal symbol display unit 17 displays a winning symbol, a predetermined time is displayed. The opening / closing claw 15a is opened only until a predetermined number of game balls are detected.

なお、普通図柄表示部19は、普通図柄を表示するものであり、ゲート18を通過した遊技球が検出されると、普通図柄が所定時間だけ変動し、遊技球のゲート18の通過時点において抽出された抽選用乱数値により決定される停止図柄を表示して停止する。   The normal symbol display unit 19 displays a normal symbol. When a game ball that has passed through the gate 18 is detected, the normal symbol fluctuates for a predetermined time and is extracted when the game ball passes through the gate 18. The stop symbol determined by the selected lottery random value is displayed and stopped.

大入賞口16は、前後方向に進退する開閉板16aを有して構成されている。大入賞口16の動作は、特に限定されないが、典型的な大当り状態では、大入賞口16の開閉板16aが開放された後、所定時間が経過し、又は所定数(例えば10個)の遊技球が入賞すると開閉板16aが閉じる。このような動作は、最大で例えば15回まで継続され、遊技者に有利な状態に制御される。なお、特別図柄表示部Da〜Dcの変動後の停止図柄が特別図柄のうちの特定図柄であった場合には、特別遊技の終了後のゲームが高確率状態(確変状態)となるという特典が付与される。   The special winning opening 16 includes an opening / closing plate 16a that advances and retreats in the front-rear direction. The operation of the special winning opening 16 is not particularly limited, but in a typical big hit state, a predetermined time elapses after the opening / closing plate 16a of the special winning opening 16 is opened, or a predetermined number (for example, ten) of games. When the ball wins, the opening / closing plate 16a is closed. Such an operation is continued up to 15 times, for example, and is controlled in a state advantageous to the player. In addition, when the stop symbol after the change of the special symbol display parts Da to Dc is a specific symbol among the special symbols, there is a privilege that the game after the end of the special game becomes a high probability state (probability variation state). Is granted.

図3は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図である。図示の通り、このパチンコ機GMは、AC24Vを受けて各種の直流電圧や、電源異常信号ABN1、ABN2やシステムリセット信号(電源リセット信号)SYSなどを出力する電源基板20と、遊技制御動作を中心統括的に担う主制御基板21と、主制御基板21から受けた制御コマンドCMDに基づいてランプ演出及び音声演出を実行する演出制御基板22と、演出制御基板22から受けた制御コマンドCMD’に基づいて表示装置DSを駆動する画像制御基板23と、主制御基板21から受けた制御コマンドCMD”に基づいて払出モータMを制御して遊技球を払い出す払出制御基板24と、遊技者の操作に応答して遊技球を発射させる発射制御基板25と、を中心に構成されている。   FIG. 3 is a block diagram showing an overall circuit configuration of the pachinko machine GM that realizes the above-described operations. As shown in the figure, this pachinko machine GM mainly receives a 24V AC and outputs various DC voltages, power supply abnormality signals ABN1, ABN2, a system reset signal (power reset signal) SYS, and the like, and a game control operation. Based on the main control board 21 that performs overall control, the effect control board 22 that executes the lamp effect and the sound effect based on the control command CMD received from the main control board 21, and the control command CMD ′ received from the effect control board 22 The image control board 23 for driving the display device DS, the payout control board 24 for controlling the payout motor M based on the control command CMD "received from the main control board 21, and paying out the game balls. It is mainly composed of a launch control board 25 that responds and launches a game ball.

但し、この実施例では、主制御基板21が出力する制御コマンドCMDは、コマンド中継基板26と演出インタフェイス基板27を経由して、演出制御基板22に伝送される。また、演出制御基板22が出力する制御コマンドCMD’は、演出インタフェイス基板27と画像インタフェイス基板28を経由して、画像制御基板23に伝送され、主制御基板21が出力する制御コマンドCMD”は、主基板中継基板32を経由して、払出制御基板24に伝送される。制御コマンドCMD,CMD’,CMD”は、何れも16ビット長であるが、主制御基板21や払出制御基板24が関係する制御コマンドは、8ビット長毎に2回に分けてパラレル送信されている。一方、演出制御基板22から画像制御基板23に伝送される制御コマンドCMD’は、16ビット長をまとめてパラレル伝送されている。そのため、可動予告演出を含む予告演出を、多様化して多数の制御コマンドを連続的に送受信するような場合でも、迅速にその処理を終えることができ、他の制御動作に支障を与えない。   However, in this embodiment, the control command CMD output from the main control board 21 is transmitted to the effect control board 22 via the command relay board 26 and the effect interface board 27. The control command CMD ′ output from the effect control board 22 is transmitted to the image control board 23 via the effect interface board 27 and the image interface board 28, and is output from the main control board 21. Is transmitted to the payout control board 24 via the main board relay board 32. Although the control commands CMD, CMD ′, and CMD ″ are all 16 bits long, the main control board 21 and the payout control board 24 are used. The control commands related to are transmitted in parallel every two 8 bit lengths. On the other hand, the control command CMD 'transmitted from the effect control board 22 to the image control board 23 is 16 bits in length and transmitted in parallel. Therefore, even when the notification effects including the movable notification effect are diversified and a large number of control commands are continuously transmitted and received, the processing can be completed quickly, and other control operations are not hindered.

ところで、本実施例では、演出インタフェイス基板27と演出制御基板22とは、配線ケーブルを経由することなく、雄型コネクタと雌型コネクタとを直結されて二枚の回路基板が積層されている。同様に、画像インタフェイス基板28と画像制御基板23についても、配線ケーブルを経由することなく、雄型コネクタと雌型コネクタとを直結されて二枚の回路基板が積層されている。そのため、各電子回路の回路構成を複雑高度化しても基板全体の収納空間を最小化できると共に、接続ラインを最短化することで耐ノイズ性を高めることができる。   By the way, in the present embodiment, the production interface board 27 and the production control board 22 are directly connected to each other by a male connector and a female connector without passing through a wiring cable, and two circuit boards are laminated. . Similarly, with respect to the image interface board 28 and the image control board 23, two circuit boards are laminated by directly connecting a male connector and a female connector without going through a wiring cable. Therefore, even if the circuit configuration of each electronic circuit is complicated and sophisticated, the storage space of the entire board can be minimized, and noise resistance can be improved by minimizing the connection lines.

これら主制御基板21、演出制御基板22、画像制御基板23、及び払出制御基板24には、ワンチップマイコンを備えるコンピュータ回路がそれぞれ搭載されている。そこで、これらの制御基板21〜24とインタフェイス基板27〜28に搭載された回路、及びその回路によって実現される動作を機能的に総称して、本明細書では、主制御部21、演出制御部22’、画像制御部23’、及び払出制御部24と言うことがある。すなわち、この実施例では、演出制御基板22と演出インタフェイス基板27とで演出制御部22’を構成し、画像制御基板23と画像インタフェイス基板28とで画像制御部23’を構成している。なお、演出制御部22’、画像制御部23’、及び払出制御部24の全部又は一部がサブ制御部である。   The main control board 21, the effect control board 22, the image control board 23, and the payout control board 24 are each equipped with a computer circuit including a one-chip microcomputer. Therefore, in this specification, the control board 21 to 24, the circuits mounted on the interface boards 27 to 28, and the operations realized by the circuits are generically named. May be referred to as a section 22 ′, an image control section 23 ′, and a payout control section 24. That is, in this embodiment, the effect control board 22 and the effect interface board 27 constitute an effect control part 22 ′, and the image control board 23 and the image interface board 28 constitute an image control part 23 ′. . Note that all or part of the effect control unit 22 ′, the image control unit 23 ′, and the payout control unit 24 are sub-control units.

また、このパチンコ機GMは、図3の破線で囲む枠側部材GM1と、遊技盤5の背面に固定された盤側部材GM2とに大別されている。枠側部材GM1には、ガラス扉6や前面板7が枢着された前枠3と、その外側の木製外枠1とが含まれており、機種の変更に拘わらず、長期間にわたって遊技ホールに固定的に設置される。一方、盤側部材GM2は、機種変更に対応して交換され、新たな盤側部材GM2が、元の盤側部材の代わりに枠側部材GM1に取り付けられる。なお、枠側部材1を除く全てが、盤側部材GM2である。   The pachinko machine GM is roughly divided into a frame side member GM1 surrounded by a broken line in FIG. 3 and a board side member GM2 fixed to the back of the game board 5. The frame side member GM1 includes a front frame 3 on which a glass door 6 and a front plate 7 are pivotally attached, and a wooden outer frame 1 on the outside thereof. Is fixedly installed. On the other hand, the board side member GM2 is replaced in response to the model change, and a new board side member GM2 is attached to the frame side member GM1 instead of the original board side member. All except the frame side member 1 is the panel side member GM2.

図3の破線枠に示す通り、枠側部材GM1には、電源基板20と、払出制御基板24と、発射制御基板25と、枠中継基板35と、ランプ駆動基板36とが含まれており、これらの回路基板が、前枠3の適所に各々固定されている。   As shown in the broken line frame in FIG. 3, the frame side member GM1 includes a power supply board 20, a payout control board 24, a launch control board 25, a frame relay board 35, and a lamp drive board 36. These circuit boards are respectively fixed at appropriate positions of the front frame 3.

ランプ駆動基板36には、複数のLEDが接続されており、これらのLED群を駆動する駆動データSDATAは、シリアル信号として、演出制御基板22→演出インタフェイス基板27→枠中継基板34→枠中継基板35を経由して、ランプ駆動基板36に搭載された複数のドライバDRijに伝送されている。   A plurality of LEDs are connected to the lamp drive board 36, and the drive data SDATA for driving these LED groups is a serial signal, the production control board 22 → the production interface board 27 → the frame relay board 34 → the frame relay. The signal is transmitted to a plurality of drivers DRij mounted on the lamp driving substrate 36 via the substrate 35.

実施例のドライバDRij(ドライバIC)は、各々、LEDや電飾ランプなどのLED群を最高24個まで駆動可能であるが、以下の説明では、ランプ駆動基板36に搭載された5個のドライバDRijによって、合計5×24個のLEDが駆動されているとする(図7参照)。そして、本明細書では、これらのLEDを、便宜上、第0チャンネル(CH0)のLED群と称する。   Each of the drivers DRij (driver ICs) of the embodiment can drive up to 24 LED groups such as LEDs and electric lamps, but in the following description, five drivers mounted on the lamp driving board 36 are used. Assume that a total of 5 × 24 LEDs are driven by DRij (see FIG. 7). In this specification, these LEDs are referred to as a 0th channel (CH0) LED group for convenience.

遊技盤5の背面には、主制御基板21、演出制御基板22、画像制御基板23が、表示装置DSやその他の回路基板と共に固定されている。そして、枠側部材GM1と盤側部材GM2とは、一箇所に集中配置された接続コネクタC1〜C4によって電気的に接続されている。   On the back surface of the game board 5, a main control board 21, an effect control board 22, and an image control board 23 are fixed together with the display device DS and other circuit boards. And the frame side member GM1 and the board | substrate side member GM2 are electrically connected by the connection connectors C1-C4 concentratedly arranged in one place.

電源基板20は、接続コネクタC2を通して、主基板中継基板32に接続され、接続コネクタC3を通して、電源中継基板33に接続されている。電源基板20には、交流電源の投入と遮断とを監視する電源監視部MNTが設けられている。電源監視部MNTは、交流電源が投入されたことを検知すると、所定時間だけシステムリセット信号SYSをLレベルに維持した後に、これをHレベルに遷移させる。   The power supply board 20 is connected to the main board relay board 32 through the connection connector C2, and is connected to the power supply relay board 33 through the connection connector C3. The power supply board 20 is provided with a power supply monitoring unit MNT that monitors whether AC power is turned on or off. When power supply monitoring unit MNT detects that AC power is turned on, it maintains system reset signal SYS at L level for a predetermined time, and then transitions it to H level.

また、電源監視部MNTは、交流電源の遮断を検知すると、電源異常信号ABN1,ABN2を、直ちにLレベルに遷移させる。なお、電源異常信号ABN1,ABN2は、電源投入後に速やかにHレベルとなる。   Further, when power supply monitoring unit MNT detects the interruption of the AC power supply, power supply abnormality signals ABN1 and ABN2 are immediately shifted to the L level. The power supply abnormality signals ABN1 and ABN2 quickly become H level after the power is turned on.

ところで、本実施例のシステムリセット信号は、交流電源に基づく直流電源によって生成されている。そのため、交流電源の投入(通常は電源スイッチのON)を検知してHレベルに増加した後は、直流電源電圧が異常レベルまで低下しない限り、Hレベルを維持する。したがって、直流電源電圧が維持された状態で、交流電源が瞬停状態となっても、システムリセット信号SYSがCPUをリセットすることはない。なお、電源異常信号ABN1,ABN2は、交流電源の瞬停状態でも出力される。   Incidentally, the system reset signal of this embodiment is generated by a DC power supply based on an AC power supply. For this reason, after detecting the turning-on of the AC power supply (usually turning on the power switch) and increasing it to the H level, the H level is maintained unless the DC power supply voltage drops to an abnormal level. Therefore, even if the AC power supply is in an instantaneous power interruption state while the DC power supply voltage is maintained, the system reset signal SYS does not reset the CPU. The power supply abnormality signals ABN1 and ABN2 are also output even when the AC power supply is instantaneously stopped.

主基板中継基板32は、電源基板20から出力される電源異常信号ABN1、バックアップ電源BAK、及びDC5V,DC12V,DC32Vを、そのまま主制御部21に出力している。一方、電源中継基板33は、電源基板20から受けたシステムリセット信号SYSや、交流及び直流の電源電圧を、そのまま演出インタフェイス基板27に出力している。演出インタフェイス基板27は、受けたシステムリセット信号SYSを、そのまま演出制御部22’と画像制御部23’に出力している。   The main board relay board 32 outputs the power abnormality signal ABN1, the backup power supply BAK, and DC5V, DC12V, and DC32V output from the power board 20 to the main control unit 21 as they are. On the other hand, the power relay board 33 outputs the system reset signal SYS received from the power board 20 and the AC and DC power supply voltages to the effect interface board 27 as they are. The effect interface board 27 outputs the received system reset signal SYS to the effect control unit 22 'and the image control unit 23' as it is.

一方、払出制御基板24は、中継基板を介することなく、電源基板20に直結されており、主制御部21が受けると同様の電源異常信号ABN2や、バックアップ電源BAKを、その他の電源電圧と共に直接的に受けている。   On the other hand, the payout control board 24 is directly connected to the power supply board 20 without going through the relay board, and directly receives the same power abnormality signal ABN2 and backup power supply BAK as the main control unit 21 receives together with other power supply voltages. Is receiving.

電源基板20が出力するシステムリセット信号SYSは、電源基板20に交流電源24Vが投入されたことを示す電源リセット信号であり、この電源リセット信号によって演出制御部22’と画像制御部23’のワンチップマイコンは、その他のIC素子と共に電源リセットされるようになっている。   The system reset signal SYS output from the power supply board 20 is a power supply reset signal indicating that the AC power supply 24V has been applied to the power supply board 20, and one of the effect control unit 22 ′ and the image control unit 23 ′ is generated by the power supply reset signal. The chip microcomputer is reset together with other IC elements.

但し、このシステムリセット信号SYSは、主制御部21と払出制御部24には、供給されておらず、各々の回路基板21,24のリセット回路RSTにおいて電源リセット信号(CPUリセット信号)が生成されている。そのため、例えば、接続コネクタC2がガタついたり、或いは、配線ケーブルにノイズが重畳しても、主制御部21や払出制御部24のCPUが異常リセットされるおそれはない。演出制御部22’と画像制御部23’は、主制御部21からの制御コマンドに基づいて、従属的に演出動作を実行することから、回路構成の複雑化を回避するために、電源基板20から出力されるシステムリセット信号SYSを利用している。   However, the system reset signal SYS is not supplied to the main control unit 21 and the payout control unit 24, and a power reset signal (CPU reset signal) is generated in the reset circuit RST of each of the circuit boards 21 and 24. ing. Therefore, for example, even if the connection connector C2 is rattled or noise is superimposed on the wiring cable, there is no possibility that the CPU of the main control unit 21 or the payout control unit 24 is abnormally reset. The production control unit 22 ′ and the image control unit 23 ′ perform production operations dependently on the basis of the control command from the main control unit 21, so that the power supply board 20 is avoided in order to avoid complication of the circuit configuration. The system reset signal SYS output from is used.

ところで、主制御部21や払出制御部24に設けられたリセット回路RSTは、各々ウォッチドッグタイマを内蔵しており、各制御部21,24のCPUから、定時的なクリアパルスを受けない限り、各CPUは強制的にリセットされる。   By the way, the reset circuits RST provided in the main control unit 21 and the payout control unit 24 each have a built-in watchdog timer, and unless a regular clear pulse is received from the CPUs of the control units 21 and 24, Each CPU is forcibly reset.

また、この実施例では、RAMクリア信号CLRは、主制御部21で生成されて主制御部21と払出制御部24のワンチップマイコンに伝送されている。ここで、RAMクリア信号CLRは、各制御部21,24のワンチップマイコンの内蔵RAMの全領域を初期設定するか否かを決定する信号であって、係員が操作する初期化スイッチSWのON/OFF状態に対応した値を有している。   In this embodiment, the RAM clear signal CLR is generated by the main control unit 21 and transmitted to the one-chip microcomputer of the main control unit 21 and the payout control unit 24. Here, the RAM clear signal CLR is a signal for deciding whether or not to initialize all the areas of the built-in RAM of the one-chip microcomputer of each control unit 21 and 24. It has a value corresponding to the / OFF state.

主制御部21及び払出制御部24は、電源基板20から電源異常信号ABN1,ABN2を受けることによって、停電や営業終了に先立って、必要な終了処理を開始するようになっている。また、バックアップ電源BAKは、営業終了や停電により交流電源24Vが遮断された後も、主制御部21と払出制御部24のワンチップマイコンの内蔵RAMのデータを保持するDC5Vの直流電源である。したがって、主制御部21と払出制御部24は、電源遮断前の遊技動作を電源投入後に再開できることになる(電源バックアップ機能)。このパチンコ機では少なくとも数日は、各ワンチップマイコンのRAMの記憶内容が保持されるよう設計されている。   The main control unit 21 and the payout control unit 24 receive the power supply abnormality signals ABN1 and ABN2 from the power supply board 20 to start necessary end processing prior to a power failure or business end. The backup power supply BAK is a DC5V DC power source that retains data in the RAM of the one-chip microcomputer of the main control unit 21 and the payout control unit 24 even after the AC power supply 24V is shut off due to business termination or power failure. Therefore, the main control unit 21 and the payout control unit 24 can resume the game operation before power-off after power-on (power backup function). This pachinko machine is designed to retain the stored contents of the RAM of each one-chip microcomputer for at least several days.

図3に示す通り、主制御部21は、主基板中継基板32を経由して、払出制御部24に制御コマンドCMD”を送信する一方、払出制御部24からは、遊技球の払出動作を示す賞球計数信号や、払出動作の異常に係わるステイタス信号CONや、動作開始信号BGNを受信している。ステイタス信号CONには、例えば、補給切れ信号、払出不足エラー信号、下皿満杯信号が含まれる。動作開始信号BGNは、電源投入後、払出制御部24の初期動作が完了したことを主制御部21に通知する信号である。   As shown in FIG. 3, the main control unit 21 transmits a control command CMD ″ to the payout control unit 24 via the main board relay board 32, while the payout control unit 24 indicates a game ball payout operation. A prize ball counting signal, a status signal CON relating to an abnormality in the payout operation, and an operation start signal BGN are received, and the status signal CON includes, for example, a replenishment signal, a payout shortage error signal, and a lower plate full signal. The operation start signal BGN is a signal for notifying the main control unit 21 that the initial operation of the payout control unit 24 has been completed after the power is turned on.

また、主制御部21は、遊技盤中継基板31を経由して、遊技盤5の各遊技部品に接続されている。そして、遊技盤上の各入賞口16〜18に内蔵された検出スイッチのスイッチ信号を受ける一方、電動式チューリップなどのソレノイド類を駆動している。ソレノイド類や検出スイッチは、主制御部21から配電された電源電圧VB(12V)で動作するよう構成されている。また、図柄始動口15への入賞状態などを示す各スイッチ信号は、電源電圧VB(12V)と電源電圧Vcc(5V)とで動作するインタフェイスICで、TTLレベル又はCMOSレベルのスイッチ信号に変換された上で、主制御部21に伝送される。   The main control unit 21 is connected to each game component of the game board 5 via the game board relay board 31. And while receiving the switch signal of the detection switch built in each winning opening 16-18 on a game board, solenoids, such as an electric tulip, are driven. The solenoids and the detection switch are configured to operate with the power supply voltage VB (12 V) distributed from the main control unit 21. Each switch signal indicating a winning state to the symbol start opening 15 is converted to a TTL level or CMOS level switch signal by an interface IC that operates with the power supply voltage VB (12 V) and the power supply voltage Vcc (5 V). And then transmitted to the main control unit 21.

先に説明した通り、演出制御基板22と演出インタフェイス基板27とはコネクタ連結によって一体化されており、演出制御部22’は、電源中継基板33を経由して、電源基板20から各レベルの直流電圧(5V,12V,32V)と、システムリセット信号SYSを受けている(図3及び図4参照)。また、演出制御部22’は、コマンド中継基板26を経由して、主制御部21から制御コマンドCMDとストローブ信号STBとを受けている(図3及び図4参照)。   As described above, the effect control board 22 and the effect interface board 27 are integrated by connector connection, and the effect control unit 22 ′ is connected to each level from the power supply board 20 via the power relay board 33. A DC voltage (5V, 12V, 32V) and a system reset signal SYS are received (see FIGS. 3 and 4). The effect control unit 22 'receives the control command CMD and the strobe signal STB from the main control unit 21 via the command relay board 26 (see FIGS. 3 and 4).

そして、演出制御部22’は、演出インタフェイス基板27を経由して、ランプ駆動基板29やランプ駆動基板30に搭載されたドライバDRijに、ランプ駆動データSDATA(シリアル信号)を供給している。特に限定されるものではないが、ランプ駆動基板29,30に搭載されているドライバDRijは、ランプ駆動基板36に搭載されたドライバDRijと同一構成であり、ランプ駆動基板29,30には、各々、5個のドライバDRijが配置されている。   The effect control unit 22 ′ supplies lamp drive data SDATA (serial signal) to the driver DRij mounted on the lamp drive board 29 and the lamp drive board 30 via the effect interface board 27. Although not particularly limited, the driver DRij mounted on the lamp driving boards 29 and 30 has the same configuration as the driver DRij mounted on the lamp driving board 36, and each of the lamp driving boards 29 and 30 includes Five drivers DRij are arranged.

先に説明した通り、これらのドライバDRijは、各々、最高24個のランプを駆動可能であるが、以下の説明では、ランプ駆動基板29に接続された合計24×5個のランプを、第1チャンネルCH1のランプ群と称し、ランプ駆動基板30に接続された合計24×5個のランプを、第2チャンネルCH2のランプ群と称する(図7参照)。   As described above, each of these drivers DRij can drive a maximum of 24 lamps. In the following description, a total of 24 × 5 lamps connected to the lamp driving board 29 are connected to the first lamps. A total of 24 × 5 lamps connected to the lamp driving substrate 30 are referred to as a lamp group of the channel CH1, and are referred to as a lamp group of the second channel CH2 (see FIG. 7).

このように、本実施例では、多数(3×24×5個)のランプが、チャンネルCH0〜チャンネルCH2のランプ群に三分されて、各々、ランプ駆動基板36、ランプ駆動基板29、ランプ駆動基板30に接続されている。なお、図4に関して後述するように、全てのドライバDRijは、演出制御部22’のワンチップマイコン40が、一括的に出力するシリアル信号SDATAのうち、該当信号を受信して、担当するランプ群を駆動している(図4参照)。   As described above, in this embodiment, a large number (3 × 24 × 5) of lamps are divided into three groups of lamps of channel CH0 to channel CH2, respectively, and the lamp driving board 36, the lamp driving board 29, and the lamp driving, respectively. It is connected to the substrate 30. As will be described later with reference to FIG. 4, all drivers DRij receive a corresponding signal from serial signals SDATA output collectively by the one-chip microcomputer 40 of the effect control unit 22 ′, and are in charge of the lamp group. Is driven (see FIG. 4).

ところで、同じドライバDRijを使用してステッピングモータを駆動することもでき、例えば、破線に示すように、ランプ駆動基板30を経由して、演出モータ群M1〜Mnを駆動するのも好適である。この場合、モータ駆動データは、ランプ駆動データと同様のシリアル信号であり、演出内容を豊富化するべく演出モータ個数を増やしても、配線ケーブルが増加することがなく、機器構成が簡素化される。   By the way, it is possible to drive the stepping motor using the same driver DRij. For example, it is also preferable to drive the effect motor groups M1 to Mn via the lamp driving board 30 as indicated by a broken line. In this case, the motor drive data is a serial signal similar to the lamp drive data, and even if the number of production motors is increased in order to enrich production contents, the number of wiring cables does not increase, and the device configuration is simplified. .

図3及び図4に示す通り、演出制御部22’は、画像制御部23’に対して、制御コマンドCMD’及びストローブ信号STB’と、電源基板20から受けたシステムリセット信号SYSと、2種類の直流電圧(12V,5V)とを出力している。   As shown in FIGS. 3 and 4, the effect control unit 22 ′ has two types of control commands CMD ′ and strobe signal STB ′, and a system reset signal SYS received from the power supply board 20, with respect to the image control unit 23 ′. DC voltage (12V, 5V).

そして、画像制御部23’では、制御コマンドCMD’に基づいて表示装置DSを駆動して各種の画像演出を実行している。表示装置DSは、LEDバックライトによって発光しており、画像インタフェイス基板28から5対のLVDS(低電圧差動伝送Low voltage differential signaling)信号と、バックライト電源電圧(12V)とを受けて駆動されている(図4参照)。   Then, the image controller 23 'drives the display device DS based on the control command CMD' to execute various image effects. The display device DS emits light by an LED backlight, and is driven by receiving five pairs of LVDS (Low voltage differential signaling) signals and a backlight power supply voltage (12 V) from the image interface board 28. (See FIG. 4).

続いて、上記した演出制御部22’と画像制御部23’の構成を更に詳細に説明する。図4に示す通り、演出インタフェイス基板27は、電源中継基板33を経由して、電源基板20から3種類の直流電圧(5V,12V,32V)を受けている。ここで、直流電圧5Vは、デジタル論理回路の電源電圧として、演出インタフェイス基板27、ランプ駆動基板29、ランプ駆動基板30、画像インタフェイス基板28、及び画像制御基板23に配電されて各デジタル回路を動作させている。   Next, the configurations of the effect control unit 22 'and the image control unit 23' will be described in more detail. As shown in FIG. 4, the production interface board 27 receives three types of DC voltages (5V, 12V, and 32V) from the power supply board 20 via the power supply relay board 33. Here, the DC voltage 5V is distributed as power supply voltage of the digital logic circuit to the rendering interface board 27, the lamp driving board 29, the lamp driving board 30, the image interface board 28, and the image control board 23, and is supplied to each digital circuit. Is operating.

但し、演出制御基板22には、直流電圧5Vが配電されておらず、12VからDC/DCコンバータで降圧された直流電圧3.3Vと、3.3VからDC/DCコンバータで更に降圧された直流電圧1.8Vだけが、演出インタフェイス基板27から演出制御基板22に配電されている。   However, the direct current voltage 5V is not distributed on the effect control board 22, and the direct current voltage 3.3V stepped down from 12V by the DC / DC converter and the direct current stepped down from 3.3V by the DC / DC converter. Only the voltage 1.8V is distributed from the production interface board 27 to the production control board 22.

このように、本実施例の演出制御基板22は、全ての回路が、電源電圧3.3V又はそれ以下の電源電圧で駆動されているので、電源電圧を5Vで動作する場合と比較して大幅に低電力化することができ、仮に、演出制御基板22の直上に演出インタフェイス基板27を配置して積層しても放熱上の問題が生じない。   In this way, the production control board 22 of the present embodiment is driven by the power supply voltage of 3.3V or lower because all the circuits are driven. Therefore, even if the production interface board 27 is arranged and laminated immediately above the production control board 22, there is no problem in heat dissipation.

但し、電源基板20から受けた直流電圧12Vは、そのままデジタルアンプ46の電源電圧として使用されると共に、ランプ駆動基板30とランプ駆動基板29に配電されて各ランプ群の電源電圧となる。また、直流電圧32Vは、演出インタフェイス基板のDC/DCコンバータにおいて直流電圧13Vに降圧されて、必要に応じて、演出モータM1〜Mnの駆動電源として使用される。   However, the DC voltage 12V received from the power supply board 20 is used as it is as the power supply voltage of the digital amplifier 46 and is distributed to the lamp drive board 30 and the lamp drive board 29 to become the power supply voltage of each lamp group. The direct current voltage 32V is stepped down to the direct current voltage 13V in the DC / DC converter of the production interface board and used as a drive power source for the production motors M1 to Mn as necessary.

図4に示すように、演出制御部22’は、音声演出・ランプ演出・演出可動体による予告演出・データ転送などの処理を実行するワンチップマイコン40と、ワンチップマイコン40の制御プログラムなどを記憶するフラッシュメモリ(flash memory)41と、ワンチップマイコン40からの指示に基づいて音声信号を再生して出力する音声合成回路42と、再生される音声信号の元データである圧縮音声データを記憶する音声用メモリ43とを備えて構成されている。   As shown in FIG. 4, the effect control unit 22 ′ includes a one-chip microcomputer 40 that executes processing such as a sound effect, a lamp effect, a notice effect by the effect movable body, and data transfer, and a control program for the one-chip microcomputer 40. A flash memory 41 to be stored, a voice synthesis circuit 42 that reproduces and outputs a voice signal based on an instruction from the one-chip microcomputer 40, and compressed voice data that is original data of the reproduced voice signal are stored. And an audio memory 43 that is configured.

ここで、ワンチップマイコン40、フラッシュメモリ41、及び音声用メモリ43は、電源電圧3.3Vで動作しており、また、音声合成回路42は、電源電圧3.3V及び電源電圧1.8Vで動作しており大幅な省電力化が実現されている。ここで、1.8Vは、音声合成回路のコンピュータ・コア部の電源電圧であり、3.3Vは、I/O部の電源電圧である。   Here, the one-chip microcomputer 40, the flash memory 41, and the voice memory 43 operate at a power supply voltage of 3.3V, and the voice synthesis circuit 42 operates at a power supply voltage of 3.3V and a power supply voltage of 1.8V. It operates and significant power saving is realized. Here, 1.8V is the power supply voltage of the computer core part of the speech synthesis circuit, and 3.3V is the power supply voltage of the I / O part.

ワンチップマイコン40には、複数のパラレル入出力ポートPIO(Pi+Po+Po’)と、複数のシリアル出力ポートSIとが内蔵されている。ここで、シリアル出力ポートSIは、より詳細には、3チャンネルのシリアルポート(S0〜S2)を含んで構成されており(図6参照)、ランプ駆動基板36、29、30に搭載された各5個のドライバDRijに、各々、ランプ駆動データSDATA0〜SDATA2を、クロック信号CK0〜CK2に同期して出力している。すなわち、シリアルポートS0〜シリアルポートS2は、クロック同期方式に基づいて、対応するランプ駆動基板36、29、30に、ランプ駆動データSDATA0〜SDATA2を伝送している。なお、ランプ駆動データSDATA0〜SDATA2は、各LEDの発光輝度をPWM制御(pulse width modulation)によって輝度調整するため輝度データである。   The one-chip microcomputer 40 includes a plurality of parallel input / output ports PIO (Pi + Po + Po ′) and a plurality of serial output ports SI. Here, more specifically, the serial output port SI includes three-channel serial ports (S0 to S2) (see FIG. 6), and is mounted on the lamp driving boards 36, 29, and 30. Lamp drive data SDATA0 to SDATA2 are output to the five drivers DRij in synchronization with the clock signals CK0 to CK2, respectively. That is, the serial port S0 to serial port S2 transmit the lamp drive data SDATA0 to SDATA2 to the corresponding lamp drive boards 36, 29, and 30 based on the clock synchronization method. Note that the lamp driving data SDATA0 to SDATA2 are luminance data for adjusting the luminance of light emitted from each LED by PWM control (pulse width modulation).

また、ランプ駆動基板36、29、30は、パラレル入出力ポートPIOのパラレル出力ポートPo’にも接続されており、各ランプ駆動基板36、29、30に搭載されたドライバDRijは、パラレル出力ポートPo’が出力する3ビット長の動作許可信号ENABLE0〜ENABLE2の何れかに基づいて動作を開始している。   The lamp driving boards 36, 29, 30 are also connected to the parallel output port Po ′ of the parallel input / output port PIO. The driver DRij mounted on each of the lamp driving boards 36, 29, 30 is a parallel output port. The operation is started based on any of the 3-bit operation enable signals ENABLE0 to ENABLE2 output by Po ′.

一方、パラレル入出力ポートPIOの入力ポートPiには、主制御部21からの制御コマンドCMD及びストローブ信号STBが入力され、コマンド出力ポートPoからは、制御コマンドCMD’及びストローブ信号STB’が出力されるよう構成されている。   On the other hand, the control command CMD and the strobe signal STB from the main control unit 21 are input to the input port Pi of the parallel input / output port PIO, and the control command CMD ′ and the strobe signal STB ′ are output from the command output port Po. It is comprised so that.

具体的には、入力ポートPiには、主制御基板21から出力された制御コマンドCMDとストローブ信号(割込み信号)STBとが、演出インタフェイス基板27のバッファ44において、電源電圧3.3Vに対応する論理レベルに変換されて8ビット単位で供給される。割込み信号STBは、ワンチップマイコンの割込み端子に供給され、受信割込み処理によって、演出制御部22’は、制御コマンドCMDを取得するよう構成されている。   Specifically, a control command CMD and a strobe signal (interrupt signal) STB output from the main control board 21 correspond to the power supply voltage 3.3 V in the buffer 44 of the effect interface board 27 at the input port Pi. Converted to a logic level to be supplied in units of 8 bits. The interrupt signal STB is supplied to the interrupt terminal of the one-chip microcomputer, and the effect control unit 22 'is configured to acquire the control command CMD by the reception interrupt process.

演出制御部22’が取得する制御コマンドCMDには、(1)異常報知その他の報知用制御コマンドなどの他に、(2)図柄始動口への入賞に起因する各種演出動作の概要特定する制御コマンド(変動パターンコマンド)や、図柄種別を指定する制御コマンド(図柄指定コマンド)が含まれている。ここで、変動パターンコマンドで特定される演出動作の概要には、演出開始から演出終了までの演出総時間と、大当たり抽選における当否結果とが含まれている。   The control command CMD acquired by the effect control unit 22 ′ includes (1) an abnormality notification and other notification control commands, and (2) control for specifying an outline of various effect operations resulting from winning at the symbol start opening. A command (variation pattern command) and a control command (symbol designation command) for designating a symbol type are included. Here, the outline of the production operation specified by the variation pattern command includes the production total time from the production start to the production end and the result of winning or failing in the jackpot lottery.

また、図柄指定コマンドには、大当たり抽選の結果に応じて、大当たりの場合には、大当たり種別に関する情報(15R確変、2R確変、15R通常、2R通常など)を特定する情報が含まれ、ハズレの場合には、ハズレを特定する情報が含まれている。変動パターンコマンドで特定される演出動作の概要には、演出開始から演出終了までの演出総時間と、大当り抽選における当否結果とが含まれている。なお、これらに加えて、リーチ演出や予告演出の有無などを含めて変動パターンコマンドで特定しても良いが、この場合でも、演出内容の具体的な内容は特定されていない。   In addition, the symbol designating command includes information for identifying information on the jackpot type (15R probability variation, 2R probability variation, 15R normal, 2R normal, etc.) in the case of a jackpot according to the result of the jackpot lottery. In some cases, information for identifying a loss is included. The outline of the production operation specified by the variation pattern command includes the production total time from the production start to the production end, and the result of success or failure in the big hit lottery. In addition to these, the change pattern command including the presence or absence of the reach effect or the notice effect may be specified, but even in this case, the specific content of the effect content is not specified.

そのため、演出制御部22’では、変動パターンコマンドを取得すると、これに続いて演出抽選を行い、取得した変動パターンコマンドで特定される演出概要を更に具体化している。例えば、リーチ演出や予告演出について、その具体的な内容が決定される。そして、決定された具体的な遊技内容にしたがい、LED群などの点滅によるランプ演出や、スピーカによる音声演出の準備動作を行うと共に、画像制御部23’に対して、ランプやスピーカによる演出動作に同期した画像演出に関する制御コマンドCMD’を出力する。   Therefore, when the change pattern command is acquired, the effect control unit 22 ′ performs an effect lottery subsequently to further specify the effect outline specified by the acquired change pattern command. For example, the specific contents of the reach effect and the notice effect are determined. Then, in accordance with the determined specific game content, a lamp effect by blinking LEDs and a sound effect preparation operation by a speaker are performed, and an effect operation by a lamp or speaker is performed on the image control unit 23 ′. A control command CMD ′ relating to the synchronized image effect is output.

このような演出動作に同期した画像演出を実現するため、演出制御部22’は、コマンド出力ポートPoを通して、画像制御部23’に対するストローブ信号(割込み信号)STB’と共に、16ビット長の制御コマンドCMD’を演出インタフェイス基板27に向けて出力している。なお、演出制御部22’は、図柄指定コマンドや、表示装置DSに関連する報知用制御コマンドや、その他の制御コマンドを受信した場合は、その制御コマンドを、16ビット長に纏めた状態で、割込み信号STB’と共に演出インタフェイス基板27に向けて出力している。   In order to realize such an image effect synchronized with the effect operation, the effect control unit 22 ′, along with the strobe signal (interrupt signal) STB ′ for the image control unit 23 ′, is sent to the image control unit 23 ′ through the command output port Po. CMD ′ is output toward the production interface board 27. When the production control unit 22 ′ receives a design designation command, a notification control command related to the display device DS, and other control commands, the control command is summarized in a 16-bit length. It is output toward the production interface board 27 together with the interrupt signal STB ′.

上記した演出制御基板22の構成に対応して、演出インタフェイス基板27には出力バッファ45が設けられており、16ビット長の制御コマンドCMD’と1ビット長の割込み信号STB’を画像インタフェイス基板28に出力している。そして、これらのデータCMD’,STB’は、画像インタフェイス基板28を経由して、画像制御基板23に伝送される。   Corresponding to the configuration of the production control board 22 described above, the production interface board 27 is provided with an output buffer 45, and a 16-bit control command CMD ′ and a 1-bit interrupt signal STB ′ are sent to the image interface. It is output to the substrate 28. These data CMD ′ and STB ′ are transmitted to the image control board 23 via the image interface board 28.

また、演出インタフェイス基板27には、音声合成回路42から出力される音声信号を受けるデジタルアンプ46が配置されている。先に説明した通り、音声合成回路42は、3.3Vと1.8Vの電源電圧で動作しており、また、デジタルアンプ46は、電源電圧12VでD級増幅動作しており、消費電力を抑制しつつ大音量の音声演出を可能にしている。   The effect interface board 27 is provided with a digital amplifier 46 that receives the audio signal output from the audio synthesis circuit 42. As described above, the speech synthesis circuit 42 operates with power supply voltages of 3.3 V and 1.8 V, and the digital amplifier 46 performs class D amplification operation with a power supply voltage of 12 V, reducing power consumption. It is possible to produce a loud sound while suppressing it.

そして、デジタルアンプ46の出力によって、遊技機上部の左右スピーカと、遊技機下部のスピーカとを駆動している。そのため、音声合成回路42は、3チャネルの音声信号を生成する必要があり、これをパラレル伝送すると、音声合成回路42とデジタルアンプ46との配線が複雑化する。   The left and right speakers at the upper part of the gaming machine and the speakers at the lower part of the gaming machine are driven by the output of the digital amplifier 46. Therefore, the voice synthesis circuit 42 needs to generate a three-channel voice signal, and if this is transmitted in parallel, the wiring between the voice synthesis circuit 42 and the digital amplifier 46 becomes complicated.

そこで、本実施例では、音質の劣化を防止すると共に、配線の複雑化を回避するため、音声合成回路42とデジタルアンプ46との間は、4本の信号線で接続されており、具体的には、転送クロック信号SCLKと、チャネル制御信号LRCLKと、2ビット長のシリアル信号SD1,SD2との合計4ビットの信号線に抑制されている。なお、何れの信号も、その振幅レベルは3.3Vである。   Therefore, in this embodiment, the voice synthesis circuit 42 and the digital amplifier 46 are connected by four signal lines in order to prevent deterioration of sound quality and avoid complicated wiring. In this case, the transfer clock signal SCLK, the channel control signal LRCLK, and the 2-bit serial signals SD1 and SD2 are suppressed to a total of 4 bit signal lines. Note that the amplitude level of any signal is 3.3V.

ここで、SD1は、遊技機上部に配置された左右スピーカのステレオ信号R,Lを特定するPCMデータについてのシリアル信号であり、SD2は、遊技機下部に配置された重低音スピーカのモノラル信号を特定するPCMデータについてのシリアル信号である。そして、音声合成回路342は、チャネル制御信号LRCLKをLレベルに維持した状態で、左チャネルの音声信号Lを伝送し、チャネル制御信号LRCLKをHレベルに維持した状態で、右チャネルの音声信号Rを伝送する。なお、重低音スピーカは本実施例では1個であるので、モノラル音声信号が伝送されているが、ステレオ音声信号として伝送できるのは勿論である。   Here, SD1 is a serial signal for PCM data specifying the stereo signals R and L of the left and right speakers arranged at the upper part of the gaming machine, and SD2 is a monaural signal of the heavy bass speaker arranged at the lower part of the gaming machine. This is a serial signal for the PCM data to be specified. The voice synthesis circuit 342 transmits the left channel audio signal L while maintaining the channel control signal LRCLK at the L level, and maintains the channel control signal LRCLK at H level while maintaining the channel control signal LRCLK at the L level. Is transmitted. Note that since there is only one heavy bass speaker in this embodiment, a monaural audio signal is transmitted, but it is of course possible to transmit it as a stereo audio signal.

何れにしても本実施例では、4種類の音声信号を4本のケーブルで伝送可能であるので、最小のケーブル本数によってノイズによる音声劣化のない信号伝達が可能となる。すなわち、シリアル伝送であるのでパラレル伝送より圧倒的にケーブル本数が少な。なお、アナログ伝送を採る場合には、ケーブル本数は同数であるが、3.3V振幅のアナログ信号に、少なからずノイズが重畳して、音質が大幅に劣化する。一方、振幅レベルを上げると、電源配線が複雑化する上に消費電力が増加する。   In any case, in this embodiment, four types of audio signals can be transmitted with four cables, and therefore, signal transmission without audio deterioration due to noise can be performed with the minimum number of cables. That is, since it is serial transmission, the number of cables is far smaller than that of parallel transmission. Note that when analog transmission is employed, the number of cables is the same, but noise is superimposed on an analog signal having an amplitude of 3.3 V, and the sound quality is greatly deteriorated. On the other hand, when the amplitude level is increased, the power supply wiring becomes complicated and the power consumption increases.

このようなシリアル信号SD1,SD2は、クロック信号SCLKの立上りエッジに同期して、デジタルアンプ46に取得される。そして、デジタルアンプ46内部で、所定ビット長毎にパラレル変換され、DA変換後にD級増幅されて各スピーカに供給されている。   Such serial signals SD1 and SD2 are acquired by the digital amplifier 46 in synchronization with the rising edge of the clock signal SCLK. In the digital amplifier 46, parallel conversion is performed for each predetermined bit length, and after D / A conversion, D-class amplification is performed and supplied to each speaker.

デジタルアンプ46の内部構成は適宜であるが、図5は、デジタルアンプとしてYDA171(YAMAHA)を使用した場合の内部構成図を示している。このような内部構成に限定されないが、何れにしても、本実施例では、音声合成回路42とデジタルアンプ46とをシリアル回線で接続するので、PCMデータ(音声データ)のビット長を如何に増やして高音質化を実現しても配線ケーブルその他を変更する必要がなく、回路構成の簡素化を維持することができる。   Although the internal configuration of the digital amplifier 46 is appropriate, FIG. 5 shows an internal configuration diagram when YDA171 (YAMAHA) is used as the digital amplifier. Although it is not limited to such an internal configuration, in any case, in this embodiment, since the voice synthesis circuit 42 and the digital amplifier 46 are connected by a serial line, the bit length of the PCM data (voice data) is increased. Even if the sound quality is improved, it is not necessary to change the wiring cable and the like, and the circuit configuration can be simplified.

また、演出インタフェイス基板27には、ワンチップマイコン40のパラレル出力ポートPo’や、シリアルポートSIや出力される各種の信号を伝送する出力バッファ回路47,48,49が設けられている。ここで、出力バッファ47は、第0チャンネルのLED群に関連しており、ワンチップマイコン40が出力するランプ駆動データSDATA0、クロック信号CK0、及び、動作許可信号ENABLE0を、枠中継基板34に出力している。そして、出力された3ビットの信号は、枠中継基板34、及び、枠中継基板35を経由して、ランプ駆動基板36のドライバDRijに伝送される(図7参照)。   The effect interface board 27 is provided with parallel output port Po 'of the one-chip microcomputer 40, serial buffer SI, and output buffer circuits 47, 48, and 49 for transmitting various signals to be output. Here, the output buffer 47 is related to the LED group of the 0th channel, and outputs the lamp driving data SDATA0, the clock signal CK0, and the operation permission signal ENABLE0 output from the one-chip microcomputer 40 to the frame relay board 34. doing. The output 3-bit signal is transmitted to the driver DRij of the lamp driving board 36 via the frame relay board 34 and the frame relay board 35 (see FIG. 7).

同様に、出力バッファ48は、ワンチップマイコン40が出力するランプ駆動データSDATA1、クロック信号CK1、及び、動作許可信号ENABLE1をランプ駆動基板29のドライバDRijに伝送しており、出力バッファ49は、ランプ駆動データSDATA2、クロック信号CK2、及び、動作許可信号ENABLE2をランプ駆動基板30のドライバDRijに伝送している(図7参照)。なお、ランプ駆動基板29のドライバDRijは、第1チャンネルのLED群を駆動し、ランプ駆動基板30のドライバDRijは、第2チャンネルのLED群を駆動している。   Similarly, the output buffer 48 transmits the lamp drive data SDATA1, the clock signal CK1, and the operation permission signal ENABLE1 output from the one-chip microcomputer 40 to the driver DRij of the lamp drive board 29, and the output buffer 49 The drive data SDATA2, the clock signal CK2, and the operation permission signal ENABLE2 are transmitted to the driver DRij of the lamp drive board 30 (see FIG. 7). The driver DRij of the lamp driving board 29 drives the LED group of the first channel, and the driver DRij of the lamp driving board 30 drives the LED group of the second channel.

図6(a)は、ワンチップマイコン40に内蔵されたシリアルポートSIの内部構成を図示したものである。このシリアルポートSIは、後述する制御レジスタRGへの設定値に基づいて、(1)送信動作モードか、(2)受信動作モードか、又は、(3)送受信動作モードの何れか一の動作が可能である。ここで、送受信動作モードとは、送信動作と受信動作とを連続して実行可能な動作モードである。   FIG. 6A illustrates the internal configuration of the serial port SI built in the one-chip microcomputer 40. This serial port SI is operated in accordance with a set value in a control register RG, which will be described later, in either one of (1) transmission operation mode, (2) reception operation mode, and (3) transmission / reception operation mode. Is possible. Here, the transmission / reception operation mode is an operation mode in which a transmission operation and a reception operation can be performed continuously.

また、上記した(1)〜(3)の動作モードを任意に選択するべく、この実施例では、各シリアルポートSI(図示例ではSo〜S2)について、制御レジスタRGへの設定値に基づいて、(a)データ出力動作を許可するか否か、(b)シリアル送信動作を許可するか否か、(c)シリアル受信動作を許可するか否かを、任意に選択できるようになっている。   Further, in this embodiment, in order to arbitrarily select the operation modes (1) to (3) described above, in this embodiment, each serial port SI (So to S2 in the illustrated example) is based on the set value in the control register RG. (A) Whether to allow data output operation, (b) Whether to allow serial transmission operation, (c) Whether to allow serial reception operation can be arbitrarily selected. .

特に限定されるものではないが、送信動作モードは、該当する制御レジスタRGに対する、(a)出力動作の許可設定と、(b)送信動作の許可設定と、(c)受信動作の禁止設定によって実現される。   Although not particularly limited, the transmission operation mode depends on (a) output operation permission setting, (b) transmission operation permission setting, and (c) reception operation prohibition setting for the corresponding control register RG. Realized.

一方、受信動作モードは、該当する制御レジスタRGに対する、(a)出力動作の禁止設定と、(b)送信動作の許可設定と、(c)受信動作の許可設定と、によって実現される。なお、受信動作モードであるにも関わらず、送信動作を許可設定するのは、ダミーデータを出力して、クロック信号の出力を開始させるためである。   On the other hand, the reception operation mode is realized by (a) output operation prohibition setting, (b) transmission operation permission setting, and (c) reception operation permission setting for the corresponding control register RG. The reason why the transmission operation is permitted regardless of the reception operation mode is to output dummy data and start outputting the clock signal.

また、送受信動作モードは、該当する制御レジスタRGに対する、(a)出力動作の許可設定と、(b)送信動作の許可設定と、(c)受信動作の許可設定と、によって実現される。   The transmission / reception operation mode is realized by (a) output operation permission setting, (b) transmission operation permission setting, and (c) reception operation permission setting for the corresponding control register RG.

本シリアルポートSIは、全て、上記(1)〜(3)の3つの動作モードで動作可能に構成されており、何れの動作も可能な内部構成を有している。そして、上記(a)〜(c)の設定をすることで、内部回路の誤動作を確実に防止している。すなわち、送信動作モード時に、内部回路が誤った受信動作をしたり、逆に、受信動作モードに、内部回路が誤って送信動作をすることがない。   All of the serial ports SI are configured to be operable in the three operation modes (1) to (3), and have an internal configuration capable of any operation. And the malfunction of an internal circuit is reliably prevented by setting said (a)-(c). That is, the internal circuit does not perform an erroneous reception operation in the transmission operation mode, and conversely, the internal circuit does not perform an erroneous transmission operation in the reception operation mode.

もっとも、本実施例の場合、ランプ駆動やモータ駆動の動作時には、データの出力動作を許可された状態で、全てのシリアルポートSo〜S2がシリアル送信動作を実行するので、図6(a)では、それに関連する部分だけが記載されている。すなわち、この実施例では、ランプ駆動やモータ駆動の動作時には、シリアル受信が禁止された状態で、シリアル送信動作を実行する。   However, in the case of the present embodiment, during the lamp driving or motor driving operation, all the serial ports So to S2 execute the serial transmission operation in a state where the data output operation is permitted. Only the relevant parts are described. That is, in this embodiment, the serial transmission operation is executed in a state where serial reception is prohibited during the lamp driving and motor driving operations.

以上を踏まえて説明を続けると、図示の通り、シリアルポートS0〜シリアルポートS2は全ての同一構成であり、CPUコアから1バイトデータを受ける送信データレジスタDRと、送信データレジスタDRから1バイトデータの転送を受けて、ランプ駆動データSDATAiとしてシリアル出力する送信シフトレジスタSRと、シリアルポートの内部動作状態を管理する多数の制御レジスタRGと、カウンタ回路CTの出力パルスΦを受けて制御レジスタRGが指定する分周比のクロック信号CKiを出力するボーレートジェネレータBGと、を有して構成されている。   Continuing the description based on the above, as shown in the figure, the serial port S0 to serial port S2 all have the same configuration, the transmission data register DR receiving 1-byte data from the CPU core, and the 1-byte data from the transmission data register DR. The transmission shift register SR that outputs serially as lamp drive data SDATAi, a number of control registers RG that manages the internal operation state of the serial port, and the control register RG that receives the output pulse Φ of the counter circuit CT And a baud rate generator BG that outputs a clock signal CKi having a specified frequency division ratio.

ここで、制御レジスタRGには、エンプティビットEMPを含んだREAD可能な制御レジスタが含まれており、送信データレジスタDRが、新規データを受け入れ可能か否かを示している。すなわち、送信シフトレジスタSRの1バイトデータの送信が完了すると、エンプティビットEMPがHレベル(empty レベル)に遷移して、送信データレジスタDRに、新規データを書込むことができることが示される。したがって、CPUコア(以下、CPUと称す)は、エンプティビットEMPがHレベルであることを確認した上で、新規データを送信データレジスタDRに書込むことになる。   Here, the control register RG includes a READable control register including the empty bit EMP, and indicates whether or not the transmission data register DR can accept new data. That is, when transmission of 1-byte data in transmission shift register SR is completed, empty bit EMP changes to H level (empty level), indicating that new data can be written into transmission data register DR. Therefore, the CPU core (hereinafter referred to as CPU) writes new data into the transmission data register DR after confirming that the empty bit EMP is at the H level.

また、制御レジスタRGには、送信許可ビットTXEを含んだWRITE可能な制御レジスタが含まれており、CPUが送信許可ビットTXEをON(H)レベルに設定すると、シリアルポートの送信動作が許可され、OFFレベルに設定すると送信動作が禁止される。そこで、本実施例では、CPUは、送信処理の開始時に送信許可ビットTXEをON状態にセットし、送信処理の終了時に送信許可ビットTXEをOFFレベルにリセットしている。   The control register RG includes a WRITE control register including a transmission permission bit TXE. When the CPU sets the transmission permission bit TXE to the ON (H) level, the serial port transmission operation is permitted. When set to the OFF level, the transmission operation is prohibited. Therefore, in this embodiment, the CPU sets the transmission permission bit TXE to the ON state at the start of the transmission process, and resets the transmission permission bit TXE to the OFF level at the end of the transmission process.

図6(b)は、シリアルポートS0〜S2について、送信開始時の動作を示すタイムチャートである。図示の通り、シリアルポートS0〜S2が送信禁止状態(TXE=L)である場合や、送信データレジスタDRのデータがシリアル出力された後は、クロック信号CKが固定状態のHレベルである。また、送信データレジスタDRは空であり、エンプティビットEMPもHレベル(empty レベル)である。   FIG. 6B is a time chart showing the operation at the start of transmission for the serial ports S0 to S2. As shown in the figure, when the serial ports S0 to S2 are in the transmission prohibited state (TXE = L), or after the data of the transmission data register DR is serially output, the clock signal CK is at the fixed H level. The transmission data register DR is empty, and the empty bit EMP is also at the H level (empty level).

そして、CPUが送信許可ビットTXEをON状態(送信許可状態)にセットした後、送信データレジスタDRに1バイト目の送信データを書込むと、エンプティビットEMPがLレベルに遷移すると共に、その後、所定時間(τ)経過後に、1バイト目の送信データが送信シフトレジスタSRに転送されて、シリアル送信動作が開始される。   Then, after the CPU sets the transmission permission bit TXE to the ON state (transmission permission state) and then writes the first byte of transmission data to the transmission data register DR, the empty bit EMP transitions to the L level, and then After a predetermined time (τ) elapses, the first byte of transmission data is transferred to the transmission shift register SR, and the serial transmission operation is started.

また、送信データが送信シフトレジスタSRに転送されたことで、1ビット目のシリアル送信開始に対応して、その後は、エンプティビットEMPがHレベル(empty レベル)に遷移する。したがって、CPUは、HレベルのエンプティビットEMPを確認した上で、2バイト目の送信データを、送信データレジスタDRに書込むことになる。   Further, since the transmission data is transferred to the transmission shift register SR, the empty bit EMP transitions to the H level (empty level) thereafter in response to the start of serial transmission of the first bit. Therefore, after confirming the H level empty bit EMP, the CPU writes the second byte of transmission data into the transmission data register DR.

すると、送信データレジスタDRへのデータ書込み動作に対応して、エンプティビットEMPがLレベル(fullレベル)に遷移する。そして、その後、1バイト目の送信データが全て送信されると、送信データレジスタDRから送信シフトレジスタSRに2バイト目のデータが転送され、2バイト目のデータ送信が開始されて、エンプティビットEMPがHレベルに遷移する。   Then, in response to the data write operation to the transmission data register DR, the empty bit EMP transitions to the L level (full level). After that, when all the transmission data of the first byte is transmitted, the second byte of data is transferred from the transmission data register DR to the transmission shift register SR, and the data transmission of the second byte is started, and the empty bit EMP Transitions to the H level.

このエンプティビットEMPは、送信データレジスタDRへの3バイト目のデータ書込み動作に対応して、Lレベルに変化するが、図示のように、新規データの書き込みがない場合にはHレベルを維持する。また、全てのデータが送信された後は、クロック信号CKがHレベルを維持して変化しない。   The empty bit EMP changes to the L level in response to the data write operation of the third byte to the transmission data register DR. However, as shown in the figure, the empty bit EMP maintains the H level when no new data is written. . Further, after all the data is transmitted, the clock signal CK maintains the H level and does not change.

特に限定されないが、この実施例では、ドライバDRijの内部動作に対応して、1バイトデータのMSB(Most Significant Bit)からLSB(Least Significant Bit )に向けて、クロック信号CKに同期して送信動作が実行されるよう設定されている(MSBファースト)。具体的には、該当する制御レジスタRGに適宜な設定値が設定されている。また、クロック信号CKの立下りエッジに同期して、送信動作が進行することも図示の通りである。   Although not particularly limited, in this embodiment, in response to the internal operation of the driver DRij, transmission operation is performed in synchronization with the clock signal CK from the MSB (Most Significant Bit) of 1-byte data to the LSB (Least Significant Bit). Is set to be executed (MSB first). Specifically, an appropriate set value is set in the corresponding control register RG. Further, as shown in the figure, the transmission operation proceeds in synchronization with the falling edge of the clock signal CK.

なお、後述するように、本実施例では、CPUは、シリアルポートS0→シリアルポートS1→シリアルポートS2の順に、送信データレジスタDRiに1バイト目のデータ書込んだ後、各エンプティビットEMPiのHレベルを判定した上で、同じ順番に、各送信データレジスタDRiに2バイト目のデータを書込んでいる(図10参照)。   As will be described later, in this embodiment, the CPU writes the first byte of data in the transmission data register DRi in the order of serial port S0 → serial port S1 → serial port S2, and then the H of each empty bit EMPi. After determining the level, the second byte of data is written in each transmission data register DRi in the same order (see FIG. 10).

しかし、シリアルポートS0→シリアルポートS1→シリアルポートS2の順番で一連に実行されるデータ書込み処理において、1バイトデータの書込み時間差は事実上ゼロであるので(図6参照)、チャンネルCH0〜CH2のドライバDRijへのデータ送信処理は、ほぼ同時に開始されることになる。したがって、チャンネルCH0〜CH2のドライバDRijへのデータ送信処理の終了も、送信データ量が同じである限り、ほぼ同一タイミングとなり、迅速にシリアル送信処理を終えることができる(図8参照)。   However, in the data writing process executed in series in the order of serial port S0 → serial port S1 → serial port S2, the write time difference of 1-byte data is practically zero (see FIG. 6). Data transmission processing to the driver DRij is started almost simultaneously. Therefore, the end of the data transmission process to the driver DRij of the channels CH0 to CH2 is almost the same timing as long as the transmission data amount is the same, and the serial transmission process can be completed quickly (see FIG. 8).

図7は、ランプ駆動基板36,29,30の回路構成を確認的に図示したものである。図示の通り、ランプ駆動基板36には、5個のドライバDR00,DR01・・・DR04が搭載されて、第0チャンネルのLED群(合計5×24個のLED)を点灯駆動している。同様に、ランプ駆動基板29には、5個のドライバDR10,DR11・・・DR14が搭載され、また、ランプ駆動基板30には、5個のドライバDR18,DR19・・・DR1Cが搭載されて、各々、第1チャンネルと第2チャンネルのLED群(合計5×24個のLED)を点灯駆動している。   FIG. 7 shows the circuit configuration of the lamp driving substrates 36, 29, and 30 in a confirmed manner. As shown in the figure, on the lamp driving board 36, five drivers DR00, DR01... DR04 are mounted to drive the LED group of the 0th channel (5 × 24 LEDs in total). Similarly, five drivers DR10, DR11... DR14 are mounted on the lamp driving board 29, and five drivers DR18, DR19... DR1C are mounted on the lamp driving board 30. Each of the LED groups of the first channel and the second channel (a total of 5 × 24 LEDs) is driven to light.

各ドライバDRijには、5ビットの付番端子が設けられており、この付番端子に固定的なデジタルデータが供給される回路構成を採ることで、各々スレーブアドレス(ポートアドレス)が一連に付番されている。すなわち、図示例の場合には、各ドライバ(DR00,DR01・・・DR04、DR10,DR11・・・DR14、DR18,DR19・・・DR1C)のスレーブアドレスは、16進数表示で、00H,01H・・・04H、10H,11H・・・14H、18H,19H・・・1CHとなる。   Each driver DRij is provided with a 5-bit numbering terminal. By adopting a circuit configuration in which fixed digital data is supplied to this numbering terminal, each slave address (port address) is assigned in series. It is numbered. In other words, in the illustrated example, the slave addresses of the drivers (DR00, DR01... DR04, DR10, DR11... DR14, DR18, DR19... DR1C) are expressed in hexadecimal notation as 00H, 01H. ... 04H, 10H, 11H... 14H, 18H, 19H.

各ランプ制御基板36,29,30のドライバDRijに、一連のスレーブアドレスを付番することで、各ドライバDRijに対する輝度データなどの設定処理を迅速化することができる。この点は、さらに後述するが、一連のスレーブアドレスは、必ずしも+1の関係で一連させる必要はなく、+Nや−Nの関係であっても良い。   By assigning a series of slave addresses to the drivers DRij of the lamp control boards 36, 29, and 30, it is possible to speed up the setting process of luminance data and the like for each driver DRij. Although this point will be described later, a series of slave addresses do not necessarily have to be arranged in a +1 relationship, and may have a relationship of + N or -N.

また、各ドライバDRijには、24個のLEDを駆動する点灯駆動信号のアナログレベルを各々規定可能な階調レジスタGR0〜GR23が内蔵されている。なお、ドライバDRijには、階調レジスタGRn以外にも多数の設定レジスタが用意されているが、本実施例では、説明の都合上、階調レジスタGRnだけを活用とすることにする。   Each driver DRij has built-in gradation registers GR0 to GR23 that can define analog levels of lighting drive signals for driving 24 LEDs. In addition to the gradation register GRn, a number of setting registers are prepared in the driver DRij, but in this embodiment, only the gradation register GRn is used for convenience of explanation.

階調レジスタGRnは、各々、8ビット長の輝度データを記憶可能であり、LEDの輝度レベルを00H〜FFHまで256段階で設定することができる。つまり、実施例で使用するドライバDRijによれば、各LEDの輝度レベルを256階調(PWM=Duty比=0〜255/256=0〜99.6%)に制御である。しかし、本実施例では、人間の視認感度を考慮して輝度レベルを16階調に抑制することとし、4ビット長16階調の輝度データ(00H〜0FH)を16倍して、00H〜F0Hの輝度データとしている。なお、輝度データ00Hは、消灯(Duty比=0%)を意味し、F0Hは、最大輝度による点灯を意味する。   Each of the gradation registers GRn can store 8-bit long luminance data, and the luminance level of the LED can be set in 256 steps from 00H to FFH. In other words, according to the driver DRij used in the embodiment, the brightness level of each LED is controlled to 256 gradations (PWM = Duty ratio = 0 to 255/256 = 0 to 99.6%). However, in this embodiment, the luminance level is suppressed to 16 gradations in consideration of human visual sensitivity, and the luminance data (00H to 0FH) of 4 bits length 16 gradations is multiplied by 16 to obtain 00H to F0H. Brightness data. The luminance data 00H means extinguishing (Duty ratio = 0%), and F0H means lighting with maximum luminance.

図8は、各ドライバDRijの動作とCPUの動作を説明するフローチャートである。まず、ワンチップマイコン40が出力するランプ駆動データSDATA0〜SDATA2に基づいて、各ドライバDRijの階調レジスタGR0〜GR23に対する輝度データの設定処理について説明する。   FIG. 8 is a flowchart for explaining the operation of each driver DRij and the operation of the CPU. First, luminance data setting processing for the gradation registers GR0 to GR23 of each driver DRij will be described based on the lamp driving data SDATA0 to SDATA2 output from the one-chip microcomputer 40.

階調レジスタGR0〜GR23に輝度データを設定するためには、これに先行して、各ドライバDRijを特定するスレーブアドレスの送信処理と、階調レジスタGR0〜GR23のレジスタ番号N(例えば、N=15H〜1CH)の送信処理とを実行する必要がある。但し、本実施例のように、レジスタ番号N(=15H〜1CH)が連続する場合には、最初のレジスタ番号N(=15H)を送信した後は、レジスタ番号15H以降の階調レジスタGRnに設定すべき輝度データDnを1バイト毎に出力したので足りる。   In order to set the luminance data in the gradation registers GR0 to GR23, prior to this, the slave address transmission process for specifying each driver DRij and the register number N of the gradation registers GR0 to GR23 (for example, N = 15H to 1CH) need to be executed. However, when the register numbers N (= 15H to 1CH) are continuous as in the present embodiment, after the first register number N (= 15H) is transmitted, the register numbers 15H and subsequent grayscale registers GRn are transmitted. It is sufficient that the luminance data Dn to be set is output for each byte.

また、スレーブアドレスは、ドライバDRijを特定する5ビット長のポートアドレスであるが、適宜に3ビットを付加した8ビット長とされる。そして、この8ビット長のスレーブアドレスは、MSBからLSBに向けて送信される。図7から明らかなように、8ビット長のスレーブアドレスは、5個のドライバDRij(例えば、DR00〜DR04)に、共通的に送信されるが、送信されたスレーブアドレスに対応する特定のドライバDRijだけが、その後の送信データを受信することになる。   The slave address is a 5-bit length port address that identifies the driver DRij, but is an 8-bit length with an appropriate addition of 3 bits. This 8-bit slave address is transmitted from the MSB to the LSB. As is apparent from FIG. 7, the 8-bit slave address is commonly transmitted to five drivers DRij (for example, DR00 to DR04), but a specific driver DRij corresponding to the transmitted slave address. Only will receive subsequent transmission data.

具体的には、全てのドライバDRij(例えば、DR00〜DR04)において、24個目(=8×3)のクロック信号CKiの立上りエッジで、1バイト目のデータ(スレーブアドレス)が取得され、自らのスレーブアドレスに一致するドライバDRijだけが、その後の受信処理を継続する。   Specifically, in all drivers DRij (for example, DR00 to DR04), the first byte of data (slave address) is acquired at the rising edge of the 24th (= 8 × 3) clock signal CKi, Only the driver DRij that matches the slave address of the receiver continues the subsequent reception process.

先に説明した通り、本実施例のドライバDRijに対しては、その後、階調レジスタGRnのレジスタ番号Nを送信し、これに続いて、その階調レジスタGRnへの設定データDnを送信するようになっている。そして、その後は、指定されたスレーブアドレスに対応するドライバDRijにおいて、レジスタ番号Nが自動的にインクリメントされ、その後に受信した設定データDn+1、Dn+2・・・・が、各々、階調レジスタGRn+1,GRn+2・・・・に設定される。   As described above, the register number N of the gradation register GRn is then transmitted to the driver DRij of this embodiment, and subsequently, the setting data Dn to the gradation register GRn is transmitted. It has become. Then, in the driver DRij corresponding to the designated slave address, the register number N is automatically incremented, and the setting data Dn + 1, Dn + 2,... Received thereafter are the gradation registers GRn + 1, GRn + 2, respectively. ... is set.

先に説明した通り、本実施例では、階調レジスタGRiだけを活用しているので、ワンチップマイコン40から各チャンネル(0〜2)のドライバDRijに送信されるシリアルデータの個数は、スレーブアドレス(1バイト)と、階調レジスタGR0のレジスタ番号(15Hの1バイト)と、24個の階調レジスタGR0〜GR23に設定すべき輝度データ(24バイト)とで、総計26バイトとなる。   As described above, in this embodiment, only the gradation register GRi is used. Therefore, the number of serial data transmitted from the one-chip microcomputer 40 to the driver DRij of each channel (0 to 2) is the slave address. (1 byte), the register number of the gradation register GR0 (1 byte of 15H), and the luminance data (24 bytes) to be set in the 24 gradation registers GR0 to GR23, total 26 bytes.

図8(b)に関して説明した通り、ワンチップマイコン40のシリアルポートS0〜S2では、23バイト目の輝度データを出力した後は、制御レジスタRGのエンプティビットEMPをHレベルに維持する。また、送信データレジスタDRに書込み済みの24バイト目の輝度データは、エンプティビットEMP=Hレベルが維持された状態で、送信シフトレジスタSRから1ビット毎にMSBからLSBに向けて出力される。そして、ワンチップマイコン40のシリアルポートS0〜S2が、24バイト目の輝度データのLSBを出力した後は、クロック信号CKがHレベルを維持する。   As described with reference to FIG. 8B, the serial port S0 to S2 of the one-chip microcomputer 40 maintains the empty bit EMP of the control register RG at the H level after outputting the luminance data of the 23rd byte. The 24th byte of luminance data written in the transmission data register DR is output from the transmission shift register SR toward the LSB for each bit from the transmission shift register SR in a state where the empty bit EMP = H level is maintained. Then, after the serial ports S0 to S2 of the one-chip microcomputer 40 output the LSB of the luminance data of the 24th byte, the clock signal CK maintains the H level.

そのため、ワンチップマイコン40のCPUは、24バイト目の輝度データが、該当するドライバDRijに取得されたと思われるタイミングで、動作許可信号ENABLE0〜2をLレベルに戻すとともに、制御レジスタRGの送信許可ビットTXEを送信禁止レベルに戻している(図8参照)。すると、動作許可信号ENABLE0〜2=Lに対応して、その後、各ドライバDRijでは、階調レジスタGR0〜GR23に新規設定された、又は設定されている輝度データに基づいてLEDを駆動することになる。   Therefore, the CPU of the one-chip microcomputer 40 returns the operation permission signals ENABLE0 to ENABLE2 to the L level at the timing when the 24th byte luminance data is assumed to have been acquired by the corresponding driver DRij, and permits transmission of the control register RG. The bit TXE is returned to the transmission inhibition level (see FIG. 8). Then, in response to the operation enable signals ENABLE0 to 2 = L, each driver DRij then drives the LED based on the brightness data newly set or set in the gradation registers GR0 to GR23. Become.

なお、この実施例では、ドライバ1個分のシリアルデータを送信する毎に、送信許可ビットTXEを禁止レベルに戻しているが、何ら限定されず、全てのドライバに対する送信処理が終えた後に、禁止レベルに戻しても良い。また、特に、禁止レベルに戻す必要もない。   In this embodiment, every time serial data for one driver is transmitted, the transmission permission bit TXE is returned to the prohibited level. However, the transmission permission bit TXE is not limited at all, and is prohibited after the transmission processing for all the drivers is completed. You may return to the level. In particular, there is no need to return to the prohibited level.

図9は、演出制御部22’の動作内容を説明するフローチャートであり、ワンチップマイコン40のCPUによって実行される。演出制御部22’の動作は、CPUリセット後に無限ループ状に実行されるメイン処理(図9(a))と、1mS毎に起動されるタイマ割込み処理(図9(b))と、主制御部が送信する制御コマンドを受信する受信割込み処理(不図示)と、を含んで実現される。   FIG. 9 is a flowchart for explaining the operation content of the effect control unit 22 ′, which is executed by the CPU of the one-chip microcomputer 40. The operation of the effect control unit 22 ′ includes a main process (FIG. 9 (a)) executed in an infinite loop after the CPU reset, a timer interrupt process (FIG. 9 (b)) started every 1 mS, and the main control. And reception interrupt processing (not shown) for receiving a control command transmitted by the unit.

そこで、まず、タイマ割込み処理から説明する。なお、図9(b)は、演出モータM1〜Mnを設けた場合の処理を破線で記載している。演出モータM1〜Mnを設けた実施態様では、所定タイミング毎に、ステッピングモータを1ステップ歩進させるべく、必要時に駆動データを更新する(ST20)。そして、この駆動データを各演出モータM1〜Mnに出力し、また、画像制御部23’に送信すべき制御コマンドCMD’が存在する場合には、これを画像制御部23’に向けて出力する(ST22)。   First, the timer interrupt process will be described. In FIG. 9B, the process in the case where the production motors M1 to Mn are provided is indicated by broken lines. In the embodiment in which the effect motors M1 to Mn are provided, the drive data is updated when necessary to advance the stepping motor by one step at every predetermined timing (ST20). And this drive data is output to each effect motor M1-Mn, and when there exists control command CMD 'which should be transmitted to image control part 23', this is output toward image control part 23 '. (ST22).

そして、最後に割込みカウンタをインクリメントして割込み処理を終える(ST23)。   Finally, the interrupt counter is incremented to finish the interrupt process (ST23).

続いて、メイン処理について説明すると、CPUは、割込みカウンタを繰り返しチェックして、割込みカウンタの値が16になるのを待機する(ST10)。上記したように、割込みカウンタは、1mS毎に更新されているので(ST23)、ステップST10では、前回のステップST11の処理から、16mS経過するまでの経過時間を待機することになる。すなわち、この実施例では、ステップST11〜ST17の処理が16mS毎に繰り返される。   Next, the main process will be described. The CPU repeatedly checks the interrupt counter and waits until the value of the interrupt counter becomes 16 (ST10). As described above, since the interrupt counter is updated every 1 mS (ST23), in step ST10, an elapsed time until 16 mS elapses from the process of the previous step ST11 is waited. That is, in this embodiment, steps ST11 to ST17 are repeated every 16 ms.

そこで、16mSの待機時間が経過した場合には、割込みカウンタをゼロクリアした上で(ST11)、主制御部21から送信された制御コマンドCMDを解析して、制御コマンドCMDに対応した動作を実行するべく、必要な開始処理を実行する。例えば、変動パターンコマンドCMDを受けた場合には、その制御コマンドCMDに基づいてランプ演出や音声演出などの開始処理を実行する。   Therefore, when the standby time of 16 mS has elapsed, the interrupt counter is cleared to zero (ST11), the control command CMD transmitted from the main control unit 21 is analyzed, and the operation corresponding to the control command CMD is executed. Therefore, necessary start processing is executed. For example, when a variation pattern command CMD is received, start processing such as a lamp effect and a sound effect is executed based on the control command CMD.

次に、チャンスボタン11などのスイッチ信号を判定し(ST13)、新規に実行を開始する演出について、その演出シナリオを構築するか、実行中の演出についての演出シナリオを更新する(ST14)。そして、演出シナリオに対応して、音声再生動作を進行させる(ST15)。   Next, a switch signal such as the chance button 11 is determined (ST13), and an effect scenario for the effect to be newly executed is constructed or an effect scenario for the effect being executed is updated (ST14). Then, the audio reproduction operation is advanced in response to the production scenario (ST15).

続いて、各ランプ駆動基板36,29,30に接続されているLEDについて、その輝度を規定した輝度データを更新して、出力バッファテーブルTBLに格納する(ST16)。この実施例では、3個のランプ駆動基板36,29,30に、合計で3×5×24個のLEDが配置されており、各LEDは、16階調の4ビット長の輝度データに基づいて点灯制御がされている。したがって、出力バッファテーブルTBLは、3×5×24/2バイト長である。   Subsequently, for the LEDs connected to each of the lamp drive substrates 36, 29, and 30, the brightness data defining the brightness is updated and stored in the output buffer table TBL (ST16). In this embodiment, a total of 3 × 5 × 24 LEDs are arranged on the three lamp driving substrates 36, 29, and 30, and each LED is based on 16-gradation 4-bit long luminance data. Lighting control. Therefore, the output buffer table TBL is 3 × 5 × 24/2 bytes long.

次に、ステップST16の処理で更新された出力バッファテーブルTBLの輝度データを、シリアルポートS0〜S2を経由して、各ランプ駆動基板36,29,30に伝送する(ST17)。但し、CPUは、伝送処理そのものを担当するのではなく、CPUは、シリアルポートS0〜S2の送信データレジスタDRに、適宜なタイミングで必要データを書込むだけであり、CPUの制御負担は極めて軽微である。また、図8に示す通り、3つのランプ駆動基板36,29,30に一斉にシリアルデータが送信されるので、ステップST17の処理時間は、送信データ量に拘わらず長くない。   Next, the brightness data of the output buffer table TBL updated in the process of step ST16 is transmitted to each of the lamp drive boards 36, 29, 30 via the serial ports S0 to S2 (ST17). However, the CPU is not in charge of the transmission process itself, but the CPU only writes necessary data to the transmission data register DR of the serial ports S0 to S2 at an appropriate timing, and the control burden on the CPU is extremely small. It is. Also, as shown in FIG. 8, serial data is transmitted all at once to the three lamp driving substrates 36, 29, and 30, so the processing time of step ST17 is not long regardless of the amount of transmission data.

図8に示す通り、3つのランプ駆動基板36,29,30に搭載された3つのドライバDRに輝度データを設定するに要するクロック信号CKは、8×(2+24)個であり、しかも、伝送開始タイミングと伝送終了タイミングは、全3個のドライバDRにおいてほぼ同じである。   As shown in FIG. 8, the number of clock signals CK required to set the luminance data for the three drivers DR mounted on the three lamp driving boards 36, 29, and 30 is 8 × (2 + 24), and transmission starts. The timing and the transmission end timing are substantially the same for all three drivers DR.

そのため、3つのランプ駆動基板36,29,30に搭載された3個のドライバDRの点灯状態を更新するに要する時間は、ほぼ、8×(2+24)×Tとなり、8×26×5×T程度の処理時間で、全15個のドライバの点灯状態を更新することができる。なお、この全15個のドライバに対する処理時間は、5個のドライバの点灯状態を更新するに要する時間とほぼ同じである。   Therefore, the time required to update the lighting states of the three drivers DR mounted on the three lamp driving substrates 36, 29, and 30 is approximately 8 × (2 + 24) × T, and 8 × 26 × 5 × T. It is possible to update the lighting states of all 15 drivers in a certain processing time. The processing time for all the 15 drivers is substantially the same as the time required to update the lighting states of the five drivers.

ここで、Tはクロック信号のパルス周期であり、この実施例では、ボーレートジェネレータBGへの設定値に基づいて、周波数4〜5MHz程度のクロック信号に対応して、T=0.25〜0.2μSとなっている。したがって、全体の処理時間は、0.2mS程度であり、他の処理のための処理時間を消費することがない。   Here, T is the pulse period of the clock signal, and in this embodiment, T = 0.25 to 0... Corresponding to the clock signal having a frequency of about 4 to 5 MHz based on the set value to the baud rate generator BG. 2 μS. Therefore, the entire processing time is about 0.2 mS, and processing time for other processing is not consumed.

但し、仮に、パルス周期T=1μS程度の低速で動作させた場合でも、全体の処理時間は1mS程度であり、メイン処理の全処理時間(16mS)の中で占める割合は高くなく、他の制御処理の悪影響を与えることはない。   However, even if the operation is performed at a low speed of the pulse period T = 1 μS, the entire processing time is about 1 mS, and the ratio of the total processing time (16 mS) in the main processing is not high. There is no adverse effect on the processing.

図10は、LED出力処理(ST17)を、より詳細に説明するフローチャートである。LED出力処理では、まず、15個全てのドライバDRijに対して、初期化データを送信して、階調レジスタに書込んだ輝度データ(PWM値)に対応してLEDが点灯されるよう設定する。   FIG. 10 is a flowchart for explaining the LED output process (ST17) in more detail. In the LED output process, first, initialization data is transmitted to all 15 drivers DRij, and the LED is set to be turned on in accordance with the luminance data (PWM value) written in the gradation register. .

なお、このステップST17の処理についても、図8に示す手順と同じであり、以下に示すステップST31〜ST45の処理手順が採用される。すなわち、チャンネルCH0〜CH2の所定ドライバ(3個)に対して、スレーブアドレスの送信→レジスタ番号の送信→初期化データの送信処理を一括して実行し、この処理を5回繰り返すことで、15個のドライバDRijについての初期化処理を完了させる。したがって、全処理時間は、8×3×5×T[=データビット長8×データ個数3×繰り返し処理回数5×クロック周期T]程度である。   Note that the processing in step ST17 is the same as the procedure shown in FIG. 8, and the processing procedures in steps ST31 to ST45 shown below are adopted. That is, the slave address transmission → register number transmission → initialization data transmission processing is collectively executed for predetermined drivers (three) of the channels CH0 to CH2, and this processing is repeated five times to obtain 15 The initialization process for each driver DRij is completed. Therefore, the total processing time is about 8 × 3 × 5 × T [= data bit length 8 × data number 3 × repetition processing count 5 × clock cycle T].

このような初期化処理を16mS毎に繰り返す必要は必ずしもないが、本実施例では、点滅状態を更新する毎に全てのドライバDRijの初期化データを送信するので、万一、初期化データの一部がビット化けしても、設定データのビット化けによる異常動作は、16mS後に自動的に解消される。   It is not always necessary to repeat such initialization processing every 16 ms, but in this embodiment, initialization data of all drivers DRij is transmitted every time the blinking state is updated. Even if the part is garbled, the abnormal operation due to garbled setting data is automatically resolved after 16 mS.

以上のようにして初期化処理が終わると(ST30)、輝度データの設定処理(ST31〜ST45)に移行する。なお、この開始タイミングでは、図6(b)に示す通り、各制御レジスタRGの送信許可ビットTXEは、OFF(L)レベルであり、エンプティビットEMPは、Hレベル(empty レベル)であり、クロック信号CKはHレベルを維持している。また、動作許可信号ENABLE0〜ENABL2はLレベルである。   When the initialization process is completed as described above (ST30), the process proceeds to the brightness data setting process (ST31 to ST45). At this start timing, as shown in FIG. 6B, the transmission permission bit TXE of each control register RG is at the OFF (L) level, the empty bit EMP is at the H level (empty level), and the clock The signal CK maintains the H level. Further, the operation enable signals ENABLE0 to ENABLE2 are at the L level.

以上を踏まえて説明を続けると、輝度データの設定処理では、最初に、チャンネルCH0〜CH2の各5個のドライバDRijについて、各々、開始スレーブアドレスを特定する(ST31)。図7に示すように、この実施例では、各ランプ駆動基板に搭載された5個のドライバDRijには、インクリメント関係にある一連のスレーブアドレスが付番されており、その先頭アドレスは、00H,10H,18Hである。   Continuing the description based on the above, in the brightness data setting process, first, the start slave address is specified for each of the five drivers DRij of the channels CH0 to CH2 (ST31). As shown in FIG. 7, in this embodiment, a series of slave addresses in an increment relationship are assigned to the five drivers DRij mounted on each lamp driving board, and the head address is 00H, 10H and 18H.

次に、パラレル出力ポートPo’から、各々、ON(H)レベルの動作許可信号ENABLE0〜ENABL2を出力する(ST32)。この結果、全チャンネルCH0〜CH2の全てのドライバDRijは、シリアルデータの受信動作が可能となる。   Next, ON (H) level operation enable signals ENABLE0 to ENABLE2 are respectively output from the parallel output port Po '(ST32). As a result, all drivers DRij of all channels CH0 to CH2 can receive serial data.

そこで、続いて、シリアルポートS0〜S2について、各制御レジスタRGの送信許可ビットTXEを各々ONレベルに設定して、シリアルポートS0〜S2の送信処理を許可状態に設定する(ST33)。また、ステップST31の処理で初期設定されたか、或いは、その後、ステップST44の処理で更新された3種類のスレーブアドレスを、各々、シリアルポートS0〜S2の送信データレジスタDRに書込む(ST33)。   Therefore, for the serial ports S0 to S2, the transmission permission bit TXE of each control register RG is set to the ON level, and the transmission processing of the serial ports S0 to S2 is set to the permitted state (ST33). In addition, the three types of slave addresses that are initialized in the process of step ST31 or are updated in the process of step ST44 are respectively written in the transmission data registers DR of the serial ports S0 to S2 (ST33).

図8に示す通り、このステップST33の処理によって、各シリアルポートS0〜S2の制御レジスタRGのエンプティビットEMPは、Lレベルに遷移し、所定時間(τ)後に、エンプティビットEMPがHレベルに戻ると共に、スレーブアドレスの送信動作が開始される。   As shown in FIG. 8, the empty bit EMP of the control register RG of each of the serial ports S0 to S2 transitions to the L level by the process of step ST33, and after a predetermined time (τ), the empty bit EMP returns to the H level. At the same time, the slave address transmission operation is started.

そこで、エンプティビットEMPがHレベルに戻った場合には(ST34)、各ドライバDRijの階調レジスタGR0〜GR23について、そのレジスタ番号の先頭アドレスを、シリアルポートS0〜S2の送信データレジスタDRに書込む(ST35)。この実施例では、階調レジスタGR0〜GR4のレジスタ番号は、N=15H〜1CHであるので、ステップST35の処理では、シリアルポートS0〜S2の送信データレジスタDRに、各々、15Hが書込まれる。また、ステップST35の処理によって、エンプティビットEMPは、HレベルからLレベル(fullレベル)に遷移する。   Therefore, when the empty bit EMP returns to the H level (ST34), for the gradation registers GR0 to GR23 of each driver DRij, the head address of the register number is written to the transmission data register DR of the serial ports S0 to S2. (ST35). In this embodiment, since the register numbers of the gradation registers GR0 to GR4 are N = 15H to 1CH, 15H is written in the transmission data registers DR of the serial ports S0 to S2 in the process of step ST35, respectively. . In addition, the empty bit EMP changes from the H level to the L level (full level) by the process of step ST35.

その後、最初のスレーブアドレスの送信が完了すると、エンプティビットEMPがHレベル(empty レベル)に戻るので(ST36)、その後は、24個の輝度データの送信処理に移行する。   Thereafter, when the transmission of the first slave address is completed, the empty bit EMP returns to the H level (empty level) (ST36), and thereafter, the process proceeds to a transmission process of 24 luminance data.

具体的には、まず、変数nをゼロに初期設定する(ST37)。ここで、変数nは、階調レジスタGR0〜GR23を特定し、変数n=1〜24が、階調レジスタGR0〜GR23に対応している。   Specifically, first, the variable n is initialized to zero (ST37). Here, the variable n specifies the gradation registers GR0 to GR23, and the variable n = 1 to 24 corresponds to the gradation registers GR0 to GR23.

そこで、次に、変数nをインクリメントした後(ST38)、各チャンネルCH0〜CH2の階調レジスタGRn−1に対する輝度データ(PWM値)を、出力バッファテーブルTBLから読み出して、シリアルポートS0〜S2の送信データレジスタDRに各々書込む(ST39)。なお、ステップST36の判定で、エンプティビットEMPがHレベルに遷移した後、エンプティビットEMPがLレベルに戻って、レジスタ番号の送信動作が繰り返されており、この送信動作が終わると、エンプティビットEMPがHレベルに遷移する。   Therefore, next, after incrementing the variable n (ST38), the luminance data (PWM value) for the gradation register GRn-1 of each channel CH0 to CH2 is read from the output buffer table TBL, and the serial ports S0 to S2 are read. Each is written in the transmission data register DR (ST39). In step ST36, after the empty bit EMP transits to the H level, the empty bit EMP returns to the L level, and the register number transmission operation is repeated. When this transmission operation ends, the empty bit EMP Transitions to the H level.

そこで、次に、エンプティビットEMPがHレベルに遷移するのを待機し(ST40)、Hレベルに遷移すれば、変数nが24に達しない限り、ステップST38の処理に移行する(ST41)。そのため、このステップST38〜ST41の処理によって、階調レジスタGR0〜GR23への輝度データが、シリアルポートS0〜S2の送信データレジスタDRに順番に書込まれることになる。   Therefore, next, the process waits for the empty bit EMP to transition to the H level (ST40). If the transition to the H level occurs, the process proceeds to step ST38 unless the variable n reaches 24 (ST41). Therefore, the luminance data to the gradation registers GR0 to GR23 are sequentially written in the transmission data register DR of the serial ports S0 to S2 by the processing of steps ST38 to ST41.

なお、変数nが24に達したタイミングは、シリアルポートS0〜S2の送信データレジスタDRに24バイト目の輝度データが書込まれたに過ぎず、これがドライバDRijに取得されるのは、更に、8個程度のクロック信号CKが出力された後である。   Note that the timing at which the variable n reaches 24 is only that the 24th byte of luminance data is written in the transmission data register DR of the serial ports S0 to S2, and this is acquired by the driver DRij. After about eight clock signals CK are output.

そこで、クロック信号CKの8個分程度の時間を消費した後(ST42)、動作許可信号ENABLEを禁止レベルに戻すと共に、制御レジスタRGの送信許可ビットTXEを禁止レベルに戻す(ST43)。その結果、輝度データが更新されたドライバDRijが駆動するLEDの点灯状態が更新される。   Therefore, after consuming about eight clock signals CK (ST42), the operation permission signal ENABLE is returned to the prohibited level, and the transmission permission bit TXE of the control register RG is returned to the prohibited level (ST43). As a result, the lighting state of the LED driven by the driver DRij whose luminance data has been updated is updated.

以上の処理によって各チャンネル0〜2の3個のドライバDRijについての輝度データの設定処理と点灯更新が終わるので、次に、スレーブアドレスを更新して(ST44)、次の3個のドライバDRijに対する設定処理を繰り返す(ST45)。   With the above processing, the luminance data setting processing and lighting update for the three drivers DRij for each channel 0 to 2 are completed. Next, the slave address is updated (ST44), and the next three drivers DRij are updated. The setting process is repeated (ST45).

以上の通り、本実施例では、ステップST32〜ST43の処理によって、3個のドライバDRijの各24個の階調レジスタに対する設定処理が一括して完了し、これを5回繰り返すことで、全ての処理が完了することができる。   As described above, in the present embodiment, the setting process for each of the 24 gradation registers of the three drivers DRij is completed at once by the processes of steps ST32 to ST43, and this process is repeated five times. Processing can be completed.

そして、3個のドライバに対する設定処理は、ほぼ同時に開始され、ほぼ同時に終了する。そのため、処理総時間は、クロック信号のパルス周期Tと、ドライバDRijの総個数TOTAL=NUM×3とに対応して、8×26×NUM×T程度であり、24×NUM×3個のLEDについて、極めて迅速に輝度データの設定処理を終えることができる。   Then, the setting process for the three drivers starts almost simultaneously and ends almost simultaneously. Therefore, the total processing time is about 8 × 26 × NUM × T corresponding to the pulse period T of the clock signal and the total number TOTAL = NUM × 3 of the drivers DRij, and 24 × NUM × 3 LEDs. The setting process of luminance data can be finished very quickly.

以上本発明の実施例について詳細に説明したが、具体的な記載内容は、特に本発明を限定するものではない。   Although the embodiments of the present invention have been described in detail above, the specific contents do not particularly limit the present invention.

例えば、実施例では、説明の便宜上、3チャンネルのランプ駆動基板36,29,30におけるドライバDRijやLEDの個数が同一であるとしたが、実際には、適宜に相違するのは当然である。このような場合、必要なドライバDRijに対する設定処理(図10のST32〜ST45)が終われば、そのチャンネルについては、その後の設定処理(ST32〜ST45)がスキップされる。   For example, in the embodiment, for convenience of explanation, the numbers of drivers DRij and LEDs in the three-channel lamp driving boards 36, 29, and 30 are the same. However, in practice, it is natural that they are appropriately different. In such a case, when the setting process for the necessary driver DRij (ST32 to ST45 in FIG. 10) is completed, the subsequent setting process (ST32 to ST45) is skipped for that channel.

同様に、駆動するLEDの個数が24個未満のドライバDRijに関しては、図10のステップST41の処理を変更することで、不要な設定処理(ST38〜ST41)がスキップされる。   Similarly, for the driver DRij in which the number of LEDs to be driven is less than 24, unnecessary setting processing (ST38 to ST41) is skipped by changing the processing in step ST41 in FIG.

また、実施例では、説明の都合上、16mS毎に全てのドライバに対する設定処理を実行したが、これを適宜に分割するのも好適である。図9(c)は、このような動作を例示したものであり、図9(a)のステップST17のLED出力処理に代えて、割込みカウンタの値CNTに応じたLED出力処理(ST24)を実行している。   In the embodiment, for convenience of explanation, the setting process for all the drivers is executed every 16 mS. However, it is also preferable to divide this appropriately. FIG. 9C illustrates such an operation. Instead of the LED output process in step ST17 of FIG. 9A, an LED output process (ST24) corresponding to the value CNT of the interrupt counter is executed. doing.

具体的には、CT=10の場合には、全てのドライバに初期化データを送信し、CT=11の場合には、1段目のドライバ3個に設定データを送信している。以下同様に、割込みカウンタの値CNTに対応するドライバ3個に設定データを送信するので、設定データを増加させても問題が生じない。   Specifically, when CT = 10, initialization data is transmitted to all drivers, and when CT = 11, setting data is transmitted to three drivers in the first stage. Similarly, since the setting data is transmitted to the three drivers corresponding to the interrupt counter value CNT, no problem occurs even if the setting data is increased.

設定データとしては、Duty比(PWM)を規定する輝度データに加えて、フェードインやフェードアウトの動作態様を規定するデータを送信することが考えられる。一方、輝度データに代えて、ON/OFF状態を規定するスイッチデータを送信し、これにフェードインやフェードアウトの動作態様を規定するデータを追加して送信することも考えられる。   As setting data, it is conceivable to transmit data defining the operation mode of fade-in and fade-out in addition to the luminance data defining the duty ratio (PWM). On the other hand, it is also conceivable to transmit switch data defining the ON / OFF state instead of the luminance data, and additionally transmitting data defining the operation mode of fade-in and fade-out.

なお、実施例では、3チャンネルCH0〜CH2のランプ駆動基板について説明したが、ランプ駆動基板の個数に対応して、使用するシリアルポートの個数を増加すれば良い。   In the embodiment, the three-channel CH0 to CH2 lamp driving board has been described. However, the number of serial ports to be used may be increased in accordance with the number of lamp driving boards.

また、同じドライバDRijを使用してステッピングモータを駆動するもの好適であり、この場合には、モータ駆動基板を別に設けて、例えば、1mS毎にシリアル駆動データ(スイッチデータ)を送信する態様が考えられる(図9(b)のST21参照)。一方、ランプ駆動基板に、ステッピングモータを接続しても良いが、この場合には、ステッピングモータを駆動するドライバDRijについては、短い周期でシリアル駆動データの送信処理を繰り返すのが好ましい。   Further, it is preferable to drive the stepping motor using the same driver DRij. In this case, a mode in which a motor drive board is separately provided and serial drive data (switch data) is transmitted every 1 mS, for example, is considered. (Refer to ST21 in FIG. 9B). On the other hand, a stepping motor may be connected to the lamp driving board. In this case, it is preferable that the driver DRij for driving the stepping motor repeats the serial driving data transmission process in a short cycle.

また、図6に示す実施例では、1バイトのシリアルデータが送信される毎に、CPUが、送信データレジスタDRに次の1バイトのパラレルデータを書込む構成を採っているが、何ら限定されない。すなわち、所定単位長(複数バイト)のパラレルデータを一時保存可能なFIFOバッファを確保し、1バイトのシリアルデータが送信さる毎に、次のデータが送信データレジスタDRに自動的に補給される構成を採ることもでき、この場合には、CPUは、FIFO(First In First Out)バッファが空(empty )になったタイミングで、複数バイトのパラレルデータをFIFOバッファに纏めて書込むので足りる。   Further, in the embodiment shown in FIG. 6, every time 1-byte serial data is transmitted, the CPU writes the next 1-byte parallel data in the transmission data register DR. . That is, a FIFO buffer capable of temporarily storing parallel data of a predetermined unit length (a plurality of bytes) is secured, and the next data is automatically supplied to the transmission data register DR every time 1-byte serial data is transmitted. In this case, it is sufficient for the CPU to write parallel data of a plurality of bytes into the FIFO buffer when the FIFO (First In First Out) buffer becomes empty.

また、実施例では、専ら、CPUが、制御レジスタを繰り返しreadして、制御レジスタのempty ビットEMPをチェックする構成を採ったが、送信データレジスタDRやFIFOバッファが空(empty )になったタイミングで、CPUに割込みをかける構成を採るのも好適である。この場合、CPUは割込み要求に対応して、送信データレジスタDRに1バイトデータを書込むか、FIFOバッファに所定単位長のデータを書込めば良い。   In the embodiment, the CPU exclusively reads the control register repeatedly and checks the empty bit EMP of the control register. However, the timing when the transmission data register DR and the FIFO buffer become empty (empty). Therefore, it is preferable to adopt a configuration in which an interrupt is given to the CPU. In this case, in response to the interrupt request, the CPU may write 1-byte data into the transmission data register DR or write data of a predetermined unit length into the FIFO buffer.

更にまた、実施例のドライバには、処理時間を最小化するため、スレーブアドレス→レジスタアドレス→1バイトの駆動データ→1バイトの駆動データ→1バイトの駆動データ→・・・→1バイトの駆動データ・・・の手順を採ったが何ら限定されない。すなわち、送信するデータ個数を2バイト追加し、最初に、開始コマンド(スタートコマンド)を送信し、最後に、終了コマンド(ピリオドコマンド)を送信する構成を採っても良い。但し、この場合もスタートビットや、ストップビットは使用せず、各コマンドは、1単位長(1バイト長)である。   Furthermore, in order to minimize the processing time, the driver of the embodiment is slave address → register address → 1 byte drive data → 1 byte drive data → 1 byte drive data →... → 1 byte drive. Although the procedure of data ... was taken, it is not limited at all. That is, it is possible to add 2 bytes to the number of data to be transmitted, first transmit a start command (start command), and finally transmit an end command (period command). However, in this case as well, the start bit and stop bit are not used, and each command has a unit length (1 byte length).

また、例えば、24個のランプを駆動可能なドライバに対して、駆動対象のランプを個々的に特定した状態で、各ランプの点灯状態を規定する駆動データを送信しても良い。この場合には、例えば、スタートコマンド→当該ドライバを規定するスレーブアドレス→ランプを特定するサブアドレス→そのランプに対する駆動データ→ランプを特定するサブアドレス→そのランプに対する駆動データ→・・・・→ピリオドコマンドの手順でシリアルデータが送信される。この場合、送信されるデータの合計バイト数は、一つのドライバに対して24×2+3バイトである。   Further, for example, drive data that defines the lighting state of each lamp may be transmitted to a driver capable of driving 24 lamps in a state where the lamps to be driven are individually specified. In this case, for example, a start command → a slave address that defines the driver → a subaddress that specifies a lamp → a driving data for the lamp → a subaddress that specifies a lamp → a driving data for the lamp → a period command Serial data is sent in the procedure. In this case, the total number of bytes of data to be transmitted is 24 × 2 + 3 bytes for one driver.

以上、LEDランプや演出モータへのシリアル送信処理について説明したが、演出モータM1〜Mnについては、これが駆動する演出可動体の移動位置や移動状態を定時的に把握するのが好ましい。この場合、例えば、演出モータにより可動する演出可動体の原点位置を検出できる位置に検出センサ(原点センサ)を配置し、その検出センサのON/OFF状態を、演出モータの回転速度に対応した頻度で、定時的に把握するのが好適である。なお、演出可動体は、演出モータに駆動されて回転運動又は往復運動をする。   As described above, the serial transmission processing to the LED lamp and the effect motor has been described. However, it is preferable that the effect motors M1 to Mn regularly grasp the movement position and the movement state of the effect movable body driven by the effect motors M1 to Mn. In this case, for example, a detection sensor (origin sensor) is arranged at a position where the origin position of the effect movable body movable by the effect motor can be detected, and the ON / OFF state of the detection sensor corresponds to the rotation speed of the effect motor. Therefore, it is preferable to grasp on a regular basis. The effect movable body is driven by the effect motor to rotate or reciprocate.

図11は、演出可動体の原点位置を検出する原点センサから、検出スイッチ信号を受けて、演出制御部22のシリアル入力ポートSIに送信するセンサ信号伝送基板TRNSを例示したものである。図11(a)に示す通り、センサ信号伝送基板TRNSは、シフトレジスタ50と、入力バッファ回路51と、フィルタ回路52とを中心に構成されている。   FIG. 11 illustrates a sensor signal transmission board TRNS that receives a detection switch signal from an origin sensor that detects the origin position of the effect movable body and transmits the detection switch signal to the serial input port SI of the effect control unit 22. As shown in FIG. 11A, the sensor signal transmission board TRNS is configured with a shift register 50, an input buffer circuit 51, and a filter circuit 52 as the center.

入力バッファ回路51は、プルアップ抵抗RとインバータINとを有して構成され、原点センサから受ける検出スイッチ信号を論理反転させている。この実施例では、例えば7個の演出モータに対応して、合計7ビット長の検出スイッチ信号が、入力バッファ回路51を経由して、シフトレジスタ50の7個の入力端子(B〜H)に供給されている。そのため、最下位ビットの入力端子(A)は、グランドに接続されている。   The input buffer circuit 51 includes a pull-up resistor R and an inverter IN, and logically inverts a detection switch signal received from the origin sensor. In this embodiment, for example, corresponding to seven effect motors, detection switch signals having a total length of 7 bits are passed through the input buffer circuit 51 to the seven input terminals (B to H) of the shift register 50. Have been supplied. Therefore, the input terminal (A) of the least significant bit is connected to the ground.

フィルタ回路52は、50〜100Ω程度の抵抗R1,R2と、50〜100pF程度のコンデンサC1,C2とで構成されたCRローパスフィルタを構成している。なお、クロック信号CKはインバータINで論理反転された反転クロック信号CK’として、シフトレジスタ50のシリアル入力端子CLOCKに供給される。   The filter circuit 52 constitutes a CR low-pass filter composed of resistors R1 and R2 of about 50 to 100Ω and capacitors C1 and C2 of about 50 to 100 pF. The clock signal CK is supplied to the serial input terminal CLOCK of the shift register 50 as the inverted clock signal CK ′ logically inverted by the inverter IN.

シフトレジスタ50は特に限定されないが、例えば、図11(b)に内部回路を示すTC74VHC165F(東芝)が使用される。先に説明した通り、シフトレジスタ50のパラレル入力端子B〜Hに、検出スイッチ信号が供給されている一方、パラレル入力端子Aは、グランドレベルに固定されている。そして、これらパラレル入力端子A〜Hのデータは、ラッチ信号LTの立下りタイミングに同期して、シフトレジスタ50の内部レジスタに取得される。   The shift register 50 is not particularly limited. For example, TC74VHC165F (Toshiba) whose internal circuit is shown in FIG. 11B is used. As described above, the detection switch signal is supplied to the parallel input terminals B to H of the shift register 50, while the parallel input terminal A is fixed to the ground level. The data of these parallel input terminals A to H are acquired in the internal register of the shift register 50 in synchronization with the falling timing of the latch signal LT.

図示の通り、この実施例では、シフトレジスタ50のシリアル入力端子INPUTと禁止端子INHIBITとは、Lレベルに固定されている。そのため、シリアル入力端子CLOCKに反転クロック信号CK’が供給されると、シフトレジスタ50に取得されたデータが、反転クロック信号CK’の立上りエッジに同期して、シリアルデータQH(センサ信号SEN)として出力される。出力されたセンサ信号SENは、センサ信号伝送基板TRNSから演出制御基板22に伝送されてシリアル入力ポートSIに供給される。   As shown in the figure, in this embodiment, the serial input terminal INPUT and the prohibition terminal INHIBIT of the shift register 50 are fixed at the L level. Therefore, when the inverted clock signal CK ′ is supplied to the serial input terminal CLOCK, the data acquired by the shift register 50 is synchronized with the rising edge of the inverted clock signal CK ′ as serial data QH (sensor signal SEN). Is output. The output sensor signal SEN is transmitted from the sensor signal transmission board TRNS to the effect control board 22 and supplied to the serial input port SI.

図12は、センサ信号伝送基板TRNSからセンサ信号SENを受けるシリアル入力ポートSIの内部構成を図示したものである。このシリアル入力ポートSIは、図6に示すシリアルポートと全く同一構成であるが、図6と図12の記載内容が同一でないのは、各々のシリアルポートSIの動作モードが違うためである。   FIG. 12 illustrates the internal configuration of the serial input port SI that receives the sensor signal SEN from the sensor signal transmission board TRNS. The serial input port SI has exactly the same configuration as the serial port shown in FIG. 6, but the contents described in FIGS. 6 and 12 are not the same because the operation mode of each serial port SI is different.

すなわち、図6(a)に関して説明した通り、このシリアルポートSIは、制御レジスタRGへの設定値に基づいて、(1)送信動作モードか、(2)受信動作モードか、(3)送受信動作モードの何れかの動作が可能であるところ、図6(a)は、送信動作モードに設定されたシリアルポートの要部を図示し、図12では、受信動作モードに設定されたシリアルポートSIの要部を図示している。   That is, as described with reference to FIG. 6A, this serial port SI is based on the value set in the control register RG, whether it is (1) transmission operation mode, (2) reception operation mode, or (3) transmission / reception operation. 6A shows the main part of the serial port set in the transmission operation mode, and FIG. 12 shows the serial port SI set in the reception operation mode. The main part is illustrated.

図12に示す通り、受信動作モードに設定されたシリアルポートSIは、CPUコアから1バイトデータを受ける送信データレジスタDRと、外部から受けるシリアル信号Sinを1ビットずつ受信するシフトレジスタSRと、シフトレジスタSRに格納された1バイト長の受信データをパラレルデータとして受ける受信データレジスタRRと、シリアルポートの内部動作状態を管理する多数の制御レジスタRGと、カウンタ回路CTの出力パルスΦを受けて制御レジスタRGが指定する分周比のクロック信号CKbを出力するボーレートジェネレータBGと、を有して構成されている。   As shown in FIG. 12, the serial port SI set in the reception operation mode includes a transmission data register DR that receives 1-byte data from the CPU core, a shift register SR that receives a serial signal Sin received from the outside bit by bit, and a shift Received data register RR for receiving 1-byte length received data stored in register SR as parallel data, a number of control registers RG for managing the internal operation state of the serial port, and an output pulse Φ of counter circuit CT for control And a baud rate generator BG that outputs a clock signal CKb having a frequency division ratio designated by the register RG.

本実施例においてシリアル信号Sinは、センサ信号伝送基板TRNSから伝送されるセンサ信号SENであり、シリアルポートSIが出力するクロック信号CKに同期して伝送される。そして、シリアルポートSIを受信動作モードで動作させるため、内部の制御レジスタRGのうち、データ出力許可フラグSOEはOFFレベル、送信許可フラグTXEはONレベル、受信許可フラグRXEはONレベルに設定される。   In this embodiment, the serial signal Sin is the sensor signal SEN transmitted from the sensor signal transmission board TRNS, and is transmitted in synchronization with the clock signal CK output from the serial port SI. In order to operate the serial port SI in the reception operation mode, in the internal control register RG, the data output permission flag SOE is set to the OFF level, the transmission permission flag TXE is set to the ON level, and the reception permission flag RXE is set to the ON level. .

ここで、送信許可フラグTXEをONレベルにするのは、送信データレジスタDRへの書込み動作が必要なためである。但し、データ出力許可フラグSOEがOFFレベルであるので、書込まれたデータが出力されることはない。なお、制御レジスタRGには、図12(b)に示す受信完了フラグRDRFも含まれる。   Here, the transmission permission flag TXE is set to the ON level because a write operation to the transmission data register DR is necessary. However, since the data output permission flag SOE is at the OFF level, the written data is not output. The control register RG also includes a reception completion flag RDRF shown in FIG.

CPUは、例えば2mS毎に、定時処理として、センサ信号SENを取得するが、この取得処理に先行して、パラレル出力ポートPo’から負論理のラッチ信号LT(ラッチパルス)を出力する。すると、ラッチ信号LTの立下りタイミングに同期して、演出可動体の原点位置を検出する原点センサからの検出スイッチ信号が、センサ信号伝送基板TRNSのシフトレジスタ50の内部レジスタに取得される(図11(b)参照)。   For example, the CPU acquires the sensor signal SEN as a regular process every 2 mS, for example. Prior to this acquisition process, the CPU outputs a negative logic latch signal LT (latch pulse) from the parallel output port Po ′. Then, in synchronization with the falling timing of the latch signal LT, the detection switch signal from the origin sensor that detects the origin position of the effect movable body is acquired in the internal register of the shift register 50 of the sensor signal transmission board TRNS (FIG. 11 (b)).

その後、シリアル入力ポートSIは、図12(b)に示す通信プロトコルにしたがって、シリアル受信動作を開始する。すなわち、シリアル受信動作では、CPUは、データ出力許可フラグSOE=Lレベル(禁止レベル)、送信許可フラグTXE=Hレベル、受信許可フラグRXE=Hレベルに設定した状態で、シリアルポートSIの送信データレジスタDRに、1バイト長のダミーデータに書込む。すると、この書込み動作に対応して、クロック信号CKの出力が開始される。なお、データ出力許可フラグSOEが禁止レベルに設定されているので、ダミーデータがシフトレジスタSRから出力されることはない。   Thereafter, the serial input port SI starts the serial reception operation according to the communication protocol shown in FIG. That is, in the serial reception operation, the CPU sets the data output permission flag SOE = L level (prohibition level), the transmission permission flag TXE = H level, and the reception permission flag RXE = H level in the state set to the transmission data of the serial port SI. Write 1 byte long dummy data to the register DR. Then, in response to this write operation, output of the clock signal CK is started. Since the data output permission flag SOE is set to the prohibited level, dummy data is not output from the shift register SR.

シリアルポートSIから出力されたクロック信号CKは、反転クロック信号CK’として、シフトレジスタ50のシリアル入力端子CLOCKに供給されるので、シフトレジスタ50は、クロック信号CKの立下りエッジ(CK’の立上りエッジ)に同期してシフト動作を実行する。そして、1ビット毎に伝送されるセンサ信号SENは、クロック信号CKの立上りエッジ(CK’の立下りエッジ)に同期して、シリアルポートSIのシフトレジスタSRに取得される。   Since the clock signal CK output from the serial port SI is supplied to the serial input terminal CLOCK of the shift register 50 as the inverted clock signal CK ′, the shift register 50 detects the falling edge (rising edge of CK ′) of the clock signal CK. The shift operation is executed in synchronization with the edge. The sensor signal SEN transmitted for each bit is acquired by the shift register SR of the serial port SI in synchronization with the rising edge of the clock signal CK (the falling edge of CK ′).

そして、シフトレジスタSRが、8ビット目のセンサ信号SENを取得すると、シフトレジスタSRの1バイトデータが、受信データレジスタRRに転送されると共に、制御レジスタRGの受信完了フラグRDRFがON状態となる(図12(b)参照)。そのため、ON状態の受信完了フラグRDRFを把握したCPUは、受信データレジスタRRの1バイトデータ(センサ信号SEN)を読み出すことができる。なお、シリアルポートSIに関して受信割込みが許可されている場合には(Enable Interrupt FLGがON)、フラグセンス処理などによってCPUが受信完了フラグRDRFの値をチェックする必要はなく、自動的に起動される割込み処理において、1バイトのセンサ信号SENを取得することができる。   When the shift register SR acquires the 8-bit sensor signal SEN, 1-byte data of the shift register SR is transferred to the reception data register RR, and the reception completion flag RDRF of the control register RG is turned on. (See FIG. 12B). Therefore, the CPU that has grasped the reception completion flag RDRF in the ON state can read 1-byte data (sensor signal SEN) of the reception data register RR. When reception interrupt is permitted for the serial port SI (Enable Interrupt FLG is ON), the CPU does not need to check the value of the reception completion flag RDRF by flag sensing processing or the like, and is automatically activated. In the interrupt process, a 1-byte sensor signal SEN can be acquired.

上記何れの動作を採る場合でも、CPUが受信データレジスタRRの1バイトデータを取得すると、受信完了フラグRDRFがOFF状態に戻る。先に説明した通り、この実施例では、センサ信号SENが1バイト長であるので、この1バイトデータの取得処理で、演出可動体の原点位置の検出処理が終わる。但し、センサ信号SENなどのシリアル信号が複数バイトの場合には、その後も、次の1バイトデータがシフトレジスタSRから受信データレジスタRRに転送されたタイミングで、再度、受信完了フラグRDRFがON状態となるので、その後も上記と同じ動作を繰り返せば良い。   In any of the above operations, when the CPU acquires 1-byte data in the reception data register RR, the reception completion flag RDRF returns to the OFF state. As described above, in this embodiment, since the sensor signal SEN is 1 byte long, the detection process of the origin position of the effect movable body is completed by the acquisition process of the 1 byte data. However, when the serial signal such as the sensor signal SEN is a plurality of bytes, the reception completion flag RDRF is again turned on at the timing when the next 1-byte data is transferred from the shift register SR to the reception data register RR. Therefore, the same operation as described above may be repeated thereafter.

そして、必要なデータの取得が終われば、CPUは、データ出力許可フラグSOE=Lレベル、送信許可フラグTXE=Lレベル、受信許可フラグRXE=Lレベルに設定することで、シリアル受信動作を終了させる。   When the necessary data has been acquired, the CPU sets the data output permission flag SOE = L level, the transmission permission flag TXE = L level, and the reception permission flag RXE = L level to end the serial reception operation. .

以上各種の実施例を説明したが、本発明の適用は、必ずしも、弾球遊技機に限定されないのは勿論である。   Although various embodiments have been described above, it is needless to say that the application of the present invention is not necessarily limited to a ball game machine.

GM 遊技機
22’ 演出制御部
クロックパルス CK
シリアルポート S0〜S2
制御レジスタ RG
GM gaming machine 22 'Production control unit clock pulse CK
Serial port S0-S2
Control register RG

Claims (2)

他の制御手段から受けた制御コマンドに基づいて、ランプを所定態様で発光させてランプ演出を実行する演出制御手段を設けた遊技機であって、
前記演出制御手段は、
CPUコアからパラレルデータが書込まれる送信データレジスタと、送信データレジスタから転送されたパラレルデータをシリアル出力する送信シフトレジスタと、を有して、クロックパルスに同期して送信シフトレジスタからシリアル信号を出力するシリアル出力ポートを、CPUコアと共に内蔵する単一素子のコンピュータ回路と、
前記シリアル出力ポートを経由して、前記コンピュータ回路と一方向通信路で接続されており、各々に固有のアドレスが付与されて、前記シリアル出力ポートに並列接続されてシリアル信号とクロックパルスを共通して受ける複数のドライバと、
複数のドライバによって駆動される多数のランプと、を有して構成されており、
前記各ドライバは、必要なデータを保持可能な内蔵レジスタを内蔵し、前記一方向通信路を経由して、前記シリアル出力ポートの送信シフトレジスタからシリアル信号を一方向に受けることでランプを発光駆動しており、
前記コンピュータ回路のCPUコアは、
出力動作を許可設定した前記シリアル出力ポートから、一連のシリアル信号の送信開始を意味する開始コマンドを送信データレジスタに書込むことで、送信シフトレジスタから開始コマンドの出力を開始させる開始手段と、
ランプを所定態様で発光駆動するための一連のシリアル信号を、所定のドライバアドレスと、そのドライバの内蔵レジスタを特定して、前記シリアル出力ポートの送信シフトレジスタから出力した後、一連のシリアル信号の送信終了を意味する終了コマンドを送信データレジスタに書込むことで、送信シフトレジスタから終了コマンドの出力を開始させる終了手段と、を実現していることを特徴とする遊技機。
A gaming machine provided with effect control means for causing a lamp to emit light in a predetermined manner and executing a lamp effect based on a control command received from another control means,
The production control means includes
A transmission data register in which parallel data is written from the CPU core, and a transmission shift register that serially outputs parallel data transferred from the transmission data register, and a serial signal from the transmission shift register in synchronization with the clock pulse. A single-element computer circuit incorporating a serial output port for output together with a CPU core ;
Via the serial output port, it is connected to the computer circuit through a one-way communication path, given a unique address to each, and connected in parallel to the serial output port to share a serial signal and a clock pulse. With multiple drivers
A plurality of lamps driven by a plurality of drivers,
Each of the drivers has a built-in register capable of holding necessary data, and the lamp is driven to emit light by receiving a serial signal in one direction from the transmission shift register of the serial output port via the one-way communication path. And
The CPU core of the computer circuit is:
From the serial output port that allowed setting the output operation, a set of the start command, which means the start of transmission of the serial signal by writing to the transmit data register, the start means Ru to start output of the start command from the transmit shift register,
A series of serial signals for driving the lamp to emit light in a predetermined manner is output from the transmission shift register of the serial output port after specifying a predetermined driver address and a built-in register of the driver . by writing end command meaning transmission end to the transmission data register, a game machine, characterized in that to achieve a finished unit Ru to start output of the end command from the transmit shift register, a.
開始コマンド及び/又は終了コマンドは、複数ビット長である請求項1に記載の遊技機。   The gaming machine according to claim 1, wherein the start command and / or the end command has a plurality of bits.
JP2015147355A 2015-07-27 2015-07-27 Game machine Active JP6231052B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015147355A JP6231052B2 (en) 2015-07-27 2015-07-27 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015147355A JP6231052B2 (en) 2015-07-27 2015-07-27 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013259298A Division JP5787966B2 (en) 2013-12-16 2013-12-16 Game machine

Publications (2)

Publication Number Publication Date
JP2015213799A JP2015213799A (en) 2015-12-03
JP6231052B2 true JP6231052B2 (en) 2017-11-15

Family

ID=54751252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015147355A Active JP6231052B2 (en) 2015-07-27 2015-07-27 Game machine

Country Status (1)

Country Link
JP (1) JP6231052B2 (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362067A (en) * 2003-06-02 2004-12-24 Denso Corp Serial communication system
JP2005309652A (en) * 2004-04-20 2005-11-04 Fujitsu Ltd Microcontroller
JP4679129B2 (en) * 2004-12-17 2011-04-27 株式会社平和 Game machine
JP4300270B2 (en) * 2005-04-22 2009-07-22 株式会社大一商会 Game machine
JP4811912B2 (en) * 2005-08-19 2011-11-09 株式会社大一商会 Game machine
JP4491559B2 (en) * 2007-12-27 2010-06-30 株式会社アクセル Device controller
JP5445294B2 (en) * 2010-04-08 2014-03-19 株式会社三洋物産 Game machine
JP2011250967A (en) * 2010-06-01 2011-12-15 Takasago Electric Ind Co Ltd Game machine
JP2012090897A (en) * 2010-10-28 2012-05-17 Sophia Co Ltd Game machine
JP5363544B2 (en) * 2011-09-12 2013-12-11 株式会社三共 Game machine
JP5706462B2 (en) * 2013-04-11 2015-04-22 株式会社藤商事 Game machine

Also Published As

Publication number Publication date
JP2015213799A (en) 2015-12-03

Similar Documents

Publication Publication Date Title
JP6022660B2 (en) Game machine
JP6570588B2 (en) Game machine
JP6231053B2 (en) Game machine
JP5813697B2 (en) Game machine
JP2014223179A (en) Game machine
JP5823418B2 (en) Game machine
JP6140452B2 (en) Game machine
JP5787966B2 (en) Game machine
JP6231048B2 (en) Game machine
JP5443582B1 (en) Game machine
JP6231052B2 (en) Game machine
JP5787967B2 (en) Game machine
JP6132741B2 (en) Game machine
JP6132742B2 (en) Game machine
JP2016005697A (en) Game machine
JP6325623B2 (en) Game machine
JP5400214B1 (en) Game machine
JP5778734B2 (en) Game machine
JP6053855B2 (en) Game machine
JP5731551B2 (en) Game machine
JP5868370B2 (en) Game machine
JP5868372B2 (en) Game machine
JP5868369B2 (en) Game machine
JP5868371B2 (en) Game machine
JP2015073759A (en) Game machine

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150827

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160809

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170427

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: 20170926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171018

R150 Certificate of patent or registration of utility model

Ref document number: 6231052

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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