JP2019208976A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2019208976A
JP2019208976A JP2018109368A JP2018109368A JP2019208976A JP 2019208976 A JP2019208976 A JP 2019208976A JP 2018109368 A JP2018109368 A JP 2018109368A JP 2018109368 A JP2018109368 A JP 2018109368A JP 2019208976 A JP2019208976 A JP 2019208976A
Authority
JP
Japan
Prior art keywords
register
data
image
command
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.)
Granted
Application number
JP2018109368A
Other languages
Japanese (ja)
Other versions
JP7166078B2 (en
Inventor
一寛 中村
Kazuhiro Nakamura
一寛 中村
誠 岩間
Makoto Iwama
誠 岩間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Shoji Co Ltd
Original Assignee
Fuji Shoji Co Ltd
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 Fuji Shoji Co Ltd filed Critical Fuji Shoji Co Ltd
Priority to JP2018109368A priority Critical patent/JP7166078B2/en
Publication of JP2019208976A publication Critical patent/JP2019208976A/en
Application granted granted Critical
Publication of JP7166078B2 publication Critical patent/JP7166078B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To simplify a device configuration as much as possible and reduce the control burden on a CPU.SOLUTION: A game machine includes a composite chip 40 in which a built-in host CPU 50, an image processor 51, and an audio processor 52 are housed. When the built-in host CPU 50 writes first information including the register number to a first relay register MCR and writes second information including the set value to a second relay register MCD, transfer data in which the register number and the set value are to be one set is stored in an audio command buffer 83. The audio processor 52 functions every predetermined operation cycle, reads the audio command buffer 83, and executes a setting operation based on an instruction from the built-in host CPU 50.SELECTED DRAWING: Figure 9

Description

本発明は、遊技動作に起因する抽選処理を行い、その抽選結果に対応する画像演出を実行する遊技機に関する。   The present invention relates to a gaming machine that performs a lottery process resulting from a gaming operation and executes an image effect corresponding to the lottery result.

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

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

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

この発明は、上記の課題に鑑みてなされたものであって、機器構成を極限的に簡素化しCPUの制御負担を軽減化した遊技機を提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object thereof is to provide a gaming machine in which the device configuration is extremely simplified and the control burden on the CPU is reduced.

上記の目的を達成するため、本発明は、画像演出及び音声演出を統一的に制御するホストCPUを有する演出制御手段(50)と、前記演出制御手段から受けるコマンドリストに基づいて、一又は複数の表示装置の各1フレーム分の画像データを生成して画像演出を実行する画像生成手段(51)と、前記演出制御手段から受ける指示に基づいて、音声信号を生成しスピーカを駆動して音声演出を実行する音声制御手段(52)と、が内蔵された複合チップを有して構成された遊技機であって、前記演出制御手段から受ける指示は、前記音声制御手段の内蔵レジスタを特定するレジスタ番号と、レジスタ番号で特定される内蔵レジスタへの設定値と、を有して構成され、前記演出制御手段が、レジスタ番号を含んだ第1情報を、第1中継レジスタに書込むと共に、設定値を含んだ第2情報を、第2中継レジスタに書込むと、レジスタ番号と設定値とで一組となる転送データが、所定の音声コマンドバッファに格納されるよう構成され、前記音声制御手段は、所定の動作サイクル毎に機能して、前記音声コマンドバッファを読み出して、前記演出制御手段から受ける指示に基づいた設定動作を実行するよう構成されている。   In order to achieve the above object, the present invention provides one or a plurality of effects based on an effect control means (50) having a host CPU for uniformly controlling image effects and sound effects, and a command list received from the effect control means. An image generation means (51) for generating image data for each frame of the display device and executing an image effect, and an audio signal is generated based on an instruction received from the effect control means, and a speaker is driven to generate an audio An audio control means (52) for executing an effect is a gaming machine configured to have a composite chip with a built-in instruction, and an instruction received from the effect control means specifies a built-in register of the sound control means A register number and a set value for the built-in register specified by the register number, and the effect control means transmits the first information including the register number to the first relay register. When the second information including the set value is written to the second relay register, a set of transfer data including the register number and the set value is stored in a predetermined voice command buffer. The voice control unit is configured to function every predetermined operation cycle, read the voice command buffer, and execute a setting operation based on an instruction received from the effect control unit.

上記した本発明の遊技機によれば、演出制御手段、画像生成手段、及び音声制御手段を内蔵する複合チップを有するので、機器構成が簡素化され、CPUは、第1と第2中継レジスタをアクセスするだけで良いので、CPUの制御負担が大幅に軽減される。   According to the above-described gaming machine of the present invention, since it has the composite chip that incorporates the effect control means, the image generation means, and the sound control means, the device configuration is simplified, and the CPU has the first and second relay registers. Since only access is required, the control burden on the CPU is greatly reduced.

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

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

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

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

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

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

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

中央開口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 disposed in the central opening HO, and a movable sub display device composed of a small liquid crystal color display is disposed on the right side of the main display device DS1. DS2 is arranged. The main display device DS1 is a device that variably displays a specific symbol related to the big hit state and displays a background image and various characters in an animated manner. The display device DS1 has special symbol display portions Da to Dc in the center portion and a normal symbol display portion 19 in the upper right portion. In the special symbol display portions Da to Dc, there is a case where a reach effect that expects a big hit state is invited, and in the special symbol display portions Da to Dc and the surroundings, an appropriate notice effect is executed.

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

第1図柄始動口15aの上部には、導入口INから進入した遊技球がシーソー状又はルーレット状に移動した後に、第1図柄始動口15に入賞可能に構成された演出ステージ14が配置されている。そして、第1図柄始動口15に遊技球が入賞すると、特別図柄表示部Da〜Dcの変動動作が開始されるよう構成されている。   On the upper part of the first symbol starting port 15a, there is arranged an effect stage 14 configured to be able to win a prize in the first symbol starting port 15 after the game ball entering from the introduction port IN moves in a seesaw shape or a roulette shape. Yes. And when a game ball wins the 1st symbol starting port 15, it is comprised so that the fluctuation | variation operation | movement of the special symbol display parts Da-Dc will be started.

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

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

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

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

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

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

ところで、本実施例では、大当り状態を決定する大当り抽選や、その他の抽選確率を、係員の設定操作に基づいて、複数段階の何れかに設定できるようになっている。係員による抽選確率の設定操作は、特別な設定キーSET(図3)によって電源投入時に限り許可される。   By the way, in the present embodiment, the big hit lottery for determining the big hit state and other lottery probabilities can be set in any of a plurality of stages based on the setting operation of the staff. The lottery probability setting operation 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 an overall circuit configuration of the pachinko machine GM that realizes the above-described operations, and FIG. 4 is a block diagram showing the production control board 22 in somewhat detail.

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

上記の構成に対応して、主制御部基板21は、遊技盤中継基板31を経由して、遊技盤5の各遊技部品に接続されている。そして、遊技盤上の各入賞口16〜18に内蔵された検出スイッチのスイッチ信号を受けて、必要な抽選処理を実行すると共に、電動式チューリップなどのソレノイド類を適宜に駆動している。   Corresponding to the above configuration, the main control unit 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 signals of the detection switches built in 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 that relays 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 a wiring cable. In addition, the liquid crystal IF board 25 includes a nonvolatile memory 26 (ferroelectric memory FeRAM: Ferroelectric Random Access Memory) that stores game performance information and the like, and a clock circuit 27 (RTC real time clock) that can measure the current time. ) And are installed.

なお、主制御基板21が出力する制御コマンドCMDは、直接的に、演出制御基板22に伝送されるが、制御コマンドCMD’は、主基板中継基板32を経由して、払出制御基板23に伝送される。これらの制御コマンドCMD,CMD’は、何れも16ビット長であるが、8ビット長毎に2回に分けてパラレル送信されている。   The control command CMD output from the main control board 21 is directly transmitted to the effect control board 22, but the control command CMD ′ is transmitted to the payout control board 23 via the main board relay board 32. Is done. These control commands CMD and CMD 'have a 16-bit length, but are transmitted in parallel every two 8-bit lengths.

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

また、以下の説明において、制御基板21〜23と液晶IF基板25に搭載された回路、及びその回路によって実現される動作を機能的に総称して、主制御部21、演出制御部22、及び払出制御部23と言う。なお、主制御部21に対して、演出制御部22と払出制御部23の全部又は一部がサブ制御部となる。   In the following description, the functions mounted by 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 referred to as a main control unit 21, an effect control unit 22, and This is called the payout control unit 23. Note that, with respect to the main control unit 21, all or part of the effect control unit 22 and the payout control unit 23 become sub-control units.

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

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

一方、遊技盤5の背面には、盤側部材GM2として、主制御基板21、演出制御基板22、及び、液晶IF基板25が、表示装置DS1,DS2やその他の回路基板と共に固定されている。ここで、その他の回路基板には、DチャンネルのLEDランプ群を駆動するランプ駆動基板29と、Fチャンネルの役物モータ群を駆動するモータ駆動基板30と、枠中継基板34と、が含まれている。   On the other hand, a main control board 21, an effect control board 22, and a liquid crystal IF board 25 are fixed together with the display devices DS1, DS2 and other circuit boards as a board-side member GM2 on the back surface of the game board 5. Here, the other circuit boards include a lamp drive board 29 that drives the D-channel LED lamp group, a motor drive board 30 that drives 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 the accessory motor, and also receive a parallel signal of a plurality of bits and convert it into a serial signal. The signal acquisition circuits GET to be output 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 a parallel signal having a plurality of bits.

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

詳しくは後述するが、本実施例の場合、CチャンネルのLEDランプ群、DチャンネルのLEDランプ群、Eチャンネルの役物モータ群、及び、Fチャンネルの役物モータ群は、全て、演出制御基板22のシリアルポート55からシリアル伝送される駆動データに基づいて駆動されている。ここで、Cチャンネル〜Fチャンネルの称呼は、複合チップ40に内蔵されたシリアルポート55のチャネル番号#C〜#Fに対応している。   As will be described in detail 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 effect control boards. It is driven based on drive data serially transmitted from 22 serial ports 55. Here, the names C channel to F channel correspond to the channel numbers #C to #F of the serial port 55 built in 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 panel side member GM2 including the drive boards 29 and 30 are electrically connected by connection connectors C1 to C4 which are concentratedly arranged at one place. Yes. Therefore, the electrical connection between the frame side member GM1 and the panel side member GM2 is completed by one operation, and the electrical connection is interrupted by one operation.

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

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

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

主基板中継基板32は、電源基板20から出力される電源異常信号ABN1、バックアップ電源BAK、及びDC5V,DC12V,DC32Vを、そのまま主制御部21に出力している。一方、電源中継基板33は、電源基板20から受けたシステムリセット信号SYSや、交流及び直流の電源電圧を、そのまま演出制御部22に出力している。そして、演出制御部22は、受けたシステムリセット信号SYSに基づいて、基板各部に配置された電子素子を電源リセットしている。   The main board relay board 32 outputs the power abnormality signal ABN1, the backup power supply BAK, and DC5V, DC12V, and DC32V output from the power board 20 to the main control unit 21 as they are. On the other hand, the power 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 unit 22 as they are. And the production | presentation control part 22 resets the power supply of the electronic element arrange | positioned at each part of a board | substrate based on the received system reset signal SYS.

一方、払出制御基板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. When the main control unit 21 receives the same power supply abnormality signal ABN2 or backup power supply BAK together with other power supply voltages. Is receiving.

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

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

主制御部21や払出制御部23に設けられたリセット回路RSTは、各々ウォッチドッグタイマを内蔵しており、各制御部21,24のCPUから、定時的なクリアパルスを受けない限り、各CPUは強制的にリセットされる。   The reset circuits RST provided in the main control unit 21 and the payout control unit 23 each have a built-in watchdog timer, and each CPU is provided unless a regular clear pulse is received from the CPUs of the control units 21 and 24. Is forcibly 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 unit 21 and transmitted to the one-chip microcomputer of the main control unit 21 and the payout control unit 23. Here, the RAM clear signal CLR is a signal for deciding whether or not to initialize all the areas of the built-in RAM of the one-chip microcomputer of each control unit 21 and 24. The initialization switch SW operated by the attendant is turned on. 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 unit 21 in the same manner as the setting key SET that defines the lottery probability and the like. The operations of the initialization switch SW and the setting key SET are recognized by the initial process of the main control unit 21 that is executed immediately after the power is turned on, and the setting process such as the lottery probability and the initialization process of the built-in RAM are executed.

その後、抽選確率などの設定値は、CPU割込み許可状態で開始される主制御部21の定常処理において、所定の制御コマンドの形式で演出制御部22に通知され、通知された設定値は、液晶IF基板25の不揮発性メモリ26に記憶される。先に説明した通り、設定キーSETは、大当り抽選などの当選確率を、複数段階の何れかに設定する用途で使用される。そして、設定キーSETの設定内容は、時計回路27から読み取った時刻情報と共に、不揮発性メモリ26に記憶される。   Thereafter, the set value such as the lottery probability is notified to the effect control unit 22 in the form of a predetermined control command in the steady process of the main control unit 21 started in the CPU interrupt permission state. It is stored in the nonvolatile memory 26 of the IF board 25. As described above, the setting key SET is used for setting a winning probability such as a big hit lottery in any of a plurality of stages. Then, 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 setting process such as the lottery probability and the initialization process of the built-in RAM are allowed only immediately after the power is turned on, and are not executed in a steady process started thereafter. However, when an attendant operates the setting key SET during the steady process of the main control unit 21, the fact is notified from the main control unit 21 to the effect control unit 22.

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

そして、この設定キーSETの操作に対応して、初期化スイッチSWが操作された場合には、この通知を受けた演出制御部22では、不揮発性メモリ26の記憶内容を全て消去するようになっている。これは、例えば、その遊技機を転売するような場合に、営業秘密ともいうべき、抽選確率の設定履歴や、遊技実績履歴を消去するためである。   When the initialization switch SW is operated in response to the operation of the setting key SET, the presentation control unit 22 that has received this notification erases all the contents stored in the nonvolatile memory 26. ing. This is because, for example, when the gaming machine is resold, the lottery probability setting history and the game performance history, which should be referred to as 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 supply abnormality signals ABN1 and ABN2 from the power supply board 20 to start necessary end processing prior to a power failure or business end. The backup power supply BAK is a DC5V DC power source that retains data in the 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 termination or power failure. Therefore, the main control unit 21 and the payout control unit 23 can resume the game operation before power-off after power-on (power backup function). This pachinko machine is designed to retain the stored contents of the RAM of each one-chip microcomputer for at least several days.

先に説明した通り、演出制御基板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 unit 22 is connected to 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 are received (see FIGS. 3 and 4).

また、演出制御部22は、主制御部21から制御コマンドCMDとストローブ信号STBとを受けている。そして、演出制御部22は、ランプ駆動基板29やランプ駆動基板36に搭載された多数のランプドライバDR1〜DRn(図10(a)参照)に、ランプ駆動データSPOc,SPCdをシリアル伝送することで、Cチャンネルのランプ群と、Dチャンネルのランプ群を駆動して、制御コマンドCMDに基づくランプ演出を実現している。   The effect control unit 22 receives a control command CMD and a strobe signal STB from the main control unit 21. Then, the effect control unit 22 serially transmits the lamp drive data SPOc and 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 lamp effect based on the control command CMD is realized by driving the C channel lamp group and the D channel lamp group.

また、演出制御部22は、モータ駆動基板30やモータ駆動基板37に搭載された多数のモータドライバDV1〜DVm(図11(a)参照)に、モータ駆動データSOe,SOfをシリアル伝送することで、Eチャンネルのモータ群と、Fチャンネルのモータ群を駆動して、制御コマンドCMDに基づく役物演出を実現している。   The effect 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 the effect production 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, the present embodiment employs a clock synchronous serial transmission method, and the lamp driver DRi of the lamp driving board 36 and the lamp driving board 29 is synchronized with the clock signals SPCKc and SPCKd. SPOc and SPOd are received. The motor driver DVj of the motor drive board 37 and the motor drive board 30 receives the motor drive signals SOe and SOf in synchronization with the 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 the internal configuration of the effect control unit 22 in detail, and FIG. 5 is a block diagram showing the internal configuration of the composite chip. As shown in FIGS. 3 and 4, the effect control unit 22 includes a composite chip 40 that centrally controls an image effect, a sound effect, a lamp effect, and an accessory effect, and a work area for effect control operations performed by the composite chip 40. DDR3 SDRAM (Double-Data-Rate3 Synchronous Dynamic Random Access Memory) 41 that functions as a non-volatile memory, a control program that realizes a unified rendering operation, compressed audio data SND, compressed image data IMG, etc. A CGROM 42 to store, a digital amplifier 43 that amplifies an audio signal received from the composite chip 40 and drives the speaker SP, input buffers 44, 45A, 45B, output buffers 46A, 46B, signal switching units 47A, 47B, It is structured around.

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

本実施例の複合チップ40に接続可能なDDRメモリ41は、最高、8Gバイト長であるが、複合チップ40(ホストCPU50)から直接アクセス可能な領域は256Mバイトである。そこで、本実施例では、この256MバイトのDDRメモリ41の直接アクセス領域に、表示装置DS1,DS2の各一フレーム分の画像データを一時保存するフレームバッファFBを確保している。また、本実施例では、外付けROM42に記憶されている音声データSNDを、電源投入時に、DDRメモリ41の直接アクセス可能領域にコピーして、複合素子40からの高速アクセスを可能にしている。   The DDR memory 41 that can be connected 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, a frame buffer FB for temporarily storing image data for one frame of each of the display devices DS1 and DS2 is secured in the direct access area of the 256-Mbyte DDR memory 41. 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 to enable 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 that can be connected to the composite chip 40 has a maximum length of 1 Tbyte (1,099,511,627,776 bytes = 1,024 Gbytes), but the area directly accessible from the composite chip 40 (host CPU 50) is 1 Gbyte. Therefore, in this embodiment, the direct access area of the external ROM 42 of 1 GM bytes is an effect control program for centrally controlling the effect operation, effect control data referred to by the effect control program, and basic data for audio effects. Audio data SND is stored in a nonvolatile manner. The effect control data includes drive data for realizing the lamp effect and the accessory effect. 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 the 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, and realizes an audio effect, and an audio processor 52 that drives a speaker and realizes an audio effect. A direct memory access (DMA) controller 53 that realizes direct data transmission without going through the host CPU 50, a parallel port (PIO) 54 that inputs and outputs parallel signals, and a serial port (SIO) that inputs and outputs serial signals 55, a main memory (M1) 56, a built-in DRAM (M2) 57, and the like. Although referred to as a parallel port for the sake of convenience, a parallel output port (PO) and a parallel input port (PI) are actually included.

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

このような内部構成を有する複合チップ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 a control command CMD and a strobe signal STB from the main control unit 21 and a system reset signal SYS from the power supply board 20. Then, the control command CMD and the strobe signal STB are transmitted to the parallel port 54 of the composite chip 40, and the host CPU 50 obtains the control command CMD based on the 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 panel-side input buffer 45B receives the serial signal SNj of channel #F from the motor drive board 30. The input buffers 45A and 45B transmit the serial signals SNi and SNj to the serial port 55 of the composite chip 40. The serial signals SNi and SNj are serially transmitted in a clock synchronous manner in synchronization with the serial clocks SCKE and SCKf of the channel #E and the channel #F transmitted via the output buffers 46A and 46B.

ここで、シリアル信号SNiには、枠側に配置された役物モータの回転位置を特定する原点信号と、チャンスボタン11が押下されたことを示すスイッチ信号とが含まれている。一方、シリアル信号SNjには、盤側に配置された役物モータの回転位置を特定する原点信号が含まれている。   Here, the serial signal SNi includes an origin signal for 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 for specifying the rotational position of the accessory motor arranged on the board side.

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

図示の通り、枠側出力バッファ46Aは、シリアルポート55からランプ駆動基板36に伝送されるチャネル#Cの信号群SPOc,SPCKc,OEcと、シリアルポート55からモータ駆動基板37に伝送されるチャネル#Eの信号群SOe,SCKe,SCKeと、パラレルポート54からモータ駆動基板37に伝送されるチャネル#EのラッチパルスLTeと、を中継している。   As shown in the figure, the frame-side output buffer 46A has a channel #C signal group SPOc, SPCKc, OEc transmitted from the serial port 55 to the lamp driving board 36, and a channel # transmitted from the serial port 55 to the motor driving board 37. The E 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 panel-side output buffer 46B has a channel #D signal group SPOd, SPCKd, OEd transmitted from the serial port 55 to the lamp driving board 29 and a channel #F transmitted from the serial port 55 to the motor driving board 30. The signal groups SOf, SCKf, SCKf and the latch pulse LTf of channel #F transmitted from the parallel port 54 to the motor drive board 30 are relayed.

信号切換器47は、モータ駆動基板37に伝送されるチャネル#EのシリアルクロックSCKeの最終伝送先を切り換える枠側切換器47Aと、モータ駆動基板30に伝送されるチャネル#FのシリアルクロックSCKfの最終伝送先を切り換える盤側切換器47Bとに区分される。枠側切換器47Aと、盤側切換器47Bは、各々、パラレルポート54から切換制御信号CTLe,CTfを受けて、シリアルクロックSCKe,SCKfの伝送先を切り換えている。   The signal switching unit 47 includes a frame-side switching unit 47A that switches the final transmission destination of the serial clock SCKE of the channel #E transmitted to the motor driving board 37, and the serial clock SCKf of the channel #F transmitted to the motor driving board 30. It is divided into a panel side switch 47B for switching the final transmission destination. The frame side switching unit 47A and the panel side switching unit 47B receive the switching control signals CTLe and CTf from the parallel port 54, respectively, and switch the 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 the present embodiment, the serial clocks SCKE and SCKf of the channel #E and the channel #F are transmitted to the motor drive board 37 and the motor drive board 30, respectively, but if the switching control signals CTLe and CTf are at the first level, In each motor drive board 37, 30, it is supplied to the motor driver DV, and if the switching control signals CTLe, 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 substrate 25 will be described. In addition to the nonvolatile memory (FeRAM) 26 and the clock circuit 27, the liquid crystal IF substrate 25 receives a first LVDS (Low voltage differential signaling) signal from the image processor 51. A receiving signal distributor 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 for constructing each frame of the main display device DS1 and the sub display device DS2, and for each pixel, RGB 8-bit pixel data is horizontally converted. / A vertical synchronization signal and a pixel clock (dot clock) are included and 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, and then distributes the image signal for the even pixel and the RGB signal for the odd pixel, respectively. Is 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 signal (LVDSo, LVDSe) transmitted to the main display device DS1 is greatly resistant to the dot clock frequency Fd of the original LVDS signal being halved. Since noise characteristics are improved, a large display device with high image quality (high resolution) can be driven stably. The main display device DS1 incorporates a first restoration circuit 38A that restores the RGB digital signal of the original dot clock frequency Fd based on the LVDSo and LVDSe signals, and the display screen of the main display device DS1 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 by five pairs of differential signal lines, and outputs them together as a pair of differential signal lines. This is because the vertical and horizontal dimensions of the sub display device DS2 are significantly smaller than that of the main display device DS1, but the frequency of the vertical synchronizing signal (1/60 Hz) is the same, so that the pixel clock frequency is low. This is to greatly reduce the number of wires.

本実施例では、一ピクセルを構成するRGBデータを各々8ビットで特定するので、ピクセルクロック一周期の第2のLVDS信号には、3×8ビットのRGBデータ、垂直同期信号VS、水平同期信号HS、及びデータイネーブル信号DEなどを含め合計28ビットのデータが含まれるが、信号変換器28Bでは、これら28ビットに、DCバランス用の制御データなどを加えた、合計36ビットを、一対の差動信号線に出力している。本実施例では、このような構成を採ることで、五対の信号線を、一対の信号線に大幅に抑制することができる。   In this embodiment, since RGB data constituting one pixel is specified by 8 bits each, the second LVDS signal of one cycle of the pixel clock includes 3 × 8 bits of RGB data, a vertical synchronization signal VS, and a horizontal synchronization signal. A total of 28 bits of data including HS, data enable signal DE, etc. are included. In signal converter 28B, a total of 36 bits obtained by adding control data for DC balance to these 28 bits is used as a pair of differences. Output to the dynamic signal line. In the present embodiment, by adopting such a configuration, the five pairs of signal lines can be significantly suppressed to a 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 disposed close to the sub display device DS2, and then restored to the RGB digital signal and supplied to the sub display device DS2. Is 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 the image effect, the sound effect, the lamp effect, and the accessory effect together with the external ROM 42 and the DDR memory 41 related thereto. As described above, the frame buffer FB is secured in the directly accessible storage area of the DDR memory 41, and the audio data SND transferred from the external ROM 42 when the power is turned on is stored.

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

すなわち、ある動作周期で描画バンクとして機能する第1バッファに生成された画像データは、次の動作周期では表示バンクとして機能する第1バッファから表示装置DS1,DS2に出力される。但し、このような構成のフレームバッファFBの配置位置は、何ら、DDRメモリ41に限定されず、メインメモリ56や内蔵DRAM57に配置しても良い。   That is, the image data generated in the first buffer that functions as a drawing bank in a certain operation cycle is output to the display devices DS1 and DS2 from the first buffer that functions as a display bank in the next operation 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 built-in DRAM 57.

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

ところで、外付けROM42のアクセス速度が問題になる場合には、別途、プログラムROM58を配置して、ここに演出制御プログラムや演出制御データを配置しても良い。この場合には、複合チップ40のCPUインタフェイス回路66を経由して、プログラムROM58がアクセスされる。   By the way, when the access speed of the external ROM 42 becomes a problem, a program ROM 58 may be separately arranged, and an effect control program and effect control data may be arranged here. In this case, the program ROM 58 is accessed via the CPU interface circuit 66 of the 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がアクセスされる。   Further, as an inexpensive element 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. It is also preferable to adopt a configuration in which the HSS device 59 is accessed at a high speed by the HSS (High Speed Serial) method compliant with SerialATA. In this case, the HSS device 59 is accessed via the HSS controller 70 of the 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 includes the internal circuit shown in FIG. 4, etc., and the host CPU 50 that centrally controls all the rendering operations and the units 60 to 60 that function as the image processor 51 as a whole. 63, a sound engine 52 that functions as a sound processor 52, a DMA controller 53 that realizes DMA transfer between external circuits such as the external ROM 42 and the DDR memory 41, and internal circuits, and parallel data, and parallel data Parallel input / output port (PIO) 54 that realizes transmission / reception of data, serial input / output port (SIO) 55 that realizes transmission / reception of serial data, main memory 56 having a storage capacity of about 3 MB, and storage of about 256 MB Built-in DRAM 57 having a capacity and dedicated as a destination for issuing the image command list LT A FIFO (First In First Out) structure image command buffer 71 that is used, such as command write register CMw is incorporated is a relay register to the image command buffer 71.

これら、複合チップ40の内部回路は、リセット制御回路67の動作に基づいて、各々、最適なタイミングで電源リセットされ、その後、クロック制御回路65が出力する動作クロックに基づいた速度で動作している。また、ホストCPU50の設定に基づいて機能する割込みコントローラ64によって、各種の割込み処理が実現される。なお、DDRメモリ41は、DDR3メモリコントローラ68を経由してアクセスされ、外付けROM42は、CGメモリコントローラ69を経由してアクセスされる。   These internal circuits of the composite chip 40 are each reset at the optimal timing based on the operation of the reset control circuit 67, and then operate at a speed based on the operation clock output by the clock control circuit 65. . Various interrupt processes are realized by the interrupt controller 64 that functions based on the setting 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としても使用可能である。   The main memory 56 built in 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 an 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とを有して構成されている。   Specifically, the image processor 51 built in 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. Based on a rendering engine 61 that generates image data for one frame, a CG data decoder 62 that reads and decodes compressed image data from the external ROM 42, and an operation instruction from the host CPU 50, controls each part of the image processor 51. And a VDP controller 60.

そして、CGデータデコータ62によるデコード出力は、内蔵DRAM57に一時記憶されるよう構成されている。また、VDPコントローラに内蔵されたプリローダが機能して、圧縮状態の画像圧縮データ(以下、CGデータという)を、外付けROM42から先読み(プリロード)する場合には、先読みされたCGデータ(プリロードデータ)は、内蔵DRAM57に確保されたプリロードバッファ(図7、図18参照)に一時記憶される。   The decoded output by the CG data decoder 62 is temporarily stored in the built-in DRAM 57. In addition, when the preloader built in the VDP controller functions to pre-read (preload) 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.

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

本実施例では、画像コマンドリストLTの発行先は、基本的に画像コマンドバッファ71であるが、追加的に、メインメモリ(コマンドメモリ)56や、内蔵DRAM57や、DDRメモリ41に、画像コマンドリストLT(後述する補助リストLT’)を発行することもできる。また、定型的な画像コマンドリストLT(補助リストLT’)について、予め、外付けROM42に記憶させておくこともできる。   In this embodiment, the issue destination of the image command list LT is basically the image command buffer 71. However, the image command list is additionally stored in the main memory (command memory) 56, the built-in DRAM 57, and the DDR memory 41. LT (auxiliary list LT ′ described later) can also be issued. Further, the 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 instruction described therein, the main memory 56, the built-in DRAM 57, the DDR memory 41, Alternatively, the process proceeds to the processing of the image command list LT described in the external ROM 42.

何れにしても、画像コマンドリスト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 that lists a group of drawing commands and the like that specify each frame of each display device DS1, DS2. In this embodiment, the command sequence listed in the image command list LT includes (a) a control command related to VDP (Video Display Processor) control such as an interrupt operation of the VDP controller 60, and (b) a rendering operation 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 integer multiple of 32 bits, and the above three types of image commands (a) to (c) are listed in an appropriate order, and the image command list LT is completed. When the image command list LT completed by the host CPU 50 is issued, for example, to the image command buffer 71, the host CPU 50 sequentially sets the command write register for the command sequence constituting the image command list LT one by one for each image command. Write to CMw. Then, one image command of variable length written in the command write register CMw is automatically stored in the image command buffer 71 in the form of FIFO (First In First Out) based on the internal configuration. Yes.

このような内部動作に対応して、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 a use state of the image command buffer 71 is read control. register is configured to be held in the (CRG R). Therefore, the host CPU writes 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に配布される。   In this way, the image command sequence stored in the image command buffer 71 is automatically read out by the VDP controller 60 by the FIFO (First In First Out) method, and (a The control command is distributed to the VDP controller 60, (b) the drawing command is distributed to the rendering engine 61, and (c) the decoding command is distributed to the CG data decoder 62.

そして、VDPコントローラ60、レンダリングエンジン61、及び、CGデータデコーダ62は、配布された画像コマンドリストLTに記載された画像コマンドに基づいた各々の動作を開始する。すなわち、VDPコントローラ60の制御動作に基づき、CGデータデコーダ62やレンダリングエンジン61によって、画像データの生成動作が開始され、最終的な画像データがフレームバッファFBに完成される。   Then, the VDP controller 60, the rendering engine 61, and the 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 the image data generation operation, 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 period Δ (= 1/30 seconds) as the bank switching period 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. As described above, the host CPU 50 stores the image command list in the main memory (command memory) 56, the built-in DRAM 57, or the DDR memory 41. LT can also be issued. However, in this case, the image command list LT issued in a certain operation cycle is validated in an operation cycle delayed by one or more.

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

リストバッファ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 to the image command buffer 71 by the host CPU 50. The control command list LTc issued in a certain operation cycle (T) is the first list buffer BUFa. The JUMP instruction (JUMP_BUFa) for specifying that the image command list LT should be executed and the bank flip wait 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 (Bank Flip) means switching between a drawing bank and a display bank in the frame buffer FB, and execution of the bank flip wait instruction causes the operation of the VDP controller 60 to be in a standby state until the next bank switching timing. The bank flip period (= bank switching period) may be 1/60 second corresponding to the frequency of 60 Hz of the vertical synchronization signal, but in this embodiment, sufficient operation time of each internal circuit of the composite chip 40 is ensured. Therefore, the bank flip cycle is dared to be 1/30 second (for two vertical synchronization signals). As described above, the bank flip period (bank switching period) is the same as the operation period Δ of the host CPU 50.

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

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

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

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

この先読み動作モードでは、画像コマンドリストLTの発行先は、例えば、DDRメモリ41など、十分な記憶容量を有するメモリとし、複数N個のバッファ領域を確保する必要がある。以下、画像コマンドリストLTの発行先を、例えば、DDRメモリ41として、バッファ領域を3個とする場合(トリプルバッファBUFa〜BUFc)について図7に基づいて説明する。   In this pre-reading operation mode, the image command list LT is issued to a memory having a sufficient storage capacity, such as the DDR memory 41, and a plurality of N buffer areas must be secured. Hereinafter, a case where the issue destination of the image command list LT is, for example, the DDR memory 41 and the buffer area is three (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 buffer BUFa to BUFc is used cyclically, and the image command list LT for the next cycle is issued to any of the areas (BUFa to BUFc), and the image command buffer 71 is in a bank flip wait state. A control command list LTc composed only of an instruction (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 operation cycle (T), the image command list LT that is activated one after another (T + 2Δ) is issued to the first buffer BUFa, and in the operation cycle (T + Δ), the image command list LT that is activated to T + 3Δ is the first one. In the operation cycle (T + 2Δ), an image command list LT that is activated to T + 4Δ is issued to the third buffer BUFb. The last line of the image command list LT is a jump instruction (JUMP_CFIFO) to the head address of the image command buffer 71.

また、ホストCPU50は、各動作周期において、実行されるべき画像コマンドリストLTの先頭アドレスを、VDPコントローラ60に指定する必要があり、具体的には、動作周期(T)では、画像コマンドリストLTが第1バッファBUFbに存在すると指定し、動作周期(T+Δ)では、画像コマンドリストLTが第3バッファBUFcに存在すると指定し、動作周期(T+2Δ)では、画像コマンドリストLTが第1バッファBUFaに存在すると指定している。   Further, 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 is required. Is specified in the first buffer BUFb, and in the operation cycle (T + Δ), the image command list LT is specified to exist in the third buffer BUFc. In the operation cycle (T + 2Δ), the image command list LT is specified in the first buffer BUFa. It is specified 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. The image command buffer 71 is instructed to receive a bank flip wait instruction ( A control command list LTc composed only of WAIT_BANKFLIP) is issued. Therefore, the VDP controller 60 cyclically reads the triple buffers BUFa to BUFc, executes necessary processing, and then ends the processing by a bank flip wait instruction (WAIT_BANKFLIP). Since the control command list LTc always has the same contents, it is not always necessary to issue it every time, and it 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 pre-read 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 cycle (T) is interpreted by the VDP controller 60 in the operation cycle (T + Δ), but the decode command DCp instructing the image command list LT to perform preload transfer is detected. In this case, the preloader built in the VDP controller 60 reads necessary CG data from the external ROM in the operation cycle (T + Δ), and reads the read CG data into the preload buffer BUFp secured in the built-in DRAM 57. Store (CG data transfer period Δ).

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

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

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

続いて、図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, a sound engine (sound processor) 52 built in the composite chip 40 will be described with reference to FIG. 8. As shown in FIG. 8, the sound engine 52 has a plurality of accessible from the host CPU 50 and the VDP controller 60. A command register (RGi) 80, a sound control module 81 that operates intermittently to control internal operations, and compresses compressed audio phrase data read from the DDR memory 41 to generate one or more channels of digital audio ( PCM data), a multi-effector 85 that mixes and processes the multi-channel digital audio generated by the main generator 84, and an output from the multi-effector 85, which is necessary for the three transmission lines. Audio information is digital amplifier An audio interface 86 to be output to the 3, is configured with a, and is connected to such a host CPU50 via the relay register 82 and a command interface unit 83 relays the access operation to the command register RGi.

ここで、サウンドコントールモジュールSCM(以下、SCM81と略すことがある)には、一群のコマンドレジスタRGi〜RGjに対する、一連の設定動作を自動的に実行するシーケンサSEQj(Sequencer )と、シンプルアクセスコントローラSACi(simple Access Controller)とが、各々、複数個設けられている。一群のコマンドレジスタRGi〜RGjへの設定値を自動的に設定する点では、何れの動作も同じであるが、一まとまりの設定動作(ステップ動作)を終えた後、所定時間を待機して、次の一まとまりの設定動作(ステップ動作)に移行する間欠設定動作や、一連の設定動作を任意回数だけ繰返す反復設定動作などが可能である点で、シーケンサSEQの設定動作の方が、サウンドコントールモジュールSCMよりやや高度化されている。   Here, the sound control module SCM (hereinafter 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. A plurality of (simple Access Controllers) are provided. All the operations are the same in that the set values in the group of command registers RGi to RGj are automatically set, but after finishing a set of setting operations (step operation), waiting for a predetermined time, The setting operation of the sequencer SEQ is more suitable for the sound control in that an intermittent setting operation that shifts to the next set of setting operations (step operation) or a repeated setting operation that repeats a series of setting operations as many times as possible is possible. Slightly more sophisticated than 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 a cycle that is an integral multiple of the operation cycle of the SCM 81. As will be described later, the operation content of the simple access controller SAC is specified by the SAC code number of 0 to N, but the regular SAC operation specified by the final SAC code number (N) is Internally controlled so that it is executed periodically and repeatedly.

そこで、本実施例では、この定期SAC動作によって、マルチエフェクタ85におけるイコライザ機能やコンプレッサ機能を繰り返し再設定するようにしている。そのため、ノイズなどの影響で、仮に、音質に関する設定内容が変化しても、その後の定期SAC動作に基づいて、開発者の意図した音質が確実に復元されることになる。なお、後述するように、本実施例では、SCM81の動作周期は32/48mSであり、この動作周期の512回毎に、定期SAC動作が実行される。   Therefore, in this embodiment, the equalizer function and the compressor function in the multi-effector 85 are repeatedly reset by this periodic SAC operation. Therefore, even if the setting content related to the sound quality changes due to the influence of noise or the like, the sound quality intended by the developer is surely 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 periodic SAC operation is executed 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 each of the simple access controller SACi capable of such periodic SAC operation and the sequencer SEQj having a slightly advanced setting operation function effectively, the external ROM 42 has the operation of the simple access controller SAC (periodic SAC operation is performed). A plurality of types of SAC codes that define the operation of the sequencer SEQ are stored. 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, and 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 data strings that are a set of a 1-byte register number specifying the command register RGi and a 1-byte set value for the command register RGi. Yes, it is completed with a predetermined end code (FFFFh). However, the SEQ code includes an interruption code (FFFEh) indicating completion of a group of setting operations (step operations) in order to realize the above-described intermittent setting operation and repeated setting operation.

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コード)と称することがある。   The SEQ code is composed of a series of M SEQ data (SEQ code = M × SEQ data), and the SAC code is composed of a series of N SAC codes (SAC code = N × SAC data). Each of the SEQ data and SAC data, which is a unit of the SEQ code and SAC code, is a set of a 1-byte register number for specifying the command register RGi and a set value of 1-byte length for the command register RGi. It is. As described above, the external ROM 41 stores a plurality of types of SEQ codes and SAC codes each having such a configuration. In this specification, these are stored as SAC code groups (a group of SEQ codes). , And may be referred to as a 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 the audio phrase data for realizing a unit of audio production. The voice phrase data that realizes one unit of sound production is specified by one phrase number, and one SAC code or one SEQ code that is completed with an end code (FFFFh) is also a single SAC code number, It is specified by one SEQ code number.

そして、SEQj起動用の一群のコマンドレジスタRGjに、SEQコード番号やその他の動作条件を設定すれば、シーケンサSEQjを起動させることができる。また、SACi起動用の一群のコマンドレジスタRGiに、SACコード番号やその他の動作条件を設定すれば、シンプルアクセスコントローラSACiを起動させることができる。但し、定期SAC動作については、自動的に起動するので、SAC起動処理が不要である。   The sequencer SEQj can be started by setting a SEQ code number and other operating conditions in a group of command registers RGj for starting SEQj. If a SAC code number and other operating conditions are set in a group of command registers RGi for starting SACi, the simple access controller SACi can be started. 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 audio phrase data that realizes a single audio production is 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 that high-speed access of audio phrase data is possible, and a high-quality audio phrase with a sampling frequency of 48 kHz or higher. Can handle data.

以上を踏まえて、次に、サウンドコントールモジュール81(SCM81)について説明する。実施例のSCM81は、間欠的に動作を開始して、サウンドエンジン52の内部動作を制御している。具体的には、SCM81は、音声フレーズデータのサンプリング周波数(48kHz)に対応して、例えば、サンプリング周期(1/48kHz)の32倍であるサウンドエンジン動作周期(32/48mS)毎に、コマンドレジスタRGiの設定値を更新可能に構成されており、もし設定値が更新されると、更新後のコマンドレジスタRGiの設定値に基づいた内部動作が開始される。   Based on the above, next, the sound control module 81 (SCM 81) will be described. The SCM 81 of the embodiment controls the internal operation of the sound engine 52 by starting operation intermittently. Specifically, the SCM 81 corresponds to the sampling frequency (48 kHz) of the voice phrase data, for example, at every sound engine operation cycle (32/48 mS) that is 32 times the sampling cycle (1/48 kHz). The setting value of RGi can be updated. 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ビット又は複数ビットのフラグ値によって内部動作状態が特定される。   The command registers RGi referred to by the SCM 81 are each configured to be specified by a 1-byte register number. Each command register RGi includes a sequencer SEQ and a simple access controller SAC. A setting value that defines the internal operation is set, or status information indicating the internal operation state of the sound engine 52 is stored. Note that the internal operation may be defined based on the set values in the plurality of command registers RGi to RGj, such as when the sequencer SEQ or the simple access controller SAC described above is started, The internal operation state is specified by a 1-bit or multi-bit flag value of the status information.

次に、メインジェネレータ84には、DDRメモリ41から読み出した複数の圧縮状態のフレーズデータを独立的に伸張可能な複数チャンネルの音声デコーダと、音声デコーダの複数チャンネルのデコード出力を受けて、伸張状態の各フレーズデータについて、ボリューム設定や音量パン設定などを実行可能なトーンジェネレータが含まれている。   Next, the main generator 84 receives a plurality of audio decoders that can independently decompress a plurality of compressed phrase data read from the DDR memory 41, and a plurality of channels decoded by 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 )のデジタル音声にミキシングするミキサと、デジタルフィルタ処理によって所望の周波数特性を実現するイコライザ機能や入出力ゲイン特性を変化させるコンプレッサ機能を実現するエフェクタと、最終音量を規定するトータルボリュームとが含まれている。   The multi-effector 85 also has a mixer that mixes digital audio of multiple channels generated by the tone generator into digital audio of up to three channels (R0 / L1 + R1 / L1 + SUB0 / SUB1), and a desired frequency by digital filter processing. It includes an equalizer function that realizes the characteristics and an effector that realizes a compressor function that changes the 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 includes audio signal lines SD0 to SD2 in which the left and right channels (R / L) of each channel are collected and clock signals for digital audio of up to three channels (R0 / L1 + R1 / L1 + SUB0 / SUB1). The signal is output to three lines: a line SCLK and a control signal line LRO that specifies which of the left and right channels (R / L) is being transmitted. For example, if there are three digital amplifiers 43 that receive audio signals of the first channel (R0 / L0), the second channel (R1 / L1), and the third channel (SUB0 / SUB1), the audio interface The transmission paths between the face 86 and the digital amplifier 43 are each three lines. However, in the present embodiment, the audio signal of the third channel (SUB0 / SUB1) is not used, and the second channel is set to monaural audio (R1 = L1).

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

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

以下、この点を図9(a)に基づいて更に説明すると、中継レジスタ82は、詳細には、アクセス対象となるコマンドレジスタRGiを特定する1バイト長のレジスタ番号を書込む第1中継レジスタMCRと、そのレジスタ番号のコマンドレジスタRGiに設定すべき設定値を書込む第2中継レジスタMCDと、第1中継レジスタMCRと第2中継レジスタMCDの各1バイトの要部データが転記される転記レジスタTRNと、に区分されている。   Hereinafter, this point will be further described with reference to FIG. 9A. More specifically, the relay register 82, in detail, the first relay register MCR for writing a 1-byte register number specifying the command register RGi to be accessed. A second relay register MCD that writes a setting value to be set in the command register RGi of the register number, and a transfer register to which the main data of each 1 byte of the first relay register MCR and the second relay register MCD is transferred 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 transfer register TRN is 2 bytes in length, and the first and second relay registers MCR and MCD are each 4 bytes in length. Each 1-byte portion (register number / setting value), which is a main part of each relay register MCR, MCD, is connected to a transfer register TRN having a length of 2 bytes as a whole, and a write signal to the relay registers MCR, MCD Based on (WR * CS), it is configured to be automatically transcribed. Note that 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. 9B is a diagram for explaining the transfer operation, and shows the first write signal (WR * CS) indicating the WRITE access to the first relay register MCR and the WRITE access to the second relay register MCD. A second write signal (WR * CS) and a logical OR signal of the first write signal and the second write signal are shown. In this embodiment, one byte (register number or set value) of the transfer register TRN is based on the preceding write signal (WR * CS) generated first out of the first write signal and the second write signal. The WR pointer is updated as the transfer operation is executed.

そして、その後に発生する後続書込み信号(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 transfer operation of the remaining 1 byte (register number or set value) to the transfer register TRN is executed, and the subsequent write signal (WR * CS) In synchronization with the subsequent edge, 2-byte data (register number + setting value) of the transfer register TRN is written into the voice command buffer 83 having a ring buffer structure. The writing destination of the voice command buffer 83 is specified by the WR pointer, and the reading destination is specified by the RD pointer. The number of stages of the voice command buffer (voice command FIFO) 83 is, for example, 511 stages (2 bytes × 511).

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

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

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

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

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

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

すなわち、ホスト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 in the first relay register MCR and writes the system control setting value in the second relay register MCD (system control access), The system control set value is immediately written into the corresponding command register RGi. When the host CPU 50 makes a READ access to a predetermined command register RGi, the status information read from the command register RGi written in the first relay register MCR is acquired in the second relay register MCD.

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

なお、音声リストバッファLBUFは、メインメモリ56、内蔵DRAM57、又はDDRメモリ41に予め確保されている必要がある。また、音声コマンドリストSLTは、コマンドレジスタRGiへの設定動作が必要となるタイミングで発行される。   The audio list buffer LBUF needs to be secured in advance in the main memory 56, the built-in DRAM 57, or the DDR memory 41. Also, the voice command list SLT is issued at a timing when 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 described at the top of FIG. 8, the voice command list SLT is a two-byte combination of the register number (1 byte) of the command register RGi and the set value (1 byte) in the command register RGi. This is a voice command sequence in which long voice commands are listed, and the number of voice commands listed is defined at the top thereof.

そして、第2動作モード(簡易制御モード)では、音声リストバッファLBUFに発行された音声コマンドリストSLTは、VCPコントローラ60によって解読され、各音声コマンドが規定するレジスタ番号のコマンドレジスタRGiに、その音声コマンドが規定する設定値が設定される。すなわち、第2動作モードでは、SCM81の動作をVDPコントローラ60が代用するので、シンプルアクセスコントローラSACやシーケンサSEQが機能することがない。   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 voice command list SRG specified by each voice command is sent to the voice register RGi. The setting value specified by the command is set. That is, in the second operation mode, since the VDP controller 60 substitutes 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, the VCP controller 60 that has detected the voice command that defines the SAC activation operation or the voice command that defines the SEQ activation operation, the group of SAC data defined by the SAC code number, or the group of SAC data defined by the SEQ code number. The 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 the 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 the issue of the image command list LT. . The issued voice command list is read by the VDP controller 60 after one operation cycle (Δ = 1/30 seconds) which is a bank flip cycle, and the setting operation to the command register RGi described above 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 has a drawback that it is inferior in speed while being simple. Therefore, if this time delay becomes a problem, a group of voice command strings (voice command list SLT) is stored in the voice command list register CRG WSL of the control register CRG built in the VDP controller 60 instead of the command list buffer LBUF. ) To execute the second operation mode.

実施例の音声コマンドリストレジスタCRGWSLは、1040バイト長であり、音声コマンド(2バイト)を、511個程度列記することができる。先に説明した通り、サウンドエンジン52に内蔵された音声コマンドバッファ(音声コマンドFIFO)83の段数は、例えば、511段(2バイト×511)であるので、ホストCPU50の書込み用の制御負担という意味では、音声コマンドリストレジスタCRGWSLと、音声コマンドバッファ83とは同等である。 The voice command list register CRG WSL of the embodiment is 1040 bytes long, and about 511 voice commands (2 bytes) can be listed. As described above, since the number of stages of the voice command buffer (voice command FIFO) 83 built in the sound engine 52 is, for example, 511 stages (2 bytes × 511), it means the control burden for writing by the host CPU 50. 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, after the host CPU 50 issues the voice command list SLT to the voice command list register CRG WSL , the VDP controller 60 only starts WRITE access to the sound engine 52. The 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. 10A shows the operation when the power is turned on, and FIG. 10B shows the operation when the drive data of the lamp effect and the accessory effect is updated. The DMA controller 53 of the embodiment has 14 channels (DMA channel # 0 to DMA channel # 13) that can operate independently, but in this embodiment, the channel # 0 is made to function when the power is turned on, 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 (1) the start address of the transfer source in the state where the DMA channel # 0 is specified as the DMA use channel, and (2) the one-time read size (bytes) from the transfer source to the DMA controller 53. Length), (3) number of READ transfers to the DMA controller 53, (4) start address of the transfer destination, (5) one-time write size (byte length) from the DMA controller 53 to the transfer destination, and (6) to the transfer destination. First, the operation contents such as the number of WRITE transfers are 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 The transfer operation of the read size and the write size is repeated while appropriately updating the address, 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 to the set state. It has become.

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

次に、図10(b)は、ランプ演出や役物演出の駆動データ更新時におけるDMAコントローラ53の動作を説明する図面である。本実施例では、ランプ演出は、3mS毎にランプ駆動データが更新されることで進行し、役物演出は、1mS毎にモータ駆動データが更新されることで進行するよう構成されている。そして、ランプ駆動データやモータ駆動データは、各々、外付けROM42のランプ駆動データテーブルLMPc,LMPdや、モータ駆動データテーブルMOTe,MOTfに不揮発的に格納されており、これらのデータテーブルLMP,MOTが、DMAコントローラ53の転送元となる。   Next, FIG. 10B is a diagram for explaining the operation of the DMA controller 53 at the time of updating the drive data of the lamp effect and the accessory effect. In the present embodiment, the lamp effect is advanced by updating the lamp drive data every 3 mS, and the accessory effect is advanced by updating the motor drive data every 1 mS. The lamp drive data and the motor drive data are stored in a nonvolatile manner in the lamp drive data tables LMPc and LMPd of the external ROM 42 and the motor drive data tables MOTe and MOTf, respectively. , 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 the effect effect. #C to #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のシリアル出力ポートからシリアル送信されるようになっている。   In addition, the channel #C to channel #F of the serial port 55 are provided with transmission FIFOc to transmission FIFOOf configured by 64 stages of storage areas in units of 16 bits, respectively, and the driving stored in the transmission FIFOc to transmission FIFOOf 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, data accumulation in the transmission FIFOc to the transmission FIFOOf is via the relay register ITM (data register) arranged in the interface part of each channel #C to #F, and writing to the relay register The data is automatically stored in the transmission 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 channel #C to the channel #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 drive data of the data table LMPc and the data table LMPd and the motor drive data of the data table MOTe and the data table MOTe are serially transmitted from the external ROM 42 via the DMA channel # 10 to the DMA channel # 13, respectively. DMA transfer is performed to the relay register ITM of channels #C to #F of the 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 to # 13) is executed every 32 bytes, while the DMA controller 53 (# 10 to # 13) transfers to the serial port 55 (#C to # 13). The transfer of #F) to the relay register ITM is executed every two bytes. That is, the DMA controller 53 (# 10 to # 13) transfers the 32 bytes received in one transfer divided into 16 times.

また、書込み転送の実行タイミングを規定する閾値が、予め、ホストCPU50によって各シリアルポート55(#C〜#F)に設定されており、送信FIFO(送信FIFOc〜送信FIFOf)の蓄積データ量が所定の閾値以下になると、シリアルポート55からDMAコントローラ53にDMA_Request信号が出力され、DMAコントローラ53は、DMA_Acknowledge信号を返信して、一単位(2バイト長)の書込み転送を実行している。なお、これらのHandshake 動作に、ホストCPU50が関与する必要がないので、DMAコントローラの転送動作を開始させたホストCPU50は、その転送動作を待機するだけで足りる。   In addition, a threshold value defining the execution timing of write transfer is set in advance in each serial port 55 (#C to #F) by the host CPU 50, and the accumulated data amount of the transmission FIFO (transmission FIFOc to transmission FIFOf) is predetermined. The 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 and executes a unit (2 byte length) write transfer. Since the host CPU 50 does not need to participate in these handshake operations, the host CPU 50 that has started the transfer operation of the DMA controller need only 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 port 55 (#C to #F) and the serial port 55 (#C to #F) will be described with reference to FIGS. First, based on FIG. 11A 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 are operated. Is set to operate in the 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 conformity with the Motorola SPI. When the SPI module functions, the chip select (CS) and serial communication are performed. A clock (SCK), serial input data (SI), and serial output data (SO) can be used. However, in this embodiment, the chip select signal (CS) for selecting the slave device is not used. In the following description, a case where a serial transmission operation is executed in the SPI communication mode is referred to as an SPI transmission mode, and a case where a serial reception operation is executed in the SPI communication mode is referred to as an SPI reception mode.

SPI送信モードで機能するシリアルポート55のチャネル#Eと#Fでは、各チャネル(#E,#F)の送信FIFOに蓄積されたシリアル出力データ(モータ駆動データ)が、シリアルクロックSCKに同期して、シリアル送信される。そして、送信FIFOの全てのモータ駆動データがシリアル送信され終わると、各チャネル(#E,#F)のステイタスレジスタ(不図示)が送信完了状態にセットされるようになっている。なお、図10に関して説明した通り、送信FIFOには、Handshake 方式で、モータ駆動データテーブルMOTe,MOTfのモータ駆動データが自動的に転送される。   In channels #E and #F of the serial port 55 functioning in the SPI transmission mode, serial output data (motor drive data) accumulated in the transmission FIFO of each channel (#E, #F) is synchronized with the serial clock SCK. Serially transmitted. When all the motor drive data of the transmission FIFO is serially transmitted, the status register (not shown) of each channel (#E, #F) is set to the transmission complete 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 LED driver (denoted as DR IF Module) functions in addition to the above-described SPI module. In this LED drive 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 drive data SPO) is being serially transmitted. In this LED drive mode, an operation of outputting a latch signal (LD) every time data transmission of one block is completed is possible, but this embodiment does not adopt 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 driving mode, serial output data (lamp driving data) accumulated in the transmission FIFO of each channel (#C, #D) is synchronized with the serial clock SCK. Thus, serial transmission is performed sequentially, and the OE signal maintains an active level during the 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 of the transmission FIFO has been serially transmitted, the status register (not shown) of each channel (#C, #D) is set to the transmission complete state. It is like that. Note that the lamp drive data of the lamp drive data tables LMPc and LMPd are automatically transferred to the transmission FIFOs of the channels #C and #D by the Handshake method.

以上を踏まえて、モータ駆動データのシリアル伝送について説明を追加する。図11(c)は、モータ駆動データテーブルMOTe,MOTfの構造を図示しており、図11(d)と図11(e)は、モータ駆動を説明する図面である。   Based on the above, a description of serial transmission of motor drive data will be added. FIG. 11C illustrates the structure of the motor drive data tables MOTe and MOTf, and FIGS. 11D and 11E are diagrams for explaining 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 driver DV (see FIG. 12A) disposed on the frame-side and board-side motor drive boards 37 and 30. A plurality of motor drivers DV1 to DVn are arranged on the motor drive boards 37 and 30, respectively. As shown in FIGS. 12 (a) to 12 (b), each motor driver DVi is connected in series. It has four shift registers SR1 to SRE4 and drivers OUT1 to OUT4 that drive the accessory motor Mi by receiving the output of each shift register.

そのため、シリアルポート(#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 is sequentially transferred to the shift register SRi. In this embodiment, motor drive data corresponding to the number N of motor drivers DVi is 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 made to acquire motor drive data, and the accessory motors M1 to Mn are stepped up.

役物モータM1〜Mnは、例えば、ステッピングモータで構成されており、図11(d)と図11(e)には、ユニポーラ型ステッピングモータを、例えば、2相励磁する場合が示されている。このような構成の場合、役物モータMiの一個に伝送されるべきモータ駆動データは4ビットであり、枠側のモータ駆動基板37にK個の役物モータが配置される本実施例では、モータ駆動データ全体で4×Kビットとなる。また、盤側のモータ駆動基板30にL個の役物モータが配置される本実施例では、モータ駆動データ全体で4×Lビットとなる。   The accessory motors M1 to Mn are constituted by, for example, stepping motors, and FIGS. 11D and 11E show a case where the unipolar stepping motor is excited, for example, in two phases. . In such a configuration, the motor drive data to be transmitted to one of the accessory motors 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 total motor drive data is 4 × K bits. In this embodiment in which L accessory motors are arranged on the board-side motor drive board 30, 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 and MOTf to the DMA controller 63 (channels # 12 and # 13) and the DMA controller 63 (channels # 12 and # 13) are performed. Data transfer from the serial port 55 to the serial ports 55 (channels #E and #F) must be performed in units of a predetermined byte.

本実施例では、例えば、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 motor drive data to be DMA transferred needs to be an integral multiple of 16 bits. Therefore, in this embodiment, by adding dummy data DUMMY of necessary bits (X, Y) to the head of the motor drive data tables MOTe, MOTf, the value of 4 × K + X or the value of 4 × L + Y is 16 bits. It is an integer multiple of.

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

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

もっとも、このような動作は、複数個の役物モータが、規則的に同期回転する単純な動作に過ぎず、実際の役物演出では、特定の役物モータだけが不規則に移動する場合も多い。したがって、実際には、役物演出の種類毎に、多数のモータ駆動データテーブル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 rotate regularly and synchronously, and in an actual accessory effect, only a specific accessory motor may move irregularly. Many. Therefore, in actuality, a large number of motor drive data tables MOTi are prepared for each type of accessory effect, and the host CPU 50 selects the motor drive table MOTi to be referenced in accordance with the accessory effect at that time. Then, the motor drive data (4 × K + X bit or 4 × L + Y bit) to be serially output is specified, and the DMA transfer operation and the serial transmission operation are started.

以上、SPI送信モードについて説明したが、シリアルポート55のチャネル#Eと#Fは、SPI受信モードで機能するタイミングもある。この場合は、シリアルデータの受信個数を、予めチャネル#Eと#Fの該当レジスタに設定した状態で、受信モードの動作を開始する。すると、受信データ個数に対応するシリアルクロックSCKが送信されるので、シリアルクロックSCKに同期してシリアルデータ(センサ信号など)を受信し、所定単位毎に、パラレルデータとしてホストCPU50が取得することになる。   Although the SPI transmission mode has been described above, the channels #E and #F of the serial port 55 also have a timing to function in the SPI reception mode. In this case, the operation in the reception mode is started with the number of serial data received 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 the 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. Note that one or a plurality of signal acquisition circuits GET having the illustrated configuration are arranged in series on the frame side and the board side. In any case, one signal acquisition circuit GET includes eight shift registers, and 8-bit parallel signals (A to H) are supplied to the parallel terminals OD of the shift registers. . Each shift register receives the acquisition pulse LT (LTe, LTf) in common, so that an 8-bit parallel signal is acquired in the eight shift registers. As shown in the figure, since the eight shift registers are connected in series, each time the serial clock SCK is received, its own held data is transferred to the downstream shift register.

枠側及び盤側の信号取得回路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, all the signal acquisition circuits GET on the frame-side or board-side are first connected from the parallel port 54. The acquisition pulses LTe and LTf are output, and then the necessary number of serial clocks SCK are output, so that necessary data is serially received.

なお、この実施例では、シリアルポート55のチャネル#Eと#FをSPI送信モードと、SPI受信モードで使用するので、パラレルポート54から枠側と盤側の切換器47A,47Bに対して、切換制御信号CTLe,CTfを出力して、シリアルクロックSCKe,SCKfの伝送先を切り換えている。   In this embodiment, since the channels #E and #F of the serial port 55 are used in the SPI transmission mode and the SPI reception mode, from the parallel port 54 to the frame side and panel side switches 47A and 47B, 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, by switching the internal circuits of the switching units 47A and 47B by the switching control signals CTLe and CTf, the serial clocks SCKE and SCKf of the channels #E and #F that function in the SPI transmission mode are transmitted to the motor driver DV. The serial clocks SCKE and SCKf of channels #E and #F that function in the SPI reception mode are transmitted to the frame side and board side signal acquisition circuits GET and GET.

続いて、図13に基づいて、LED駆動モードで機能するシリアルポート55のチャネル#Cと#Dについて、図13に基づいて説明する。この実施例では、枠側と盤側のランプ駆動基板3629には、図13(b)に示すランプドライバDRが各々複数個搭載されている。   Next, channels #C and #D of the serial port 55 functioning 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 the lamp driving boards 3629 on the frame side and the board side.

このランプドライバ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 be able to drive eight (three in total) RGB LED lamps of RGB three colors, and as shown in FIG. 13B, a total of 24 output terminals (LEDR_1-8, LEDG_1). -8, LEDB_1-8), a 5-bit address terminal (A0 to A4) that defines a unique slave address for each element, a clock terminal SCLK that receives the serial clock SPCKc / SPCKd, and lamp drive data SPOc / SPOd It has a serial terminal SDATA for receiving and a control terminal SDEN for receiving an operation control signal 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. 13A, the clock terminal SCLK, the serial terminal SDATA, and the control terminal SDEN are commonly supplied to all the lamp drivers DR1 to DRn. In FIG. 13A, address signals 00000b to 11111b are supplied to address terminals (A0 to A4) of 32 lamp drivers DRi, and slave addresses of 32 lamp drivers DRi are 0. An example of ~ 31 is 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)が付与されている。   The lamp driver DR is configured to perform gradation control (Brightness Control) of light emission luminance for each of 24 LED lamps (eight RGB colors), and a duty ratio defined by 8 bits. A total of 30 built-in registers (R1 to R30) are built in, including 24 that can be set. Each built-in register (R1 to R30) needs to be set with 8-bit length setting data such as a duty ratio for defining a gradation, and each built-in register has an 8-bit register address (00h to 1Dh). ).

したがって、ランプドライバ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 specified with the slave address of the lamp driver DR specified. Necessary setting data must be transmitted.

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

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

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

これらの動作によって、先頭の内蔵レジスタ(R0)への設定動作は完了するが、その後もシリアル伝送を継続すると、スレーブアドレスが内部動作よってインクリメントされ、その後、シリアル伝送された設定データが8ビットに達する毎に、各内蔵レジスタ(R1〜R29)に、設定データが設定されることになる。   With these operations, the setting operation to the first built-in register (R0) is completed, but if serial transmission is continued thereafter, the slave address is incremented by the internal operation, and then the serially transmitted setting data is changed to 8 bits. Each time it reaches, setting data is set in each of the built-in registers (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 in order to write setting data to one lamp driver DR. The number of 256 is the same as the number of bits of transmission data, and is the total number of 30 × 8 bits for 8 bits of slave addresses, 8 bits of register addresses, and 30 built-in registers. Corresponding to the above operation, channel #C and channel #D of the serial port 55 need to operate as shown in FIG.

ところで、実施例の複合チップでは、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 a bit length of one sample which is one unit of serial transmission. In the LED drive mode, the OEc / OEd signal is output as an Output Enable signal in units of one frame so as to correspond to the above-described three-wire transmission method. It is necessary to specify the number.

図13(a)に示す通り、OEc/OEd信号は、ランプドライバDRの制御端子SDENに供給されており、このSDEN端子がHレベルであることが、ランプドライバDRの動作可能条件となる。そして、先に説明した通り、1個のランプドライバDRに伝送されるべきデータの総量は、256ビットである。   As shown in FIG. 13A, the OEc / OEd signal is supplied to the control terminal SDEN of the lamp driver DR, and the operation condition of the lamp driver DR is that the SDEN terminal is at the H level. 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 is 16 bits long and 16 samples (each 16 bits long) constitute one frame. FIG. 11B illustrates this relationship, and the lamp drive data tables LMPc and LMPd store lamp drive data to be transmitted to each lamp driver DR in units of 16 × 16 bits. . Since the lamp effect proceeds with time, lamp drive data tables LMPc and LMPd corresponding to the operation mode are prepared at the minimum.

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

すなわち、モータ駆動データテーブル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), and the serial port 55 is transferred from the DMA controller 63 (channels # 10 and # 11). For the transmission FIFO of (channel #C, #D), a DMA transfer operation is executed in units of 2 bytes. When serial transmission of the lamp driving data of the transmission FIFO is completed, the status register (not shown) of each channel (#C, #D) is set to the transmission complete state.

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

また、図13では、3線伝送方式について使用したが、ランプドライバの制御端子SDENを使用しない2線伝送方式を採用するのも好適である。この場合には、制御端子SDENを使用しないので、図14(a)に示す通り、OEc/OEd信号は活用されない。   In FIG. 13, the three-wire transmission method is used. However, it is also preferable to adopt a two-wire transmission method 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 signal is not utilized as shown in FIG.

この2線伝送方式では、伝送されるシリアルビット列が、図14(c)に示すビット態様のスタート条件を満たすと、各ランプドライバDRiがアクティブ状態となる。但し、スタート条件(9ビット)、スレーブアドレス(8ビット)、レジスタアドレス(8ビット)、設定データ(8ビット)の区切り毎にBLANK ビットを出力する必要がある。そして、BLANK ビットの立ち上がりエッジで、各ビット列がランプドライバDRiに把握され、30個の内蔵レジスタの何れかにに設定データが取得される、   In this two-wire transmission method, when the serial bit string to be transmitted satisfies the start condition of the bit mode shown in FIG. 14C, each lamp driver DRi becomes active. However, it is necessary to output the BLANK bit for each break of the start condition (9 bits), slave address (8 bits), register address (8 bits), and setting data (8 bits). Then, at the rising edge of the BLANK bit, each bit string is grasped by the lamp driver DRi, and 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 the operation mode of the two-wire transmission method, after transmitting the register address of the first built-in register, the register address is automatically incremented by the internal operation, so that all the built-in registers (30 pieces of one lamp driver DR) In order to set the setting data in (), it is necessary to transmit serial data of 10 + 9 + 9 + 9 × 30 = 298 bits. Thus, in the case of the two-wire transmission method, the number of transmission data to one lamp driver DR increases by the start bit (9 bits) and the BLANK bit, but for a plurality of lamp drivers, There is an advantage that serial data transmission can be completed 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 output the OE signal again every 256-bit serial transmission to one lamp driver DR, but in the case of the two-wire transmission method, N lamp drivers DR1. With respect to .about.DRn, a total of 298.times.N bits of data can be output at once, so the control burden on the host CPU 50 is reduced.

図14(d)は、LED駆動モードで機能するシリアルポート55のチャネル#Cや#Dにおいて、例えば、32個のランプドライバDR1〜DR32を駆動する場合を図示しており、合計9536ビットのデータが、1サンプルを構成する16ビット毎に、596個のサンプルデータとして、シリアル伝送される状態を示している。   FIG. 14D 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. Shows the state of serial transmission as 596 sample data for every 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. 11A), and the number of transfers from the DMA controller 63 to the transmission FIFO of the serial port 55 is 596 times. In the two-wire transmission system, as described above, the OEc / OEd signal is not used.

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

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

そして、DMAコントローラ63からシリアルポート55の送信FIFOに対して、187回(=2992/16)のデータ転送が繰り返されつつ、合計2992ビットのシリアル伝送が一気に実行される。以上の通り、ダミービットDUMMY を付加することで、ランプドライバDRの配置個数に拘らず、シリアルポート55の送信FIFOへのDMA転送を活用したシリアル伝送が可能となる。なお、この点は、LED駆動モードであるか、SPI通信モードであるかを問わない。また、ダミービットDUMMY は、スタート条件を満たさないビット列であれば任意である。   Then, a total of 2992-bit serial transmission is executed at a time while the data transfer from the DMA controller 63 to the transmission FIFO of the serial port 55 is repeated 187 times (= 2992/16). As described above, by adding the dummy bit DUMMY, serial transmission utilizing DMA transfer to the transmission FIFO of the serial port 55 becomes possible regardless of the number of lamp drivers DR arranged. Note that this point does not matter whether the mode is the LED drive mode or the SPI communication mode. The dummy bit DUMMY is optional 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))と、を有して構成されている   As described above, the circuit configuration and the circuit operation of the effect control unit 22 have been mainly described. Next, the control operation of the effect control unit 22 will be described with reference to FIGS. The effect control unit 22 includes a main process (FIG. 15A) executed after power-on, a reception interrupt process (FIG. 15B) activated when receiving a control command CMD from the main control unit 21, and Timer interrupt processing (FIG. 6 (a)) that is repeatedly started every 1mS.

図15(a)は、電源投入後のホストCPU50の動作を示しており、先ず、複合チップ40の内蔵レジスタについて初期設定処理を実行して、その後の演出制御の準備を完了させる(ST10)。図15(b)は、初期設定処理の一部を図示したものであり、先ず、DMAコントローラ63(チャネル#0)を使用して、外付けROM42に保存されている音声データSNDを、DDRメモリ41にDMA転送している。   FIG. 15A shows the operation of the host CPU 50 after the power is turned on. First, the initial setting process is executed for the built-in register of the composite chip 40, and the preparation for the subsequent production control is completed (ST10). FIG. 15B illustrates a 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 converted into the DDR memory. 41 is 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. 10A, for the DMA transfer of the voice data SND, first, the DMA channel # 0 is specified as the DMA use channel, and the operation parameters necessary for the MDA transfer are set to DMA. The corresponding register of the controller 63 is set (ST1). The operation parameters to be set include (1) the leading address of the transfer source in the external ROM 42, (2) the size of reading once (byte length) from the transfer source to the DMA controller 53, and (3) the DMA controller from the external ROM 42. READ transfer count to 53, (4) start address of transfer destination in DDR memory 41, (5) one-time write size (byte length) from DMA controller 53 to transfer destination, (6) DMA controller 53 to DDR memory 41 The number of WRITE transfers to is included.

次に、ホスト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 processing of step ST1, and the transfer source and transfer destination addresses are set. While appropriately updating, the transfer operation of the read size and the write size is repeated.

このDMA転送に、ホストCPU50が関与する必要はないので、続いて、外付けROMからCGデータの先読み動作(プリロード)を実行する場合には、ホストCPU50は、VDPコントローラ60の該当レジスタにその旨を設定する(ST2)。次に、ホストCPU50は、サウンドエンジン52に対して、定期SAC動作を指示する(ST4)。   Since there is no need for the host CPU 50 to participate in this DMA transfer, the host CPU 50 subsequently stores the fact in the corresponding register of the VDP controller 60 when executing a pre-read operation (preload) of CG data from the external ROM. 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 periodic SAC operation executed in the present embodiment is an operation of repeatedly resetting the equalizer function and the compressor function in the multi-effector 85, and the sound engine 52 that has received the setting in step ST4 thereafter , The sound quality setting operation is repeated every 32/48 × 512 mS. Since the sound engine 52 includes a plurality of simple access controllers SAC, it is also preferable to set a plurality of types of regular SAC operations.

初期設定処理(ST10)には、その他、バンクフリップ周期(1/30秒)など、VDPコントローラ60に関する動作パラメータの設定(ST5)が含まれているが、これらについては、図17〜図19に関連して後述する。そして、最後に、電源投入後に開始される初期演出用の演出シナリオを特定して初期処理が終了する(ST6)。   In addition, the initial setting process (ST10) includes setting of operation parameters related to the VDP controller 60 (ST5) such as a bank flip period (1/30 second). These are shown in FIGS. This will be described later. Finally, an effect scenario for an initial effect that starts 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)の処理が実行される。   When such an initial setting process (ST10) is completed, the processes of steps ST11 to ST20 are repeatedly executed in an infinite loop every bank flip period (1/30 second). During this infinite loop process (steps ST11 to ST20), the control command CMD may be received from the main control unit 21. In this case, the process of FIG. 15B is executed as the reception interrupt process. The

受信割込み処理では、受信した制御コマンド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 in the process of step ST19 of the infinite loop process, and the rendering operation based on the control command CMD is started. Further, when the control command CMD specifies the result of the lottery process as the winning state (ST23), the winning information is stored in the nonvolatile memory 26 disposed on the liquid crystal IF substrate 25 together with the time information ( ST24).

なお、設定キーSETが操作されたことを示す制御コマンドCMDを受けた場合には、不揮発性メモリ26に記憶されている遊技実績履歴を、表示装置DSP1に画面表示する履歴表示動作を起動させる。具体的には、履歴表示用の指令フラグFGを1にセットする(ST25)。   When a control command CMD indicating that the setting key SET has been operated is received, a history display operation for displaying the game record history stored in the nonvolatile memory 26 on the display device DSP1 is started. Specifically, the history display command flag FG 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 process of step ST19, and a necessary image control operation is executed through the process of step ST20 and the like. In addition, when a control command CMD indicating that the initialization switch SW has been operated is received during the image control operation, the command flag FG is set to 2, and then, on condition that the chance button 11 is pressed. All the contents stored in the nonvolatile memory 26 are erased. Note that the pressing of the chance button is grasped in real time in the timer interrupt processing for every 1 mS (ST42 in FIG. 16).

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

次に、演出開始からの経過時間と、ステップST20の処理で更新された演出シナリオとを対比して、音声演出の更新タイミングか否かが判定され(ST12)、音声演出の更新タイミングに達している場合には、音声コマンド列を、図5や図9に示す中継バッファ82に書き込む(ST13)。なお、この実施例では、音声コマンドリストSLTを使用しないので、ホストCPU50が中継バッファ82(MCR,MCD)を直接WRITEアクセスする。   Next, it is determined whether or not it is the update timing of the audio effect by comparing the elapsed time from the start of the effect and the effect scenario updated in the process of step ST20 (ST12), and the update timing of the audio effect is reached. If so, the voice command string is written into the relay buffer 82 shown in FIG. 5 or FIG. 9 (ST13). In this embodiment, since the voice command list SLT is not used, the host CPU 50 directly performs WRITE access to 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 in which the register number (1 byte) of the command register RGi of the sound engine 52 and the set value (1 byte) in the register RGi are a set. Then, as described with reference to FIG. 9, the host CPU 50 writes a 4-byte length including the register number to the first relay register MCR and writes a 4-byte length including the set value to the second relay register MCD.

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

以上のようにして音声演出を進行させた後、ランプ演出の更新タイミングか否かが判定され(ST14)、更新タイミングであれば、ホストCPU50は、ランプ駆動データテーブルLMPc,LMPdの参照位置を更新する(ST15)。なお、枠側と盤側のランプ演出の更新タイミングは必ずしも一致しないので、該当するランプ駆動データテーブルLMPc/LMPdの参照位置だけが更新される場合もある。また、図11(b)に示すような規則的な更新に限らず、特定のLEDランプだけが点灯/消灯する場合があることも先に説明した通りである。   After the sound effect is advanced as described above, it is determined whether or not it is the update timing of the lamp effect (ST14). If the update timing is reached, the host CPU 50 updates the reference positions of the lamp drive data tables LMPc and LMPd. (ST15). In addition, since the update timings of the lamp effects on the frame side and the board side do not necessarily match, only the reference position of the corresponding lamp drive data table LMPc / LMPd may be updated. Further, as described above, it is not limited to the regular update as shown in FIG. 11B, and only a specific LED lamp may be turned on / off.

次に、ホストCPU50は、ランプ駆動データテーブルLMPc/LMPdの参照位置で特定される一群のデータを、シリアルポート55のチャネル#C/#Dからシリアル送信するべく各部を制御する(ST16)。具体的な動作は、図15(d)に示す通りであり、ランプドライバDR毎に、ランプ駆動データテーブルLMPの参照位置を特定し(ST33)、DMA転送に関し、必要な動作パラメータをDMAコントローラの該当レジスタに設定する(ST34)。   Next, the host CPU 50 controls each unit to serially transmit a group of data specified by the reference position of the lamp drive data table LMPc / LMPd from the channel # 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 drive data table LMP is specified (ST33), and necessary operation parameters for the DMA transfer are set in the DMA controller. The corresponding register is set (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 operation parameters include (1) the leading address of the transfer source in the lamp drive data table 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 table LMPc / LMPd to the DMA controller 53 (# 10 / # 11) (one time in FIG. 10B) ), (4) Address of transfer destination in channel # C / # D of serial port 55 (address of relay register ITM in the embodiment), (5) Once from DMA controller 53 (# 10 / # 11) to transfer destination (6) Channel #C from the DMA controller 53 to the serial port 55 WRITE transfer count to #D (Fig 10 (b) in 16 times) are included.

また、ランプ駆動データのDMA転送に必要な動作パラメータには、図10(b)に関して説明したシリアルポート55のチャネル#C/#Dの送信FIFOと、DMAコントローラ53(#10/#11)との間のHand Shake動作を実現する、送信FIFOの蓄積データ量に関する閾値も含まれる。   Further, the operation parameters necessary for the DMA transfer of the lamp driving data include the transmission FIFO of the channel # C / # D of the serial port 55 described with reference to FIG. 10B and the DMA controller 53 (# 10 / # 11). Also included is a threshold value related to the amount of data stored in the transmission FIFO that realizes the 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) is set. The serial transmission operation is started by setting a predetermined value (ST35). In the embodiment of FIG. 15D, the corresponding register needs to be set in advance so that the serial port 55 (channel # 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 FIGS. 13D and 14D, 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 serious transmission process at all, the host CPU 50 refers to a predetermined status register and waits for the end of transmission of the serial port 55 (channel # C / # D). (ST36).

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

以上、3線伝送方式におけるLED駆動モードについて説明したが、2線伝送方式を採る場合には、シリアルポート55(チャネル#C/#D)を、LED駆動モードで使用するか、SPI通信モードで使用するかに拘らず、全てのランプドライバDRに対して、必要なシリアルデータを一気にシリアル伝送するので、ステップST37の処理は不要である。   The LED driving mode in the three-wire transmission method has been described above, but when the two-wire transmission method is adopted, the serial port 55 (channel # C / # D) is used in the LED driving mode or in the SPI communication mode. Regardless of whether it is used or not, since the necessary serial data is serially transmitted to all the lamp drivers DR at once, 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) or (5) the DMA controller 53 (# 10 / # 11) The one-time write size for the transfer destination is, for example, 2 bytes long (see FIG. 10C).

そして、この設定に対応して、図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 lamp driving in the LED driving mode shown in FIG. 14D, (3) READ transfer count from the lamp driving data table LMPc / LMPd to the DMA controller 53 (# 10 / # 11). (6) The number of times of WRITE transfer from the DMA controller 53 to the channel # C / # D of the serial port 55 is 596 times respectively, and the total becomes 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. 14E, (3) READ transfer count and (6) WRITE transfer count are each 187 times, and 2 × 187 × 8 = 2992 bits as a whole. (See FIG. 10C).

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

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

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

続いて、図16に基づいて、タイマ割込み処理について説明する。タイマ割込み処理では、各種のセンサ信号を繰り返し取得すると共に、必要時には役物演出を進行させている。そこで、先ず、モータ駆動データを更新すべきか否かが判定される(ST30)。そして、役物演出中でない場合には、ステップST31〜ST36の処理がスキップされる。   Next, timer interrupt processing will be described with reference to FIG. In the timer interruption process, various sensor signals are repeatedly acquired, and the accessory effect is advanced when necessary. Therefore, first, it is determined whether or not the motor drive data should be updated (ST30). And when it is not in effect production, the process of steps ST31-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 any one or more accessory motors, first, the channels #E and #F of the serial port 55 are set to the SPI transmission mode. Actually, in many cases, only one of the frame-side motor drive board 37 and the board-side motor drive board 30 operates, and the processing of steps ST31 to ST37 described below is performed by the motor drive board 37. As for the motor drive board 30, it is executed only for one of them, 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, it is simplified if all the motor drivers DV to DV on the motor drive board 37 and the motor drive board 30 function synchronously, and a virtual case where all the motor drivers DV to DV are controlled collectively. I will continue to explain.

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

次に、役物モータを歩進させるべきタイミングであれば、モータ駆動データテーブルMOTe,MOTfの参照位置を更新する(ST33)。そして、モータ駆動データのDMA転送に必要な動作パラメータを、DMAコントローラ53(#12/#13)の該当レジスタに設定する(ST34)。   Next, if it is time to advance the accessory motor, the reference positions of the motor drive data tables MOTe and MOTf are updated (ST33). Then, operation parameters necessary for the DMA transfer of the motor drive data are set in the corresponding register 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 include (1) the start address of the transfer source in the motor drive data table MOTe / MOTf, and (2) the read size from the transfer source to the DMA controller 53 (# 12 / # 13) (for example, 2 bytes), (3) READ transfer count from motor drive data table MOTe / MOTf to DMA controller 53 (# 12 / # 13), (4) Address of transfer destination in channel # E / # F of serial port 55 (In the embodiment, the address of the relay register ITM), (5) One write size (for example, 2 bytes) from the DMA controller 53 (# 12 / # 13) to the transfer destination, (6) From the DMA controller 53 to the serial port 55 The number of WRITE transfers to channel # E / # F is included.

また、モータ駆動データのDMA転送に必要な動作パラメータには、図10(b)に関して説明したシリアルポート55のチャネル#E/#Fの送信FIFOと、DMAコントローラ53(#12/#13)との間のHand Shake動作を実現する、送信FIFOの蓄積データ量に関する閾値も含まれる。   The operation parameters necessary for the DMA transfer of the motor drive data include the transmission FIFO of the channel # E / # F of the serial port 55 described with reference to FIG. 10B, the DMA controller 53 (# 12 / # 13), and Also included is a threshold value related to the amount of data stored in the transmission FIFO that realizes the 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 operation parameters, the host CPU 50 activates the DMA controller 53 (# 12 / # 13) (ST34) and starts serial transmission of the channel # E / # F of the serial port 55 (ST35). . Then, based on the hand shake operation of the DMA controller 53 (# 12 / # 13), the motor drive data is transferred to the transmission FIFO of the channel # E / # F, 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 for all motor drive data to be transferred (ST36). Then, at the timing when transmission completion is confirmed, the host CPU 50 outputs latch pulses LTe and LTf to each motor driver through the parallel port 54 (ST37). The motor drivers DV1 to DVn receive the latch pulses LTe and LTf, and output the acquired motor drive data to the accessory motors M1 to Mn, so that the accessory motors M1 to Mn advance (see 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 second level switching control signals CTLe and CTLf from the parallel port 54. (ST39). This is because the transmission destination of the clock signal output thereafter is 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 accessory motor (ST30 to ST37), the serial reception process described below is always executed every 1 mS regardless of whether or not the accessory effect is being performed. Therefore, in this embodiment, various sensor signals supplied to the signal acquisition circuits GET and GET can be grasped almost in real time.

ステップST39の処理が終われば、ホストCPU50は、パラレルポート54を通して、各信号取得回路GET,GETに対して、取得パルスLTe,LTfを出力する(ST40)。図12(c)に関して説明した通り、信号取得回路GET,GETは、取得パルスLTe,LTfに基づいて、各種のセンサ信号SNi,SNjを取得することになる。   When the process of step ST39 is completed, 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. 12C, the signal acquisition circuits GET and GET acquire various sensor signals SNi and SNj based on the acquisition pulses LTe and LTf.

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

すると、この書込み動作を契機として、シリアルポート55(チャネル#Eと#F)からは、指定された個数のシリアルクロックSCKe,SCKfの出力動作が開始される。図12(d)に関し説明した通り、信号取得回路GET,GETは、シリアルクロックSCKe,SCKfに同期して、センサ信号SNi,SNjを1ビット毎に転送するので、シリアルポート55(チャネル#Eと#F)では、これを取得することになる。なお、シリアル受信されたセンサ信号は、1バイト又は2バイト単位で、チャネル#Eと#Fの受信バッファに一時保存される。   Then, triggered by this write operation, the output operation of the designated number of serial clocks SCKE and SCKf is started from the serial port 55 (channels #E and #F). As described with reference to FIG. 12D, since the signal acquisition circuits GET and GET transfer the sensor signals SNi and SNj bit by bit in synchronization with the serial clocks SCKE and SCKf, the serial ports 55 (channel #E and In #F), this is acquired. Note that serially received sensor signals are 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は、その後の画像演出、音声演出、役物演出において適宜に活用されることになる。   The 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 transfers the sensor signals SNi and SNj temporarily stored in the reception buffer to a predetermined buffer area (ST42). The sensor signals SNi and SNj transferred to the buffer area are appropriately used in the subsequent image effect, sound effect, and accessory effect.

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

以上を踏まえて説明すると、ホストCPU50は、電源投入後の初期設定処理(ST10)として、バンクフリップ周期を1/30秒とするべく、VDPコントローラ60の該当レジスタに、所定の設定値を書込む(ST50)。また、画像コマンドリストLTの開始アドレスを設定する(ST51)。   To explain the above, the host CPU 50 writes a predetermined set value in the corresponding register of the VDP controller 60 so as to set the bank flip period to 1/30 seconds as an 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. However, the basic issue destination is always the image command buffer 71. It is said.

そこで、ホスト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 related to the head address of the image command buffer 71 in a corresponding register that defines the issue destination of the image command list LT (ST51), and subsequently starts processing of the command list. Is set to be permitted in the corresponding register (ST52). The CBM information indicates whether the image command list is issued to the image command buffer (built-in register) 71, or the main memory 56, built-in DRAM 57, DDR memory 41, or external ROM 42. This is memory information to be specified, and the 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 process (ST50 to ST52), each time a bank flip occurs, the operation of the VDP controller 60 and the like is initialized, and the CBA information on the image command list LT issued to the image command buffer 71 by the host CPU 50 is obtained. Based on the / CBM information, the read operation by the VDP controller 60 is repeated.

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

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

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

したがって、ステップST53の処理では、画像コマンドリストLTの作成に加えて、補助リストLT’が作成される場合や、作成した画像コマンドリストLTにJUMP_DDR命令が記載されている場合がある。何れにしても、ステップST53に続いて、ホストCPU50は、コマンドバッファ71に画像コマンドリストLTを発行し、必要に応じて、DDRメモリ41に補助リストLT’を発行して(ST54)、今サイクルの処理を終え、次回のバンクフリップを待つことになる(ST21)。   Accordingly, in the process of step ST53, in addition to the creation of the image command list LT, an auxiliary list LT 'may be created, or a JUMP_DDR instruction may be described in the created image command list LT. In any case, following step ST53, the host CPU 50 issues an image command list LT to the command buffer 71, and issues an auxiliary list LT ′ to the DDR memory 41 as necessary (ST54). This process is completed, and the next bank flip is awaited (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 so that each frame of the display devices DS1 and DS2 Is completed in the drawing bank of the frame buffer FB. Based on the WAIT_BANKFLIP command, the next bank flip is awaited. As described above, in the next bank flip, since the drawing bank and the display bank of the frame buffer FB are switched, the image data completed this time is 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 of FIG. 17 (a), the processing repeatedly used for a certain period of the image effect progress is described in the auxiliary list LT ′ and stored in the DDR memory 41, corresponding to the progress of the image effect. Thus, the control burden 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, and the external ROM 42 may be used instead of the DDR memory 41 as described above. The external ROM 42 needs to store a fixed auxiliary list LT ′ in advance.

以上、発行した画像コマンドリストLTが、そのサイクルで読み出される実施例について説明したが、VDPコントローラ60に対する処理時間を確保するため、図6に示した動作を実行する場合について図17(b)に基づいて説明する。   The embodiment in which the issued image command list LT is read in the cycle has been described above. However, in order to secure the processing time for the VDP controller 60, the case where the operation shown in FIG. This 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 initial setting process (ST10) (ST51 '). Note that the bank flip period is set to 1/30 seconds (ST50), the head address of the image command buffer 71 is set as the issue destination of the image command list LT (ST51), and the processing of the command list is started. The permission setting (ST52) is the same as in the case of FIG.

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

ステップ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 process of step ST56 is immediately read out by the VDP controller 71, and the process of the image command list LT issued in the previous cycle is started. (See FIG. 5). Therefore, the process of FIG. 17B is superior to the process of FIG. 17A in the sense that a sufficient processing time is secured in the VDP controller 71.

次に、ホスト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 the image command list LT is a JUMP instruction (JUMP_CFIFO) that means a return to the WAIT_BANKFLIP instruction of the image command buffer 71.

次に、ホスト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, either one of the head addresses of the pair of buffer areas (BUFa, BUFb) is selected as the issue destination of the current image command list LT (ST58), and the image command list LT is issued to the selected buffer area ( ST59).

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

続いて、図7に関し先に説明した動作を実現する制御動作について、図18(a)に基づいて説明する。なお、この実施例では、プリローダを機能させるので、図15(c)のステップST3の処理が実行される。また、以下に説明する画像コマンドリストLTには、プリロード転送を指示する特別なデコードコマンドDCpが記載されている。   Subsequently, a control operation for realizing the operation described above with reference to FIG. 7 will be described with reference to FIG. In this embodiment, since the preloader functions, the process of step ST3 in FIG. 15C is executed. The image command list LT described below describes a special decode command DCp for instructing 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の処理が、初期設定時において実行されることはなく、定常処理において個々的に実行される。   As in the embodiment of FIG. 17, the bank flip period is set to 1/30 seconds (ST60), but an appropriate number of list buffers TG (# 0) for temporarily storing the image command list LT in the DDR memory 41. , # 1,..., #N) need to be secured (ST61). In FIG. 7, the list buffer TG is represented as BUFa, BUFb, and BUFc. However, in FIG. 18C, for the triple buffer TG in which the number N of list buffers TG is N = 2, # 0, It is illustrated as # 1, # 2. In this embodiment, the processes of step ST51 and step ST52 of FIG. 17 are not executed at the time of initial setting but are executed individually in the steady process.

定常処理では、最初に、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 a command list start address (that is, the head address of the image command list LT) for the image command list LT to be validated in the current 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. In order to facilitate the processing of step ST63, a head address buffer (see FIG. 18C) storing the head address of the list buffer TG (# 0, # 1,..., #N) is prepared. The CBA / CBM information is specified by sequentially reading out the head address buffer.

そして、画像コマンドリスト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 processing of the image command list LT (ST64), the processing of the image command list LT after the head address specified in step ST63 is started (see FIG. 7). For example, when the list buffer TG # 1 is selected in the processing of step ST63, the VDP controller 71 performs decoding and drawing processing based on the image command list LT described in the list buffer TG # 1. After executing JUMP_CFIFO, WAIT_BANKFLIP in the control command list LTc stored in the command buffer 71 is executed to wait for a 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 validated after N cycles (ST65). Note that at the end of the image command list LT, there is always a JUMP instruction (JUMP CFIFO) which means a 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 issue destination of the image command list LT is updated (ST65), and the image command list LT created by the process of step ST64 is issued to the list buffer TG (for example, TG # 0) (ST66). As described with reference to FIG. 7, in the process of step ST66, for example, the image command list LT issued to the list buffer TG # 0 is interpreted in the process of the next cycle after the bank flip, and the decode command DCp is detected. Preloads necessary CG data into a preload buffer secured in the built-in DRAM 57. The preloaded CG data is further decoded by the CG data decoder 62 in the processing of the next cycle, and used for the drawing 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 that specifies the display screen 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, a JUMP_CFIFO instruction is described at the end of the image command list LT. Therefore, after the execution of the JUMP_CFIFO instruction, the WAIT_BANKFLIP instruction described in the head address of the image command buffer 71 is executed to wait for the bank flip. As described above, in this embodiment, it is possible to effectively cope with an increase in the size and image quality of the display device by effectively utilizing the preload processing.

続いて、図19に基づいて、サウンドエンジン52を簡易制御モード(第2動作モード)で機能させる場合について説明する。先に説明した通り、簡易制御モードでは、VDPコントローラ71が音声コマンドリストSLTに基づいて、サウンドエンジン52のコマンドレジスタRGiに対する設定動作を実行する。   Next, a case where the sound engine 52 is caused to function in the simple control mode (second operation mode) will be described with reference to FIG. As described above, in the simple control mode, the VDP controller 71 executes a setting operation for 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 corresponding register of the VDP controller 71 is set to function the sound engine 52 in the simple control mode (second operation mode) (ST10), and the steady processing of steps ST11 to ST20 is repeated. It is.

図示の通り、定常処理では、ホストCPU50は、適宜な画像コマンドリストを作成し、適宜な発行先に発行した後(ST11)、音声演出の更新タイミングか否かを判定する(ST12)。そして、サウンドエンジン52のコマンドレジスタRGiへの設定動作を実行すべきタイミングであれば、設定動作を特定する音声コマンドリストSLTを作成する。   As shown in the figure, in the steady process, the host CPU 50 creates an appropriate image command list and issues it to an appropriate issue destination (ST11), and then determines whether or not it is the update timing of the audio effect (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 for 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 includes a 1-byte register number and a 1-byte set value. . Then, 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 or the SEQ code number is recognized, the DDR memory 41 is accessed instead of the simple access controller SAC or the sequencer SEQ, and a series of setting operations are executed via the relay register 82. . Therefore, although somewhat lacking in speed, the host CPU 50 can easily control the sound effect.

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

GM 遊技機
DS1、DS2 表示装置
50 画像演出制御手段
42 データ記憶手段
51 画像生成手段
52 音声制御手段
40 複合チップ
MCR 第1中継レジスタ
MCD 第2中継レジスタ
83 音声コマンドバッファ
GM gaming machine DS1, DS2 display device 50 image production control means 42 data storage means 51 image generation means 52 voice control means 40 composite chip MCR first relay register MCD second relay register 83 voice command buffer

Claims (9)

画像演出及び音声演出を統一的に制御するホストCPUを有する演出制御手段(50)と、前記演出制御手段から受けるコマンドリストに基づいて、一又は複数の表示装置の各1フレーム分の画像データを生成して画像演出を実行する画像生成手段(51)と、前記演出制御手段から受ける指示に基づいて、音声信号を生成しスピーカを駆動して音声演出を実行する音声制御手段(52)と、が内蔵された複合チップを有して構成された遊技機であって、
前記演出制御手段から受ける指示は、前記音声制御手段の内蔵レジスタを特定するレジスタ番号と、レジスタ番号で特定される内蔵レジスタへの設定値と、を有して構成され、
前記演出制御手段が、レジスタ番号を含んだ第1情報を、第1中継レジスタに書込むと共に、設定値を含んだ第2情報を、第2中継レジスタに書込むと、レジスタ番号と設定値とで一組となる転送データが、所定の音声コマンドバッファに格納されるよう構成され、
前記音声制御手段は、所定の動作サイクル毎に機能して、前記音声コマンドバッファを読み出して、前記演出制御手段から受ける指示に基づいた設定動作を実行するよう構成されていることを特徴とする遊技機。
Based on an effect control means (50) having a host CPU for uniformly controlling image effects and sound effects, and a command list received from the effect control means, image data for each frame of one or a plurality of display devices is obtained. An image generation means (51) for generating and producing an image effect; an audio control means (52) for generating an audio signal and driving a speaker based on an instruction received from the effect control means; Is a gaming machine configured to have a composite chip with a built-in,
The instruction received from the effect control means is configured to have a register number for specifying the internal register of the sound control means, and a set value for the internal register specified by the register number,
When the production control means writes the first information including the register number to the first relay register and the second information including the setting value to the second relay register, the register number and the setting value Is configured so that a set of transfer data is stored in a predetermined voice command buffer,
The voice control means is configured to function every predetermined operation cycle, read the voice command buffer, and execute a setting operation based on an instruction received from the effect control means. Machine.
前記演出制御手段から受ける指示に基づいた設定動作は、各組の転送データについて、レジスタ番号で特定される内蔵レジスタに、設定値を書込む動作である請求項1に記載の遊技機。   2. The gaming machine according to claim 1, wherein the setting operation based on an instruction received from the effect control means is an operation of writing a setting value to an internal register specified by a register number for each set of transfer data. 前記所定の動作サイクルは、前記音声信号のサンプリング周波数に対応して規定されている請求項1又は2に記載の遊技機。   The gaming machine according to claim 1 or 2, wherein the predetermined operation cycle is defined corresponding to a sampling frequency of the audio signal. 前記内蔵レジスタは、読出しアクセス可能な読出しレジスタと、書込みアクセス可能な書込みレジスタと、に区分され、
書込みレジスタへの設定値が、そのレジスタのレジスタ番号と共に、前記転送データとして、前記音声コマンドバッファに格納されるよう構成されている請求項1〜3の何れかに記載の遊技機。
The built-in register is divided into a read register that can be read and a write register that can be written.
The gaming machine according to any one of claims 1 to 3, wherein a set value to the write register is stored in the voice command buffer as the transfer data together with a register number of the register.
所定の読出しレジスタには、前記音声制御手段の内部動作状態を示すステイタス情報が記憶されており、前記ステイタス情報は、第1中継レジスタと第2中継レジスタを経由して読出しアクセスされる請求項4に記載の遊技機。   5. The status information indicating the internal operation state of the voice control means is stored in a predetermined read register, and the status information is read and accessed via the first relay register and the second relay register. The gaming machine described in 1. 所定の書込みレジスタは、前記音声コマンドバッファを経由することなく書込みアクセスされる請求項5又は6に記載の遊技機。   The gaming machine according to claim 5 or 6, wherein a predetermined write register is accessed for writing without going through the voice command buffer. 前記揮発性メモリには、内蔵レジスタを特定するレジスタ番号と、レジスタ番号で特定される内蔵レジスタへの設定値とで一組となり、所定の終了コードで完結する一連のデータ列が記憶されている請求項1〜6の何れかに記載の遊技機。   The volatile memory stores a series of data strings that consist of a register number that identifies the internal register and a set value for the internal register that is identified by the register number, and is completed with a predetermined end code. The gaming machine according to any one of claims 1 to 6. 前記音声制御手段は、
前記一連のデータ列を読出し、各一組を構成するレジスタ番号と設定値とに基づき、レジスタ番号で特定される内蔵レジスタに設定値を自動的に書込むコントローラを有して構成されている請求項7に記載の遊技機。
The voice control means is
A controller that reads the series of data strings and automatically writes the set value to the internal register specified by the register number based on the register number and the set value constituting each set; Item 8. The gaming machine according to Item 7.
前記コントローラは、
第1中継レジスタと第2中継レジスタを経由して、所定の内蔵レジスタに、所定の設定値を書込むことで機能する請求項8に記載の遊技機。
The controller is
The gaming machine according to claim 8, wherein the gaming machine functions by writing a predetermined set value to a predetermined internal register via the first relay register and the second relay register.
JP2018109368A 2018-06-07 2018-06-07 game machine Active JP7166078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018109368A JP7166078B2 (en) 2018-06-07 2018-06-07 game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018109368A JP7166078B2 (en) 2018-06-07 2018-06-07 game machine

Publications (2)

Publication Number Publication Date
JP2019208976A true JP2019208976A (en) 2019-12-12
JP7166078B2 JP7166078B2 (en) 2022-11-07

Family

ID=68844256

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP7166078B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013226449A (en) * 2013-07-09 2013-11-07 Fujishoji Co Ltd Game machine
JP2015077211A (en) * 2013-10-16 2015-04-23 株式会社三洋物産 Game machine
JP2017038831A (en) * 2015-08-21 2017-02-23 株式会社三共 Game machine
JP2017079966A (en) * 2015-10-27 2017-05-18 株式会社藤商事 Game machine
JP2017217089A (en) * 2016-06-03 2017-12-14 株式会社藤商事 Game machine
JP2018078955A (en) * 2016-11-14 2018-05-24 株式会社藤商事 Game machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013226449A (en) * 2013-07-09 2013-11-07 Fujishoji Co Ltd Game machine
JP2015077211A (en) * 2013-10-16 2015-04-23 株式会社三洋物産 Game machine
JP2017038831A (en) * 2015-08-21 2017-02-23 株式会社三共 Game machine
JP2017079966A (en) * 2015-10-27 2017-05-18 株式会社藤商事 Game machine
JP2017217089A (en) * 2016-06-03 2017-12-14 株式会社藤商事 Game machine
JP2018078955A (en) * 2016-11-14 2018-05-24 株式会社藤商事 Game machine

Also Published As

Publication number Publication date
JP7166078B2 (en) 2022-11-07

Similar Documents

Publication Publication Date Title
JP5909569B1 (en) Game machine
JP5989825B2 (en) Game machine
JP7064969B2 (en) Pachinko machine
JP2020022673A (en) Game machine
JP5989823B2 (en) Game machine
JP7138485B2 (en) game machine
JP7051229B2 (en) Pachinko machine
JP7166078B2 (en) game machine
JP6302962B2 (en) Game machine
JP5909570B1 (en) Game machine
JP2016187663A (en) Game machine
JP7427059B2 (en) gaming machine
JP6262297B2 (en) Game machine
JP6262295B2 (en) Game machine
JP6262296B2 (en) Game machine
JP6262294B2 (en) Game machine
JP6262298B2 (en) Game machine
JP5989826B2 (en) Game machine
JP6262299B2 (en) Game machine
JP5989824B2 (en) Game machine
JP5989830B2 (en) Game machine
JP5989829B2 (en) Game machine
JP5989827B2 (en) Game machine
JP5989828B2 (en) Game machine
JP6532421B2 (en) Gaming 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: 20220228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220525

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221025

R150 Certificate of patent or registration of utility model

Ref document number: 7166078

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150