JP7138485B2 - game machine - Google Patents

game machine Download PDF

Info

Publication number
JP7138485B2
JP7138485B2 JP2018109367A JP2018109367A JP7138485B2 JP 7138485 B2 JP7138485 B2 JP 7138485B2 JP 2018109367 A JP2018109367 A JP 2018109367A JP 2018109367 A JP2018109367 A JP 2018109367A JP 7138485 B2 JP7138485 B2 JP 7138485B2
Authority
JP
Japan
Prior art keywords
data
image
command
register
serial
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
JP2018109367A
Other languages
Japanese (ja)
Other versions
JP2019208975A (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 JP2018109367A priority Critical patent/JP7138485B2/en
Publication of JP2019208975A publication Critical patent/JP2019208975A/en
Application granted granted Critical
Publication of JP7138485B2 publication Critical patent/JP7138485B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、遊技動作に起因する抽選処理を行い、その抽選結果に対応する画像演出を実行する遊技機に関する。 The present invention relates to a gaming machine that performs lottery processing based on game operations and executes image effects corresponding to the lottery results.

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示図柄が所定時間変動される。その後、7・7・7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。 A pinball game machine such as a pachinko machine is equipped with a pattern starting port provided on a game board, a pattern display section for displaying a series of pattern variations by a plurality of display patterns, and a prize winning port in which an opening/closing plate is opened and closed. configured as follows. 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 displayed symbols are changed in the symbol display unit for a predetermined period of time. After that, when the symbols stop in a predetermined manner such as 7, 7, 7, etc., a big hit state is entered, and the big winning opening is repeatedly opened to generate a game state advantageous to the player.

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

この種の遊技機では、各種の演出を豊富化したい一方で、機器構成を簡素化し、CPUの制御負担を軽減化したい要請が強い。 In this type of game machine, while it is desired to enrich various effects, there is also a strong demand for simplifying the equipment configuration and reducing the control load of the CPU.

この発明は、上記の課題に鑑みてなされたものであって、CPUの制御負担を過大化させることなく各種の演出を豊富化できる機器構成を有する遊技機を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a game machine having a device configuration capable of enriching various effects without increasing the control load of the CPU.

上記の目的を達成するため、本発明は、画像演出及び音声演出を統一的に制御するホストCPUを有する演出制御手段(50)と、前記演出制御手段から受ける画像コマンドリストに基づいて、一又は複数の表示装置の各1フレーム分の画像データを生成して画像演出を実行する画像生成手段(51)と、前記演出制御手段から受ける指示に基づいて、音声信号を生成しスピーカを駆動して音声演出を実行する音声制御手段(52)と、前記ホストCPUを経由しないデータ転送動作を実現するデータ転送手段(53)と、が内蔵された複合チップと、前記画像データや前記音声信号の基礎データとなる不揮発データを記憶する不揮発性メモリと、前記複合チップの内部動作の作業領域として使用可能に構成された揮発性メモリと、を有して構成された遊技機であって、電源投入後、前記データ転送手段を機能させて、前記不揮発性メモリに記憶されている不揮発データの一部を、前記揮発性メモリに自動転送するよう構成され、自動転送される不揮発データには、一単位の音声演出を実現する圧縮状態の基礎データが含まれているIn order to achieve the above object, the present invention provides an effect control means (50) having a host CPU for unified control of image effects and sound effects, and based on an image command list received from the effect control means, one or An image generating means (51) for generating image data for each one frame of a plurality of display devices and executing an image effect, and based on instructions received from the effect control means, an audio signal is generated and a speaker is driven. A composite chip incorporating an audio control means (52) for executing audio production and a data transfer means (53) for realizing data transfer operation without going through the host CPU, and the basis of the image data and the audio signal. A gaming machine comprising a non-volatile memory for storing non-volatile data as data and a volatile memory usable as a working area for internal operations of the composite chip, wherein after power-on a part of the non-volatile data stored in the non-volatile memory is automatically transferred to the volatile memory by operating the data transfer means ; It contains the basic data in a compressed state that realizes the sound effect .

上記した本発明の遊技機によれば、電源投入後、データ転送手段が不揮発データの一部を揮発性メモリに自動転送するので、高速の揮発性メモリを使用することで音声演出を豊富化することができる。 According to the game machine of the present invention described above, after the power is turned on, the data transfer means automatically transfers part of the non-volatile data to the volatile memory. be able to.

実施例に示すパチンコ機の斜視図である。1 is a perspective view of a pachinko machine shown in an embodiment; FIG. 図1のパチンコ機の遊技盤を図示した正面図である。FIG. 2 is a front view illustrating a game board of the pachinko machine of FIG. 1; 実施例のパチンコ機の全体構成を示すブロック図である。1 is a block diagram showing the overall configuration of a pachinko machine of an embodiment; FIG. 演出制御部の回路構成を例示するブロック図である。It is a block diagram which illustrates the circuit structure of a production|presentation control part. 複合チップの内部構成を説明する図面である。It is drawing explaining the internal structure of a composite chip. 描画コマンドリストの発行と実行を説明する図面である。FIG. 10 is a drawing for explaining the issuance and execution of a drawing command list; FIG. 描画コマンドリストの発行と実行を説明する別の図面である。FIG. 11 is another drawing for explaining the issuance and execution of a drawing command list; FIG. 複合チップに内蔵されたサウンドエンジン(音声プロセッサ)の動作を説明する図面である。4 is a diagram for explaining the operation of a sound engine (speech processor) built into the composite chip; FIG. ホストCPUがサウンドエンジンを制御する手順を説明する図面である。FIG. 10 is a drawing for explaining the procedure for the host CPU to control the sound engine; FIG. ホストCPUと、DMAコントローラと、シリアルポートの動作概略を説明する図面である。4 is a diagram for explaining the outline of operations of a host CPU, a DMA controller, and a serial port; FIG. ランプドライバの内部構成と動作を説明する図面である。4A and 4B are diagrams for explaining the internal configuration and operation of a lamp driver; モータドライバと、信号取得回路の動作を説明する図面である。4 is a diagram for explaining the operation of a motor driver and a signal acquisition circuit; FIG. ランプドライバへのシリアル伝送動作を説明する図面である。FIG. 10 is a diagram for explaining serial transmission operation to a lamp driver; FIG. ランプドライバへの別のシリアル伝送動作を説明する図面である。FIG. 10 is a diagram illustrating another serial transmission operation to the lamp driver; FIG. 演出制御部のメイン動作を説明するフローチャートである。It is a flowchart explaining the main operation|movement of a production|presentation control part. 演出制御部のタイマ割込み動作を説明するフローチャートである。It is a flowchart explaining the timer interruption operation|movement of the production|presentation control part. 画像コマンドリストの生成と発行を説明するフローチャートである。4 is a flow chart illustrating generation and issuance of an image command list; 画像コマンドリストの生成と発行を説明する別のフローチャートである。FIG. 11 is another flow chart illustrating generation and issuance of an image command list; FIG. サウンドエンジンの制御に関し、音声コマンドリストの生成と発行を説明するフローチャートである。FIG. 4 is a flow chart describing generation and issuance of a voice command list with respect to control of the sound engine; FIG.

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

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

前面板7には、発射用の遊技球を貯留する上皿8が装着され、前枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。 An upper plate 8 for storing game balls to be shot is attached to the front plate 7, and a lower plate 9 for storing game balls overflowing or extracted from the upper plate 8 and a shooting handle are provided at the lower part of the front frame 3. 10 are provided. A shooting handle 10 is interlocked with a shooting motor, and a game ball is shot by a hitting mallet that operates according to the rotation angle of the shooting 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 player's left hand, and the player can operate the chance button 11 without releasing the right hand from the shooting handle 10.例文帳に追加The chance button 11 does not function normally, but when the game state becomes the button chance state, the built-in lamp lights up and becomes operable. Note that 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 for the card-type ball lending machine is provided, and a frequency display section for displaying the remaining card amount in three digits and a predetermined amount of game balls are provided. A ball lending switch for instructing lending and a return switch for instructing card return at the end of the game are provided.

図2に示すように、遊技盤5の表面には、金属製の外レールと内レールとからなるガイドレール13が環状に設けられ、その略中央には、中央開口HOが設けられている。そして、中央開口HOの下方には、不図示の可動演出体が隠蔽状態で収納されており、可動予告演出時には、その可動演出体が上昇して露出状態となることで、所定の信頼度の予告演出を実現している。ここで、予告演出とは、遊技者に有利な大当り状態が招来することを不確定に報知する演出であり、予告演出の信頼度とは、大当り状態が招来する確率を意味している。 As shown in FIG. 2, on the surface of the game board 5, a guide rail 13 consisting of an outer rail and an inner rail made of metal is provided in an annular shape, and a central opening HO is provided substantially in the center thereof. Under the central opening HO, a movable effect body (not shown) is housed in a concealed state. We have realized the preview performance. Here, the notice performance is a performance that uncertainly notifies the occurrence of a big win state advantageous to the player, and the reliability of the notice performance means the probability of the occurrence of the big win state.

中央開口HOには、大型の液晶カラーディスプレイ(LCD)で構成されたメイン表示装置DS1が配置され、メイン表示装置DS1の右側には、小型の液晶カラーディスプレイで構成された可動式のサブ表示装置DS2が配置されている。メイン表示装置DS1は、大当り状態に係わる特定図柄を変動表示すると共に背景画像や各種のキャラクタなどをアニメーション的に表示する装置である。この表示装置DS1は、中央部に特別図柄表示部Da~Dcと右上部に普通図柄表示部19とを有している。そして、特別図柄表示部Da~Dcでは、大当り状態の招来を期待させるリーチ演出が実行されることがあり、特別図柄表示部Da~Dc及びその周りでは、適宜な予告演出などが実行される。 A main display device DS1 composed of a large liquid crystal color display (LCD) is arranged in the central opening HO, and a movable sub-display device composed of a small liquid crystal color display is arranged on the right side of the main display device DS1. DS2 is arranged. The main display device DS1 is a device that variably displays specific symbols related to a big win state and also displays a background image, various characters, and the like in an animated manner. This display device DS1 has special symbol display portions Da to Dc in the central portion and a normal symbol display portion 19 in the upper right portion. Then, in the special pattern display parts Da to Dc, a ready-to-win performance to expect the arrival of a big hit state is sometimes executed, and in and around the special pattern display parts Da to Dc, an appropriate advance notice performance is executed.

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

第1図柄始動口15aの上部には、導入口INから進入した遊技球がシーソー状又はルーレット状に移動した後に、第1図柄始動口15に入賞可能に構成された演出ステージ14が配置されている。そして、第1図柄始動口15に遊技球が入賞すると、特別図柄表示部Da~Dcの変動動作が開始されるよう構成されている。 Above the first symbol starting port 15a, a production stage 14 is arranged so that the first symbol starting port 15 can win after the game ball entering from the introduction port IN moves in a seesaw or roulette shape. there is Then, when a game ball wins the first symbol starting port 15, the special symbol display portions Da to Dc are configured to start varying operations.

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

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

第1大入賞口16aは、前後方向に進退するスライド盤を有して構成され、第2大入賞口16bは、下端が軸支されて前方に開放する開閉板を有して構成されている。第1大入賞口16aや第2大入賞口16bの動作は、特に限定されないが、この実施例では、第1大入賞口16aは、第1図柄始動口15aに対応し、第2大入賞口16bは、第1図柄始動口15bに対応するよう構成されている。 The first big prize winning port 16a has a sliding board that advances and retreats in the front-rear direction, and the second big prize winning port 16b has an opening/closing plate whose lower end is pivotally supported and which opens forward. . Although the operations of the first big winning hole 16a and the second big winning hole 16b are not particularly limited, in this embodiment, the first big winning hole 16a corresponds to the first symbol starting hole 15a, and the second big winning hole 16b is configured to correspond to the first symbol starting port 15b.

すなわち、第1図柄始動口15aに遊技球が入賞すると、特別図柄表示部Da~Dcの変動動作が開始され、その後、所定の大当り図柄が特別図柄表示部Da~Dcに整列すると、第1大当りたる特別遊技が開始され、第1大入賞口16aのスライド盤が、前方に開放されて遊技球の入賞が容易化される。 That is, when the game ball wins in the first symbol start port 15a, the special symbol display portions Da to Dc start to fluctuate, and after that, when the predetermined jackpot symbols are arranged in the special symbol display portions Da to Dc, the first jackpot. A special game is started, and the slide board of the first big winning hole 16a is opened forward to facilitate the winning of game balls.

一方、第2図柄始動口15bへの遊技球の入賞によって開始された変動動作の結果、所定の大当り図柄が特別図柄表示部Da~Dcに整列すると、第2大当りたる特別遊技が開始され、第2大入賞口16bの開閉板が開放されて遊技球の入賞が容易化される。特別遊技(大当り状態)の遊技価値は、整列する大当り図柄などに対応して種々相違するが、何れの遊技価値が付与されるかは、遊技球の図柄始動口15a,15bへの入賞時に実行される大当り抽選の抽選結果に基づいて予め決定される。 On the other hand, as a result of the fluctuation operation started by the winning of the game ball to the second symbol starting port 15b, when the predetermined big winning symbols are arranged in the special symbol display parts Da to Dc, the second big winning special game is started. The opening/closing plate of the second prize winning port 16b is opened to facilitate winning of game balls. The game value of the special game (jackpot state) varies depending on the jackpot symbols to be arranged, but which game value is given is executed when the game ball enters the symbol start ports 15a and 15b. It is determined in advance based on the lottery result of the big hit lottery.

典型的な大当り状態では、大入賞口16の開閉板が開放された後、所定時間が経過し、又は所定数(例えば10個)の遊技球が入賞すると開閉板が閉じる。このような動作は、最大で例えば15回まで継続され、遊技者に有利な状態に制御される。なお、特別図柄表示部Da~Dcの変動後の停止図柄が特別図柄のうちの特定図柄であった場合には、特別遊技の終了後のゲームが高確率状態(確変状態)となるという特典が付与される。 In a typical jackpot state, after the opening/closing plate of the big winning hole 16 is opened, the opening/closing plate closes when a predetermined time elapses or when a predetermined number (for example 10) of game balls win. Such actions are continued up to, for example, 15 times, and are 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 special game ends will be in a high probability state (definite variable state). Granted.

ところで、本実施例では、大当り状態を決定する大当り抽選や、その他の抽選確率を、係員の設定操作に基づいて、複数段階の何れかに設定できるようになっている。係員による抽選確率の設定操作は、特別な設定キーSET(図3)によって電源投入時に限り許可される。 By the way, in this embodiment, the big win lottery for determining the big win state and other lottery probabilities can be set to any of a plurality of stages based on the setting operation of the staff. The setting operation of the lottery probability by the staff is permitted only when the power is turned on by a special setting key SET (FIG. 3).

図3は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図であり、図4は、演出制御基板22について、やや詳細に記載したブロック図である。 FIG. 3 is a block diagram showing the overall circuit configuration of the pachinko machine GM that implements each operation described above, and FIG.

図3に示す通り、このパチンコ機GMは、AC24Vを受けて各種の直流電圧や、電源異常信号ABN1、ABN2やシステムリセット信号(電源リセット信号)SYSなどを出力する電源基板20と、遊技制御動作を中心統括的に担う主制御基板21と、主制御基板21から受けた制御コマンドCMDに基づいて各種の演出動作を統一的に実行する演出制御基板22と、主制御基板21から受けた制御コマンドCMD’に基づいて払出モータMを制御して遊技球を払い出す払出制御基板23と、遊技者の操作に応答して遊技球を発射させる発射制御基板24と、を中心に構成されている。 As shown in FIG. 3, the pachinko machine GM receives AC24V and various DC voltages, power failure signals ABN1, ABN2, system reset signal (power reset signal) SYS, etc. A power supply board 20 that outputs a game control operation A main control board 21 centrally responsible for the main control board 21, a production control board 22 for uniformly executing various production operations based on the control command CMD received from the main control board 21, and a control command received from the main control board 21 It is mainly composed of a payout control board 23 for controlling a payout motor M based on CMD' to put out game balls, and a launch control board 24 for shooting game balls in response to the player's operation.

上記の構成に対応して、主制御部基板21は、遊技盤中継基板31を経由して、遊技盤5の各遊技部品に接続されている。そして、遊技盤上の各入賞口16~18に内蔵された検出スイッチのスイッチ信号を受けて、必要な抽選処理を実行すると共に、電動式チューリップなどのソレノイド類を適宜に駆動している。 Corresponding to the above configuration, the main control board 21 is connected to each game component of the game board 5 via the game board relay board 31 . In response to the switch signal of the detection switch built into each of the winning holes 16 to 18 on the game board, necessary lottery processing is executed, and solenoids such as electric tulips are appropriately driven.

演出制御基板22には、表示装置DS1,DS2に伝送される画像信号を中継する液晶インタフェイス基板(液晶IF基板)25が、配線ケーブルを使用することなく、雄雌コネクタで直結されている。また、液晶IF基板25には、遊技実績情報などを不揮発的に記憶する不揮発性メモリ26(強誘電体メモリFeRAM:Ferroelectric Random Access Memory)と、現在時刻を計時可能な時計回路27(RTCリアルタイムクロック)とが搭載されている。 A liquid crystal interface board (liquid crystal IF board) 25 for relaying image signals transmitted to the display devices DS1 and DS2 is directly connected to the effect control board 22 by male and female connectors without using wiring cables. In addition, the liquid crystal IF substrate 25 includes a nonvolatile memory 26 (ferroelectric random access memory (FeRAM)) that stores game performance information in a nonvolatile manner, and a clock circuit 27 (RTC real time clock) capable of measuring the current time. ) is installed.

なお、主制御基板21が出力する制御コマンドCMDは、直接的に、演出制御基板22に伝送されるが、制御コマンドCMD’は、主基板中継基板32を経由して、払出制御基板23に伝送される。これらの制御コマンドCMD,CMD’は、何れも16ビット長であるが、8ビット長毎に2回に分けてパラレル送信されている。 The control command CMD output by the main control board 21 is directly transmitted to the performance control board 22, but the control command CMD' is transmitted to the payout control board 23 via the main board relay board 32. be done. Each of these control commands CMD and CMD' has a length of 16 bits, and is transmitted in parallel twice for each length of 8 bits.

主制御基板21、演出制御基板22と払出制御基板23には、ワンチップマイコンによるコンピュータ回路が搭載されている。一方、演出制御基板22には、画像プロセッサ51、音声プロセッサ52、及び、ホストCPU50などを内蔵する単一電子素子(複合チップ40)たるコンピュータ回路が搭載されており、ホストCPU50が、音声演出と、ランプ演出と、役物演出と、画像演出を一元的に制御している(図4参照)。なお、音声プロセッサ52が複合チップ40に内蔵されているので、以下の説明では、音声プロセッサ52を、特に、サウンドエンジン52と呼ぶことがある。また、画像プロセッサ51は、この機能を実現する複数の回路ブロック60~63によって実現される(図5参照)。 The main control board 21, the performance control board 22 and the payout control board 23 are equipped with a computer circuit by a one-chip microcomputer. On the other hand, the effect control board 22 is equipped with a computer circuit that is a single electronic element (composite chip 40) containing an image processor 51, an audio processor 52, and a host CPU 50. , lamp effects, character effects, and image effects are centrally controlled (see FIG. 4). Since the audio processor 52 is built into the composite chip 40, the audio processor 52 may be particularly referred to as the sound engine 52 in the following description. Also, the image processor 51 is implemented by a plurality of circuit blocks 60 to 63 that implement this function (see FIG. 5).

また、以下の説明において、制御基板21~23と液晶IF基板25に搭載された回路、及びその回路によって実現される動作を機能的に総称して、主制御部21、演出制御部22、及び払出制御部23と言う。なお、主制御部21に対して、演出制御部22と払出制御部23の全部又は一部がサブ制御部となる。 In the following description, the circuits mounted on the control boards 21 to 23 and the liquid crystal IF board 25, and the operations realized by the circuits are collectively functionally referred to as the main control section 21, the effect control section 22, and the It is called a payout control unit 23 . All or part of the effect control unit 22 and the payout control unit 23 serve as sub-control units for the main control unit 21 .

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

図3の破線枠に示す通り、枠側部材GM1には、電源基板20と、払出制御基板23と、発射制御基板24と、枠中継基板35と、CチャンネルのLEDランプ群を駆動するランプ駆動基板36と、Eチャンネルの役物モータ群を駆動するモータ駆動基板37と、が含まれており、これらの回路基板が、前枠3の適所に各々固定されている。 As shown in the dashed frame in FIG. 3, the frame-side member GM1 includes a power supply board 20, a payout control board 23, a launch control board 24, a frame relay board 35, and a lamp driver for driving the C-channel LED lamp group. A board 36 and a motor drive board 37 for driving a group of E-channel accessory motors are included.

一方、遊技盤5の背面には、盤側部材GM2として、主制御基板21、演出制御基板22、及び、液晶IF基板25が、表示装置DS1,DS2やその他の回路基板と共に固定されている。ここで、その他の回路基板には、DチャンネルのLEDランプ群を駆動するランプ駆動基板29と、Fチャンネルの役物モータ群を駆動するモータ駆動基板30と、枠中継基板34と、が含まれている。 On the back side of the game board 5, a main control board 21, a performance control board 22, and a liquid crystal IF board 25 are fixed as board-side members GM2 together with the display devices DS1 and DS2 and other circuit boards. Here, the other circuit boards include a lamp drive board 29 for driving the D-channel LED lamp group, a motor drive board 30 for driving the F-channel accessory motor group, and a frame relay board 34. ing.

枠側のモータ駆動基板37や、盤側のモータ駆動基板30には、役物モータを駆動する複数のモータドライバDVjが配置される他、複数ビット長のパラレル信号を受けて、シリアル信号に変換して出力する信号取得回路GETが各々配置されている。そして、モータ駆動基板37の信号取得回路GETには、チャンスボタン11のスイッチ信号や、役物モータ毎に配置された原点センサのセンサ信号が、複数ビット長のパラレル信号として供給される。 The motor drive board 37 on the frame side and the motor drive board 30 on the board side are provided with a plurality of motor drivers DVj for driving accessory motors. and signal acquisition circuits GET for outputting are arranged. Then, the switch signal of the chance button 11 and the sensor signal of the origin sensor arranged for each accessory motor are supplied to the signal acquisition circuit GET of the motor drive board 37 as parallel signals of a plurality of bits.

モータ駆動基板30についても同様であり、モータ駆動基板30の信号取得回路GETには、役物モータ毎に配置された原点センサのセンサ信号が、複数ビット長のパラレル信号として供給されるよう構成されている。 The same is true for the motor drive board 30, and the signal acquisition circuit GET of the motor drive board 30 is configured so that the sensor signal of the origin sensor arranged for each accessory motor is supplied as a parallel signal of multiple bits. ing.

詳しくは後述するが、本実施例の場合、CチャンネルのLEDランプ群、DチャンネルのLEDランプ群、Eチャンネルの役物モータ群、及び、Fチャンネルの役物モータ群は、全て、演出制御基板22のシリアルポート55からシリアル伝送される駆動データに基づいて駆動されている。ここで、Cチャンネル~Fチャンネルの称呼は、複合チップ40に内蔵されたシリアルポート55のチャネル番号#C~#Fに対応している。 Although details will be described later, in the case of this embodiment, the C-channel LED lamp group, the D-channel LED lamp group, the E-channel accessory motor group, and the F-channel accessory motor group are all provided by the effect control board. 22 is driven based on the drive data serially transmitted from the serial port 55 . Here, the C-channel to F-channel designations correspond to the channel numbers #C to #F of the serial port 55 built into the composite chip 40 .

上記した駆動基板36,37を含んだ枠側部材GM1と、駆動基板29,30を含んだ盤側部材GM2とは、一箇所に集中配置された接続コネクタC1~C4によって電気的に接続されている。したがって、枠側部材GM1と盤側部材GM2は、一の操作で電気接続が完了し、一の操作で電気接続が遮断されることになる。 The frame-side member GM1 including the drive boards 36 and 37 and the board-side member GM2 including the drive boards 29 and 30 are electrically connected by connectors C1 to C4 concentratedly arranged in one place. there is Therefore, the electrical connection between the frame-side member GM1 and the board-side member GM2 is completed by one operation, and the electrical connection is cut off by one operation.

電源基板20は、接続コネクタC2を通して、主基板中継基板32に接続され、接続コネクタC3を通して、電源中継基板33に接続されている。電源基板20には、交流電源の投入と遮断とを監視する電源監視部MNTが設けられている。電源監視部MNTは、交流電源が投入されたことを検知すると、所定時間だけシステムリセット信号SYSをLレベルに維持した後に、これをHレベルに遷移させる。 The power board 20 is connected to the main board relay board 32 through the connector C2, and is connected to the power relay board 33 through the connector C3. The power board 20 is provided with a power monitor MNT that monitors turning on and off of the AC power. When the power monitoring unit MNT detects that the AC power supply is turned on, it keeps the 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 the power monitoring unit MNT detects the interruption of the AC power, it immediately changes the power failure signals ABN1 and ABN2 to the L level. The power failure signals ABN1 and ABN2 quickly become H level after the power is turned on.

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

主基板中継基板32は、電源基板20から出力される電源異常信号ABN1、バックアップ電源BAK、及びDC5V,DC12V,DC32Vを、そのまま主制御部21に出力している。一方、電源中継基板33は、電源基板20から受けたシステムリセット信号SYSや、交流及び直流の電源電圧を、そのまま演出制御部22に出力している。そして、演出制御部22は、受けたシステムリセット信号SYSに基づいて、基板各部に配置された電子素子を電源リセットしている。 The main board relay board 32 outputs the power failure signal ABN1, the backup power supply BAK, and DC5V, DC12V, and DC32V output from the power board 20 to the main control section 21 as they are. On the other hand, the power supply relay board 33 outputs the system reset signal SYS received from the power supply board 20 and the AC and DC power supply voltages to the effect control section 22 as they are. Based on the received system reset signal SYS, the effect control unit 22 resets the power supply of the electronic elements arranged on each part of the board.

一方、払出制御基板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 supply abnormality signal ABN2 and the backup power supply BAK as the main control unit 21 receives, together with other power supply voltages. I receive it as intended.

電源基板20が出力するシステムリセット信号SYSは、電源基板20に交流電源24Vが投入されたことを示す電源リセット信号であり、この電源リセット信号に基づいて、演出制御部22を構成する各回路素子が電源リセットされるようになっている。 The system reset signal SYS output by the power supply board 20 is a power supply reset signal indicating that the AC power supply 24V is turned on to the power supply board 20. Based on this power supply reset signal, each circuit element constituting the effect control unit 22 is set to power reset.

但し、このシステムリセット信号SYSは、主制御部21と払出制御部23には、供給されておらず、各々の回路基板21,24のリセット回路RSTにおいて電源リセット信号(CPUリセット信号)が生成されている。そのため、例えば、接続コネクタC2がガタついたり、或いは、配線ケーブルにノイズが重畳しても、主制御部21や払出制御部23のCPUが異常リセットされるおそれはない。 However, this system reset signal SYS is not supplied to the main control section 21 and the payout control section 23, 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 rattles 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 23 is abnormally reset.

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

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

図3に示す通り、初期化スイッチSWは、抽選確率などを規定する設定キーSETと同様に、主制御部21に供給されている。これら初期化スイッチSWや設定キーSETの操作は、電源投入直後に実行される主制御部21の初期処理で認識され、抽選確率などの設定処理や内蔵RAMの初期化処理が実行される。 As shown in FIG. 3, the initialization switch SW is supplied to the main control section 21 in the same way as the setting key SET that defines the lottery probability. The operations of the initialization switch SW and the setting key SET are recognized in the initialization process of the main control section 21 which is executed immediately after the power is turned on, and the lottery probability setting process and internal RAM initialization process are executed.

その後、抽選確率などの設定値は、CPU割込み許可状態で開始される主制御部21の定常処理において、所定の制御コマンドの形式で演出制御部22に通知され、通知された設定値は、液晶IF基板25の不揮発性メモリ26に記憶される。先に説明した通り、設定キーSETは、大当り抽選などの当選確率を、複数段階の何れかに設定する用途で使用される。そして、設定キーSETの設定内容は、時計回路27から読み取った時刻情報と共に、不揮発性メモリ26に記憶される。 After that, set values such as the lottery probability are notified to the production control unit 22 in the form of a predetermined control command in the regular processing of the main control unit 21 started in the CPU interrupt permission state, and the notified set values are displayed on the liquid crystal display. It is stored in the non-volatile memory 26 of the IF board 25 . As described above, the setting key SET is used for setting the winning probability of a jackpot lottery or the like to one of a plurality of stages. The setting contents of the setting key SET are stored in the nonvolatile memory 26 together with the time information read from the clock circuit 27 .

以上の通り、抽選確率などの設定処理や、内蔵RAMの初期化処理は、電源投入直後に限り許容され、その後に開始される定常処理で実行されることはない。但し、主制御部21の定常処理中に、係員が設定キーSETを操作した場合には、その事実が主制御部21から演出制御部22に通知されるようになっている。 As described above, the process of setting the lottery probability and the like and the process of initializing the built-in RAM are permitted only immediately after the power is turned on, and are not executed in the regular process that starts thereafter. However, when the clerk operates the setting key SET during the normal processing of the main control section 21, the fact is notified from the main control section 21 to the effect control section 22. FIG.

そして、設定キーSETの操作通知を受けた演出制御部22では、不揮発性メモリ26に記憶内容を読み出して、表示装置DS1に画面表示するようになっている。定常処理中における設定キーSETの操作は、係員が、営業開始前に、抽選確率の設定履歴や、遊技実績履歴を確認したい採られる操作であり、不正行為の痕跡がないことを確認したい場合などに活用される。 Upon receiving the operation notification of the setting key SET, the effect control section 22 reads out the contents stored in the non-volatile memory 26 and displays them on the display device DS1. Operation of the setting key SET during regular processing is an operation performed by a staff member who wants to check the setting history of the lottery probability and the game performance history before the start of business, and to confirm that there is no evidence of fraudulent activity. used for

そして、この設定キーSETの操作に対応して、初期化スイッチSWが操作された場合には、この通知を受けた演出制御部22では、不揮発性メモリ26の記憶内容を全て消去するようになっている。これは、例えば、その遊技機を転売するような場合に、営業秘密ともいうべき、抽選確率の設定履歴や、遊技実績履歴を消去するためである。 When the initialization switch SW is operated in response to the operation of the setting key SET, the effect control section 22 receiving this notification erases all the stored contents of the nonvolatile memory 26. ing. This is because, for example, when the game machine is resold, the setting history of the lottery probability and the game performance history, which should be called trade secrets, are deleted.

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

先に説明した通り、演出制御基板22と液晶IF基板25とはコネクタ連結によって一体化されており、演出制御部22は、電源中継基板33を経由して、電源基板20から各レベルの直流電圧(5V,12V,32V)と、システムリセット信号SYSを受けている(図3及び図4参照)。 As described above, the effect control board 22 and the liquid crystal IF board 25 are integrated by connector connection, and the effect control section 22 receives the DC voltage of each level from the power supply board 20 via the power relay board 33. (5V, 12V, 32V) and the system reset signal SYS (see FIGS. 3 and 4).

また、演出制御部22は、主制御部21から制御コマンドCMDとストローブ信号STBとを受けている。そして、演出制御部22は、ランプ駆動基板29やランプ駆動基板36に搭載された多数のランプドライバDR1~DRn(図10(a)参照)に、ランプ駆動データSPOc,SPCdをシリアル伝送することで、Cチャンネルのランプ群と、Dチャンネルのランプ群を駆動して、制御コマンドCMDに基づくランプ演出を実現している。 Also, the effect control section 22 receives a control command CMD and a strobe signal STB from the main control section 21 . Then, the effect control unit 22 serially transmits the lamp drive data SPOc, SPCd to a large number of lamp drivers DR1 to DRn (see FIG. 10A) mounted on the lamp drive board 29 and the lamp drive board 36. , the C-channel lamp group and the D-channel lamp group are driven to realize a lamp effect based on the control command CMD.

また、演出制御部22は、モータ駆動基板30やモータ駆動基板37に搭載された多数のモータドライバDV1~DVm(図11(a)参照)に、モータ駆動データSOe,SOfをシリアル伝送することで、Eチャンネルのモータ群と、Fチャンネルのモータ群を駆動して、制御コマンドCMDに基づく役物演出を実現している。 In addition, the performance control unit 22 serially transmits the motor drive data SOe and SOf to a large number of motor drivers DV1 to DVm (see FIG. 11A) mounted on the motor drive board 30 and the motor drive board 37. , the E-channel motor group and the F-channel motor group are driven to realize a performance based on the control command CMD.

特に限定されないが、本実施例の場合、クロック同期式のシリアル伝送方式を採っており、ランプ駆動基板36とランプ駆動基板29のランプドライバDRiは、クロック信号SPCKc,SPCKdに同期してランプ駆動信号SPOc,SPOdを受けている。また、モータ駆動基板37とモータ駆動基板30のモータドライバDVjは、シリアルクロックSCKe,SCKfに同期してモータ駆動信号SOe,SOfを受けている(図4参照)。 Although not particularly limited, in the case of the present embodiment, a clock synchronous serial transmission system is adopted, and the lamp drivers DRi of the lamp drive board 36 and the lamp drive board 29 transmit the lamp drive signals in synchronization with the clock signals SPCKc and SPCKd. SPOc and SPOd are received. Motor drivers DVj of motor drive boards 37 and 30 receive motor drive signals SOe and SOf in synchronization with serial clocks SCKe and SCKf (see FIG. 4).

図4は、演出制御部22の内部構成をやや詳細に示すブロック図、図5は、複合チップの内部構成を示すブロック図である。図3や図4に示す通り、演出制御部22は、画像演出、音声演出、ランプ演出、及び、役物演出を一元的に制御する複合チップ40と、複合チップ40による演出制御動作の作業領域などとして機能するDDR3SDRAM(Double-Data-Rate3 Synchronous Dynamic Random Access Memory)41と、一元的な演出動作を実現する制御プログラム、圧縮状態の音声データSND、及び圧縮状態の画像データIMGなどを不揮発的に記憶するCGROM42と、複合チップ40から受ける音声信号を増幅してスピーカSPを駆動するデジタルアンプ43と、入力バッファ44,45A,45Bと、出力バッファ46A,46Bと、信号切換部47A,47Bと、を中心に構成されている。 FIG. 4 is a block diagram showing in some detail the internal construction of the effect control section 22, and FIG. 5 is a block diagram showing the internal construction of the composite chip. As shown in FIGS. 3 and 4, the effect control unit 22 includes a composite chip 40 that centrally controls image effects, sound effects, lamp effects, and character effects, and a work area for effect control operations by the composite chip 40. DDR3 SDRAM (Double-Data-Rate3 Synchronous Dynamic Random Access Memory) 41 that functions as a non-volatile memory such as a control program that realizes a unified performance operation, compressed audio data SND, and compressed image data IMG. CGROM 42 for storing, digital amplifier 43 for amplifying the audio signal received from composite chip 40 and driving speaker SP, input buffers 44, 45A, 45B, output buffers 46A, 46B, signal switching units 47A, 47B, is centered around.

なお、以下の説明では、便宜上、DDR3SDRAM41を、DDRメモリ又は外付けRAM(Random Access Memory)41と称し、CGROM42を、外付けROM(Read Only Memory)42と称することがある。 In the following description, the DDR3SDRAM 41 may be referred to as DDR memory or external RAM (Random Access Memory) 41 and the CGROM 42 may be referred to as external ROM (Read Only Memory) 42 for convenience.

本実施例の複合チップ40に接続可能なDDRメモリ41は、最高、8Gバイト長であるが、複合チップ40(ホストCPU50)から直接アクセス可能な領域は256Mバイトである。そこで、本実施例では、この256MバイトのDDRメモリ41の直接アクセス領域に、表示装置DS1,DS2の各一フレーム分の画像データを一時保存するフレームバッファFBを確保している。また、本実施例では、外付けROM42に記憶されている音声データSNDを、電源投入時に、DDRメモリ41の直接アクセス可能領域にコピーして、複合素子40からの高速アクセスを可能にしている。 The DDR memory 41 connectable to the composite chip 40 of this embodiment has a maximum length of 8 Gbytes, but the area directly accessible from the composite chip 40 (host CPU 50) is 256 Mbytes. Therefore, in this embodiment, the direct access area of the DDR memory 41 of 256 Mbytes is provided with a frame buffer FB for temporarily storing one frame of image data for each of the display devices DS1 and DS2. Also, in this embodiment, the audio data SND stored in the external ROM 42 is copied to the directly accessible area of the DDR memory 41 when the power is turned on, enabling high-speed access from the composite element 40 .

また、複合チップ40に接続可能な外付けROM42は、最高1Tバイト長(1,099,511,627,776 バイト=1,024 Gバイト)であるが、複合チップ40(ホストCPU50)から直接アクセス可能な領域は1Gバイトである。そこで、本実施例では、この1GMバイトの外付けROM42の直接アクセス領域に、演出動作を一元的に制御する演出制御プログラムと、演出制御プログラムが参照する演出制御データと、音声演出の基礎データである音声データSNDと、を不揮発的に記憶している。なお、演出制御データには、ランプ演出や役物演出を実現するための駆動データが含まれている。また、先に説明した通り、外付けROM42の音声データSNDは、電源投入時に、外付けROM42からDDRメモリ41に転送される。 The external ROM 42 connectable to the composite chip 40 has a maximum length of 1T bytes (1,099,511,627,776 bytes=1,024 Gbytes), but the area directly accessible from the composite chip 40 (host CPU 50) is 1G bytes. Therefore, in this embodiment, the direct access area of this 1 GM byte external ROM 42 contains a production control program for centrally controlling the production operation, production control data referred to by the production control program, and basic data for voice production. and audio data SND are stored in a non-volatile manner. The effect control data includes drive data for realizing lamp effects and character effects. Also, as described above, the audio data SND in the external ROM 42 is transferred from the external ROM 42 to the DDR memory 41 when power is turned on.

図4や図5に示す通り、複合チップ40は、ホストCPU50と、表示装置DS1,DS2を駆動して画像演出を実現する画像プロセッサ51と、スピーカを駆動して音声演出を実現する音声プロセッサ52と、ホストCPU50を経由しない直接的なデータ伝送を実現するDMA(Direct Memory Access)コントローラ53と、パラレル信号を入出力するパラレルポート(PIO)54と、シリアル信号を入出力するシリアルポート(SIO)55と、メインメモリ(M1)56と、内蔵DRAM(M2)57などを中心的に内蔵している。なお、便宜上、パラレルポートと称するが、実際には、パラレル出力ポート(PO)と、パラレル入力ポート(PI)が含まれている。 As shown in FIGS. 4 and 5, the composite chip 40 includes a host CPU 50, an image processor 51 that drives the display devices DS1 and DS2 to produce an image effect, and an audio processor 52 that drives a speaker to produce an audio effect. , a DMA (Direct Memory Access) controller 53 for realizing direct data transmission without going through the host CPU 50, a parallel port (PIO) 54 for inputting and outputting parallel signals, and a serial port (SIO) for inputting and outputting serial signals. 55, a main memory (M1) 56, a built-in DRAM (M2) 57, etc. are centrally built in. For the sake of convenience, they are referred to as parallel ports, but they actually include a parallel output port (PO) and a parallel input port (PI).

本実施例のシリアルポート55は、チャネル#Aからチャネル#Fまで、合計6チャネル存在するが、動作モードの設定に基づいて、シリアル出力ポートか又はシリアル入力ポートとして機能させることができる。そこで、本実施例では、チャネル#Cとチャネル#Dを、ランプ演出用のシリアル出力ポートとして使用している。一方、シリアルポート55のチャネル#Eと、チャネル#Fについては、モータ演出用のシリアル出力ポートとして機能させた後、動作モードを切換え、シリアル信号を受信するシリアル入力ポートとして使用している。 The serial port 55 of this embodiment has a total of 6 channels from channel #A to channel #F, but can function as either a serial output port or a serial input port based on the setting of the operation mode. Therefore, in this embodiment, channel #C and channel #D are used as serial output ports for lamp effects. On the other hand, channel #E and channel #F of serial port 55 are used as serial input ports for receiving serial signals after functioning as serial output ports for motor effects, and then switching the operation mode.

このような内部構成を有する複合チップ40に対応して、入力バッファ44は、主制御部21から制御コマンドCMDとストローブ信号STBを受けると共に、電源基板20からシステムリセット信号SYSを受けている。そして、制御コマンドCMDとストローブ信号STBは、複合チップ40のパラレルポート54に伝送され、ストローブ信号STBに起因する割込み処理に基づいて、ホストCPU50が制御コマンドCMDを取得している。 Corresponding to the composite chip 40 having such an internal configuration, the input buffer 44 receives the control command CMD and the strobe signal STB from the main control section 21 and also receives the system reset signal SYS from the power supply board 20 . The control command CMD and strobe signal STB are transmitted to the parallel port 54 of the composite chip 40, and the host CPU 50 acquires the control command CMD based on interrupt processing caused by the strobe signal STB.

また、枠側入力バッファ45Aは、枠中継基板34を経由して、チャネル#Eのシリアル信号SNiを受け、盤側入力バッファ45Bは、モータ駆動基板30から、チャネル#Fのシリアル信号SNjを受けるよう構成され、各入力バッファ45A,45Bは、各シリアル信号SNi,SNjを複合チップ40のシリアルポート55に伝送している。なお、各シリアル信号SNi,SNjは、出力バッファ46A,46Bを経由して伝送されるチャネル#Eと、チャネル#FのシリアルクロックSCKe,SCKfに同期して、クロック同期式でシリアル伝送される。 The frame-side input buffer 45A receives the serial signal SNi of channel #E via the frame relay board 34, and the board-side input buffer 45B receives the serial signal SNj of channel #F from the motor drive board 30. Each input buffer 45A, 45B transmits each serial signal SNi, SNj to the serial port 55 of the composite chip 40. As shown in FIG. The serial signals SNi and SNj are serially transmitted in a clock synchronous manner in synchronization with the serial clocks SCKe and SCKf of channel #E and channel #F transmitted via the output buffers 46A and 46B.

ここで、シリアル信号SNiには、枠側に配置された役物モータの回転位置を特定する原点信号と、チャンスボタン11が押下されたことを示すスイッチ信号とが含まれている。一方、シリアル信号SNjには、盤側に配置された役物モータの回転位置を特定する原点信号が含まれている。 Here, the serial signal SNi includes an origin signal specifying the rotation position of the accessory motor arranged on the frame side, and a switch signal indicating that the chance button 11 has been pressed. On the other hand, the serial signal SNj includes an origin signal specifying the rotation position of the accessory motor arranged on the board side.

次に、枠側出力バッファ46Aと盤側出力バッファ46Bは、複合チップ40のシリアルポート55やパラレルポート54から受ける各種の信号を、各々、枠中継基板34とランプ駆動基板29に出力している。 Frame-side output buffer 46A and board-side output buffer 46B output various signals received from serial port 55 and parallel port 54 of composite chip 40 to frame relay board 34 and lamp drive board 29, respectively. .

図示の通り、枠側出力バッファ46Aは、シリアルポート55からランプ駆動基板36に伝送されるチャネル#Cの信号群SPOc,SPCKc,OEcと、シリアルポート55からモータ駆動基板37に伝送されるチャネル#Eの信号群SOe,SCKe,SCKeと、パラレルポート54からモータ駆動基板37に伝送されるチャネル#EのラッチパルスLTeと、を中継している。 As shown, the frame-side output buffer 46A receives the signal group SPOc, SPCKc, and OEc of channel #C transmitted from the serial port 55 to the lamp drive board 36 and the channel #C signal group transmitted from the serial port 55 to the motor drive board 37. E's signal group SOe, SCKe, SCKe and the latch pulse LTe of channel #E transmitted from the parallel port 54 to the motor drive board 37 are relayed.

一方、盤側出力バッファ46Bは、シリアルポート55からランプ駆動基板29に伝送されるチャネル#Dの信号群SPOd,SPCKd,OEdと、シリアルポート55からモータ駆動基板30に伝送されるチャネル#Fの信号群SOf,SCKf,SCKfと、パラレルポート54からモータ駆動基板30に伝送されるチャネル#FのラッチパルスLTfと、を中継している。 On the other hand, the board-side output buffer 46B stores the signal group SPOd, SPCKd, and OEd of channel #D transmitted from the serial port 55 to the lamp drive board 29 and the signal group of channel #F transmitted from the serial port 55 to the motor drive board 30. It relays the signal group SOf, SCKf, SCKf and the latch pulse LTf of the channel #F transmitted from the parallel port 54 to the motor drive board 30 .

信号切換器47は、モータ駆動基板37に伝送されるチャネル#EのシリアルクロックSCKeの最終伝送先を切り換える枠側切換器47Aと、モータ駆動基板30に伝送されるチャネル#FのシリアルクロックSCKfの最終伝送先を切り換える盤側切換器47Bとに区分される。枠側切換器47Aと、盤側切換器47Bは、各々、パラレルポート54から切換制御信号CTLe,CTfを受けて、シリアルクロックSCKe,SCKfの伝送先を切り換えている。 The signal switcher 47 is a frame side switcher 47A that switches the final transmission destination of the serial clock SCKe of channel #E transmitted to the motor drive board 37, and the serial clock SCKf of channel #F that is transmitted to the motor drive board 30. It is divided into a board side switcher 47B for switching the final transmission destination. The frame-side switcher 47A and the board-side switcher 47B receive switching control signals CTLe and CTf from the parallel port 54, respectively, and switch transmission destinations of the serial clocks SCKe and SCKf.

本実施例では、チャネル#Eとチャネル#FのシリアルクロックSCKe,SCKfは、各々、モータ駆動基板37とモータ駆動基板30に伝送されが、切換制御信号CTLe,CTfが第1レベルであれば、各モータ駆動基板37,30において、モータドライバDVに供給され、切換制御信号CTLe,CTfが第2レベルであれば、信号取得回路GETに供給されるようになっている。 In this embodiment, the serial clocks SCKe and SCKf of channel #E and channel #F are transmitted to the motor drive board 37 and the motor drive board 30, respectively. In each of the motor drive boards 37 and 30, they are supplied to the motor driver DV, and if the switching control signals CTLe and CTf are at the second level, they are supplied to the signal acquisition circuit GET.

次に、液晶IF基板25について説明すると、液晶IF基板25には、不揮発性メモリ(FeRAM)26と、時計回路27の他に、画像プロセッサ51から第1のLVDS(Low voltage differential signaling)信号を受ける信号分配器28Aと、画像プロセッサ51から第2のLVDS信号を受ける信号変換器28Bとが搭載されている。第1のLVDS信号と、第2のLVDS信号は、メイン表示装置DS1やサブ表示装置DS2の各一フレームを構築する画像信号であり、一のピクセルについて、RGB各8ビットのピクセルデータを、水平/垂直同期信号やピクセルクロック(ドットクロック)を含んで、各々、五対の差動信号線に対して複合チップ40から出力される。 Next, the liquid crystal IF board 25 will be described. In addition to a nonvolatile memory (FeRAM) 26 and a clock circuit 27, the liquid crystal IF board 25 receives a first LVDS (Low voltage differential signaling) signal from an image processor 51. A receiving signal splitter 28A and a signal converter 28B receiving the second LVDS signal from the image processor 51 are mounted. The first LVDS signal and the second LVDS signal are image signals that construct one frame of each of the main display device DS1 and the sub display device DS2. / Including a vertical synchronizing signal and a pixel clock (dot clock), each output from the composite chip 40 to five pairs of differential signal lines.

信号分配器28Aは、メイン表示装置DS1に伝送すべき第1のLVDS信号LVDS1を受けてRGB信号を復元した後、偶数ピクセル用の画像信号と、奇数ピクセル用のRGB信号に分配した後、各々を各五対のLVDSo,LVDSe信号に変換してメイン表示装置DS1に出力する回路である(図5参照)。 The signal distributor 28A receives the first LVDS signal LVDS1 to be transmitted to the main display device DS1, restores the RGB signal, distributes it to the image signal for even pixels and the RGB signal for odd pixels, and are converted into five pairs of LVDSo and LVDSe signals and output to the main display device DS1 (see FIG. 5).

この信号分配器28Aの動作に基づき、メイン表示装置DS1に伝送されるLVDS信号(LVDSo,LVDSe)のドットクロックは、元のLVDS信号のドットクロックの周波数Fdが1/2に抑制され大幅に耐ノイズ性が向上するので、高画質(高解像度)で大型の表示装置を安定して駆動することができる。なお、メイン表示装置DS1には、LVDSo,LVDSe信号に基づいて、本来のドットクロック周波数FdのRGBデジタル信号を復元する第1復元回路38Aが内蔵されており、メイン表示装置DS1の表示画面には、画像プロセッサ51が生成した高画質の一フレーム画像が表示される。 Based on the operation of the signal distributor 28A, the dot clock of the LVDS signals (LVDSo, LVDSe) transmitted to the main display device DS1 has a dot clock frequency Fd of the original LVDS signal that is suppressed to 1/2, resulting in a significant tolerance. Since noise resistance is improved, a large display device with high image quality (high resolution) can be stably driven. The main display device DS1 incorporates a first restoration circuit 38A that restores RGB digital signals with the original dot clock frequency Fd based on the LVDSo and LVDSe signals. , a high-quality one-frame image generated by the image processor 51 is displayed.

一方、信号変換器28Bは、サブ表示装置DS2に伝送すべき第2のLVDS信号LVDS2を五対の差動信号線で受け、これを一対の差動信号線に纏めて出力する回路である。これは、サブ表示装置DS2の縦横寸法が、メイン表示装置DS1より大幅に小型である一方で、垂直同期信号の周波数(1/60Hz)が共通するので、ピクセルクロックの周波数が低いことを考慮して、配線数を大幅に減少させるためである。 On the other hand, the signal converter 28B is a circuit that receives the second LVDS signal LVDS2 to be transmitted to the sub-display device DS2 through five pairs of differential signal lines, and outputs them together into a pair of differential signal lines. This is because the vertical and horizontal dimensions of the sub display device DS2 are significantly smaller than those of the main display device DS1, while the frequency of the vertical synchronization signal (1/60 Hz) is common, so the frequency of the pixel clock is low. This is because the number of wirings can be greatly reduced.

本実施例では、一ピクセルを構成するRGBデータを各々8ビットで特定するので、ピクセルクロック一周期の第2のLVDS信号には、3×8ビットのRGBデータ、垂直同期信号VS、水平同期信号HS、及びデータイネーブル信号DEなどを含め合計28ビットのデータが含まれるが、信号変換器28Bでは、これら28ビットに、DCバランス用の制御データなどを加えた、合計36ビットを、一対の差動信号線に出力している。本実施例では、このような構成を採ることで、五対の信号線を、一対の信号線に大幅に抑制することができる。 In this embodiment, since each of RGB data constituting one pixel is specified by 8 bits, the second LVDS signal of one cycle of the pixel clock includes 3×8-bit RGB data, vertical synchronizing signal VS, and horizontal synchronizing signal. A total of 28 bits of data including HS, data enable signal DE, etc. are included. output to the motion signal line. In this embodiment, by adopting such a configuration, five pairs of signal lines can be greatly reduced to one pair of signal lines.

一対の信号線で伝送された複合画像信号は、サブ表示装置DS2に近接して配置された第2復元回路38Bにおいてパラレル変換された後、RGBデジタル信号に復元されて、サブ表示装置DS2に供給される。 The composite image signal transmitted through the pair of signal lines is parallel-converted in the second restoration circuit 38B arranged close to the sub-display device DS2, restored to RGB digital signals, and supplied to the sub-display device DS2. be done.

図5は、画像演出、音声演出、ランプ演出、及び役物演出を一元的に制御する複合チップ40の内部構造を、これに関連する外付けROM42やDDRメモリ41などと共に図示したものである。先に説明した通り、DDRメモリ41の直接アクセス可能な記憶領域には、フレームバッファFBが確保されると共に、電源投入時に、外付けROM42から転送された音声データSNDが記憶されている。 FIG. 5 shows the internal structure of the composite chip 40 that centrally controls image effects, sound effects, lamp effects, and character effects, together with the external ROM 42 and DDR memory 41 associated therewith. As described above, the directly accessible storage area of the DDR memory 41 secures the frame buffer FB and stores the audio data SND transferred from the external ROM 42 when the power is turned on.

ここで、フレームバッファFBは、各表示装置DS1,DS2の表示画面を特定する完成状態の画像データが一時保存される記憶領域である。本実施例のフレームバッファFBは、各表示装置DS1,DS2用に、各々、第1バッファと第2バッファのダブルバッファ構造になっており、各バッファは、垂直同期信号60Hzに基づき規定される所定の切換え周期(1/30秒)毎に、描画バンクと表示バンクに切換るよう構成されている。 Here, the frame buffer FB is a storage area in which completed image data specifying the display screen of each of the display devices DS1 and DS2 is temporarily stored. The frame buffer FB of this embodiment has a double-buffer structure of a first buffer and a second buffer for each of the display devices DS1 and DS2. The bank is switched between the drawing bank and the display bank at each switching period (1/30 second).

すなわち、ある動作周期で描画バンクとして機能する第1バッファに生成された画像データは、次の動作周期では表示バンクとして機能する第1バッファから表示装置DS1,DS2に出力される。但し、このような構成のフレームバッファFBの配置位置は、何ら、DDRメモリ41に限定されず、メインメモリ56や内蔵DRAM57に配置しても良い。 That is, the image data generated in the first buffer functioning as the drawing bank in one operating cycle is output from the first buffer functioning as the display bank to the display devices DS1 and DS2 in the next operating cycle. However, the arrangement position of the frame buffer FB having such a configuration is not limited to the DDR memory 41 and may be arranged in the main memory 56 or the internal DRAM 57 .

次に、外付けROM42には、演出制御プログラムと、演出制御データと、画像データIMGと、音声データSNDと、が不揮発的に記憶されている。なお、音声データSNDには、一単位の音声演出を実現する多数の音声フレーズデータの他に、図8に示す一群のSEQコードや一群のSACコードも含まれているが、これらについては、後で説明する。 Next, the external ROM 42 nonvolatilely stores an effect control program, effect control data, image data IMG, and sound data SND. The audio data SND includes a group of SEQ codes and a group of SAC codes shown in FIG. will explain.

ところで、外付けROM42のアクセス速度が問題になる場合には、別途、プログラムROM58を配置して、ここに演出制御プログラムや演出制御データを配置しても良い。この場合には、複合チップ40のCPUインタフェイス回路66を経由して、プログラムROM58がアクセスされる。 By the way, when the access speed of the external ROM 42 becomes a problem, the program ROM 58 may be arranged separately, and the effect control program and the effect control data may be placed here. In this case, program ROM 58 is accessed via CPU interface circuit 66 of composite chip 40 .

また、更に多くのデータを記憶可能な安価な素子として、NAND型フラッシュメモリで構成されたフラッシュSSD(solid state drive )などのSATA(Serial Advanced Technology Attachment )モジュール(HSSデバイス)59を使用しても良く、HSSデバイス59を、SerialATAに準拠したHSS(High Speed Serial )方式で高速アクセスする構成を採るのも好適である。この場合には、複合チップ40のHSSコントロータ70を経由して、HSSデバイス59がアクセスされる。 Also, as an inexpensive device capable of storing more data, a SATA (Serial Advanced Technology Attachment) module (HSS device) 59 such as a flash SSD (solid state drive) composed of a NAND flash memory may be used. Well, it is also preferable to employ a configuration in which the HSS device 59 is accessed at high speed by the HSS (High Speed Serial) method conforming to SerialATA. In this case, HSS device 59 is accessed via HSS controller 70 of composite chip 40 .

図5に示す通り、複合チップ40は、図4に示した内部回路などが内蔵されており、全ての演出動作を一元的に制御するホストCPU50と、全体として画像プロセッサ51として機能する各部60~63と、音声プロセッサ52として機能するサウンドエンジン52と、外付けROM42やDDRメモリ41などの外部素子と内部回路との間、及び、内部回路同士のDMA転送を実現するDMAコントローラ53と、パラレルデータの送受信を実現するパラレル入出力ポート(PIO)54と、シリアルデータの送受信を実現するシリアル入出力ポート(SIO)55と、3Mバイト程度の記憶容量を有するメインメモリ56と、256Mバイト程度の記憶容量を有する内蔵DRAM57と、画像コマンドリストLTの発行先として専用的に使用されるFIFO(First In First Out)構造の画像コマンドバッファ71と、画像コマンドバッファ71への中継レジスタであるコマンドライトレジスタCMwなどが内蔵されている。 As shown in FIG. 5, the composite chip 40 incorporates the internal circuit shown in FIG. 63, a sound engine 52 that functions as an audio processor 52, a DMA controller 53 that realizes DMA transfer between external elements such as an external ROM 42 and DDR memory 41 and internal circuits, and between internal circuits, and parallel data. a parallel input/output port (PIO) 54 for transmitting and receiving serial data; a serial input/output port (SIO) 55 for transmitting and receiving serial data; a main memory 56 having a storage capacity of about 3 Mbytes; A built-in DRAM 57 having a large capacity, an image command buffer 71 having a FIFO (First In First Out) structure exclusively used as the destination of an image command list LT, and a command write register CMw as a relay register to the image command buffer 71. etc. is built in.

これら、複合チップ40の内部回路は、リセット制御回路67の動作に基づいて、各々、最適なタイミングで電源リセットされ、その後、クロック制御回路65が出力する動作クロックに基づいた速度で動作している。また、ホストCPU50の設定に基づいて機能する割込みコントローラ64によって、各種の割込み処理が実現される。なお、DDRメモリ41は、DDR3メモリコントローラ68を経由してアクセスされ、外付けROM42は、CGメモリコントローラ69を経由してアクセスされる。 These internal circuits of the composite chip 40 are reset at optimum timing based on the operation of the reset control circuit 67, and then operate at a speed based on the operation clock output from the clock control circuit 65. . Various interrupt processes are realized by the interrupt controller 64 that functions based on the settings of the host CPU 50 . The DDR memory 41 is accessed via the DDR3 memory controller 68 and the external ROM 42 is accessed via the CG memory controller 69 .

複合チップ40に内蔵されたメインメモリ56は、高速なランダムアクセスが可能であって、ホストCPU50のプログラム処理で必要となるスタック領域や、その他の作業領域として使用される。また、メインメモリ56の記憶領域(3Mバイト)の一部は、ホストCPUが発行する画像コマンドリストLTを記憶可能なコマンドメモリ56としても使用可能である。 A main memory 56 built into the composite chip 40 is capable of high-speed random access and is used as a stack area required for program processing of the host CPU 50 and other work areas. A part of the storage area (3 Mbytes) of the main memory 56 can also be used as a command memory 56 capable of storing the image command list LT issued by the host CPU.

複合チップ40に内蔵された画像プロセッサ51は、詳細には、第1と第2のLDVS信号を、信号分配器28Aや信号変換器28Bに出力するディスプレイコントローラ63と、各表示装置DS1,DS2の一フレーム分の画像データを生成するレンダリングエンジン61と、圧縮状態の画像データを外付けROM42から読み出してデコードするCGデータデコーダ62と、ホストCPU50からの動作指示に基づき、画像プロセッサ51の各部を制御するVDPコントローラ60とを有して構成されている。 More specifically, the image processor 51 built into the composite chip 40 includes a display controller 63 that outputs the first and second LDVS signals to the signal distributor 28A and the signal converter 28B, and the display devices DS1 and DS2. A rendering engine 61 that generates image data for one frame, a CG data decoder 62 that reads compressed image data from the external ROM 42 and decodes it, and each part of the image processor 51 is controlled based on operation instructions from the host CPU 50. and a VDP controller 60 that

そして、CGデータデコータ62によるデコード出力は、内蔵DRAM57に一時記憶されるよう構成されている。また、VDPコントローラに内蔵されたプリローダが機能して、圧縮状態の画像圧縮データ(以下、CGデータという)を、外付けROM42から先読み(プリロード)する場合には、先読みされたCGデータ(プリロードデータ)は、内蔵DRAM57に確保されたプリロードバッファ(図7、図18参照)に一時記憶される。 A decoded output from the CG data decoder 62 is temporarily stored in the built-in DRAM 57 . Further, when the preloader built into the VDP controller functions to pre-read (preload) the compressed image data (hereinafter referred to as CG data) from the external ROM 42, the pre-read CG data (preload data ) is temporarily stored in a preload buffer (see FIGS. 7 and 18) secured in the built-in DRAM 57. FIG.

図5に示す通り、VDPコントローラ60は、ホストCPU50からREAD/WRITE可能な各種の制御レジスタCRG(R/W)を有して構成され、書込み用の制御レジスタ(CRG)に受ける動作指示に基づいて動作し、内部動作状態をステイタス情報として、読出し用の制御レジスタ(CRG)に保持している。 As shown in FIG. 5, the VDP controller 60 is configured with various control registers CRG (R/W) that can be read/written from the host CPU 50, and the operation instructions received in the write control register (CRG W ) are The internal operation state is held as status information in a read control register (CRG R ).

本実施例では、画像コマンドリストLTの発行先は、基本的に画像コマンドバッファ71であるが、追加的に、メインメモリ(コマンドメモリ)56や、内蔵DRAM57や、DDRメモリ41に、画像コマンドリストLT(後述する補助リストLT’)を発行することもできる。また、定型的な画像コマンドリストLT(補助リストLT’)について、予め、外付けROM42に記憶させておくこともできる。 In this embodiment, the image command list LT is basically issued to the image command buffer 71, but additionally, the image command list LT (auxiliary list LT' described later) can also be issued. Also, a standard image command list LT (auxiliary list LT') can be stored in the external ROM 42 in advance.

但し、何れの場合でも、VDPコントローラ60は、先ず、画像コマンドバッファ71から画像コマンドリストLTを読出し、そこに記載されているJUMP命令などに基づいて、メインメモリ56、内蔵DRAM57、DDRメモリ41、又は外付けROM42に記載されている画像コマンドリストLTの処理に移行することになる。 However, in any case, the VDP controller 60 first reads the image command list LT from the image command buffer 71, and based on the JUMP command etc. described there, the main memory 56, the built-in DRAM 57, the DDR memory 41, Alternatively, the image command list LT written in the external ROM 42 is processed.

何れにしても、画像コマンドリストLTとは、各表示装置DS1,DS2の各一フレームを特定する一群の描画コマンドなどを列記した指示リストである。本実施例の場合、画像コマンドリストLTに列記されるコマンド列は、(a) VDPコントローラ60の割込み動作などのVDP(Video Display Processor )制御に関する制御コマンドと、(b) レンダリングエンジン61の描画動作に関する描画コマンドと、(c) CGデータデコーダ62のデコード動作に関するデコードコマンドとに区分されるが、以下、これら三種類(a) ~(c) のコマンドを総称する場合には画像コマンドと称することにする。 In any case, the image command list LT is an instruction list listing a group of drawing commands that specify one frame of each of the display devices DS1 and DS2. In the case of this embodiment, the command strings listed in the image command list LT are (a) control commands related to VDP (Video Display Processor) control such as interrupt operations of the VDP controller 60, and (b) drawing operations of the rendering engine 61. and (c) decode commands related to the decoding operation of the CG data decoder 62. Hereinafter, these three types of commands (a) to (c) will be collectively referred to as image commands. to

これら何れの画像コマンドも32ビットの整数倍の可変長であり、上記した三種類(a) ~(c) の画像コマンドが、適宜な順番で列記されて画像コマンドリストLTが完成状態となる。ホストCPU50が完成させた画像コマンドリストLTを、例えば、画像コマンドバッファ71に発行する場合には、ホストCPU50は、画像コマンドリストLTを構成するコマンド列について、一画像コマンドずつ順番に、コマンドライトレジスタCMwに書込むことになる。すると、コマンドライトレジスタCMwに書込まれた可変長の一画像コマンドは、内部構成に基づき、自動的に、FIFO(First In First Out)の形式で画像コマンドバッファ71に蓄積されるようになっている。 Each of these image commands has a variable length that is an integral multiple of 32 bits, and the above three types of image commands (a) to (c) are listed in an appropriate order to complete the image command list LT. When the image command list LT completed by the host CPU 50 is to be issued to the image command buffer 71, for example, the host CPU 50 sequentially writes each image command to the command write register for the command strings that make up the image command list LT. It will write to CMw. Then, the variable-length one image command written in the command write register CMw is automatically accumulated in the image command buffer 71 in FIFO (First In First Out) format based on the internal configuration. there is

このような内部動作に対応して、VDPコントローラ6は、画像コマンドバッファ71(画像コマンドFIFO)の管理機能を有しており、画像コマンドバッファ71の使用状態などのステイタス情報が、読出し用の制御レジスタ(CRG)に保持されるよう構成されている。したがって、ホストCPUは、画像コマンドバッファ71(画像コマンドFIFO)がフル状態でないことを確認した上で、コマンドライトレジスタCMwに画像コマンドを書込むことになる。 Corresponding to such an internal operation, the VDP controller 6 has a management function of the image command buffer 71 (image command FIFO), and status information such as the usage state of the image command buffer 71 is used for read control. It is configured to be held in a register (CRG R ). Therefore, the host CPU will write the image command to the command write register CMw after confirming that the image command buffer 71 (image command FIFO) is not full.

このようにして、画像コマンドバッファ71に蓄積された画像コマンド列は、VDPコントローラ60によって、FIFO(First In First Out)方式で自動的に読み出され、各画像コマンドの種別に応じて、(a) 制御コマンドは、VDPコントローラ60に配布され、(b) 描画コマンドは、レンダリングエンジン61に配布され、(c) デコードコマンドは、CGデータデコーダ62に配布される。 The image command string accumulated in the image command buffer 71 in this manner is automatically read by the VDP controller 60 in a FIFO (First In First Out) manner, and is read according to the type of each image command (a (b) drawing commands are distributed to the rendering engine 61; (c) decoding commands are distributed to the CG data decoder 62;

そして、VDPコントローラ60、レンダリングエンジン61、及び、CGデータデコーダ62は、配布された画像コマンドリストLTに記載された画像コマンドに基づいた各々の動作を開始する。すなわち、VDPコントローラ60の制御動作に基づき、CGデータデコーダ62やレンダリングエンジン61によって、画像データの生成動作が開始され、最終的な画像データがフレームバッファFBに完成される。 Then, the VDP controller 60, rendering engine 61, and CG data decoder 62 start their respective operations based on the image commands described in the distributed image command list LT. That is, based on the control operation of the VDP controller 60, the CG data decoder 62 and the rendering engine 61 start generating image data, and the final image data is completed in the frame buffer FB.

後述するように、本実施例のホストCPU50は、上記したバンク切換え周期と同じ動作周期Δ(=1/30秒)で間欠的に動作するが、上記した一連の動作は、ホストCPU50が、画像コマンドバッファ71に画像コマンドリストLTを発行した、その動作周期において実行される。 As will be described later, the host CPU 50 of this embodiment operates intermittently at the same operation cycle Δ (=1/30 second) as the bank switching cycle described above. It is executed in the operation cycle in which the image command list LT is issued to the command buffer 71 .

以上、画像コマンドリストLTが画像コマンドバッファ71に発行される場合を説明したが、先に説明した通り、ホストCPU50は、メインメモリ(コマンドメモリ)56、内蔵DRAM57、又はDDRメモリ41に画像コマンドリストLTを発行することもできる。但し、この場合には、ある動作周期で発行した画像コマンドリストLTは、一又はそれ以上遅れた動作周期において実効化される。 The case where the image command list LT is issued to the image command buffer 71 has been described above. LT can also be issued. However, in this case, the image command list LT issued in a certain operating cycle is executed in an operating cycle delayed by one or more.

例えば、コマンドメモリ56を使用する場合には、図6に示すように、書込み用と読み出し用に切り替えて使用する一対のリストバッファBUFa,BUFbを、コマンドメモリ56に確保する必要がある。そして、一方のリストバッファBUFa/BUFbに、次サイクルの画像コマンドリストLTを発行し、一動作周期後には、一対のリストバッファBUFa,BUFbの用途を切換えるようにしている。 For example, when using the command memory 56, as shown in FIG. 6, a pair of list buffers BUFa and BUFb used for writing and reading must be reserved in the command memory 56. FIG. Then, the image command list LT for the next cycle is issued to one of the list buffers BUFa/BUFb, and after one operation cycle, the use of the pair of list buffers BUFa and BUFb is switched.

リストバッファBUFa,BUFbの切換え動作は、ホストCPU50が、画像コマンドバッファ71に発行する制御コマンドリストLTcによって実行され、ある動作周期(T)に発行される制御コマンドリストLTcは、第1リストバッファBUFaの画像コマンドリストLTを実行すべきことを特定するJUMP命令(JUMP_BUFa )と、制御コマンドリストLTcの最終行となるバンクフリップ待ち命令(WAIT_BANKFLIP )とで構成される。なお、このJUMP命令は、いわゆるCALL命令と同じであり、JUMP命令の実行後は、バンクフリップ待ち命令(WAIT_BANKFLIP )が実行される。 The switching operation of the list buffers BUFa and BUFb is executed by the control command list LTc issued by the host CPU 50 to the image command buffer 71. JUMP instruction (JUMP_BUFa) specifying that the image command list LT of 1 should be executed, and a bank flip waiting instruction (WAIT_BANKFLIP) which is the last line of the control command list LTc. This JUMP instruction is the same as a so-called CALL instruction, and after execution of the JUMP instruction, a bank flip wait instruction (WAIT_BANKFLIP) is executed.

バンクフリップ(Bank Flip )とは、フレームバッファFBにおける描画バンクと表示バンクの切換えを意味し、バンクフリップ待ち命令の実行によって、VDPコントローラ60の動作は、次のバンク切換えタイミングまで待機状態となる。バンクフリップ周期(=バンク切換え周期)は、垂直同期信号の周波数60Hzに対応して、1/60秒としても良いが、本実施例では、複合チップ40の各内部回路の動作時間を十分に確保するため、バンクフリップ周期を敢えて1/30秒(垂直同期信号の2回分)としている。先に説明した通り、このバンクフリップ周期(バンク切換え周期)は、ホストCPU50の動作周期Δと同じである。 Bank flip means switching between a drawing bank and a display bank in the frame buffer FB, and execution of the bank flip wait command puts the operation of the VDP controller 60 into a standby state until the next bank switching timing. The bank flip cycle (= bank switching cycle) may be 1/60 second corresponding to the frequency of 60 Hz of the vertical synchronizing signal, but in this embodiment, the operation time of each internal circuit of the composite chip 40 is sufficiently secured. Therefore, the bank flip cycle is intentionally set to 1/30 second (twice of the vertical synchronization signal). As described above, this bank flip cycle (bank switching cycle) is the same as the operating cycle Δ of the host CPU 50 .

本実施例では、上記の構成を採るので、次の動作周期(T+Δ)は、1/30秒後となるが、次の動作周期(T+Δ)に発行される制御コマンドリストLTcは、第2リストバッファBUFaの画像コマンドリストLTを実行すべきことを指示するJUMP命令(JUMP_BUFb )と、制御コマンドリストLTcの最終行に記載されるバンクフリップ待ち命令(WAIT_BANKFLIP )とで構成される。したがって、この動作周期(T+Δ)では、前サイクルに発行された第2リストバッファBUFbの画像コマンドリストLTが実効化されることになる。 In this embodiment, since the above configuration is adopted, the next operation period (T+Δ) will be 1/30 seconds later, but the control command list LTc issued in the next operation period (T+Δ) is the second list It consists of a JUMP instruction (JUMP_BUFb) instructing execution of the image command list LT in the buffer BUFa, and a bank flip wait instruction (WAIT_BANKFLIP) described in the last line of the control command list LTc. Therefore, in this operating cycle (T+Δ), the image command list LT in the second list buffer BUFb issued in the previous cycle is executed.

以下、同じであり、リストバッファBUFa,BUFbの一方に、次サイクルの画像コマンドリストLTを発行すると共に、画像コマンドバッファ71にリストバッファBUFa,BUFbを切換える制御コマンドリストLTcを発行して画像演出動作が進行させる。この構成によれば、画像コマンドリストLTの発行処理と、画像コマンドリストLTに基づいた画像データの生成処理とを、一の動作周期(Δ)で終える必要がなくなり、画像データの生成処理時間に時間的な余裕が生じるので、表示装置の大型化や高画質化に対応することができる。 Thereafter, in the same manner, an image command list LT for the next cycle is issued to one of the list buffers BUFa and BUFb, and a control command list LTc for switching between the list buffers BUFa and BUFb is issued to the image command buffer 71 to perform image rendering operations. advances. According to this configuration, the process of issuing the image command list LT and the process of generating the image data based on the image command list LT need not be completed in one operation cycle (Δ), and the image data generation processing time is reduced. Since there is time to spare, it is possible to cope with the increase in size and the improvement in image quality of the display device.

なお、画像コマンドリストLTの最後には、画像コマンドバッファ71に記載されているバンクフリップ待ち命令(WAIT_BANKFLIP )への復帰を意味するJUMP命令(JUMP_CFIFO)が記載されており、図6の矢印で示す動作が実現される。 At the end of the image command list LT, there is described a JUMP instruction (JUMP_CFIFO) meaning a return to the bank flip waiting instruction (WAIT_BANKFLIP) described in the image command buffer 71, indicated by an arrow in FIG. Action is realized.

また、表示装置の大型化や高画質化により有効に対応するには、デコード動作に先行してプリローダを機能させて、外付けROM42のCGデータ(圧縮状態の画像圧縮データ)をプリロード動作するのも好適である。なお、プリロード動作を実現するには、後述するCGデータの転送期間(Δ~3Δ)などを特定した上で、VDPコントローラ60を先読み動作モードに設定する必要がある。また、画像コマンドリストLTには、プリロード転送を指示する特別なデコードコマンドDCpを記載する必要がある。 In addition, in order to effectively cope with the increase in size and the increase in image quality of the display device, the preloader functions prior to the decoding operation to preload the CG data (compressed image data in a compressed state) in the external ROM 42 . is also suitable. In order to implement the preload operation, it is necessary to set the VDP controller 60 to the prefetch operation mode after specifying the CG data transfer period (.DELTA. to 3.DELTA.), which will be described later. Also, the image command list LT must include a special decode command DCp that instructs preload transfer.

この先読み動作モードでは、画像コマンドリストLTの発行先は、例えば、DDRメモリ41など、十分な記憶容量を有するメモリとし、複数N個のバッファ領域を確保する必要がある。以下、画像コマンドリストLTの発行先を、例えば、DDRメモリ41として、バッファ領域を3個とする場合(トリプルバッファBUFa~BUFc)について図7に基づいて説明する。 In this look-ahead operation mode, the image command list LT is issued to a memory having a sufficient storage capacity, such as the DDR memory 41, and it is necessary to secure a plurality of N buffer areas. A case where the image command list LT is issued to, for example, the DDR memory 41 and three buffer areas (triple buffers BUFa to BUFc) will be described with reference to FIG.

この場合は、トリプルバッファBUFa~BUFcを循環的に使用して、何れかの領域(BUFa~BUFc)に、次々回サイクル用の画像コマンドリストLTが発行され、画像コマンドバッファ71には、バンクフリップ待ち命令(WAIT_BANKFLIP )だけで構成された制御コマンドリストLTcが発行される。 In this case, the triple buffers BUFa to BUFc are cyclically used, and the image command list LT for the next cycle is issued to one of the areas (BUFa to BUFc). A control command list LTc consisting only of instructions (WAIT_BANKFLIP) is issued.

例えば、動作周期(T)では、次々回(T+2Δ)に実効化される画像コマンドリストLTが第1バッファBUFaに発行され、動作周期(T+Δ)では、T+3Δに実効化される画像コマンドリストLTが第2バッファBUFbに発行され、動作周期(T+2Δ)では、T+4Δに実効化される画像コマンドリストLTが第3バッファBUFbに発行される。そして、これらの画像コマンドリストLTの最終行は、画像コマンドバッファ71の先頭アドレスへのジャンプ命令(JUMP_CFIFO)となっている。 For example, in the operating cycle (T), the image command list LT to be executed the next time (T+2Δ) is issued to the first buffer BUFa. 2 buffer BUFb, and in the operating period (T+2Δ), the image command list LT to be executed at T+4Δ is issued to the third buffer BUFb. The last line of these image command lists LT is a jump instruction (JUMP_CFIFO) to the top address of the image command buffer 71 .

また、ホストCPU50は、各動作周期において、実行されるべき画像コマンドリストLTの先頭アドレスを、VDPコントローラ60に指定する必要があり、具体的には、動作周期(T)では、画像コマンドリストLTが第1バッファBUFbに存在すると指定し、動作周期(T+Δ)では、画像コマンドリストLTが第3バッファBUFcに存在すると指定し、動作周期(T+2Δ)では、画像コマンドリストLTが第1バッファBUFaに存在すると指定している。 Also, the host CPU 50 needs to specify the head address of the image command list LT to be executed in each operation cycle to the VDP controller 60. Specifically, in the operation cycle (T), the image command list LT exists in the first buffer BUFb, in the operation period (T+Δ), the image command list LT exists in the third buffer BUFc, and in the operation period (T+2Δ), the image command list LT exists in the first buffer BUFa specifies that it exists.

先に説明した通り、何れの画像コマンドリストLTも、その最終行は、画像コマンドバッファ71の先頭アドレスへのジャンプ命令(JUMP_CFIFO)であり、画像コマンドバッファ71には、毎回、バンクフリップ待ち命令(WAIT_BANKFLIP )だけで構成された制御コマンドリストLTcが発行される。そのため、VDPコントローラ60は、トリプルバッファBUFa~BUFcを循環的に読み出して、必要な処理を実行した後、バンクフリップ待ち命令(WAIT_BANKFLIP )によって処理を終えることになる。なお、制御コマンドリストLTcは、常に同一内容であるので、必ずしも、毎回発行する必要はなく、一度だけ発行したのでも良い。 As described above, the last line of any image command list LT is a jump instruction (JUMP_CFIFO) to the top address of the image command buffer 71, and the image command buffer 71 contains a bank flip wait instruction ( WAIT_BANKFLIP) is issued. Therefore, the VDP controller 60 cyclically reads the triple buffers BUFa to BUFc, executes necessary processing, and then terminates the processing with a bank flip wait instruction (WAIT_BANKFLIP). Since the control command list LTc always has the same contents, it does not necessarily have to be issued every time, and may be issued only once.

ところで、先に説明した通り、画像コマンドリストLTには、プリロード転送を指示する特別なデコードコマンドDCpが記載されている場合がある。そして、先読み動作モードでは、新規に書込まれた画像コマンドリストLTは、その次の動作周期で解釈されるようになっている。 By the way, as described above, the image command list LT may include a special decode command DCp that instructs preload transfer. In the look-ahead operation mode, the newly written image command list LT is interpreted in the next operation cycle.

したがって、動作周期(T)に書込まれた画像コマンドリストLTは、動作周期(T+Δ)において、VDPコントローラ60によって解釈されるが、この画像コマンドリストLTにプリロード転送を指示するデコードコマンドDCpが検出される場合には、VDPコントローラ60に内蔵されたプリローダは、動作周期(T+Δ)において、必要なCGデータを外付けROMから読出し、読み出したCGデータを、内蔵DRAM57に確保されたプリロードバッファBUFpに格納する(CGデータの転送期間Δ)。 Therefore, the image command list LT written in the operation period (T) is interpreted by the VDP controller 60 in the operation period (T+Δ), but the decode command DCp instructing preload transfer to this image command list LT is detected. In this case, the preloader built into the VDP controller 60 reads the necessary CG data from the external ROM and stores the read CG data in the preload buffer BUFp secured in the built-in DRAM 57 in the operating cycle (T+Δ). Store (transfer period Δ of CG data).

そして、プリロードバッファBUFpに読み出したCGデータは、トリプルバッファ(BUFa~BUFc)形式を採る場合には、次の動作周期(T+2Δ)で、プリロードバッファBUFpのCGデータが、CGデータデコーダ62によって伸張され、レンダリングエンジン61の画像生成処理に使用される。 When the CG data read out to the preload buffer BUFp adopts the triple buffer (BUFa to BUFc) format, the CG data in the preload buffer BUFp is decompressed by the CG data decoder 62 in the next operation cycle (T+2Δ). , is used for image generation processing of the rendering engine 61 .

なお、3個のバッファ領域(トリプルバッファ)ではなく、4個のバッファ領域(クアドラブルバッファ)を確保した場合には、動作周期(T+Δ)から動作周期(T+2Δ)までがCGデータの先読み期間(転送期間2Δ)であり、5個のバッファ領域(クインティブルバッファ)を確保した場合には、動作周期(T+Δ)から動作周期(T+3Δ)までが先読み期間(転送期間3Δ)でとなる。 Note that if four buffer areas (quadruple buffers) instead of three buffer areas (triple buffers) are secured, the CG data look-ahead period ( If five buffer areas (Quintible buffers) are secured, the look-ahead period (transfer period 3Δ) is from the operation period (T+Δ) to the operation period (T+3Δ).

以上の通り、先読み動作モードを採る場合には、一動作周期以上のCGデータ転送時間を確保できるので、アクセス速度に劣る外付けROM42を採用した場合でも、表示装置一フレーム用に大量のCGデータを転送することができ、表示装置の大型化や高画質化、及び、画像演出の高度化を実現することができる。また、表示装置の個数を3個以上に増やし、それぞれ異なる画像演出を実行する場合にも効果的である。 As described above, when the read-ahead operation mode is adopted, a CG data transfer time of one operation cycle or more can be secured, so even if the external ROM 42 having an inferior access speed is adopted, a large amount of CG data for one frame of the display device can be obtained. can be transferred, and it is possible to realize an increase in the size and image quality of the display device, as well as an increase in image presentation. It is also effective when the number of display devices is increased to three or more and different image renderings are executed for each.

続いて、図8に基づいて、複合チップ40に内蔵されたサウンドエンジン(音声プロセッサ)52について説明する、図8に示す通り、サウンドエンジン52は、ホストCPU50やVDPコントローラ60からアクセス可能な複数のコマンドレジスタ(RGi)80と、間欠的に動作して内部動作を制御するサウンドコントールモジュール81と、DDRメモリ41から読み出した圧縮状態の音声フレーズデータを伸張して、一又は複数チャンネルのデジタル音声(PCMデータ)を生成するメインジェネレータ84と、メインジェネレータ84が生成した複数チャンネルのデジタル音声をミキシングすると共に音声加工するマルチエフェクタ85と、マルチエフェクタ85の出力を受けて3本の伝送線に必要な音声情報をデジタルアンプ43に出力するオーディオインタフェイス86と、を有して構成され、各コマンドレジスタRGiへのアクセス動作を中継する中継レジスタ82及びコマンドインタフェイス部83を経由してホストCPU50などに接続されている。 Next, the sound engine (speech processor) 52 built into the composite chip 40 will be described with reference to FIG. 8. As shown in FIG. A command register (RGi) 80, a sound control module 81 that operates intermittently to control internal operations, and decompresses compressed voice phrase data read from the DDR memory 41 to produce one or more channels of digital voice ( a main generator 84 for generating PCM data), a multi-effector 85 for mixing and processing the multi-channel digital audio generated by the main generator 84, and receiving the output of the multi-effector 85 to generate the signals necessary for three transmission lines. and an audio interface 86 for outputting audio information to the digital amplifier 43, and to the host CPU 50 or the like via the relay register 82 and the command interface unit 83 for relaying the access operation to each command register RGi. It is connected.

ここで、サウンドコントールモジュールSCM(以下、SCM81と略すことがある)には、一群のコマンドレジスタRGi~RGjに対する、一連の設定動作を自動的に実行するシーケンサSEQj(Sequencer )と、シンプルアクセスコントローラSACi(simple Access Controller)とが、各々、複数個設けられている。一群のコマンドレジスタRGi~RGjへの設定値を自動的に設定する点では、何れの動作も同じであるが、一まとまりの設定動作(ステップ動作)を終えた後、所定時間を待機して、次の一まとまりの設定動作(ステップ動作)に移行する間欠設定動作や、一連の設定動作を任意回数だけ繰返す反復設定動作などが可能である点で、シーケンサSEQの設定動作の方が、サウンドコントールモジュールSCMよりやや高度化されている。 Here, the sound control module SCM (hereinafter sometimes abbreviated as SCM81) includes a sequencer SEQj (Sequencer) for automatically executing a series of setting operations for a group of command registers RGi to RGj, and a simple access controller SACi. (simple access controller) are provided in plural numbers, respectively. All of the operations are the same in that the values to be set in the group of command registers RGi to RGj are automatically set. The setting operation of the sequencer SEQ is better than the sound control in that intermittent setting operation that shifts to the next batch of setting operation (step operation) and repetition setting operation that repeats a series of setting operations for an arbitrary number of times are possible. It is slightly more sophisticated than the module SCM.

但し、シンプルアクセスコントローラSACは、外付けROM42に規定されている所定の定期SAC動作を、SCM81の動作周期の整数倍の周期で、定期的に繰り返し実行することができる。後述するように、シンプルアクセスコントローラSACの動作内容は、0~NのSACコード番号で特定されるが、最終のSACコード番号(N)で特定される定期SAC動作については、所定時間毎に、定期的に繰り返し実行されるよう内部制御される。 However, the simple access controller SAC can periodically and repeatedly execute a predetermined periodic SAC operation defined in the external ROM 42 at an integer multiple of the operation cycle of the SCM 81 . As will be described later, the operation contents of the simple access controller SAC are specified by SAC code numbers from 0 to N. For the regular SAC operation specified by the last SAC code number (N), It is internally controlled so that it is repeatedly executed periodically.

そこで、本実施例では、この定期SAC動作によって、マルチエフェクタ85におけるイコライザ機能やコンプレッサ機能を繰り返し再設定するようにしている。そのため、ノイズなどの影響で、仮に、音質に関する設定内容が変化しても、その後の定期SAC動作に基づいて、開発者の意図した音質が確実に復元されることになる。なお、後述するように、本実施例では、SCM81の動作周期は32/48mSであり、この動作周期の512回毎に、定期SAC動作が実行される。 Therefore, in this embodiment, the equalizer function and compressor function of the multi-effector 85 are repeatedly reset by this periodic SAC operation. Therefore, even if the sound quality settings change due to noise or the like, the sound quality intended by the developer is reliably restored based on the subsequent periodic SAC operation. As will be described later, in this embodiment, the operation cycle of the SCM 81 is 32/48 mS, and the regular SAC operation is performed every 512 times of this operation cycle.

このような定期SAC動作も可能なシンプルアクセスコントローラSACiや、設定動作がやや高度なシーケンサSEQjを、各々、有効に機能させるため、外付けROM42には、シンプルアクセスコントローラSACの動作(定期SAC動作を含む)を規定するSACコードや、シーケンサSEQの動作を規定するSEQコードが、各々、複数種類、記憶されている。なお、電源投入時のDMA転送動作により、DDRメモリ41は、外付けROM42と同じデータがコピーされるので、図8では、この状態を図示している。 In order to make the simple access controller SACi capable of periodic SAC operation and the sequencer SEQj with slightly advanced setting operations function effectively, the external ROM 42 stores the operation of the simple access controller SAC (regular SAC operation). ) and SEQ codes that define the operation of the sequencer SEQ are stored in a plurality of types. Note that the same data as the external ROM 42 is copied to the DDR memory 41 by the DMA transfer operation when the power is turned on, so FIG. 8 shows this state.

SEQコードとSACコードは、何れも、コマンドレジスタRGiを特定する1バイト長のレジスタ番号と、そのコマンドレジスタRGiへの1バイト長の設定値とで一組となる一連2バイト長のデータ列であり、所定の終了コード(FFFFh)で完結している。但し、SEQコードについては、上記した間欠設定動作や反復設定動作を実現するため、一まとまりの設定動作(ステップ動作)の完了を示す中断コード(FFFEh)が含まれている。 Each of the SEQ code and the SAC code is a series of 2-byte length data strings consisting of a 1-byte length register number specifying the command register RGi and a 1-byte length setting value for the command register RGi. It is completed with a predetermined end code (FFFFh). However, the SEQ code includes an interruption code (FFFEh) indicating the completion of a group of setting operations (step operations) in order to realize the above-described intermittent setting operations and repetitive setting operations.

SEQコードは、一連M個のSEQデータで構成され(SEQコード=M×SEQデータ)、SACコードは、一連N個のSACコードで構成されている(SACコード=N×SACデータ)。そして、SEQコードやSACコードの一単位であるSEQデータやSACデータは、何れも、コマンドレジスタRGiを特定する1バイト長のレジスタ番号と、コマンドレジスタRGiへの1バイト長の設定値の一組である。先に説明した通り、外付けROM41には、このような構成のSEQコードやSACコードが、各々、複数種類記憶されており、本明細書では、これらを、SACコード群(一群のSEQコード)、SEQコード群(一群のSACコード)と称することがある。 A SEQ code consists of a series of M SEQ data (SEQ code=M×SEQ data), and a SAC code consists of a series of N SAC codes (SAC code=N×SAC data). SEQ data and SAC data, which are units of the SEQ code and SAC code, are each a set of a 1-byte length register number specifying the command register RGi and a 1-byte length setting value for the command register RGi. is. As described above, the external ROM 41 stores a plurality of types of SEQ codes and SAC codes each having such a configuration. , SEQ code group (a group of SAC codes).

図5に示す通り、外付けROM42に格納されている音声データSNDには、一単位の音声演出を実現する音声フレーズデータの他に、上記したSACコード群やSEQコード群が含まれる。そして、一単位の音声演出を実現する音声フレーズデータは、一のフレーズ番号で特定され、終了コード(FFFFh)で完結する一のSACコードや一のSEQコードも、各々、一のSACコード番号や一のSEQコード番号で特定されるようになっている。 As shown in FIG. 5, the audio data SND stored in the external ROM 42 includes the above-described SAC code group and SEQ code group in addition to audio phrase data for realizing one unit of audio presentation. Voice phrase data for realizing one unit of voice effect is specified by one phrase number, and one SAC code or one SEQ code completed with an end code (FFFFh) is also one SAC code number or one SEQ code. It is specified by one SEQ code number.

そして、SEQj起動用の一群のコマンドレジスタRGjに、SEQコード番号やその他の動作条件を設定すれば、シーケンサSEQjを起動させることができる。また、SACi起動用の一群のコマンドレジスタRGiに、SACコード番号やその他の動作条件を設定すれば、シンプルアクセスコントローラSACiを起動させることができる。但し、定期SAC動作については、自動的に起動するので、SAC起動処理が不要である。 By setting the SEQ code number and other operating conditions in a group of command registers RGj for starting SEQj, the sequencer SEQj can be started. Also, the simple access controller SACi can be activated by setting the SAC code number and other operating conditions in a group of command registers RGi for SACi activation. However, since the regular SAC operation is automatically activated, the SAC activation process is unnecessary.

先に説明した通り、一単位の音声演出を実現する多数の音声フレーズデータは、他のSACコード群やSEQコード群と共に、電源投入時に、外付けROM42からDDRメモリ41に転送される。そして、本実施例の場合、DDRメモリ41は、高速アクセスが可能なDDR3SDRAMで構成されているので、音声フレーズデータの高速アクセスが可能となり、サンプリング周波数を48kHz又はそれ以上とする高音質の音声フレーズデータを扱うことができる。 As described above, a large number of voice phrase data for realizing one unit of voice effect are transferred from the external ROM 42 to the DDR memory 41 together with other SAC code groups and SEQ code groups when the power is turned on. In the case of this embodiment, the DDR memory 41 is composed of a DDR3 SDRAM capable of high-speed access, so high-speed access of voice phrase data is possible, and high-quality voice phrases with a sampling frequency of 48 kHz or higher can be obtained. Can handle data.

以上を踏まえて、次に、サウンドコントールモジュール81(SCM81)について説明する。実施例のSCM81は、間欠的に動作を開始して、サウンドエンジン52の内部動作を制御している。具体的には、SCM81は、音声フレーズデータのサンプリング周波数(48kHz)に対応して、例えば、サンプリング周期(1/48kHz)の32倍であるサウンドエンジン動作周期(32/48mS)毎に、コマンドレジスタRGiの設定値を更新可能に構成されており、もし設定値が更新されると、更新後のコマンドレジスタRGiの設定値に基づいた内部動作が開始される。 Based on the above, the sound control module 81 (SCM 81) will now be described. The SCM 81 of the embodiment intermittently starts operating to control the internal operations of the sound engine 52 . Specifically, the SCM 81, corresponding to the sampling frequency (48 kHz) of the voice phrase data, for example, every sound engine operating cycle (32/48 ms), which is 32 times the sampling cycle (1/48 kHz), sends the command register The setting value of RGi can be updated, and if the setting value is updated, an internal operation based on the updated setting value of the command register RGi is started.

このSCM81が参照するコマンドレジスタRGiは、各々、1バイト長のレジスタ番号で特定されるよう構成されており、各コマンドレジスタRGiには、シーケンサSEQやシンプルアクセスコントローラSACを含んだ、サウンドエンジン52の内部動作を規定する設定値が設定されるか、或いは、サウンドエンジン52の内部動作状態を示すステイタス情報が記憶されるになっている。なお、先に説明したシーケンサSEQやシンプルアクセスコントローラSACの起動時のように、複数のコマンドレジスタRGi~RGjへの設定値に基づいて内部動作が規定される場合もあり、また、1バイト長のステイタス情報の1ビット又は複数ビットのフラグ値によって内部動作状態が特定される。 Each command register RGi referred to by the SCM 81 is configured to be specified by a 1-byte length register number. A setting value that defines the internal operation is set, or status information that indicates the internal operation state of the sound engine 52 is stored. As in the activation of the sequencer SEQ and the simple access controller SAC described above, there are cases where the internal operation is defined based on the values set in the multiple command registers RGi to RGj. The internal operating state is specified by a 1-bit or multi-bit flag value of the status information.

次に、メインジェネレータ84には、DDRメモリ41から読み出した複数の圧縮状態のフレーズデータを独立的に伸張可能な複数チャンネルの音声デコーダと、音声デコーダの複数チャンネルのデコード出力を受けて、伸張状態の各フレーズデータについて、ボリューム設定や音量パン設定などを実行可能なトーンジェネレータが含まれている。 Next, the main generator 84 includes a multi-channel audio decoder capable of independently decompressing a plurality of compressed phrase data read from the DDR memory 41, and a multi-channel decoded output of the audio decoder. A tone generator that can perform volume setting, volume pan setting, etc. is included for each phrase data.

また、マルチエフェクタ85には、トーンジェネレータが生成した複数チャンネルのデジタル音声を、最高3チャンネル(R0/L1 +R1/L1 +SUB0/SUB1 )のデジタル音声にミキシングするミキサと、デジタルフィルタ処理によって所望の周波数特性を実現するイコライザ機能や入出力ゲイン特性を変化させるコンプレッサ機能を実現するエフェクタと、最終音量を規定するトータルボリュームとが含まれている。 In addition, the multi-effector 85 includes a mixer for mixing multiple channels of digital audio generated by the tone generator into a maximum of 3 channels (R0/L1 + R1/L1 + SUB0/SUB1) of digital audio, and a digital filtering process to produce a desired frequency signal. It includes an equalizer function that realizes characteristics, an effector that realizes a compressor function that changes input/output gain characteristics, and a total volume that defines the final volume.

一方、オーディオインタフェイス86は、最高3チャンネル(R0/L1 +R1/L1 +SUB0/SUB1 )のデジタル音声について、各チャンネルの左右チャンネル(R/L )を纏めた音声信号線SD0~SD2と、クロック信号線SCLKと、左右チャンネル(R/L )の何れを伝送中かを特定する制御信号線LROとの3線に出力する。例えば、第1チャンネル(R0/L0 )と、第2チャンネル(R1/L1 )と、第3チャンネル(SUB0/SUB1 )の音声信号を受ける3個のデジタルアンプ43が存在する場合には、オーディオインタフェイス86とデジタルアンプ43との伝送路は、各々、3線となる。但し、本実施例では、第3チャンネル(SUB0/SUB1 )の音声信号を使用しておらず、また、第2チャンネルはモノラル音声としている(R1=L1 )。 On the other hand, the audio interface 86 provides audio signal lines SD0 to SD2 that combine the left and right channels (R/L) of each channel for digital audio of up to three channels (R0/L1 + R1/L1 + SUB0/SUB1), and a clock signal line. The signal is output to three lines, a line SCLK and a control signal line LRO specifying which of the left and right channels (R/L) is being transmitted. For example, if there are three digital amplifiers 43 that receive the audio signals of the first channel (R0/L0), the second channel (R1/L1) and the third channel (SUB0/SUB1), the audio interface The transmission lines between the face 86 and the digital amplifier 43 are three lines each. However, in this embodiment, the audio signal of the third channel (SUB0/SUB1) is not used, and the second channel is monaural audio (R1=L1).

次に、図9は、中継レジスタ82と、コマンドインタフェイス部(音声コマンドFIFO)83の構成を示す図面である。この実施例では、ホストCPU50が、サウンドエンジン52の内部動作を規定するべく所定のコマンドレジスタRGiをWRITEアクセスする場合も、コマンドレジスタRGiからステイタス情報をREADアクセスする何れの場合も、中継レジスタ82を経由する間接アクセス方式を採っている。 Next, FIG. 9 is a drawing showing the configuration of the relay register 82 and the command interface unit (voice command FIFO) 83. As shown in FIG. In this embodiment, the relay register 82 is used when the host CPU 50 makes WRITE access to a predetermined command register RGi to define the internal operation of the sound engine 52, or READ-accesses status information from the command register RGi. Indirect access method is adopted.

また、WRITEアクセス時には、後述するシステム制御アクセス時を除き、コマンドレジスタRGiへの書込みデータ(設定値)が、WRポインタとRDポインタで制御されるFIFO構造の音声コマンドバッファ83(音声コマンドFIFO)に自動的に蓄積されるようになっている。 At the time of WRITE access, the data (set value) to be written to the command register RGi is stored in the voice command buffer 83 (voice command FIFO) of the FIFO structure controlled by the WR pointer and the RD pointer, except at the time of system control access which will be described later. It is automatically accumulated.

以下、この点を図9(a)に基づいて更に説明すると、中継レジスタ82は、詳細には、アクセス対象となるコマンドレジスタRGiを特定する1バイト長のレジスタ番号を書込む第1中継レジスタMCRと、そのレジスタ番号のコマンドレジスタRGiに設定すべき設定値を書込む第2中継レジスタMCDと、第1中継レジスタMCRと第2中継レジスタMCDの各1バイトの要部データが転記される転記レジスタTRNと、に区分されている。 This point will be further described below with reference to FIG. 9(a). More specifically, the relay register 82 is a first relay register MCR in which a 1-byte length register number specifying the command register RGi to be accessed is written. , a second relay register MCD that writes the set value to be set in the command register RGi of that register number, and a transcription register to which the main part data of 1 byte each of the first relay register MCR and the second relay register MCD are transcribed. and TRN.

ここで、転記レジスタTRNは2バイト長であり、第1と第2の中継レジスタMCR,MCDは、各々4バイト長である。そして、各中継レジスタMCR,MCDの要部である各1バイト部分(レジスタ番号/設定値)は、全体として2バイト長の転記レジスタTRNに接続されており、中継レジスタMCR,MCDへの書込み信号(WR*CS)に基づいて、自動的に転記されるよう構成されている。なお、WR*CSは、ホストCPU50から出力される書込み制御信号WRと、中継レジスタMCR,MCDを選択する内部チップセレクト信号CSの論理AND値を意味する。 Here, the transcription register TRN is 2 bytes long, and the first and second relay registers MCR and MCD are each 4 bytes long. Each 1-byte portion (register number/set value), which is the main part of each of the relay registers MCR and MCD, is connected to a transcription register TRN having a length of 2 bytes as a whole, and write signals to the relay registers MCR and MCD. It is configured to be automatically transcribed based on (WR*CS). WR*CS means the logical AND value of the write control signal WR output from the host CPU 50 and the internal chip select signal CS for selecting the relay registers MCR and MCD.

図9(b)は、この転記動作を説明する図面であり、第1中継レジスタMCRへのWRITEアクセスを示す第1書込み信号(WR*CS)と、第2中継レジスタMCDへのWRITEアクセスを示す第2書込み信号(WR*CS)と、第1書込み信号と第2書込み信号の論理OR信号とが示されている。そして、この実施例では、第1書込み信号か第2書込み信号のうち、先に発生した先行書込み信号(WR*CS)に基づいて、転記レジスタTRNへの1バイト(レジスタ番号又は設定値)の転記動作が実行されると共に、WRポインタが更新される。 FIG. 9(b) is a drawing for explaining this posting operation, showing a first write signal (WR*CS) indicating WRITE access to the first relay register MCR and a WRITE access to the second relay register MCD. A second write signal (WR*CS) and the logical OR signal of the first write signal and the second write signal are shown. Then, in this embodiment, one byte (register number or set value) is transferred to the transcription register TRN based on the preceding write signal (WR*CS) which is the first write signal or the second write signal. The WR pointer is updated as the posting operation is performed.

そして、その後に発生する後続書込み信号(WR*CS)に基づいて、転記レジスタTRNへの残り1バイト(レジスタ番号又は設定値)の転記動作が実行されると共に、後続書込み信号(WR*CS)の後段エッジに同期して、転記レジスタTRNの2バイトデータ(レジスタ番号+設定値)が、リングバッファ構造の音声コマンドバッファ83に書込まれるようになっている。なお、音声コマンドバッファ83の書込み先は、WRポインタで特定され、読出し先は、RDポインタで特定される。そして、音声コマンドバッファ(音声コマンドFIFO)83の段数は、例えば、511段(2バイト×511)である。 Then, based on the subsequent write signal (WR*CS) generated thereafter, the remaining 1 byte (register number or set value) is transferred to the transcription register TRN, and the subsequent write signal (WR*CS) is generated. 2-byte data (register number+set value) of the transcription register TRN is written into the voice command buffer 83 having a ring buffer structure in synchronization with the trailing edge. The write destination of the voice command buffer 83 is specified by the WR pointer, and the read destination is specified by the RD pointer. The number of stages of the voice command buffer (voice command FIFO) 83 is, for example, 511 (2 bytes×511).

本実施例は、上記の通りに構成されているので、ホストCPU50が、中継レジスタMCR,MCDに必要情報(レジスタ番号と設定値)を書込む毎に、その必要情報が自動的に音声コマンドバッファ(音声コマンドFIFO)83に蓄積されることになる。したがって、ホストCPU50は、サウンドエンジン52の内部動作を特に気にすることなく、自らのタイミングで中継レジスタMCR,MCDへの書込み動作を繰り返すことができる。但し、音声コマンドバッファ83の段数が511段であること、及び、サウンドエンジン動作周期(32/48mS)に対応して、音声コマンドバッファ83の読み出し周期が32/48mSであることを考慮すべきことは当然である。 Since this embodiment is configured as described above, every time the host CPU 50 writes necessary information (register number and set value) to the relay registers MCR and MCD, the necessary information is automatically transferred to the voice command buffer. (Voice command FIFO) 83 is stored. Therefore, the host CPU 50 can repeat the write operation to the relay registers MCR and MCD at its own timing without paying particular attention to the internal operation of the sound engine 52 . However, it should be taken into consideration that the number of stages of the voice command buffer 83 is 511 and that the read cycle of the voice command buffer 83 is 32/48 mS corresponding to the sound engine operating cycle (32/48 mS). is a matter of course.

なお、ホストCPUは、任意のコマンドレジスタRGiに、任意の設定値を書込む直接WRITEアクセスだけでなく、SACi起動用の一群のコマンドレジスタRGiに、SACコード番号やその他の動作条件を設定するSAC起動動作や、SEQj起動用の一群のコマンドレジスタRGjに、SEQコード番号やその他の動作条件を設定すれSEQ起動動作も可能である。但し、何れの場合も、原則として、中継レジスタ82や音声コマンドバッファ83を経由する間接アクセス方式を採る必要がある。 It should be noted that the host CPU not only performs direct WRITE access to write an arbitrary set value to an arbitrary command register RGi, but also performs SAC access to set a SAC code number and other operating conditions to a group of command registers RGi for starting SACi. A SEQ start operation is also possible by setting a SEQ code number and other operating conditions in a group of command registers RGj for start operation and SEQj start. However, in any case, in principle, it is necessary to adopt an indirect access method via the relay register 82 and the voice command buffer 83 .

図9(c)に示す通り、音声コマンドバッファ83に蓄積された2バイト(レジスタ番号+設定値)単位のデータ群は、サウンドエンジン動作周期(32/48mS)で、SCM81によって読み出され、レジスタ番号で特定される所定のコマンドレジスタRGiに、所定の設定値が設定されることで、サウンドエンジン52内部動作が変化する。 As shown in FIG. 9(c), the 2-byte (register number + set value) data group stored in the voice command buffer 83 is read out by the SCM 81 at the sound engine operating cycle (32/48 ms), and The internal operation of the sound engine 52 changes by setting a predetermined set value in a predetermined command register RGi identified by a number.

具体的には、例えば、所定のコマンドレジスタRGiに、特定の音声フレーズ番号が設定されることで、特定一単位の音声演出が開始される。また、所定のコマンドレジスタRGiに、音声ボリュームや音量パンを規定する設定値が設定されることで、その後の音声演出の音量や音量バランスが変化する場合もある。 Specifically, for example, by setting a specific voice phrase number in a predetermined command register RGi, a specific unit of voice effect is started. Also, setting values that define the audio volume and volume pan in a predetermined command register RGi may change the volume and volume balance of subsequent audio effects.

更にまた、所定のコマンドレジスタRGiに、SACコード番号やSEQコード番号などを設定することで、シンプルアクセスコントローラSACやシーケンサSEQが、一連のSACデータや一連のSEQデータに基づいた設定動作を開始する場合もある。 Furthermore, by setting a SAC code number, a SEQ code number, etc. in a predetermined command register RGi, the simple access controller SAC and the sequencer SEQ start setting operations based on a series of SAC data and a series of SEQ data. In some cases.

以上の通り、コマンドレジスタRGiに設定値を書込む動作は、原則として、音声コマンドバッファ83を経由させ、SCM81に実行させている。しかし、SCM81は、サウンドエンジン動作周期(32/48mS)で間欠的に動作するので、迅速性に欠ける点に問題がある。そこで、サウンドエンジン52の内部エラーなどのステイタス情報の読出し動作(READアクセス)や、割込み制御など、サウンドエンジンの制御動作に関する設定(システム制御アクセス)については、音声コマンドバッファ83やSCM81を介在させることなく、ホストCPU50が直接アクセスする方式を採っている。 As described above, in principle, the operation of writing a set value to the command register RGi is executed by the SCM 81 via the voice command buffer 83 . However, since the SCM 81 operates intermittently at the sound engine operating cycle (32/48 mS), it lacks promptness. Therefore, the voice command buffer 83 and the SCM 81 should be used to read status information (READ access) such as an internal error of the sound engine 52 and to set (system control access) related to the control operation of the sound engine such as interrupt control. Instead, a system in which the host CPU 50 directly accesses is adopted.

すなわち、ホストCPU50が、サウンドエンジンの制御動作に関するコマンドレジスタRGiのレジスタ番号を、第1中継レジスタMCRに書き、システム制御設定値を第2中継レジスタMCDに書いた場合には(システム制御アクセス)、システム制御設定値が即座に該当するコマンドレジスタRGiに書込まれる。また、ホストCPU50が、所定のコマンドレジスタRGiをREADアクセスした場合は、第1中継レジスタMCRに書き込んだコマンドレジスタRGiから読み出されたステイタス情報が、第2中継レジスタMCDに取得される。 That is, when the host CPU 50 writes the register number of the command register RGi related to the control operation of the sound engine to the first relay register MCR and the system control setting value to the second relay register MCD (system control access), System control settings are immediately written to the appropriate command register RGi. Also, when the host CPU 50 READ-accesses a predetermined command register RGi, the status information read from the command register RGi written to the first relay register MCR is acquired by the second relay register MCD.

以上、SCM81が機能してコマンドレジスタRGiの設定動作を実行する第1動作モード(通常制御モード)について説明したが、本実施例では、SCM81の動作をVDPコントローラ60が代用する第2動作モード(簡易制御モード)も可能である。この第2動作モードでは、サウンドエンジン52を第2動作モードに設定した状態で、ホストCPU50は、音声リストバッファLBUFに、コマンドレジスタRGiへの設定動作を規定した音声コマンドリストSLTを発行することになる。 The first operation mode (normal control mode) in which the SCM 81 functions to set the command register RGi has been described above. simple control mode) is also possible. In this second operation mode, with the sound engine 52 set to the second operation mode, the host CPU 50 issues to the audio list buffer LBUF the audio command list SLT specifying the setting operation for the command register RGi. Become.

なお、音声リストバッファLBUFは、メインメモリ56、内蔵DRAM57、又はDDRメモリ41に予め確保されている必要がある。また、音声コマンドリストSLTは、コマンドレジスタRGiへの設定動作が必要となるタイミングで発行される。 Note that the audio list buffer LBUF must be reserved in the main memory 56, the internal DRAM 57, or the DDR memory 41 in advance. Also, the voice command list SLT is issued at the timing when the setting operation to the command register RGi is required.

図8の上部に記載した音声リストバッファLBUFに示す通り、音声コマンドリストSLTは、コマンドレジスタRGiのレジスタ番号(1バイト)と、そのコマンドレジスタRGiへの設定値(1バイト)を組み合わせた2バイト長の音声コマンドを列記した音声コマンド列であり、その先頭には、列記されている音声コマンドのコマンド数が規定されている。 As shown in the voice list buffer LBUF shown in the upper part of FIG. 8, the voice command list SLT is 2 bytes combining the register number (1 byte) of the command register RGi and the set value (1 byte) for the command register RGi. It is a voice command string in which long voice commands are listed, and the command number of the listed voice commands is specified at the beginning thereof.

そして、第2動作モード(簡易制御モード)では、音声リストバッファLBUFに発行された音声コマンドリストSLTは、VCPコントローラ60によって解読され、各音声コマンドが規定するレジスタ番号のコマンドレジスタRGiに、その音声コマンドが規定する設定値が設定される。すなわち、第2動作モードでは、SCM81の動作をVDPコントローラ60が代用するので、シンプルアクセスコントローラSACやシーケンサSEQが機能することがない。 Then, in the second operation mode (simple control mode), the voice command list SLT issued to the voice list buffer LBUF is decoded by the VCP controller 60, and the command register RGi of the register number specified by each voice command is stored in the command register RGi. The set value specified by the command is set. That is, in the second operation mode, since the VDP controller 60 substitutes for the operation of the SCM 81, the simple access controller SAC and the sequencer SEQ do not function.

そのため、SAC起動動作を規定する音声コマンドや、SEQ起動動作を規定する音声コマンドを検出したVCPコントローラ60は、SACコード番号で規定される一群のSACデータや、SEQコード番号で規定される一群のSEQデータを、DDRメモリ41から読み出して、対応するコマンドレジスタRGi~RGjに設定することになる。なお、このVCPコントローラ60による設定動作でも、中継レジスタ82と音声コマンドバッファ83が使用される。 Therefore, when the VCP controller 60 detects a voice command defining an SAC activation operation or a voice command defining a SEQ activation operation, a group of SAC data defined by the SAC code number or a group of data defined by the SEQ code number SEQ data is read from the DDR memory 41 and set in the corresponding command registers RGi to RGj. Note that the relay register 82 and the voice command buffer 83 are also used in this setting operation by the VCP controller 60 .

以上説明した第2動作モード(簡易制御モード)を使用する場合には、ホストCPU50は、画像コマンドリストLTの発行と同様の手順で、コマンドリストバッファLBUFに音声コマンドリストSLTを発行することになる。そして、発行された音声コマンドリストは、バンクフリップ周期である一動作周期(Δ=1/30秒)後に、VDPコントローラ60に読み出されて、上記したコマンドレジスタRGiへの設定動作が実行される。 When using the second operation mode (simple control mode) described above, the host CPU 50 issues the voice command list SLT to the command list buffer LBUF in the same procedure as for issuing the image command list LT. . Then, the issued voice command list is read by the VDP controller 60 after one operation cycle (Δ=1/30 second), which is the bank flip cycle, and the setting operation to the command register RGi is executed. .

一方、第1動作モードによる設定動作は、サウンドエンジン動作周期(32/48mS)毎に実行されるので、第2動作モードによる設定動作は、その簡易性の反面、迅速性に劣る欠点がある。そこで、この時間遅れが問題になる場合には、コマンドリストバッファLBUFに代えて、VDPコントローラ60に内蔵された制御レジスタCRGの音声コマンドリストレジスタCRGWSLに、一群の音声コマンド列(音声コマンドリストSLT)を書き込んで、第2動作モードを実行するのが好適である。 On the other hand, since the setting operation in the first operation mode is executed every sound engine operation cycle (32/48 mS), the setting operation in the second operation mode is simple but has the drawback of being slow. Therefore, if this time delay becomes a problem, instead of the command list buffer LBUF , a group of voice command strings (voice command list SLT ) to execute the second mode of operation.

実施例の音声コマンドリストレジスタCRGWSLは、1040バイト長であり、音声コマンド(2バイト)を、511個程度列記することができる。先に説明した通り、サウンドエンジン52に内蔵された音声コマンドバッファ(音声コマンドFIFO)83の段数は、例えば、511段(2バイト×511)であるので、ホストCPU50の書込み用の制御負担という意味では、音声コマンドリストレジスタCRGWSLと、音声コマンドバッファ83とは同等である。 The voice command list register CRG WSL of the embodiment has a length of 1040 bytes and can list about 511 voice commands (2 bytes). As described above, the number of stages of the voice command buffer (voice command FIFO) 83 built into the sound engine 52 is, for example, 511 stages (2 bytes x 511). Now, the voice command list register CRG WSL and the voice command buffer 83 are equivalent.

しかし、ホストCPU50が、音声コマンドリストレジスタCRGWSLに音声コマンドリストSLTを発行した後、VDPコントローラ60が、サウンドエンジン52へのWRITEアクセスを開始するに過ぎないので、迅速性においては、ホストCPU50による音声コマンドバッファ83のWRITEアクセスの方が優れている。 However, since the VDP controller 60 only initiates a WRITE access to the sound engine 52 after the host CPU 50 has issued the voice command list SLT to the voice command list register CRG WSL , WRITE access of the voice command buffer 83 is superior.

続いて、図10に基づいて、DMAコントローラ53について説明する。図10(a)は、電源投入時の動作、図10(b)は、ランプ演出や役物演出の駆動データ更新時の動作を示している。実施例のDMAコントローラ53は、独立して動作可能な14チャンネル(DMAチャネル#0~DMAチャネル#13)を有しているが、本実施例では、電源投入時にチャネル#0を機能させて、外付けROM42の音声データSNDを、DDRメモリ41にDMA転送している。 Next, the DMA controller 53 will be described with reference to FIG. FIG. 10(a) shows the operation when the power is turned on, and FIG. 10(b) shows the operation when the drive data for the lamp effect and the character object effect is updated. The DMA controller 53 of the embodiment has 14 independently operable channels (DMA channel #0 to DMA channel #13). The audio data SND in the external ROM 42 is DMA-transferred to the DDR memory 41 .

具体的には、ホストCPU50は、DMAの使用チャンネルとしてDMAチャネル#0を特定した状態で、(1)転送元の先頭アドレス、(2)転送元からDMAコントローラ53に対する一回の読出しサイズ(バイト長)、(3)DMAコントローラ53へのREAD転送回数、(4)転送先の先頭アドレス、(5)DMAコントローラ53から転送先に対する一回の書込みサイズ(バイト長)、(6)転送先へのWRITE転送回数、などの動作内容を、先ずDMAコントローラ53の該当レジスタに特定する。 Specifically, the host CPU 50 specifies DMA channel #0 as the channel to be used for DMA, and (1) the top address of the transfer source, (2) the read size (bytes) of one read from the transfer source to the DMA controller 53 (3) the number of READ transfers to the DMA controller 53; (4) the top address of the transfer destination; (5) the size of one write from the DMA controller 53 to the transfer destination (byte length); The operation contents such as the number of times of WRITE transfer are first specified in the corresponding register of the DMA controller 53 .

次に、ホストCPU50が、DMAコントローラ53の該当レジスタ(チャネル0コントロールレジスタ)に動作開始を指示すると、上記した(1)~(6)の動作条件でDMA転送が開始され、転送元と転送先のアドレスが適宜に更新されつつ、読出しサイズと書込みサイズの転送動作が繰り返され、全ての転送動作が終わると、DMAコントローラ53の該当レジスタ(DMA割り込みステータスレジスタ)の完了フラグがセット状態になるようになっている。 Next, when the host CPU 50 instructs the corresponding register (channel 0 control register) of the DMA controller 53 to start operation, DMA transfer is started under the above operating conditions (1) to (6), and the transfer source and transfer destination While the address is updated appropriately, the read size and write size transfer operations are repeated, and when all the transfer operations are completed, the completion flag of the corresponding register (DMA interrupt status register) of the DMA controller 53 is set. It has become.

したがって、ホストCPU50は、(1)~(6)などの動作内容を指示して、動作開始を指示した後は、転送動作をDMAコントローラ53に任せ、全く別の処理を実行することができる。また、本実施例では、DMAコントローラ53に、一回の読出しサイズ、READ転送回数、一回の書込みサイズ、及び、書込み転送回数を各々設定できるので、転送元と転送先のアクセス速度の差を円滑に吸収することができ、また、転送元の読出し単位や、転送先の書込み単位が限定されている場合でも、適切な転送動作が実現される。 Therefore, after the host CPU 50 instructs the operation contents such as (1) to (6) and instructs the start of the operation, the transfer operation can be left to the DMA controller 53 and completely different processing can be executed. In addition, in this embodiment, the DMA controller 53 can set the read size of one time, the number of times of READ transfer, the size of one time of writing, and the number of times of write transfer. It can be absorbed smoothly, and even when the read unit of the transfer source and the write unit of the transfer destination are limited, an appropriate transfer operation is realized.

次に、図10(b)は、ランプ演出や役物演出の駆動データ更新時におけるDMAコントローラ53の動作を説明する図面である。本実施例では、ランプ演出は、3mS毎にランプ駆動データが更新されることで進行し、役物演出は、1mS毎にモータ駆動データが更新されることで進行するよう構成されている。そして、ランプ駆動データやモータ駆動データは、各々、外付けROM42のランプ駆動データテーブルLMPc,LMPdや、モータ駆動データテーブルMOTe,MOTfに不揮発的に格納されており、これらのデータテーブルLMP,MOTが、DMAコントローラ53の転送元となる。 Next, FIG. 10(b) is a drawing for explaining the operation of the DMA controller 53 when updating the drive data for lamp effects and character effects. In this embodiment, the lamp effect progresses by updating the lamp drive data every 3 mS, and the character effect progresses by updating the motor drive data every 1 mS. The lamp drive data and the motor drive data are stored in the lamp drive data tables LMPc and LMPd and the motor drive data tables MOTe and MOTf of the external ROM 42 in a non-volatile manner. , the transfer source of the DMA controller 53 .

先に説明した通り、本実施例では、シリアルポート55のチャネル#C~チャネル#Fを、シリアル出力ポートに設定して、ランプ演出と役物演出を実現しているので、シリアルポート55のチャネル#C~チャネル#Fが、DMAコントローラ53にとっての転送先となる。 As described above, in this embodiment, the channel #C to channel #F of the serial port 55 are set as serial output ports to realize the lamp effect and character effect. #C to channel #F are transfer destinations for the DMA controller 53 .

また、シリアルポート55のチャネル#C~チャネル#Fには、16ビット単位の記憶領域64段で構成された送信FIFOc~送信FIFOfが各々設けられており、送信FIFOc~送信FIFOfに蓄積された駆動データが、FIFO(First In First Out)方式で自動的に読み出され、チャネル#C~チャネル#Fのシリアル出力ポートからシリアル送信されるようになっている。 Further, channel #C to channel #F of the serial port 55 are provided with transmission FIFOc to transmission FIFOf configured with 64 stages of 16-bit unit storage areas, respectively. Data is automatically read out by a FIFO (First In First Out) method and serially transmitted from the serial output ports of channel #C to channel #F.

ここで、送信FIFOc~送信FIFOfへのデータ蓄積は、各チャネル#C~#Fのインタフェイス部に配置された中継レジスタITM(データレジスタ)を経由するようになっており、中継レジスタへの書込みデータが、送信FIFOに自動的に蓄積される構成を採っている。したがって、この実施例では、DMAコントローラ53にとってWRITE転送の転送先は、シリアルポート55のチャネル#C~チャネル#Fに配置されている中継レジスタITMとなり、READ転送の転送元が、駆動データテーブルLMP,MOTとなる。 Here, the data accumulation in the transmission FIFOc to the transmission FIFOf passes through a relay register ITM (data register) arranged in the interface section of each channel #C to #F. Data is automatically stored in the transmit FIFO. Therefore, in this embodiment, for the DMA controller 53, the transfer destination of the WRITE transfer is the relay register ITM arranged in the channels #C to #F of the serial port 55, and the transfer source of the READ transfer is the drive data table LMP. , MOT.

そして、データテーブルLMPcとデータテーブルLMPdのランプ駆動データ、及び、データテーブルMOTeとデータテーブルMOTeのモータ駆動データは、各々、DMAチャネル#10~DMAチャネル#13を経由して、外付けROM42からシリアルポート55のチャネル#C~#Fの中継レジスタITMにDMA転送されるよう構成されている。 The lamp driving data in the data tables LMPc and LMPd, and the motor driving data in the data tables MOTe and MOTe are serially transmitted from the external ROM 42 via DMA channels #10 to #13. It is configured to be DMA-transferred to relay registers ITM of channels #C to #F of port 55 .

なお、データテーブルLMP,MOTからDMAコントローラ53(#10~#13)への転送は、32バイト毎に実行される一方、DMAコントローラ53(#10~#13)からシリアルポート55(#C~#F)の中継レジスタITMへの転送は、2バイト毎に実行される。すなわち、DMAコントローラ53(#10~#13)は、一の転送で受けた32バイトを、16回に分けて転送している。 The transfer from the data tables LMP and MOT to the DMA controller 53 (#10-#13) is executed in units of 32 bytes. The transfer of #F) to the intermediate register ITM is executed every 2 bytes. That is, the DMA controller 53 (#10 to #13) divides the 32 bytes received in one transfer into 16 transfers.

また、書込み転送の実行タイミングを規定する閾値が、予め、ホストCPU50によって各シリアルポート55(#C~#F)に設定されており、送信FIFO(送信FIFOc~送信FIFOf)の蓄積データ量が所定の閾値以下になると、シリアルポート55からDMAコントローラ53にDMA_Request信号が出力され、DMAコントローラ53は、DMA_Acknowledge信号を返信して、一単位(2バイト長)の書込み転送を実行している。なお、これらのHandshake 動作に、ホストCPU50が関与する必要がないので、DMAコントローラの転送動作を開始させたホストCPU50は、その転送動作を待機するだけで足りる。 In addition, the host CPU 50 preliminarily sets a threshold value that defines the execution timing of write transfer to each serial port 55 (#C to #F), and the amount of accumulated data in the transmission FIFOs (transmission FIFOc to transmission FIFOf) is predetermined. , a DMA_Request signal is output from the serial port 55 to the DMA controller 53, and the DMA controller 53 returns a DMA_Acknowledge signal to execute write transfer of one unit (two bytes long). Since the host CPU 50 does not need to be involved in these handshake operations, the host CPU 50 that started the transfer operation of the DMA controller only has to wait for the transfer operation.

続いて、図11~図13に基づいて、シリアルポート55(#C~#F)と、シリアルポート55(#C~#F)を使用したシリアル伝送について説明する。先ず、シリアルポートの内部構成を示す図11(a)に基づいて説明すると、シリアルポート55のチャネル#Eと#Fは、SPI通信モードで動作する一方、シリアルポート55のチャネル#Cと#Dは、LED駆動モードで動作するように設定されている。 Next, serial transmission using the serial ports 55 (#C to #F) and the serial ports 55 (#C to #F) will be described with reference to FIGS. 11 to 13. FIG. First, referring to FIG. 11(a) showing the internal configuration of the serial port, channels #E and #F of the serial port 55 operate in the SPI communication mode, while channels #C and #D of the serial port 55 operate in the SPI communication mode. is set to operate in LED drive mode.

ここで、SPI通信モードとは、Motorola SPIに準拠して、マスター機器とスレーブ機器とのシリアル通信を可能にする動作モードであり、SPIモジュールが機能することで、チップセレクト(CS)と、シリアルクロック(SCK)と、シリアル入力データ(SI)と、シリアル出力データ(SO)とが使用可能となっている。但し、本実施例では、スレーブ機器を選択するチップセレクト信号(CS)を使用しない。また、以下の説明では、SPI通信モードでシリアル送信動作を実行する場合をSPI送信モードと称し、SPI通信モードでシリアル受信動作を実行する場合をSPI受信モードと称する。 Here, the SPI communication mode is an operation mode that enables serial communication between a master device and a slave device in compliance with Motorola SPI. A clock (SCK), serial input data (SI), and serial output data (SO) are available. However, this embodiment does not use a chip select signal (CS) for selecting a slave device. Further, in the following description, the case where the serial transmission operation is executed in the SPI communication mode will be called the SPI transmission mode, and the case where the serial reception operation is executed in the SPI communication mode will be called the SPI reception mode.

SPI送信モードで機能するシリアルポート55のチャネル#Eと#Fでは、各チャネル(#E,#F)の送信FIFOに蓄積されたシリアル出力データ(モータ駆動データ)が、シリアルクロックSCKに同期して、シリアル送信される。そして、送信FIFOの全てのモータ駆動データがシリアル送信され終わると、各チャネル(#E,#F)のステイタスレジスタ(不図示)が送信完了状態にセットされるようになっている。なお、図10に関して説明した通り、送信FIFOには、Handshake 方式で、モータ駆動データテーブルMOTe,MOTfのモータ駆動データが自動的に転送される。 In the channels #E and #F of the serial port 55 functioning in SPI transmission mode, the serial output data (motor drive data) accumulated in the transmission FIFO of each channel (#E, #F) are synchronized with the serial clock SCK. are transmitted serially. When all the motor driving data in the transmission FIFO have been serially transmitted, the status register (not shown) of each channel (#E, #F) is set to the transmission completion state. As described with reference to FIG. 10, the motor drive data of the motor drive data tables MOTe and MOTf are automatically transferred to the transmission FIFO by the handshake method.

一方、LED駆動モードは、上記したSPIモジュールに加えて、LEDドライバ用の追加モジュール(DR IF Moduleと表記)が機能する動作モードである。このLED駆動モードでは、シリアルクロック(SPCK)と、シリアル出力データ(SPO)と、OE信号(output enable )とが出力されるよう構成されている。OE信号は、一群のシリアル出力データ(ランプ駆動データSPO)がシリアル送信中であることを示す信号である。なお、このLED駆動モードでは、一ブロックのデータ送信完了毎にラッチ信号(LD)を出力させる動作も可能であるが、本実施例では、そのような動作態様を採っていない。 On the other hand, the LED drive mode is an operation mode in which an additional module for the LED driver (denoted as DR IF Module) functions in addition to the SPI module described above. In this LED driving mode, a serial clock (SPCK), serial output data (SPO), and an OE signal (output enable) are output. The OE signal is a signal indicating that a group of serial output data (lamp driving data SPO) is being serially transmitted. In this LED drive mode, it is possible to output a latch signal (LD) each time data transmission of one block is completed, but this embodiment does not employ such an operation mode.

LED駆動モードで機能するシリアルポート55のチャネル#Cと#Dでは、各チャネル(#C,#D)の送信FIFOに蓄積されたシリアル出力データ(ランプ駆動データ)が、シリアルクロックSCKに同期して、順次シリアル送信され、このシリアル送信中は、OE信号がアクティブレベルを維持する。 In channels #C and #D of the serial port 55 functioning in the LED drive mode, the serial output data (lamp drive data) accumulated in the transmission FIFO of each channel (#C, #D) are synchronized with the serial clock SCK. are sequentially serially transmitted, and the OE signal maintains the active level during this serial transmission.

また、このLED駆動モードの動作態様でも、送信FIFOの全てのモータ駆動データがシリアル送信され終わると、各チャネル(#C,#D)のステイタスレジスタ(不図示)が送信完了状態にセットされるようになっている。なお、チャネル#Cと#Dの送信FIFOには、Handshake 方式で、ランプ駆動データテーブルLMPc,LMPdのランプ駆動データが自動的に転送される。 Also in this LED drive mode operation mode, when all the motor drive data in the transmission FIFO have been serially transmitted, the status register (not shown) of each channel (#C, #D) is set to the transmission completion state. It's like The lamp drive data of the lamp drive data tables LMPc and LMPd are automatically transferred to the transmission FIFOs of channels #C and #D by the handshake method.

以上を踏まえて、モータ駆動データのシリアル伝送について説明を追加する。図11(c)は、モータ駆動データテーブルMOTe,MOTfの構造を図示しており、図11(d)と図11(e)は、モータ駆動を説明する図面である。 Based on the above, the description of the serial transmission of the motor drive data will be added. FIG. 11(c) shows the structure of the motor drive data tables MOTe and MOTf, and FIGS. 11(d) and 11(e) are diagrams for explaining the motor drive.

先に説明した通り、本実施例では、枠側と盤側のモータ駆動基板37,30に配置されたモータドライバDV(図12(a)参照)に対して、モータ駆動データをシリアル送信する。モータ駆動基板37,30には、各々、複数のモータドライバDV1~DVnが配置されているが、図12(a)~図12(b)に示す通り、各モータドライバDViは、直列接続された4個のシフトレジスタSR1~SRE4と、各シフトレジスタの出力を受けて役物モータMiを駆動するドライバOUT1~OUT4と、を有して構成されている。 As described above, in this embodiment, motor drive data is serially transmitted to the motor drivers DV (see FIG. 12A) arranged on the motor drive boards 37 and 30 on the frame side and the board side. A plurality of motor drivers DV1 to DVn are arranged on each of the motor drive boards 37 and 30. As shown in FIGS. 12A and 12B, each motor driver DVi is connected in series. It is composed of four shift registers SR1 to SRE4 and drivers OUT1 to OUT4 for receiving outputs from the respective shift registers and driving accessory motors Mi.

そのため、シリアルポート(#E,#F)から、シリアルクロックSCKに同期して、モータ駆動データSOを出力すると、モータ駆動データSOが、順次、シフトレジスタSRiに転送されることなる。本実施例では、モータドライバDViの個数Nに対応するモータ駆動データが、モータ駆動テーブルMOTに記憶されており、全てのモータ駆動データの送信完了後に、パラレルポート54からラッチパルスLTe,LTfを出力することで、全てのモータドライバDVにモータ駆動データを取得させ、役物モータM1~Mnを歩進させている。 Therefore, when the motor drive data SO is output from the serial ports (#E, #F) in synchronization with the serial clock SCK, the motor drive data SO are sequentially transferred to the shift register SRi. In this embodiment, motor drive data corresponding to the number N of motor drivers DVi are stored in the motor drive table MOT, and latch pulses LTe and LTf are output from the parallel port 54 after transmission of all motor drive data is completed. By doing so, all the motor drivers DV are caused to acquire the motor drive data, and the accessory motors M1 to Mn are stepped.

役物モータM1~Mnは、例えば、ステッピングモータで構成されており、図11(d)と図11(e)には、ユニポーラ型ステッピングモータを、例えば、2相励磁する場合が示されている。このような構成の場合、役物モータMiの一個に伝送されるべきモータ駆動データは4ビットであり、枠側のモータ駆動基板37にK個の役物モータが配置される本実施例では、モータ駆動データ全体で4×Kビットとなる。また、盤側のモータ駆動基板30にL個の役物モータが配置される本実施例では、モータ駆動データ全体で4×Lビットとなる。 The accessory motors M1 to Mn are composed of, for example, stepping motors, and FIGS. 11(d) and 11(e) show, for example, a case where a unipolar stepping motor is excited in two phases. . In such a configuration, the motor drive data to be transmitted to one accessory motor Mi is 4 bits, and in this embodiment in which K accessory motors are arranged on the motor drive board 37 on the frame side, The entire motor drive data is 4×K bits. Further, in this embodiment in which L accessory motors are arranged on the motor drive board 30 on the board side, the total motor drive data is 4×L bits.

ところで、本実施例では、DMA転送を採用するので、モータ駆動テーブルMOTe,MOTfからDMAコントローラ63(チャネル#12,#13)へのデータ転送、及び、DMAコントローラ63(チャネル#12,#13)からシリアルポート55(チャネル#E,#F)へのデータ転送は、何れも所定バイトを一単位として行う必要がある。 By the way, in this embodiment, since DMA transfer is adopted, data transfer from the motor drive tables MOTe, MOTf to the DMA controller 63 (channels #12, #13) and DMA controller 63 (channels #12, #13) Data transfer from to the serial port 55 (channels #E, #F) must be performed in units of a predetermined number of bytes.

本実施例では、例えば、2バイト単位にDMA転送を繰り返しており、DMA転送されるモータ駆動データの総ビット数は、16ビットの整数倍である必要がある。そこで、本実施例では、モータ駆動データテーブルMOTe,MOTfの先頭に、必要ビット(X,Y)のダミーデータDUMMY を追加することで、4×K+Xの値や、4×L+Yの値を16ビットの整数倍にしている。 In this embodiment, for example, DMA transfer is repeated in units of 2 bytes, and the total number of bits of the motor driving data to be DMA-transferred must be an integral multiple of 16 bits. Therefore, in this embodiment, by adding dummy data DUMMY of the required bits (X, Y) to the head of the motor driving data tables MOTe and MOTf, the value of 4*K+X and the value of 4*L+Y are converted into 16-bit data. is an integral multiple of

図11(c)は、この状態を図示しており、モータ駆動データテーブルMOTe,MOTfの先頭には、必要個数(X,Y)のダミーデータDUMMY が付加されている。そのため、シリアルポート(#E,#F)が出力するシリアルクロックSCKの個数は、4×K+X個、又は4×L+Y個となるが、先頭に送信されるX個又はY個のダミーデータDUMMY は、これを受け取るモータドライバが存在せず消滅するので何の問題も生じない。 FIG. 11(c) illustrates this state, and the required number (X, Y) of dummy data DUMMY is added to the head of the motor drive data tables MOTe and MOTf. Therefore, the number of serial clocks SCK output from the serial ports (#E, #F) is 4*K+X or 4*L+Y, but the X or Y dummy data DUMMY transmitted at the beginning is , no problem occurs because there is no motor driver to receive it and it disappears.

なお、4×K+Xビット、又は、4×L+Yビットのモータ駆動データは、ステッピングモータの一動作態様を特定するので、ユニポーラ型ステッピングモータを2相励磁する本実施例では、最低でも、第一動作態様から第四動作態様までの四態様が存在することになり(図11(e)参照)、モータ駆動データテーブルMOTは、最低でも、この四態様を特定する第一区分データ~第四区分データが必要となり、これらが順番に送信されることになる(図11(c)参照)。 Since the 4×K+X bit or 4×L+Y bit motor driving data specifies one operation mode of the stepping motor, in this embodiment in which the unipolar stepping motor is excited in two phases, at least the first operation There are four modes from the mode to the fourth operation mode (see FIG. 11(e)). are required, and these are transmitted in order (see FIG. 11(c)).

もっとも、このような動作は、複数個の役物モータが、規則的に同期回転する単純な動作に過ぎず、実際の役物演出では、特定の役物モータだけが不規則に移動する場合も多い。したがって、実際には、役物演出の種類毎に、多数のモータ駆動データテーブルMOTiが用意されており、ホストCPU50は、その時の役物演出に対応して、参照すべきモータ駆動テーブルMOTiを選択し、シリアル出力すべき一区分のモータ駆動データ(4×K+Xビット、又は、4×L+Yビット)を特定して、DMA転送動作とシリアル送信動作を開始させることになる。 However, such an operation is merely a simple operation in which a plurality of accessory motors regularly rotate in synchronization. many. Therefore, in practice, a large number of motor drive data tables MOTi are prepared for each type of character performance, and the host CPU 50 selects the motor drive table MOTi to be referred to in accordance with the character performance at that time. Then, a section of motor drive data (4×K+X bits or 4×L+Y bits) to be serially output is specified, and DMA transfer operation and serial transmission operation are started.

以上、SPI送信モードについて説明したが、シリアルポート55のチャネル#Eと#Fは、SPI受信モードで機能するタイミングもある。この場合は、シリアルデータの受信個数を、予めチャネル#Eと#Fの該当レジスタに設定した状態で、受信モードの動作を開始する。すると、受信データ個数に対応するシリアルクロックSCKが送信されるので、シリアルクロックSCKに同期してシリアルデータ(センサ信号など)を受信し、所定単位毎に、パラレルデータとしてホストCPU50が取得することになる。 Although the SPI transmission mode has been described above, there are times when channels #E and #F of the serial port 55 function in the SPI reception mode. In this case, the receive mode operation is started with the number of received serial data set in advance in the corresponding registers of channels #E and #F. Then, since the serial clock SCK corresponding to the number of received data is transmitted, the serial data (sensor signal, etc.) is received in synchronization with the serial clock SCK, and the host CPU 50 acquires it as parallel data for each predetermined unit. Become.

図11(d)は、シリアル受信動作を説明する図面であり、信号取得回路GETの回路構成も示されている。なお、図示した構成の信号取得回路GETが、枠側及び盤側には、一個又は複数個が連設して配置されている。何れにしても、一の信号取得回路GETは、8個のシフトレジスタを有して構成され、各シフトレジスタのパラレル端子ODには、8ビットのパラレル信号(A~H)が供給されている。そして、各シフトレジスタが、共通的に取得パルスLT(LTe,LTf)を受けることで、8ビット長のパラレル信号が8個のシフトレジスタに取得される。図示の通り、8個のシフトレジスタは、直列接続されているので、シリアルクロックSCKを受ける毎に、自己の保持データを下流側のシフトレジスタに転送することになる。 FIG. 11D is a diagram for explaining the serial reception operation, and also shows the circuit configuration of the signal acquisition circuit GET. One or a plurality of signal acquisition circuits GET having the illustrated configuration are continuously arranged on the frame side and the board side. In any case, one signal acquisition circuit GET is configured with eight shift registers, and 8-bit parallel signals (A to H) are supplied to the parallel terminals OD of each shift register. . Then, each shift register receives an acquisition pulse LT (LTe, LTf) in common, so that an 8-bit long parallel signal is acquired by the eight shift registers. As shown, the eight shift registers are connected in series, so that each time the serial clock SCK is received, the data held by itself is transferred to the shift register on the downstream side.

枠側及び盤側の信号取得回路GETは、何れも上記の通りに動作をするので、本実施例では、パラレルポート54から、枠側又は盤側の全ての信号取得回路GETに対して、先ず、取得パルスLTe,LTfを出力し、その後、必要個数のシリアルクロックSCKを出力することで、必要なデータをシリアル受信している。 Since both the frame-side and board-side signal acquisition circuits GET operate as described above, in this embodiment, from the parallel port 54, to all the frame-side or board-side signal acquisition circuits GET, , acquisition pulses LTe and LTf, and then the necessary number of serial clocks SCK are output, thereby serially receiving necessary data.

なお、この実施例では、シリアルポート55のチャネル#Eと#FをSPI送信モードと、SPI受信モードで使用するので、パラレルポート54から枠側と盤側の切換器47A,47Bに対して、切換制御信号CTLe,CTfを出力して、シリアルクロックSCKe,SCKfの伝送先を切り換えている。 In this embodiment, channels #E and #F of serial port 55 are used in SPI transmission mode and SPI reception mode. The switching control signals CTLe and CTf are output to switch the transmission destinations of the serial clocks SCKe and SCKf.

すなわち、切換制御信号CTLe,CTfによって切換器47A,47Bの内部回路が切換ることで、SPI送信モードで機能するチャネル#Eと#FのシリアルクロックSCKe,SCKfは、モータドライバDVに伝送され、SPI受信モードで機能するチャネル#Eと#FのシリアルクロックSCKe,SCKfは、枠側と盤側の信号取得回路GET,GETに伝送される。 That is, the internal circuits of the switches 47A and 47B are switched by the switching control signals CTLe and CTf, so that the serial clocks SCKe and SCKf of the channels #E and #F functioning in the SPI transmission mode are transmitted to the motor driver DV. Serial clocks SCKe and SCKf of channels #E and #F functioning in the SPI reception mode are transmitted to signal acquisition circuits GET and GET on the frame side and board side.

続いて、図13に基づいて、LED駆動モードで機能するシリアルポート55のチャネル#Cと#Dについて、図13に基づいて説明する。この実施例では、枠側と盤側のランプ駆動基板3629には、図13(b)に示すランプドライバDRが各々複数個搭載されている。 Next, channels #C and #D of the serial port 55 that function in the LED drive mode will be described with reference to FIG. In this embodiment, a plurality of lamp drivers DR shown in FIG. 13B are mounted on each of the frame-side lamp drive substrates 3629 and the board-side lamp drive substrates 3629 .

このランプドライバDRは、RGB三色のLEDランプを各8個(合計24個)駆動できるよう構成されており、図13(b)に示す通り、合計24個の出力端子(LEDR_1-8,LEDG_1-8,LEDB_1-8)と、各素子に固有のスレーブアドレスを規定する5ビットのアドレス端子(A0~A4)と、シリアルクロックSPCKc/SPCKdを受けるクロック端子SCLKと、ランプ駆動データSPOc/SPOdを受けるシリアル端子SDATAと、動作制御信号OEc/OEdを受ける制御端子SDENとを有して構成されている。 The lamp driver DR is configured to drive 8 LED lamps of three colors of RGB (total 24 lamps), and as shown in FIG. -8, LEDB_1-8), 5-bit address terminals (A0 to A4) that define a unique slave address for each element, clock terminal SCLK for receiving serial clock SPCKc/SPCKd, and lamp driving data SPOc/SPOd. and a control terminal SDEN for receiving the operation control signals OEc/OEd.

図13(a)に示す通り、クロック端子SCLKとシリアル端子SDATAと制御端子SDENは、全てのランプドライバDR1~DRnに共通的に供給されている。また、図13(a)には、32個のランプドライバDRiのアドレス端子(A0~A4)に、00000b~11111bのアドレス信号が供給されており、32個のランプドライバDRiのスレーブアドレスが、0~31である実施例が示されている。したがって、この構成では、RGB各色のLEDランプが、各々、256個(=32×8)配置できることになる。 As shown in FIG. 13(a), the clock terminal SCLK, the serial terminal SDATA and the control terminal SDEN are commonly supplied to all the lamp drivers DR1 to DRn. Further, in FIG. 13A, address signals 00000b to 11111b are supplied to the address terminals (A0 to A4) of 32 lamp drivers DRi, and the slave address of 32 lamp drivers DRi is 0. ~31 examples are shown. Therefore, in this configuration, 256 (=32×8) LED lamps for each color of RGB can be arranged.

また、このランプドライバDRは、24個(RGB各色が8個)のLEDランプについて、各々、発光輝度を階調制御(Brightness Control)できるよう構成されており、8ビットで規定されるデューティ比を設定可能な24個を含め、合計で30個の内蔵レジスタ(R1~R30)が内蔵されている。各内蔵レジスタ(R1~R30)には、階調を規定するデューティ比など、8ビット長の設定データが設定される必要があり、各内蔵レジスタには、8ビット長のレジスタアドレス(00h~1Dh)が付与されている。 Further, this lamp driver DR is configured to be able to perform gradation control (Brightness Control) on the light emission brightness of each of the 24 LED lamps (8 LED lamps for each color of RGB). A total of 30 built-in registers (R1-R30) are built-in, including 24 that can be set. Each built-in register (R1 to R30) needs to be set with 8-bit long setting data such as the duty ratio that defines the gradation. ) is given.

したがって、ランプドライバDRが駆動対象とする24個のLEDランプの発光輝度を制御するには、そのランプドライバDRのスレーブアドレスを特定した状態で、合計30個の内蔵レジスタ(R1~R30)に、必要な設定データを伝送する必要がある。 Therefore, in order to control the light emission brightness of the 24 LED lamps to be driven by the lamp driver DR, a total of 30 built-in registers (R1 to R30) are set to: Required configuration data must be transmitted.

図13(c)は、ランプドライバDRの所定の内蔵レジスタに、8ビット長の設定データを書込む場合の動作手順を示すタイムチャートである。図示の通り、制御端子SDENをアクティブレベルに維持した状態で、クロック端子SCLKに供給されるシリアルクロックに同期して、スレーブアドレスをシリアル伝送し、その後、内蔵レジスタを特定するレジスタアドレスをシリアル伝送する必要がある。 FIG. 13(c) is a time chart showing an operation procedure for writing 8-bit length setting data to a predetermined built-in register of the lamp driver DR. As shown in the figure, with the control terminal SDEN maintained at the active level, the slave address is serially transmitted in synchronization with the serial clock supplied to the clock terminal SCLK, and then the register address specifying the internal register is serially transmitted. There is a need.

以上の動作の後、特定された内蔵レジスタに設定すべき設定データをシリアル伝送することになるが、このランプドライバDRでは、制御端子SDENがアクティブレベルである状態で、24個目のシリアルクロックの立ち上がりエッジで、それ以前に特定されている内蔵レジスタに、3番目に伝送された設定データが書込まれるよう構成されている(制御端子SDENへの信号を必要とする3線伝送方式)。 After the above operation, setting data to be set in the specified built-in register is serially transmitted. At the rising edge, the third transmitted setting data is written to the previously specified built-in register (three-wire transmission method requiring a signal to the control terminal SDEN).

以上、特定の内蔵レジスタに設定データを設定する場合を説明したが、全ての内蔵レジスタ(R1~R30)に設定データを設定する場合は、図13(e)の動作となる。すなわち、制御端子SDENをアクティブレベルに設定した状態で、スレーブアドレスをシリアル伝送し、その後、先頭のレジスタアドレス(00h)をシリアル伝送した上で、その内蔵レジスタへの設定データをシリアル送信する。 The case of setting the setting data in a specific built-in register has been described above, but when setting the setting data in all the built-in registers (R1 to R30), the operation shown in FIG. 13(e) is performed. That is, with the control terminal SDEN set to the active level, the slave address is serially transmitted, then the leading register address (00h) is serially transmitted, and then the set data to the built-in register is serially transmitted.

これらの動作によって、先頭の内蔵レジスタ(R0)への設定動作は完了するが、その後もシリアル伝送を継続すると、スレーブアドレスが内部動作よってインクリメントされ、その後、シリアル伝送された設定データが8ビットに達する毎に、各内蔵レジスタ(R1~R29)に、設定データが設定されることになる。 By these operations, the setting operation to the first internal register (R0) is completed, but if serial transmission is continued after that, the slave address is incremented by internal operation, and then the serially transmitted setting data is reduced to 8 bits. Each time it reaches, setting data is set in each built-in register (R1 to R29).

実施例のランプドライバDRは、上記の通りに動作するので、1個のランプドライバDRに設定データを書込むには、合計で、256個のシリアルクロックを伝送すべきことになる。なお、この256個は、伝送データのビット数と同じであり、スレーブアドレス8ビット分と、レジスタアドレス8ビット分と、30個の内蔵レジスタに対する30×8ビット分の総数である。以上の動作に対応して、シリアルポート55のチャネル#Cとチャネル#Dは、図13(d)のように動作する必要がある。 Since the lamp driver DR of the embodiment operates as described above, a total of 256 serial clocks should be transmitted to write setting data to one lamp driver DR. The 256 bits are the same as the number of bits of the transmission data, and are the total number of 8 bits for the slave address, 8 bits for the register address, and 30×8 bits for the 30 built-in registers. Corresponding to the above operation, channel #C and channel #D of serial port 55 must operate as shown in FIG. 13(d).

ところで、実施例の複合チップでは、LED駆動モードで動作するシリアルポート55は、シリアル送信の一単位である1サンプルのビット長を規定する必要がある。また、LED駆動モードでは、上記した3線伝送方式に対応するべく、1フレームの単位で、Output Enable 信号として、OEc/OEd信号が出力されるよう構成されているので、1フレームを構成するサンプル数を特定する必要がある。 By the way, in the composite chip of the embodiment, the serial port 55 operating in the LED drive mode needs to define the bit length of one sample, which is one unit of serial transmission. In the LED drive mode, the OEc/OEd signal is output as the Output Enable signal in units of one frame in order to support the three-wire transmission method described above. A number must be specified.

図13(a)に示す通り、OEc/OEd信号は、ランプドライバDRの制御端子SDENに供給されており、このSDEN端子がHレベルであることが、ランプドライバDRの動作可能条件となる。そして、先に説明した通り、1個のランプドライバDRに伝送されるべきデータの総量は、256ビットである。 As shown in FIG. 13(a), the OEc/OEd signal is supplied to the control terminal SDEN of the lamp driver DR, and the H level of this SDEN terminal is a condition for enabling operation of the lamp driver DR. And, as described above, the total amount of data to be transmitted to one lamp driver DR is 256 bits.

そこで、以上の点を考慮して、本実施例では、1サンプルを16ビット長と、16個のサンプル(各16ビット長)で1フレームを構成している。図11(b)は、この関係を図示したものであり、ランプ駆動データテーブルLMPc,LMPdには、16×16ビットの単位で、各ランプドライバDRに伝送すべきランプ駆動データが保存されている。なお、ランプ演出は、時間経過と共に進行するので、最低でも動作態様に対応するランプ駆動データテーブルLMPc,LMPdが用意されている。 Therefore, in consideration of the above points, in this embodiment, one sample has a length of 16 bits, and 16 samples (each having a length of 16 bits) constitute one frame. FIG. 11(b) illustrates this relationship, and lamp driving data to be transmitted to each lamp driver DR is stored in the lamp driving data tables LMPc and LMPd in units of 16×16 bits. . Incidentally, since the lamp performance progresses with the lapse of time, at least the lamp drive data tables LMPc and LMPd corresponding to the operation modes are prepared.

役物演出の場合と同様、ランプ演出においても、全てのLEDランプが同期的に点灯/消灯するとは限らず、特定一群のLEDランプだけが点灯/消灯する場合もある。そのため、実際には、多数のランプ駆動データテーブルLMPc,LMPdが用意されている。但し、何れのランプ駆動データテーブルLMPc,LMPdでも、1個のランプドライバDRに伝送すべきランプ駆動データは16×16ビット(32バイト)であり、モータ駆動データテーブルMOTe,MOTfの場合のようなダミーデータDUMMY は不要である。 As in the case of the performance of the character, even in the lamp performance, not all the LED lamps are synchronously turned on/off, and only a specific group of LED lamps may be turned on/off. Therefore, a large number of lamp drive data tables LMPc and LMPd are actually prepared. However, in both the lamp driving data tables LMPc and LMPd, the lamp driving data to be transmitted to one lamp driver DR is 16×16 bits (32 bytes). Dummy data DUMMY is unnecessary.

すなわち、モータ駆動データテーブルMOTe,MOTfからDMAコントローラ63(チャネル#10、#11)には、32バイト単位でDMA転送動作が実行され、DMAコントローラ63(チャネル#10、#11)からシリアルポート55(チャネル#C、#D)の送信FIFOに対しては、2バイト単位で、DMA転送動作が実行される。そして、送信FIFOのランプ駆動データのシリアル送信が完了すれば、各チャネル(#C,#D)のステイタスレジスタ(不図示)が送信完了状態にセットされる。 That is, a DMA transfer operation is executed in units of 32 bytes from the motor drive data tables MOTe and MOTf to the DMA controller 63 (channels #10 and #11). A DMA transfer operation is executed in 2-byte units for the transmission FIFOs of (channels #C and #D). Then, when the serial transmission of the lamp drive data in the transmission FIFO is completed, the status register (not shown) of each channel (#C, #D) is set to the transmission completed state.

以上、1個のモータドライバへの転送データ数が16×16ビットの場合を説明したが、モータ駆動データテーブルMOTe,MOTfからDMAコントローラ63へのデータ転送単位や、DMAコントローラ63から送信FIFOへのデータ転送単位に整合しない場合には、転送単位に整合するよう適宜なダミーデータDUMMY を付加すれば良い。 A case where the number of data transferred to one motor driver is 16×16 bits has been described above. If it does not match the data transfer unit, appropriate dummy data DUMMY may be added so as to match the transfer unit.

また、図13では、3線伝送方式について使用したが、ランプドライバの制御端子SDENを使用しない2線伝送方式を採用するのも好適である。この場合には、制御端子SDENを使用しないので、図14(a)に示す通り、OEc/OEd信号は活用されない。 Also, in FIG. 13, the three-wire transmission system is used, but it is also preferable to adopt the two-wire transmission system that does not use the control terminal SDEN of the lamp driver. In this case, since the control terminal SDEN is not used, the OEc/OEd signals are not utilized as shown in FIG. 14(a).

この2線伝送方式では、伝送されるシリアルビット列が、図14(c)に示すビット態様のスタート条件を満たすと、各ランプドライバDRiがアクティブ状態となる。但し、スタート条件(9ビット)、スレーブアドレス(8ビット)、レジスタアドレス(8ビット)、設定データ(8ビット)の区切り毎にBLANK ビットを出力する必要がある。そして、BLANK ビットの立ち上がりエッジで、各ビット列がランプドライバDRiに把握され、30個の内蔵レジスタの何れかにに設定データが取得される、 In this two-wire transmission method, each lamp driver DRi becomes active when the transmitted serial bit string satisfies the start condition of the bit mode shown in FIG. 14(c). However, it is necessary to output a BLANK bit for each division of the start condition (9 bits), slave address (8 bits), register address (8 bits), and setting data (8 bits). At the rising edge of the BLANK bit, each bit string is grasped by the lamp driver DRi, and the setting data is acquired in any of the 30 built-in registers.

この2線伝送方式の動作態様でも、先頭の内蔵レジスタのレジスタアドレスを送信した後は、レジスタアドレスが内部動作によって自動的にインクリメントされるので、一個のランプドライバDRの全ての内蔵レジスタ(30個)に設定データを設定するには、10+9+9+9×30=298ビットのシリアルデータの送信が必要となる。このように2線伝送方式の場合には、1個のランプドライバDRへの送信データ数が、スタートビット(9ビット)と、BLANK ビットの分だけ増加するが、複数のランプドライバに対して、一気にシリアルデータの伝送を終えることができる利点がある。 Even in this two-wire transmission mode of operation, after the register address of the leading built-in register is transmitted, the register address is automatically incremented by an internal operation. ) requires transmission of 10+9+9+9×30=298-bit serial data. Thus, in the case of the two-wire transmission method, the number of data transmitted to one lamp driver DR increases by the start bit (9 bits) and the BLANK bit. There is an advantage that the transmission of serial data can be finished at once.

すなわち、3線伝送方式の場合には、1個のランプドライバDRへの256ビットのシリアル伝送毎に、OE信号を出力し直す必要があるが、2線伝送方式では、N個のランプドライバDR1~DRnに対して、合計298×Nビットのデータを一気に出力することができるので、ホストCPU50の制御負担が軽減される。 That is, in the case of the three-wire transmission method, it is necessary to re-output the OE signal every time 256 bits are serially transmitted to one lamp driver DR. A total of 298×N bits of data can be output to DRn at once, so the control load on the host CPU 50 is reduced.

図14(d)は、LED駆動モードで機能するシリアルポート55のチャネル#Cや#Dにおいて、例えば、32個のランプドライバDR1~DR32を駆動する場合を図示しており、合計9536ビットのデータが、1サンプルを構成する16ビット毎に、596個のサンプルデータとして、シリアル伝送される状態を示している。 FIG. 14(d) shows a case where, for example, 32 lamp drivers DR1 to DR32 are driven in channels #C and #D of the serial port 55 functioning in the LED drive mode, and a total of 9536 bits of data is shown. is serially transmitted as 596 sample data for each 16 bits constituting one sample.

この実施例の場合、1サンプルは、DMA転送の転送単位に一致しており(図11(a)参照)、DMAコントローラ63からシリアルポート55の送信FIFOへの転送回数が596回である。なお、2線伝送方式では、OEc/OEd信号を活用しないことは先に説明した通りである。 In this embodiment, one sample corresponds to the transfer unit of DMA transfer (see FIG. 11(a)), and the number of transfers from the DMA controller 63 to the transmission FIFO of the serial port 55 is 596 times. As described above, the OEc/OEd signals are not used in the two-wire transmission system.

以上、シリアルポート55のチャネル#Cや#Dを、LED駆動モードで機能させる場合について説明したが、特に限定されず、SPI通信モードを使用することもできる。図14(e)は、シリアルポート55のチャネル#Cや#Dを、SPI通信モードで機能させ、例えば、10個のランプドライバDR1~DR10を駆動する場合を図示している。 Although the case where the channels #C and #D of the serial port 55 function in the LED drive mode has been described above, the SPI communication mode can also be used without being limited thereto. FIG. 14(e) illustrates a case where the channels #C and #D of the serial port 55 are made to function in the SPI communication mode to drive ten lamp drivers DR1 to DR10, for example.

この場合には、シリアル伝送すべき全データ数は、298×10ビットであるが、DMAコントローラ63からシリアルポート55の送信FIFOへの転送単位が16ビットであるので、12ビットのダミービットDUMMY を付加して、合計2992ビットとしている。 In this case, the total number of data to be serially transmitted is 298.times.10 bits, but since the transfer unit from the DMA controller 63 to the transmission FIFO of the serial port 55 is 16 bits, the dummy bit DUMMY of 12 bits is used. added for a total of 2992 bits.

そして、DMAコントローラ63からシリアルポート55の送信FIFOに対して、187回(=2992/16)のデータ転送が繰り返されつつ、合計2992ビットのシリアル伝送が一気に実行される。以上の通り、ダミービットDUMMY を付加することで、ランプドライバDRの配置個数に拘らず、シリアルポート55の送信FIFOへのDMA転送を活用したシリアル伝送が可能となる。なお、この点は、LED駆動モードであるか、SPI通信モードであるかを問わない。また、ダミービットDUMMY は、スタート条件を満たさないビット列であれば任意である。 Then, while data transfer is repeated 187 times (=2992/16) from the DMA controller 63 to the transmission FIFO of the serial port 55, serial transmission of a total of 2992 bits is executed at once. As described above, by adding the dummy bit DUMMY, serial transmission using DMA transfer to the transmission FIFO of the serial port 55 becomes possible regardless of the number of arranged lamp drivers DR. This point does not matter whether it is the LED drive mode or the SPI communication mode. Also, the dummy bit DUMMY is arbitrary as long as it is a bit string that does not satisfy the start condition.

以上、演出制御部22の回路構成や回路動作を中心に説明したので、続いて、図15~図16に基づいて、演出制御部22の制御動作について説明する。演出制御部22の処理は、電源投入後に実行されるメイン処理(図15(a))と、主制御部21から制御コマンドCMDを受けると起動される受信割込み処理(図15(b)と、1mS毎に繰り返し起動されるタイマ割込み処理(図6(a))と、を有して構成されている Since the circuit configuration and circuit operation of the effect control section 22 have been mainly described above, the control operation of the effect control section 22 will be described with reference to FIGS. 15 and 16. FIG. The processing of the production control unit 22 includes the main processing (FIG. 15(a)) executed after the power is turned on, and the reception interrupt processing (FIG. 15(b)) that is started when the control command CMD is received from the main control unit 21 and a timer interrupt process (Fig. 6(a)) that is repeatedly started every 1 ms.

図15(a)は、電源投入後のホストCPU50の動作を示しており、先ず、複合チップ40の内蔵レジスタについて初期設定処理を実行して、その後の演出制御の準備を完了させる(ST10)。図15(b)は、初期設定処理の一部を図示したものであり、先ず、DMAコントローラ63(チャネル#0)を使用して、外付けROM42に保存されている音声データSNDを、DDRメモリ41にDMA転送している。 FIG. 15(a) shows the operation of the host CPU 50 after the power is turned on. First, the internal registers of the composite chip 40 are initialized to complete preparations for subsequent effect control (ST10). FIG. 15(b) shows part of the initial setting process. First, using the DMA controller 63 (channel #0), the audio data SND stored in the external ROM 42 is transferred to the DDR memory. 41 is being DMA-transferred.

具体的には、図10(a)に関して説明した通りであり、音声データSNDのDMA転送について、先ず、DMAの使用チャンネルとしてDMAチャネル#0を特定すると共に、MDA転送に必要な動作パラメータをDMAコントローラ63の該当レジスタに設定する(ST1)。設定される動作パラメータには、(1)外付けROM42における転送元の先頭アドレス、(2)転送元からDMAコントローラ53に対する一回の読出しサイズ(バイト長)、(3)外付けROM42からDMAコントローラ53へのREAD転送回数、(4)DDRメモリ41における転送先の先頭アドレス、(5)DMAコントローラ53から転送先に対する一回の書込みサイズ(バイト長)、(6)DMAコントローラ53からDDRメモリ41へのWRITE転送回数が含まれている。 Specifically, as described with reference to FIG. 10(a), for DMA transfer of audio data SND, first, DMA channel #0 is specified as a channel to be used for DMA, and operation parameters required for MDA transfer are set to DMA. It is set in the corresponding register of the controller 63 (ST1). The operating parameters to be set include (1) the top address of the transfer source in the external ROM 42, (2) the size (byte length) of one read from the transfer source to the DMA controller 53, (3) the data from the external ROM 42 to the DMA controller (4) the top address of the transfer destination in the DDR memory 41; (5) the size (byte length) of one write from the DMA controller 53 to the transfer destination; (6) from the DMA controller 53 to the DDR memory 41; contains the number of WRITE transfers to

次に、ホストCPU50は、DMAコントローラ53の該当レジスタに動作開始を指示すると(ST2)、その後は、ステップST1の処理で設定した動作条件でDMA転送が開始され、転送元と転送先のアドレスが適宜に更新されつつ、読出しサイズと書込みサイズの転送動作が繰り返される。 Next, when the host CPU 50 instructs the corresponding register of the DMA controller 53 to start operation (ST2), DMA transfer is started under the operating conditions set in the process of step ST1, and the addresses of the transfer source and the transfer destination are The read size and write size transfer operations are repeated while being updated as appropriate.

このDMA転送に、ホストCPU50が関与する必要はないので、続いて、外付けROMからCGデータの先読み動作(プリロード)を実行する場合には、ホストCPU50は、VDPコントローラ60の該当レジスタにその旨を設定する(ST2)。次に、ホストCPU50は、サウンドエンジン52に対して、定期SAC動作を指示する(ST4)。 The host CPU 50 does not need to be involved in this DMA transfer. is set (ST2). Next, the host CPU 50 instructs the sound engine 52 to perform a regular SAC operation (ST4).

先に説明した通り、本実施例で実行される定期SAC動作は、マルチエフェクタ85におけるイコライザ機能やコンプレッサ機能を繰り返し再設定する動作であり、ステップST4の設定を受けたサウンドエンジン52は、この後、32/48×512mS毎に音質設定動作を繰り返すことになる。なお、サウンドエンジン52には複数のシンプルアクセスコントローラSACが内蔵されているので、複数種類の定期SAC動作を設定するのも好適である。 As described above, the regular SAC operation executed in this embodiment is an operation for repeatedly resetting the equalizer function and compressor function of the multi-effector 85. After receiving the setting in step ST4, the sound engine 52 , the tone quality setting operation is repeated every 32/48×512 mS. Since the sound engine 52 incorporates a plurality of simple access controller SACs, it is also preferable to set a plurality of types of regular SAC operations.

初期設定処理(ST10)には、その他、バンクフリップ周期(1/30秒)など、VDPコントローラ60に関する動作パラメータの設定(ST5)が含まれているが、これらについては、図17~図19に関連して後述する。そして、最後に、電源投入後に開始される初期演出用の演出シナリオを特定して初期処理が終了する(ST6)。 The initial setting process (ST10) also includes the setting of operating parameters (ST5) related to the VDP controller 60, such as the bank flip cycle (1/30 second). It will be described later in relation to this. Finally, an effect scenario for an initial effect to be started after the power is turned on is specified, and the initial process ends (ST6).

このような初期設定処理(ST10)が終わると、その後は、バンクフリップ周期(1/30秒)毎に、ステップST11~ST20の処理が無限ループ状に繰り返し実行される。そして、この無限ループ処理(ステップST11~ST20)の間に、主制御部21から制御コマンドCMDを受けることがあり、この場合には、受信割込み処理として、図15(b)の処理が実行される。 After such initialization processing (ST10) is completed, the processing of steps ST11 to ST20 is repeatedly executed in an infinite loop every bank flip cycle (1/30 second). During this infinite loop processing (steps ST11 to ST20), the control command CMD may be received from the main control unit 21. In this case, the processing of FIG. 15(b) is executed as the reception interrupt processing. be.

受信割込み処理では、受信した制御コマンドCMDが、先ず、受信バッファに格納される(ST22)。そして、格納された制御コマンドCMDは、無限ループ処理のステップST19の処理で読み出され、制御コマンドCMDに基づいた演出動作が開始される。また、制御コマンドCMDが抽選処理の結果を当選状態と特定している場合(ST23)には、その当選情報を時刻情報と共に、液晶IF基板25に配置されている不揮発性メモリ26に記憶する(ST24)。 In the reception interrupt process, the received control command CMD is first stored in the reception buffer (ST22). Then, the stored control command CMD is read out by the process of step ST19 of the infinite loop process, and the effect operation based on the control command CMD is started. Further, when the control command CMD specifies that the result of the lottery process is a winning state (ST23), the winning information is stored in the non-volatile memory 26 arranged on the liquid crystal IF substrate 25 together with the time information (ST23). ST24).

なお、設定キーSETが操作されたことを示す制御コマンドCMDを受けた場合には、不揮発性メモリ26に記憶されている遊技実績履歴を、表示装置DSP1に画面表示する履歴表示動作を起動させる。具体的には、履歴表示用の指令フラグFGを1にセットする(ST25)。 When the control command CMD indicating that the SET key SET is operated is received, the game performance history stored in the nonvolatile memory 26 is activated to display the history display operation on the display device DSP1. Specifically, a command flag FG for history display is set to 1 (ST25).

この指令フラグFGは、ステップST19の処理で参照され、ステップST20などの処理を経て、必要な画像制御動作が実行される。また、この画像制御動作中に、初期化スイッチSWが操作されたことを示す制御コマンドCMDを受けた場合には、指令フラグFGが2にセットされ、その後、チャンスボタン11の押下を条件に、不揮発性メモリ26の記憶内容を全て消去する。なお、チャンスボタンの押下は、1mS毎のタイマ割込み処理において、リアルタイムに把握される(図16のST42)。 This command flag FG is referred to in the processing of step ST19, and necessary image control operations are executed through the processing of step ST20 and the like. Also, during this image control operation, when a control command CMD indicating that the initialization switch SW has been operated is received, the command flag FG is set to 2, and then, on condition that the chance button 11 is pressed, All stored contents of the nonvolatile memory 26 are erased. Pressing of the chance button is grasped in real time in timer interrupt processing every 1 ms (ST42 in FIG. 16).

続いて、図15(a)の無限ループ処理について説明する。無限ループ処理では、先ず、ステップST6の処理や、ステップST19の処理で特定された演出シナリオに基づいて、画像演出用の処理(ST11)が実行されるが、このコマンドリスト処理については、図17において後述する。 Next, the infinite loop processing of FIG. 15(a) will be described. In the infinite loop processing, first, processing for image rendering (ST11) is executed based on the processing of step ST6 and the rendering scenario specified in the processing of step ST19. will be described later.

次に、演出開始からの経過時間と、ステップST20の処理で更新された演出シナリオとを対比して、音声演出の更新タイミングか否かが判定され(ST12)、音声演出の更新タイミングに達している場合には、音声コマンド列を、図5や図9に示す中継バッファ82に書き込む(ST13)。なお、この実施例では、音声コマンドリストSLTを使用しないので、ホストCPU50が中継バッファ82(MCR,MCD)を直接WRITEアクセスする。 Next, the elapsed time from the start of the presentation is compared with the presentation scenario updated in the process of step ST20 to determine whether or not it is time to update the voice presentation (ST12). If so, the voice command string is written in the relay buffer 82 shown in FIGS. 5 and 9 (ST13). In this embodiment, since the voice command list SLT is not used, the host CPU 50 directly WRITE accesses the relay buffer 82 (MCR, MCD).

先に説明した通り、音声コマンドは、サウンドエンジン52のコマンドレジスタRGiのレジスタ番号(1バイト)と、そのレジスタRGiへの設定値(1バイト)を一組とする2バイト長である。そして、図9に関して説明した通り、ホストCPU50は、レジスタ番号を含んだ4バイト長を第1中継レジスタMCRに書込むと共に、設定値を含んだ4バイト長を第2中継レジスタMCDに書込む。 As described above, the voice command has a 2-byte length consisting of a register number (1 byte) of the command register RGi of the sound engine 52 and a set value (1 byte) for the register RGi. Then, as described with reference to FIG. 9, the host CPU 50 writes the 4-byte length including the register number to the first relay register MCR, and writes the 4-byte length including the setting value to the second relay register MCD.

すると、中継レジスタ82から抽出された2バイト長(レジスタ番号+設定値)は、自動的に音声コマンドFIFOに蓄積されるので(図9参照)、ホストCPU50は、一群の音声コマンド(音声コマンド列)を、同じ中継レジスタ82に繰り返し書込めば良いことなる。先に説明した通り、音声コマンドFIFOに蓄積された音声コマンド列は、サウンドエンジン52の動作周期(32/48mS)毎に、図8に示すSCM(サウンドコントールモジュール)81によってFIFO方式で読み出され、コマンドレジスタRGiへの設定動作が実行される。 Then, the 2-byte length (register number + set value) extracted from the relay register 82 is automatically accumulated in the voice command FIFO (see FIG. 9), so the host CPU 50 can generate a group of voice commands (voice command string ) to the same relay register 82 repeatedly. As described above, the voice command string accumulated in the voice command FIFO is read by the SCM (sound control module) 81 shown in FIG. , the setting operation to the command register RGi is executed.

以上のようにして音声演出を進行させた後、ランプ演出の更新タイミングか否かが判定され(ST14)、更新タイミングであれば、ホストCPU50は、ランプ駆動データテーブルLMPc,LMPdの参照位置を更新する(ST15)。なお、枠側と盤側のランプ演出の更新タイミングは必ずしも一致しないので、該当するランプ駆動データテーブルLMPc/LMPdの参照位置だけが更新される場合もある。また、図11(b)に示すような規則的な更新に限らず、特定のLEDランプだけが点灯/消灯する場合があることも先に説明した通りである。 After proceeding with the sound effect as described above, it is determined whether or not it is time to update the lamp effect (ST14). (ST15). It should be noted that the update timings of the lamp effects on the frame side and the board side do not always match, so there are cases where only the reference position of the corresponding lamp driving data table LMPc/LMPd is updated. Moreover, as described above, not only the regular update as shown in FIG.

次に、ホストCPU50は、ランプ駆動データテーブルLMPc/LMPdの参照位置で特定される一群のデータを、シリアルポート55のチャネル#C/#Dからシリアル送信するべく各部を制御する(ST16)。具体的な動作は、図15(d)に示す通りであり、ランプドライバDR毎に、ランプ駆動データテーブルLMPの参照位置を特定し(ST33)、DMA転送に関し、必要な動作パラメータをDMAコントローラの該当レジスタに設定する(ST34)。 Next, the host CPU 50 controls each part to serially transmit a group of data specified by the reference position of the lamp drive data tables LMPc/LMPd from the channels #C/#D of the serial port 55 (ST16). The specific operation is as shown in FIG. 15(d). For each lamp driver DR, the reference position of the lamp driving data table LMP is specified (ST33), and necessary operation parameters are set in the DMA controller for DMA transfer. Set in the corresponding register (ST34).

図10(b)に関し説明した通り、必要な動作パラメータには、(1)ランプ駆動データテーブルLMPc/LMPdにおける転送元の先頭アドレス、(2)転送元からDMAコントローラ53(#10/#11)に対する一回の読出しサイズ(実施例では32バイト長)、(3)ランプ駆動データテーブルLMPc/LMPdからDMAコントローラ53(#10/#11)へのREAD転送回数(図10(b)では1回)、(4)シリアルポート55のチャネル#C/#Dにおける転送先のアドレス(実施例では中継レジスタITMのアドレス)、(5)DMAコントローラ53(#10/#11)から転送先に対する一回の書込みサイズ(実施例では2バイト)、(6)DMAコントローラ53からシリアルポート55のチャネル#C/#DへのWRITE転送回数(図10(b)では16回)が含まれている。 As described with reference to FIG. 10B, the necessary operating parameters include (1) the top address of the transfer source in the lamp drive data tables LMPc/LMPd, and (2) the transfer source to the DMA controller 53 (#10/#11). (3) the number of READ transfers from the lamp drive data tables LMPc/LMPd to the DMA controller 53 (#10/#11) (1 time in FIG. 10B); ), (4) the address of the transfer destination in channels #C/#D of the serial port 55 (the address of the relay register ITM in this embodiment), and (5) once from the DMA controller 53 (#10/#11) to the transfer destination. (6) the number of WRITE transfers from the DMA controller 53 to the channels #C/#D of the serial port 55 (16 in FIG. 10(b)).

また、ランプ駆動データのDMA転送に必要な動作パラメータには、図10(b)に関して説明したシリアルポート55のチャネル#C/#Dの送信FIFOと、DMAコントローラ53(#10/#11)との間のHand Shake動作を実現する、送信FIFOの蓄積データ量に関する閾値も含まれる。 Operation parameters required for DMA transfer of lamp driving data include the transmission FIFOs of channels #C/#D of serial port 55 described with reference to FIG. Also included is a threshold for the amount of data stored in the transmit FIFO that allows for a Hand Shake operation during .

そして、DMAコントローラの該当レジスタに所定値を設定して、DMAコントローラ53(#10/#11)の動作を開始させると共に(ST34)、シリアルポート55(チャネル#C/#D)の該当レジスタに所定値を設定することで、シリアル送信動作を開始させる(ST35)。なお、図15(d)の実施例では、シリアルポート55(チャネル#C/#D)は、LED駆動モードで起動するよう、予め、該当レジスタが設定される必要がある(ST35)。 Then, a predetermined value is set in the corresponding register of the DMA controller to start the operation of the DMA controller 53 (#10/#11) (ST34), and the corresponding register of the serial port 55 (channel #C/#D) By setting a predetermined value, the serial transmission operation is started (ST35). In the embodiment of FIG. 15(d), the corresponding register needs to be set in advance so that the serial port 55 (channels #C/#D) is activated in the LED drive mode (ST35).

その後の動作は、図13(d)や、図14(d)に示す通りであり、シリアルポート55(チャネル#C/#D)の送信FIFOが空になるまで、シリアル送信処理が実行される。ホストCPU50は、このシリアス送信処理に全く関与する必要がないので、その後、ホストCPU50は、所定のステイタスレジスタを参照して、シリアルポート55(チャネル#C/#D)の送信終了を待つことになる(ST36)。 The subsequent operation is as shown in FIG. 13(d) and FIG. 14(d), and serial transmission processing is executed until the transmission FIFO of the serial port 55 (channel #C/#D) becomes empty. . Since the host CPU 50 does not need to be involved in this serial transmission process at all, the host CPU 50 then refers to a predetermined status register and waits for the end of transmission of the serial port 55 (channel #C/#D). becomes (ST36).

先に説明した通り、LED駆動モードでは、一フレーム(実施例では16サンプル=256ビット)の単位でOE信号が出力され、この一フレーム(256ビット)の処理で、一のランプドライバDRへのシリアル伝送処理が終わる。そこでホストCPUは、全ての処理が終わったか否かを判定し(ST37)、次のランプドライバDRへのシリアル伝送処理に移行すべき場合は、ステップST33の処理を実行する。 As described above, in the LED drive mode, the OE signal is output in units of one frame (16 samples=256 bits in the embodiment), and processing of this one frame (256 bits) allows the signal to be sent to one lamp driver DR. Serial transmission processing ends. Therefore, the host CPU determines whether or not all the processes have been completed (ST37), and if the serial transmission process to the next lamp driver DR should be started, the process of step ST33 is executed.

以上、3線伝送方式におけるLED駆動モードについて説明したが、2線伝送方式を採る場合には、シリアルポート55(チャネル#C/#D)を、LED駆動モードで使用するか、SPI通信モードで使用するかに拘らず、全てのランプドライバDRに対して、必要なシリアルデータを一気にシリアル伝送するので、ステップST37の処理は不要である。 The LED drive mode in the 3-wire transmission system has been described above. Since necessary serial data is serially transmitted to all the lamp drivers DR at once regardless of whether they are used, the process of step ST37 is unnecessary.

但し、この場合には、ステップST34の処理において、(2)転送元からDMAコントローラ53(#10/#11)に対する一回の読出しサイズや、(5)DMAコントローラ53(#10/#11)から転送先に対する一回の書込みサイズが、例えば2バイト長とされる(図10(c)参照)。 However, in this case, in the process of step ST34, (2) the size of one read from the transfer source to the DMA controller 53 (#10/#11) and (5) the DMA controller 53 (#10/#11) The size of one write to the transfer destination is, for example, 2 bytes long (see FIG. 10(c)).

そして、この設定に対応して、図14(d)に示すLED駆動モードのランプ駆動では、(3)ランプ駆動データテーブルLMPc/LMPdからDMAコントローラ53(#10/#11)へのREAD転送回数や、(6)DMAコントローラ53からシリアルポート55のチャネル#C/#DへのWRITE転送回数が、各々、596回となり、全体で、2×596×8=9536ビットとなる(図10(c)参照)。 Corresponding to this setting, in the lamp drive in the LED drive mode shown in FIG. and (6) the number of WRITE transfers from the DMA controller 53 to the channels #C/#D of the serial port 55 is 596 respectively, and the total is 2×596×8=9536 bits (FIG. 10(c)). )reference).

なお、図14(e)に示すSPI通信モードのランプ駆動では、(3)READ転送回数と、(6)WRITE転送回数が、各々、187回となり、全体で、2×187×8=2992ビットとなる(図10(c)参照)。 In the lamp driving in the SPI communication mode shown in FIG. 14(e), the number of (3) READ transfers and (6) the number of WRITE transfers are each 187, and the total is 2×187×8=2992 bits. (see FIG. 10(c)).

以上のようにして、ステップST16の処理が終わると、次に、役物演出の更新タイミングか否かが判定される(ST17)。そして、更新タイミングに達している場合には、モータ駆動データテーブルMOTの参照位置が更新される(ST18)。但し、役物演出の進行は、1mS毎のタイマ割込みで実行されるので(図16)、ホストCPU50は、次に、受信割込み処理で受信された制御コマンドを解析する(ST19)。 After the process of step ST16 is completed as described above, it is next determined whether or not it is time to update the character effect (ST17). Then, when the update timing has arrived, the reference position of the motor drive data table MOT is updated (ST18). However, since the progress of the performance is executed by a timer interrupt every 1 ms (FIG. 16), the host CPU 50 next analyzes the control command received in the reception interrupt process (ST19).

そして、大当り抽選処理の結果を特定する変動パターンコマンドを受けた場合には、演出抽選などを経て、変動パターンコマンドの種類に応じた演出シナリオを特定する(ST19)。なお、この演出シナリオは、画像演出、ランプ演出、役物演出、及び音声演出の全てを、演出進行の時間情報と共に一元的に特定するものである。 Then, when a variation pattern command specifying the result of the jackpot lottery process is received, an effect scenario corresponding to the type of the variation pattern command is specified through an effect lottery (ST19). Note that this production scenario identifies all of the image production, the lamp production, the character production, and the audio production in an integrated manner together with the time information of the progress of the production.

次に、演出開始からの経過時間に基づいて、演出シナリオの参照位置を更新した上で(ST20)、バンクフリップを待つ(ST21)。先に説明したように、本実施例では、バンプフリップタイミングを、表示装置の垂直同期信号の周期の2倍に設定しており、ステップST11の実行開始から1/30秒以内にステップST20までの処理が終わっていれば良いので、ステップST11~ST20の処理を適宜に複雑化することができる。また、本実施例では、バンプフリップ後、直ちにコマンドリスト処理(ST11)を実行して、画像コマンドリストを発行するので、VDPコントローラには、約1/30秒の処理時間が確保されることになる。 Next, based on the elapsed time from the start of the presentation, the reference position of the presentation scenario is updated (ST20), and a bank flip is waited (ST21). As described above, in this embodiment, the bump flip timing is set to be twice the period of the vertical synchronization signal of the display device, and the steps up to step ST20 are completed within 1/30 second from the start of execution of step ST11. As long as the processing is completed, the processing of steps ST11 to ST20 can be appropriately complicated. Further, in this embodiment, the command list processing (ST11) is executed immediately after the bump flip and the image command list is issued. Become.

続いて、図16に基づいて、タイマ割込み処理について説明する。タイマ割込み処理では、各種のセンサ信号を繰り返し取得すると共に、必要時には役物演出を進行させている。そこで、先ず、モータ駆動データを更新すべきか否かが判定される(ST30)。そして、役物演出中でない場合には、ステップST31~ST36の処理がスキップされる。 Next, timer interrupt processing will be described with reference to FIG. In the timer interrupt process, various sensor signals are repeatedly acquired, and the performance of the character is progressed when necessary. Therefore, first, it is determined whether or not the motor drive data should be updated (ST30). Then, when the character object production is not being performed, the processing of steps ST31 to ST36 is skipped.

一方、何れか一以上の役物モータを移動させるべきタイミングであれば、先ず、シリアルポート55のチャネル#Eと#FをSPI送信モードに設定する。なお、実際には、枠側のモータ駆動基板37と、盤側のモータ駆動基板30の何れか一方だけが動作する場合も多く、以下に説明するステップST31~ST37の処理が、モータ駆動基板37かモータ駆動基板30に関して、何れか一方だけに実行されるか、或いは、ステップST31~ST37の処理が2回繰り返される。 On the other hand, if it is the timing to move one or more accessory motors, first, channels #E and #F of the serial port 55 are set to the SPI transmission mode. In practice, it is often the case that only one of the motor drive board 37 on the frame side and the motor drive board 30 on the board side operates. Either one of the motor drive boards 30 is executed, or the processes of steps ST31 to ST37 are repeated twice.

但し、以下の説明では、便宜上、モータ駆動基板37とモータ駆動基板30の全てのモータドライバDV~DVが同期的に機能すると簡略化し、全てのモータドライバDV~DVが纏めて制御される仮想事例について説明を続けることにする。 However, in the following description, for the sake of convenience, all the motor drivers DV to DV of the motor drive board 37 and the motor drive board 30 are simplified to function synchronously, and all the motor drivers DV to DV are collectively controlled. I will continue to explain about.

このような仮想事例においては、ホストCPU50は、次に、パラレルポート54から第1レベルの切換制御信号CTLe,CTLfを出力する(ST32)。これは、その後に出力されるシリアルクロックSCKe,SCKfの伝送先を、モータ駆動基板37,30に搭載されているモータドライバDVとするためである。 In such a hypothetical case, host CPU 50 next outputs first level switching control signals CTLe and CTLf from parallel port 54 (ST32). This is because the transmission destination of the serial clocks SCKe and SCKf output after that is the motor driver DV mounted on the motor drive boards 37 and 30 .

次に、役物モータを歩進させるべきタイミングであれば、モータ駆動データテーブルMOTe,MOTfの参照位置を更新する(ST33)。そして、モータ駆動データのDMA転送に必要な動作パラメータを、DMAコントローラ53(#12/#13)の該当レジスタに設定する(ST34)。 Next, when it is time to step the accessory motor, the reference positions of the motor drive data tables MOTe and MOTf are updated (ST33). Then, the operation parameters required for the DMA transfer of the motor drive data are set in the corresponding registers of the DMA controller 53 (#12/#13) (ST34).

ここで必要な動作パラメータには、(1)モータ駆動データテーブルMOTe/MOTfにおける転送元の先頭アドレス、(2)転送元からDMAコントローラ53(#12/#13)に対する一回の読出しサイズ(例えば2バイト長)、(3)モータ駆動データテーブルMOTe/MOTfからDMAコントローラ53(#12/#13)へのREAD転送回数、(4)シリアルポート55のチャネル#E/#Fにおける転送先のアドレス(実施例では中継レジスタITMのアドレス)、(5)DMAコントローラ53(#12/#13)から転送先に対する一回の書込みサイズ(例えば2バイト)、(6)DMAコントローラ53からシリアルポート55のチャネル#E/#FへのWRITE転送回数が含まれている。 The necessary operating parameters here include (1) the start address of the transfer source in the motor drive data tables MOTe/MOTf, (2) the size of one read from the transfer source to the DMA controller 53 (#12/#13) (for example, 2 byte length), (3) the number of READ transfers from the motor drive data table MOTe/MOTf to the DMA controller 53 (#12/#13), (4) the address of the transfer destination in the channel #E/#F of the serial port 55 (address of relay register ITM in this embodiment), (5) size of one write from DMA controller 53 (#12/#13) to transfer destination (for example, 2 bytes), (6) address of serial port 55 from DMA controller 53 It contains the number of WRITE transfers to channel #E/#F.

また、モータ駆動データのDMA転送に必要な動作パラメータには、図10(b)に関して説明したシリアルポート55のチャネル#E/#Fの送信FIFOと、DMAコントローラ53(#12/#13)との間のHand Shake動作を実現する、送信FIFOの蓄積データ量に関する閾値も含まれる。 The operation parameters necessary for DMA transfer of motor drive data include the transmission FIFOs of channels #E/#F of serial port 55 described with reference to FIG. Also included is a threshold for the amount of data stored in the transmit FIFO that allows for a Hand Shake operation during .

以上の動作パラメータを設定した後、ホストCPU50は、DMAコントローラ53(#12/#13)を起動させると共に(ST34)、シリアルポート55のチャネル#E/#Fのシリアル送信を開始させる(ST35)。すると、その後は、DMAコントローラ53(#12/#13)のHand Shake動作に基づき、チャネル#E/#Fの送信FIFOにモータ駆動データが転送され、シリアル送信動作が繰り返される。 After setting the above operating parameters, the host CPU 50 activates the DMA controller 53 (#12/#13) (ST34) and starts serial transmission of channels #E/#F of the serial port 55 (ST35). . After that, the motor drive data is transferred to the transmission FIFOs of channels #E/#F based on the hand shake operation of the DMA controller 53 (#12/#13), and the serial transmission operation is repeated.

そこで、ホストCPU50は、所定のステイタスレジスタを参照して、全てのモータ駆動データが転送され終わるのを待つ(ST36)。そして、送信完了が確認されたタイミングで、ホストCPU50は、パラレルポート54を通して各モータドライバに対してラッチパルスLTe,LTfを出力する(ST37)。モータドライバDV1~DVnは、ラッチパルスLTe,LTfを受けることで、取得したモータ駆動データを、役物モータM1~Mnに出力するので、役物モータM1~Mnが歩進することになる(図12(a)、図12(b)参照)。 Therefore, the host CPU 50 refers to a predetermined status register and waits until all motor driving data have been transferred (ST36). At the timing when the completion of transmission is confirmed, the host CPU 50 outputs latch pulses LTe and LTf to each motor driver through the parallel port 54 (ST37). By receiving the latch pulses LTe and LTf, the motor drivers DV1 to DVn output the acquired motor drive data to the accessory motors M1 to Mn, so that the accessory motors M1 to Mn are stepped (Fig. 12(a) and FIG. 12(b)).

以上の処理が終わると、ホストCPU50は、シリアルポート55のチャネル#Eと#Fを、SPI受信モードに設定すると共に(ST38)、パラレルポート54から第2レベルの切換制御信号CTLe,CTLfを出力する(ST39)。これは、その後に出力されるクロック信号の伝送先を、モータ駆動基板37,30に搭載されている信号取得回路GET,GETとするためである。 When the above processing is completed, the host CPU 50 sets the channels #E and #F of the serial port 55 to the SPI reception mode (ST38), and outputs the switching control signals CTLe and CTLf of the second level from the parallel port 54. (ST39). This is because the transmission destinations of the clock signals that are output thereafter are the signal acquisition circuits GET and GET mounted on the motor drive boards 37 and 30 .

役物モータの駆動動作(ST30~ST37)の場合とは異なり、以下に説明するシリアル受信処理は、役物演出中であるか否かを問わず、1mS毎に、必ず実行される。そのため、本実施例では、信号取得回路GET,GETに供給されている各種のセンサ信号を、ほぼリアルタイムに把握できることになる。 Unlike the case of the driving operation of the role product motor (ST30 to ST37), the serial reception process described below is always executed every 1 ms regardless of whether or not the role product is being produced. Therefore, in this embodiment, various sensor signals supplied to the signal acquisition circuits GET, GET can be grasped almost in real time.

ステップST39の処理が終われば、ホストCPU50は、パラレルポート54を通して、各信号取得回路GET,GETに対して、取得パルスLTe,LTfを出力する(ST40)。図12(c)に関して説明した通り、信号取得回路GET,GETは、取得パルスLTe,LTfに基づいて、各種のセンサ信号SNi,SNjを取得することになる。 After completing the process of step ST39, the host CPU 50 outputs acquisition pulses LTe and LTf to the signal acquisition circuits GET and GET through the parallel port 54 (ST40). As described with reference to FIG. 12(c), the signal acquisition circuits GET, GET acquire various sensor signals SNi, SNj based on the acquisition pulses LTe, LTf.

そこで、次に、ホストCPU50は、シリアルポート55(チャネル#Eと#F)のシリアル入力処理を開始させる(ST41)。具体的には、図16(b)に示す通りであり、先ず、出力すべきシリアルクロックSCKe,SCKfの個数を特定した上で(ST43)、1ビットのダミーデータを、シリアルポート55(チャネル#Eと#F)の送信シフトレジスタに書込む(ST44)。 Therefore, next, the host CPU 50 starts serial input processing of the serial port 55 (channels #E and #F) (ST41). Specifically, as shown in FIG. 16(b), first, the number of serial clocks SCKe and SCKf to be output is specified (ST43), and 1-bit dummy data is sent to the serial port 55 (channel # E and #F) are written to the transmission shift registers (ST44).

すると、この書込み動作を契機として、シリアルポート55(チャネル#Eと#F)からは、指定された個数のシリアルクロックSCKe,SCKfの出力動作が開始される。図12(d)に関し説明した通り、信号取得回路GET,GETは、シリアルクロックSCKe,SCKfに同期して、センサ信号SNi,SNjを1ビット毎に転送するので、シリアルポート55(チャネル#Eと#F)では、これを取得することになる。なお、シリアル受信されたセンサ信号は、1バイト又は2バイト単位で、チャネル#Eと#Fの受信バッファに一時保存される。 Triggered by this write operation, the serial port 55 (channels #E and #F) starts outputting the specified number of serial clocks SCKe and SCKf. As described with reference to FIG. 12(d), the signal acquisition circuits GET, GET transfer the sensor signals SNi, SNj bit by bit in synchronization with the serial clocks SCKe, SCKf. #F) will get this. The serially received sensor signal is temporarily stored in the reception buffers of channels #E and #F in units of 1 byte or 2 bytes.

そして、指定された個数のシリアルクロックSCKe,SCKfの出力処理の完了は、シリアルポート55(チャネル#Eと#F)の該当ステイタスレジスタによって確認されるので(ST45)、シリアル受信処理の完了を把握したホストCPU50は、受信バッファに一時保存されたセンサ信号SNi,SNjを、所定のバッファ領域に転記する(ST42)。そして、バッファ領域に転記されたセンサ信号SNi,SNjは、その後の画像演出、音声演出、役物演出において適宜に活用されることになる。 Completion of the output processing of the specified number of serial clocks SCKe and SCKf is confirmed by the corresponding status register of the serial port 55 (channels #E and #F) (ST45), so that the completion of the serial reception processing is grasped. The host CPU 50 then transcribes the sensor signals SNi, SNj temporarily stored in the reception buffer to a predetermined buffer area (ST42). Then, the sensor signals SNi and SNj transcribed to the buffer area are appropriately used in subsequent image effects, sound effects, and character effects.

続いて、図17に基づいて、画像演出用のコマンドリスト処理(ST11)について説明する。図17(a)は、コマンドリストをDDRメモリ41に発行する場合の画像制御を説明するフローチャートであり、画像演出に関する初期設定処理(ST10)についても補足的に記載している。なお、この実施例では、プリローダを使用しないので、図15(c)のステップST3の処理は実行されない。 Next, based on FIG. 17, the command list processing (ST11) for image effects will be described. FIG. 17(a) is a flowchart for explaining image control when a command list is issued to the DDR memory 41, and additionally describes initial setting processing (ST10) relating to image effects. In this embodiment, since no preloader is used, the process of step ST3 in FIG. 15(c) is not executed.

以上を踏まえて説明すると、ホストCPU50は、電源投入後の初期設定処理(ST10)として、バンクフリップ周期を1/30秒とするべく、VDPコントローラ60の該当レジスタに、所定の設定値を書込む(ST50)。また、画像コマンドリストLTの開始アドレスを設定する(ST51)。 Based on the above description, the host CPU 50 writes a predetermined setting value in the corresponding register of the VDP controller 60 in order to set the bank flip cycle to 1/30 second as the initial setting process (ST10) after power-on. (ST50). Also, the start address of the image command list LT is set (ST51).

先に説明した通り、本実施例では、画像コマンドリストLTを、コマンドメモリ56や、内蔵DRAM57や、DDRメモリ41に発行することもできるが、基本的な発行先は、必ず、画像コマンドバッファ71としている。 As described above, in this embodiment, the image command list LT can be issued to the command memory 56, the built-in DRAM 57, and the DDR memory 41, but the basic issue destination is always the image command buffer 71. and

そこで、ホストCPU50は、画像コマンドリストLTの発行先を規定する該当レジスタに、画像コマンドバッファ71の先頭アドレスに関するCBA情報とCBM情報を設定し(ST51)、これに続いて、コマンドリストの処理開始を、該当レジスタに許可設定する(ST52)。なお、CBM情報は、画像コマンドリストの発行先が、画像コマンドバッファ(内蔵レジスタ)71であるか、或いは、メインメモリ56、内蔵DRAM57、DDRメモリ41、又は外付けROM42の何れかであるかを特定するメモリ情報であり、CBA情報とは、特定されたメモリにおける相対アドレス値である。 Therefore, the host CPU 50 sets CBA information and CBM information relating to the top address of the image command buffer 71 in the corresponding register that defines the issue destination of the image command list LT (ST51), and then starts processing the command list. is enabled in the corresponding register (ST52). The CBM information indicates whether the image command list is issued to the image command buffer (internal register) 71, or the main memory 56, internal DRAM 57, DDR memory 41, or external ROM 42. It is memory information to specify, and CBA information is a relative address value in the specified memory.

以上の設定処理(ST50~ST52)の結果、その後、バンクフリップが生じる毎に、VDPコントローラ60などの動作が初期化され、ホストCPU50が画像コマンドバッファ71に発行した画像コマンドリストLTについて、CBA情報/CBM情報に基づいて、VDPコントローラ60による読出し動作が繰り返されることになる。 As a result of the above setting processing (ST50 to ST52), the operation of the VDP controller 60 and the like is initialized each time a bank flip occurs thereafter, and the image command list LT issued by the host CPU 50 to the image command buffer 71 is stored in the CBA information. The read operation by the VDP controller 60 is repeated based on the /CBM information.

次に、ホストCPU50は、今サイクルの画像コマンドリストLTを作成する(ST53)。この画像コマンドリストLTは、画像演出の進行に応じて種々変化するが、何れの場合も、図17(b)に示す通り、バンクフリップ待ちを意味するWAIT_BANKFLIP 命令で終了する。 Next, the host CPU 50 creates an image command list LT for the current cycle (ST53). This image command list LT changes in various ways according to the progress of the image effect, but in any case, it ends with a WAIT_BANKFLIP instruction that means waiting for a bank flip, as shown in FIG. 17(b).

ところで、この画像コマンドリストLTの途中には、JUMP_DDR命令が記載されている場合がある。ここで、JUMP_DDR命令は、その後に処理を移行すべきDDRメモリ41の先頭アドレスと、先頭アドレス以降に記載されている画像コマンドリストLT’(以下、補助リストLT’と称する)のデータサイズを特定したJUMP命令であり(図17(c)参照)、実質的には、RETURN命令を記載する必要のないSUBROUTINE_CALL 命令を意味する。なお、以下に説明するJUMP_BUFa 命令や、JUMP_BUFb 命令や、JUMP_CFIFO命令についても同様であり、ゼロの場合も含むデータサイズを特定して、JUMP先アドレスを具体的に特定している。 By the way, a JUMP_DDR command may be written in the middle of this image command list LT. Here, the JUMP_DDR instruction specifies the start address of the DDR memory 41 to which the process should be transferred after that, and the data size of the image command list LT' (hereinafter referred to as the auxiliary list LT') described after the start address. JUMP instruction (see FIG. 17(c)), which substantially means a SUBROUTINE_CALL instruction that does not require a RETURN instruction. The JUMP_BUFa instruction, the JUMP_BUFb instruction, and the JUMP_CFIFO instruction, which will be described below, are similar in that the data size including the case of zero is specified to specifically specify the JUMP destination address.

この補助リストLT’は、画像演出の進行に拘らず、一定期間、繰り返される処理を記載したものであり、演出進行の所定タイミングで、DDRメモリ41に発行された後は、JUMP_DDR命令を経由して、繰り返し読み出されるようになっている。また、その後のタイミングで、DDRメモリ41に新たに発行された補助リストLT’についても、JUMP_DDR命令を経由して、繰り返し読み出されるようになっている。 This auxiliary list LT' describes processes that are repeated for a certain period of time regardless of the progress of the image rendering. are read out repeatedly. Further, at the subsequent timing, the auxiliary list LT' newly issued to the DDR memory 41 is also repeatedly read via the JUMP_DDR instruction.

したがって、ステップST53の処理では、画像コマンドリストLTの作成に加えて、補助リストLT’が作成される場合や、作成した画像コマンドリストLTにJUMP_DDR命令が記載されている場合がある。何れにしても、ステップST53に続いて、ホストCPU50は、コマンドバッファ71に画像コマンドリストLTを発行し、必要に応じて、DDRメモリ41に補助リストLT’を発行して(ST54)、今サイクルの処理を終え、次回のバンクフリップを待つことになる(ST21)。 Therefore, in the process of step ST53, in addition to the creation of the image command list LT, there are cases where an auxiliary list LT' is created, and a JUMP_DDR instruction is described in the created image command list LT. In any case, after step ST53, the host CPU 50 issues the image command list LT to the command buffer 71, and if necessary, issues the auxiliary list LT' to the DDR memory 41 (ST54), and the current cycle is executed. , and waits for the next bank flip (ST21).

一方、VDPコントローラ60は、今サイクルに発行された画像コマンドリストLTを、画像コマンドバッファ71から順番に読出し、CGデータデコーダ62やレンダリングエンジン61を機能させて、表示装置DS1,DS2の各一フレームを特定する画像データをフレームバッファFBの描画バンクに完成させる。そして、WAIT_BANKFLIP 命令に基づき、次回のバンクフリップを待つ。先に説明した通り、次回のバンクフリップでは、フレームバッファFBの描画バンクと表示バンクが切換るので、今回完成させた画像データは、次回のバンクフリップ後に表示装置DS1,DS2に表示されることになる。 On the other hand, the VDP controller 60 sequentially reads out the image command list LT issued in the current cycle from the image command buffer 71, and causes the CG data decoder 62 and the rendering engine 61 to function to display one frame on each of the display devices DS1 and DS2. is completed in the drawing bank of the frame buffer FB. Then, it waits for the next bank flip based on the WAIT_BANKFLIP instruction. As described above, the drawing bank and the display bank of the frame buffer FB are switched in the next bank flip, so the image data completed this time will be displayed on the display devices DS1 and DS2 after the next bank flip. Become.

以上の通り、図17(a)の実施例では、画像演出進行の一定期間、繰り返し使用される処理を、補助リストLT’に記載してDDRメモリ41に保存し、画像演出の進行に対応して、反復して活用するので、画像コマンドリストLTを作成するホストCPUの制御負担が軽減される。なお、ここでは、DDRメモリ41を例示したが、DDRメモリ41に替えて、コマンドメモリ56や、内蔵DRAM57や、外付けROM42を使用しても良いのは先に説明した通りである。なお、外付けROM42には、固定的な補助リストLT’が予め記憶されている必要がある。 As described above, in the embodiment shown in FIG. 17(a), the processing that is repeatedly used for a certain period of time during the progress of the image presentation is recorded in the auxiliary list LT' and stored in the DDR memory 41, and is stored in the DDR memory 41 so as to correspond to the progress of the image presentation. Since the image command list LT is repeatedly used, the control load on the host CPU that creates the image command list LT is reduced. Although the DDR memory 41 is illustrated here, the command memory 56, the built-in DRAM 57, or the external ROM 42 may be used instead of the DDR memory 41 as described above. A fixed auxiliary list LT' must be stored in the external ROM 42 in advance.

以上、発行した画像コマンドリストLTが、そのサイクルで読み出される実施例について説明したが、VDPコントローラ60に対する処理時間を確保するため、図6に示した動作を実行する場合について図17(b)に基づいて説明する。 An embodiment in which the issued image command list LT is read out in that cycle has been described above. will be explained based on

この場合には、初期設定処理(ST10)においてコマンドメモリ56に、一対のバッファ領域(BUFa,BUFb)を確保する必要がある(ST51’)。なお、バンクフリップ周期を1/30秒に設定すること(ST50)、画像コマンドリストLTの発行先として、画像コマンドバッファ71の先頭アドレスを設定すること(ST51)、及び、コマンドリストの処理開始を許可設定すること(ST52)については、図17(a)の場合と同じである。 In this case, it is necessary to secure a pair of buffer areas (BUFa, BUFb) in the command memory 56 in the initialization process (ST10) (ST51'). The bank flip cycle is set to 1/30 seconds (ST50), the top address of the image command buffer 71 is set as the destination of the image command list LT (ST51), and the command list processing is started. Permission setting (ST52) is the same as in the case of FIG. 17(a).

以上の処理が終われば、ホストCPU50は、先ず、今サイクルで参照されるバッファ領域BUFa/BUFbに関して、今サイクルの画像コマンドリストLTを作成し、これを画像コマンドバッファ71に発行する(ST56)。この画像コマンドリストLTは、図6の説明では、制御コマンドリストLTcと称したものであり、今回参照されるべきコマンドメモリ56のバッファ領域を特定したJUMP命令(JUMP_BUFa /JUMP_BUFb )と、バンクフリップ待ち命令(WAIT_BANKFLIP )だけが記載されものである。 After the above processing is completed, the host CPU 50 first creates an image command list LT for the current cycle with respect to the buffer areas BUFa/BUFb referenced in the current cycle, and issues it to the image command buffer 71 (ST56). This image command list LT is called the control command list LTc in the description of FIG. Only the instruction (WAIT_BANKFLIP) is documented.

ステップST56の処理によって画像コマンドバッファ71に発行された画像コマンドリストLT(制御コマンドリストLTc)は、VDPコントローラ71によって、直ちに読み出され、前回サイクルで発行済みの画像コマンドリストLTの処理が開始される(図5参照)。したがって、VDPコントローラ71に、十分な処理時間が確保される意味において、図17(b)の処理は、図17(a)の処理より優れている。 The image command list LT (control command list LTc) issued to the image command buffer 71 by the processing of step ST56 is immediately read by the VDP controller 71, and processing of the image command list LT issued in the previous cycle is started. (see Figure 5). Therefore, the processing of FIG. 17B is superior to the processing of FIG.

次に、ホストCPU50は、次サイクルで処理される画像コマンドリストLTを作成する(ST57)。なお、図5に関し説明した通り、この画像コマンドリストLTの最終行は、画像コマンドバッファ71のWAIT_BANKFLIP 命令への復帰を意味するJUMP命令(JUMP_CFIFO)である。 Next, the host CPU 50 creates an image command list LT to be processed in the next cycle (ST57). As described with reference to FIG. 5, the last line of this image command list LT is a JUMP instruction (JUMP_CFIFO) meaning return to the WAIT_BANKFLIP instruction of the image command buffer 71. FIG.

次に、ホストCPU50は、画像コマンドリストLTの発行先をトグル的に切換え(ST58)、その発行先に、ステップST57の処理で作成した画像コマンドリストLTを発行する(ST59)。すなわち、一対のバッファ領域(BUFa,BUFb)の先頭アドレスの何れか一方を、今回の画像コマンドリストLTの発行先として選択し(ST58)、選択されたバッファ領域に画像コマンドリストLTを発行する(ST59)。 Next, the host CPU 50 toggles the issue destination of the image command list LT (ST58), and issues the image command list LT created in the process of step ST57 to the issue destination (ST59). That is, one of the head addresses of the pair of buffer areas (BUFa, BUFb) is selected as the destination of the current image command list LT (ST58), and the image command list LT is issued to the selected buffer area (ST58). ST59).

なお、トグル的に切換えられたバッファ領域は、次サイクルのステップST56の処理で使用される(図5参照)。また、ステップST59の処理で発行された画像コマンドリストLTが実効化されるのは、次サイクルである。そして、その後の処理は、図17(a)の場合と同じであり、他の必要な処理(ST12~ST20)を実行した後、次回のバンクフリップを待つことになる(ST21)。 It should be noted that the toggled buffer area is used in the processing of step ST56 in the next cycle (see FIG. 5). Also, the image command list LT issued in the process of step ST59 is executed in the next cycle. The subsequent processing is the same as in the case of FIG. 17(a), and after executing other necessary processing (ST12 to ST20), it waits for the next bank flip (ST21).

続いて、図7に関し先に説明した動作を実現する制御動作について、図18(a)に基づいて説明する。なお、この実施例では、プリローダを機能させるので、図15(c)のステップST3の処理が実行される。また、以下に説明する画像コマンドリストLTには、プリロード転送を指示する特別なデコードコマンドDCpが記載されている。 Next, a control operation for realizing the operation described above with reference to FIG. 7 will be described with reference to FIG. 18(a). In this embodiment, since the preloader is activated, the processing of step ST3 in FIG. 15(c) is executed. Also, the image command list LT described below describes a special decode command DCp that instructs preload transfer.

そして、図17の実施例と同様、バンクフリップ周期を1/30秒に設定するが(ST60)、DDRメモリ41に、画像コマンドリストLTを一時保存すための適当個数のリストバッファTG(#0,#1,・・・,#N)が確保される必要がある(ST61)。なお、図7では、リストバッファTGを、BUFa、BUFb、BUFcと表記しているが、図18(c)には、リストバッファTGの個数NがN=2のトリプルバッファTGについて、#0,#1,#2と図示している。なお、この実施例では、図17のステップST51、及びステップST52の処理が、初期設定時において実行されることはなく、定常処理において個々的に実行される。 17, the bank flip period is set to 1/30 seconds (ST60), and an appropriate number of list buffers TG (#0 , #1, . . . , #N) must be secured (ST61). In FIG. 7, the list buffers TG are denoted by BUFa, BUFb, and BUFc. They are shown as #1 and #2. In this embodiment, the processes of steps ST51 and ST52 in FIG. 17 are not executed at the time of initial setting, but are individually executed during normal processing.

定常処理では、最初に、WAIT_BANKFLIP コマンドのみで構成された画像コマンドリストである制御コマンドリストLTcを、コマンドバッファ71に発行する(ST62)。次に、ホストCPU50は、今サイクルで実効化されるべき画像コマンドリストLTについて、コマンドリスト開始アドレス(つまり、画像コマンドリストLTの先頭アドレス)を設定する(ST63)。 In the steady process, first, a control command list LTc, which is an image command list composed only of WAIT_BANKFLIP commands, is issued to the command buffer 71 (ST62). Next, the host CPU 50 sets the command list start address (that is, the top address of the image command list LT) for the image command list LT to be executed in this cycle (ST63).

具体的には、メモリ種別を特定するCBM情報として、DDRメモリ41であることを特定し、DDRメモリ41における相対アドレスを特定するCBA情報として、該当するリストバッファTGの先頭アドレスを特定する。なお、このステップST63の処理の容易化ため、リストバッファTG(#0,#1,・・・,#N)の先頭アドレスを記憶した先頭アドレスバッファ(図18(c)参照)が用意されており、この先頭アドレスバッファを順番に読み出すことで、CBA/CBM情報が特定される。 Specifically, the DDR memory 41 is specified as the CBM information specifying the memory type, and the head address of the corresponding list buffer TG is specified as the CBA information specifying the relative address in the DDR memory 41 . To facilitate the processing of step ST63, a head address buffer (see FIG. 18(c)) storing the head address of the list buffer TG (#0, #1, . . . , #N) is prepared. The CBA/CBM information is specified by sequentially reading the head address buffers.

そして、画像コマンドリストLTの処理開始を許可することで(ST64)、ステップST63で特定された先頭アドレス以降の画像コマンドリストLTの処理が開始される(図7参照)。例えば、ステップST63の処理で、リストバッファTG#1が選択されている場合には、VDPコントローラ71は、リストバッファTG#1に記載されている画像コマンドリストLTに基づいて、デコード及び描画の処理を実行し、JUMP_CFIFOの実行後、コマンドバッファ71に格納されている制御コマンドリストLTcのWAIT_BANKFLIP を実行して、バンクフリップを待つことになる(図18(f)参照)。 Then, by permitting the start of the processing of the image command list LT (ST64), the processing of the image command list LT after the top address specified in step ST63 is started (see FIG. 7). For example, when the list buffer TG#1 is selected in the process of step ST63, the VDP controller 71 performs decoding and drawing processes based on the image command list LT described in the list buffer TG#1. After executing JUMP_CFIFO, WAIT_BANKFLIP of the control command list LTc stored in the command buffer 71 is executed to wait for bank flip (see FIG. 18(f)).

次に、ホストCPU50は、Nサイクル後に実効化されるべき画像コマンドリストLTを作成する(ST65)。なお、この画像コマンドリストLTの最後は、常に、コマンドバッファ71の制御コマンドリストLTcのWAIT_BANKFLIP 命令への復帰を意味するJUMP命令(JUMP CFIFO)が記載されている。 Next, the host CPU 50 creates an image command list LT to be executed after N cycles (ST65). At the end of this image command list LT, there is always a JUMP instruction (JUMP CFIFO) meaning return to the WAIT_BANKFLIP instruction of the control command list LTc of the command buffer 71 .

次に、画像コマンドリストLTの発行先を更新し(ST65)、そのリストバッファTG(例えばTG#0)に、ステップST64の処理で作成した画像コマンドリストLTを発行する(ST66)。図7に関して説明した通り、ステップST66の処理で、例えばリストバッファTG#0に発行された画像コマンドリストLTは、バンクフリップ後の次サイクルの処理で解釈され、デコードコマンドDCpが検出された場合には、必要なCGデータを内蔵DRAM57に確保されたプリロードバッファにプリロードする。そして、プリロードされたCGデータは、更にその次サイクルの処理で、CGデータデコーダ62によってデコードされ、レンダリングエンジン61による描画動作に活用される。 Next, the issuing destination of the image command list LT is updated (ST65), and the image command list LT created in the process of step ST64 is issued to the list buffer TG (for example, TG#0) (ST66). As described with reference to FIG. 7, the image command list LT issued to, for example, the list buffer TG#0 in the process of step ST66 is interpreted in the process of the next cycle after the bank flip, and when the decode command DCp is detected, preloads the necessary CG data into the preload buffer secured in the built-in DRAM 57 . Then, the preloaded CG data is further decoded by the CG data decoder 62 in the processing of the next cycle, and utilized for the rendering operation by the rendering engine 61 .

ホストCPU50は、ステップST66の処理に続いて、次回サイクルの表示画面を特定する画像コマンドリストLTを作成し、ステップST66の処理で選択した発行先に発行する(ST67)。なお、図7で説明した通り、この画像コマンドリストLTの最後には、JUMP_CFIFO命令が記載されている。したがって、JUMP_CFIFO命令の実行の後は、画像コマンドバッファ71の先頭アドレスに記載されているWAIT_BANKFLIP 命令が実行されバンクフリップを待つことになる。以上の通り、この実施例では、プリロード処理を有効活用することで、表示装置の大型化や高画質化に効果的に対応することができる。 Following the process of step ST66, the host CPU 50 creates an image command list LT specifying the display screens of the next cycle, and issues it to the issue destination selected in the process of step ST66 (ST67). As described with reference to FIG. 7, the JUMP_CFIFO command is written at the end of this image command list LT. Therefore, after executing the JUMP_CFIFO instruction, the WAIT_BANKFLIP instruction described at the top address of the image command buffer 71 is executed to wait for bank flip. As described above, in this embodiment, by effectively utilizing the preloading process, it is possible to effectively cope with the increase in size and image quality of the display device.

続いて、図19に基づいて、サウンドエンジン52を簡易制御モード(第2動作モード)で機能させる場合について説明する。先に説明した通り、簡易制御モードでは、VDPコントローラ71が音声コマンドリストSLTに基づいて、サウンドエンジン52のコマンドレジスタRGiに対する設定動作を実行する。 Next, based on FIG. 19, the case where the sound engine 52 functions in the simple control mode (second operation mode) will be described. As described above, in the simple control mode, the VDP controller 71 sets the command register RGi of the sound engine 52 based on the voice command list SLT.

先ず、初期設定動作として、VDPコントローラ71の該当レジスタに、サウンドエンジン52を簡易制御モード(第2動作モード)で機能させることを設定した上で(ST10)、ステップST11~ST20の定常処理が繰り返される。 First, as an initial setting operation, the sound engine 52 is set to function in the simple control mode (second operation mode) in the corresponding register of the VDP controller 71 (ST10), and then the regular processing of steps ST11 to ST20 is repeated. be

図示の通り、定常処理では、ホストCPU50は、適宜な画像コマンドリストを作成し、適宜な発行先に発行した後(ST11)、音声演出の更新タイミングか否かを判定する(ST12)。そして、サウンドエンジン52のコマンドレジスタRGiへの設定動作を実行すべきタイミングであれば、設定動作を特定する音声コマンドリストSLTを作成する。 As shown in the figure, in the regular process, the host CPU 50 creates an appropriate image command list, issues it to an appropriate issuing destination (ST11), and then determines whether or not it is time to update the sound effects (ST12). Then, when it is time to execute the setting operation to the command register RGi of the sound engine 52, a voice command list SLT specifying the setting operation is created.

図8の右上部に示す通り音声コマンドリストSLTは、一連の音声コマンドを列記したものであり、各音声コマンドは、1バイト長のレジスタ番号と、1バイト長の設定値とで構成されている。そして、音声コマンドリストSLTの先頭には、それ以降に列記される音声コマンドのコマンド数が記載されている。 As shown in the upper right part of FIG. 8, the voice command list SLT lists a series of voice commands, and each voice command consists of a 1-byte register number and a 1-byte set value. . At the top of the voice command list SLT, the number of voice commands listed thereafter is described.

このような構成の音声コマンドリストSLTを完成させた後、ホストCPU50は、この音声コマンドリストSLTを、VDPコントローラ71の音声コマンドリストレジスタCRGWSLに発行する(ST71)。すると、図8に関して先に説明した通り、VDPコントローラ71は、音声コマンドリストSLTに基づいて、所定の音声レジスタに所定の設定値を設定することになる。 After completing the voice command list SLT having such a configuration, the host CPU 50 issues this voice command list SLT to the voice command list register CRG WSL of the VDP controller 71 (ST71). Then, as described above with reference to FIG. 8, the VDP controller 71 sets a predetermined set value in a predetermined voice register based on the voice command list SLT.

また、SACコード番号やSEQコード番号が認められる場合には、シンプルアクセスコントローラSACやシーケンサSEQに代わって、DDRメモリ41をアクセスして、中継レジスタ82を経由して、一連の設定動作を実行する。したがって、やや迅速性に欠けるものの、ホストCPU50は、音声演出を簡易に制御できることになる。 When the SAC code number and SEQ code number are recognized, instead of the simple access controller SAC and sequencer SEQ, the DDR memory 41 is accessed and a series of setting operations are executed via the relay register 82. . Therefore, the host CPU 50 can easily control the voice production, although it is somewhat lacking in speed.

以上、実施例について詳細に説明したが、具体的な記載内容は、特に本発明を限定するものではなく、適宜に修正変更される。また、上記した各実施例では、もっぱら弾球遊技機について説明したが、回胴遊技機など、画像演出を伴う他の遊技機においても好適に活用されることは勿論である。 Although the embodiments have been described in detail above, the specific contents of the description do not particularly limit the present invention, and can be modified and changed as appropriate. Also, in each of the above-described embodiments, the pinball game machine has been mainly explained, but it goes without saying that the present invention can also be suitably used in other game machines involving image effects, such as the reel game machine.

GM 遊技機
DS1、DS2 表示装置
50 画像演出制御手段
42 データ記憶手段
51 画像生成手段
52 音声制御手段
53 データ転送手段
40 複合チップ40
41 揮発性メモリ
42 不揮発性メモリ
GM game machine DS1, DS2 display device 50 image effect control means 42 data storage means 51 image generation means 52 sound control means 53 data transfer means 40 composite chip 40
41 volatile memory 42 non-volatile memory

Claims (1)

画像演出及び音声演出を統一的に制御するホストCPUを有する演出制御手段(50)と、前記演出制御手段から受ける画像コマンドリストに基づいて、一又は複数の表示装置の各1フレーム分の画像データを生成して画像演出を実行する画像生成手段(51)と、前記演出制御手段から受ける指示に基づいて、音声信号を生成しスピーカを駆動して音声演出を実行する音声制御手段(52)と、前記ホストCPUを経由しないデータ転送動作を実現するデータ転送手段(53)と、が内蔵された複合チップと、
前記画像データや前記音声信号の基礎データとなる不揮発データを記憶する不揮発性メモリと、
前記複合チップの内部動作の作業領域として使用可能に構成された揮発性メモリと、を有して構成された遊技機であって、
電源投入後、前記データ転送手段を機能させて、前記不揮発性メモリに記憶されている不揮発データの一部を、前記揮発性メモリに自動転送するよう構成され、
自動転送される不揮発データには、一単位の音声演出を実現する圧縮状態の基礎データが含まれている遊技機。
Effect control means (50) having a host CPU for unified control of image effects and sound effects, and image data for one frame for each of one or a plurality of display devices based on an image command list received from the effect control means. and an audio control means (52) for generating an audio signal and driving a speaker to execute an audio effect based on an instruction received from the effect control means. , a data transfer means (53) for realizing data transfer operation without going through the host CPU;
a nonvolatile memory that stores nonvolatile data that serves as basic data for the image data and the audio signal;
and a volatile memory that can be used as a work area for internal operations of the composite chip, wherein
After the power is turned on, the data transfer means is operated to automatically transfer part of the nonvolatile data stored in the nonvolatile memory to the volatile memory,
A gaming machine in which the automatically transferred non-volatile data includes basic data in a compressed state that realizes one unit of sound production .
JP2018109367A 2018-06-07 2018-06-07 game machine Active JP7138485B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018109367A JP7138485B2 (en) 2018-06-07 2018-06-07 game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018109367A JP7138485B2 (en) 2018-06-07 2018-06-07 game machine

Publications (2)

Publication Number Publication Date
JP2019208975A JP2019208975A (en) 2019-12-12
JP7138485B2 true JP7138485B2 (en) 2022-09-16

Family

ID=68846343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018109367A Active JP7138485B2 (en) 2018-06-07 2018-06-07 game machine

Country Status (1)

Country Link
JP (1) JP7138485B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7267033B2 (en) * 2019-02-26 2023-05-01 株式会社平和 game machine

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009189387A (en) 2008-02-12 2009-08-27 Seiko Epson Corp Image display device and game machine
JP2013226449A (en) 2013-07-09 2013-11-07 Fujishoji Co Ltd Game machine
JP2015116391A (en) 2013-12-19 2015-06-25 株式会社エルイーテック Game machine chip, game machine board, and game machine
JP2016202843A (en) 2015-04-28 2016-12-08 株式会社大一商会 Game machine
JP2017006458A (en) 2015-06-24 2017-01-12 株式会社サンセイアールアンドディ Game machine
JP2017038831A (en) 2015-08-21 2017-02-23 株式会社三共 Game machine
JP2017079966A (en) 2015-10-27 2017-05-18 株式会社藤商事 Game machine
JP2018075246A (en) 2016-11-10 2018-05-17 京楽産業.株式会社 Game machine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009189387A (en) 2008-02-12 2009-08-27 Seiko Epson Corp Image display device and game machine
JP2013226449A (en) 2013-07-09 2013-11-07 Fujishoji Co Ltd Game machine
JP2015116391A (en) 2013-12-19 2015-06-25 株式会社エルイーテック Game machine chip, game machine board, and game machine
JP2016202843A (en) 2015-04-28 2016-12-08 株式会社大一商会 Game machine
JP2017006458A (en) 2015-06-24 2017-01-12 株式会社サンセイアールアンドディ Game machine
JP2017038831A (en) 2015-08-21 2017-02-23 株式会社三共 Game machine
JP2017079966A (en) 2015-10-27 2017-05-18 株式会社藤商事 Game machine
JP2018075246A (en) 2016-11-10 2018-05-17 京楽産業.株式会社 Game machine

Also Published As

Publication number Publication date
JP2019208975A (en) 2019-12-12

Similar Documents

Publication Publication Date Title
JP5909569B1 (en) Game machine
JP5989825B2 (en) Game machine
JP7214392B2 (en) game machine
JP7138485B2 (en) game machine
JP5989823B2 (en) Game machine
JP7064969B2 (en) Pachinko machine
JP7166078B2 (en) game machine
JP7051229B2 (en) Pachinko machine
JP6302962B2 (en) Game machine
JP5909570B1 (en) Game machine
JP2016187663A (en) Game machine
JP6262297B2 (en) Game machine
JP6262295B2 (en) Game machine
JP6262298B2 (en) Game machine
JP6262294B2 (en) Game machine
JP6262299B2 (en) Game machine
JP6262296B2 (en) Game machine
JP5989826B2 (en) Game machine
JP5989824B2 (en) Game machine
JP5989827B2 (en) Game machine
JP5989830B2 (en) Game machine
JP6532421B2 (en) Gaming machine
JP5989828B2 (en) Game machine
JP5989829B2 (en) Game machine
JP2022179763A (en) game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220301

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220427

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220906

R150 Certificate of patent or registration of utility model

Ref document number: 7138485

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150