JP5560453B1 - PWM output device, PWM output method, and game machine - Google Patents

PWM output device, PWM output method, and game machine Download PDF

Info

Publication number
JP5560453B1
JP5560453B1 JP2013060506A JP2013060506A JP5560453B1 JP 5560453 B1 JP5560453 B1 JP 5560453B1 JP 2013060506 A JP2013060506 A JP 2013060506A JP 2013060506 A JP2013060506 A JP 2013060506A JP 5560453 B1 JP5560453 B1 JP 5560453B1
Authority
JP
Japan
Prior art keywords
value
pwm
signal
output
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013060506A
Other languages
Japanese (ja)
Other versions
JP2014187519A (en
Inventor
英智 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Axell Corp
Original Assignee
Axell Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Axell Corp filed Critical Axell Corp
Priority to JP2013060506A priority Critical patent/JP5560453B1/en
Application granted granted Critical
Publication of JP5560453B1 publication Critical patent/JP5560453B1/en
Publication of JP2014187519A publication Critical patent/JP2014187519A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Abstract

【課題】簡易かつ低コストの回路構成で形成でき、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とが容易なPWM出力装置。
【解決手段】任意の信号を出力する信号出力部11と、信号出力部11から出力された信号の出力時間としてのカウンタ値を検出するカウンタ部12と、信号出力部11から出力された信号の信号値としてのデータ値を検出するデータ取得部13と、データ値及びカウンタ値に基づいてPWM信号のオンオフを制御するオンオフ制御部14とを備え、オンオフ制御部14は、カウンタ値にデータ値を乗じた値を、カウンタ値及びデータ値のうち少なくとも何れか一方が取り得る最大値で割った余りの値を算出し、算出された余りの値にデータ値を足した和の値と、任意のしきい値とを対比し、和の値がしきい値よりも大きい場合にPWM信号をオンとし、和の値がしきい値以下の場合にPWM信号をオフとする。
【選択図】図1
A PWM output device that can be formed with a simple and low-cost circuit configuration and is easy to perform on / off control at a high switching frequency and fine adjustment of a duty ratio.
A signal output unit for outputting an arbitrary signal, a counter unit for detecting a counter value as an output time of the signal output from the signal output unit, and a signal output from the signal output unit. A data acquisition unit 13 that detects a data value as a signal value, and an on / off control unit 14 that controls on / off of the PWM signal based on the data value and the counter value. The on / off control unit 14 sets the data value to the counter value. Calculate the remainder value obtained by dividing the multiplied value by the maximum value that at least one of the counter value and the data value can take, add the data value to the calculated remainder value, and any value Contrast with the threshold value, the PWM signal is turned on when the sum value is larger than the threshold value, and the PWM signal is turned off when the sum value is less than or equal to the threshold value.
[Selection] Figure 1

Description

本発明は、PWM制御により電流等の制御を行うPWM出力装置、PWM出力方法、及び遊技機に関する。   The present invention relates to a PWM output device, a PWM output method, and a game machine that control current and the like by PWM control.

従来、電力量等の制御を行うにあたり、PWM(Pulse Width Modulation、パルス幅変調)を用いて制御する方法が知られている。この方法においては、周期的に出力されるパルスによって形成されるPWM信号のデューティ比(PWM信号のオンオフの周期に対するオン信号の締める割合のこと)を変化させることで、電力量や信号の大きさ等を変化させる。この、デューティ比を変化させるための構成としては、特許文献1に記載のものが知られている。この構成においては、データ変換器、セグメント信号変換器、コモン信号変換器、PWM信号変換器を備え、データ変換器がセグメントごとの点灯・消灯を示す信号を形成し、セグメント信号変換器がPWM信号の1周期(のうち前半1/2のオン信号と後半1/2のオフ信号)を示すパルス信号を形成し、コモン信号変換器がそれぞれの周期に割り当てる、コモン信号とは異なるパルス幅の信号を形成し、PWM変換器が、セグメント信号変換器とコモン信号変換器とが形成した信号に基づいてPWM信号を形成する。これにより、PWM信号を出力するチャンネル(それぞれのPWM信号を出力する出力系統のこと。本明細書において同じ。)が複数形成されて、図4の(a)に示すように、チャンネル1における、デューティ比の大きいPWM信号201と、チャンネル2における、デューティ比の小さいPWM信号202のように、それぞれのチャンネルおいて所望のPWM信号が出力される(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, there has been known a method of performing control using PWM (Pulse Width Modulation, pulse width modulation) when controlling the amount of power. In this method, the amount of electric power and the magnitude of the signal are changed by changing the duty ratio of the PWM signal formed by periodically output pulses (the ratio of the ON signal to the ON / OFF period of the PWM signal). Etc. As a configuration for changing the duty ratio, a configuration described in Patent Document 1 is known. In this configuration, a data converter, a segment signal converter, a common signal converter, and a PWM signal converter are provided, the data converter forms a signal indicating lighting / extinction for each segment, and the segment signal converter is a PWM signal. A signal having a pulse width different from that of the common signal, which is assigned to each period by the common signal converter. The PWM converter forms a PWM signal based on the signal formed by the segment signal converter and the common signal converter. As a result, a plurality of channels that output PWM signals (output systems that output the respective PWM signals; the same applies in this specification) are formed, and as shown in FIG. Like the PWM signal 201 having a large duty ratio and the PWM signal 202 having a small duty ratio in the channel 2, a desired PWM signal is output in each channel (see, for example, Patent Document 1).

特許第4840107号公報Japanese Patent No. 4840107

しかしながら、特許文献1に記載の発明においては、図4の(b)に示すように、それぞれのチャンネルにおいて、異なる周期のPWM信号を発生させて出力させようとした場合、それぞれのチャンネルのPWM信号を発生させるPWM信号変換器ごとに、異なるカウンタ(PWM信号のオンオフの基準となる時間を規定するための構成)を備えなければならず、大量のカウンタが必要となって、PWM信号出力装置全体の構成が複雑になるという問題がある。またここで、例えばPWM信号によってLED等の照明機器の点灯・消灯状態や光量を制御する場合において、照明機器のちらつきを防止するためには、細かい周期で点灯・消灯を繰り返す必要があるが、特許文献1に記載の発明においてそのような点灯制御を行おうとする場合、PWM信号のデューティ比の細かい調整を行うことが本来的に難しいため、点灯時のちらつきが起こり易くなり、ちらつきを解消するためには、上述の各変換器の回路構成が大規模になってコスト高になるという問題がある。   However, in the invention described in Patent Document 1, when a PWM signal having a different period is generated and output in each channel as shown in FIG. 4 (b), the PWM signal of each channel is output. For each PWM signal converter that generates a signal, a different counter (configuration for defining a time that is a reference for turning on and off the PWM signal) must be provided, and a large number of counters are required, and the entire PWM signal output device There is a problem that the configuration of the system becomes complicated. Here, for example, in the case of controlling the lighting / extinguishing state and light quantity of the lighting device such as the LED by the PWM signal, in order to prevent the flickering of the lighting device, it is necessary to repeat the lighting / extinguishing in a fine cycle, When trying to perform such lighting control in the invention described in Patent Document 1, it is inherently difficult to finely adjust the duty ratio of the PWM signal. Therefore, there is a problem that the circuit configuration of each of the converters described above becomes large and the cost is high.

本発明は上記課題に鑑みてなされたものであり、簡易かつ低コストの回路構成によって形成できて、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とを容易に行えるPWM出力装置、PWM出力方法、及び遊技機を提供することを課題としている。   The present invention has been made in view of the above problems, and can be formed with a simple and low-cost circuit configuration, and can easily perform on / off control at a high switching frequency and fine adjustment of a duty ratio. It is an object to provide a method and a gaming machine.

かかる課題を解決するために、請求項1に記載の発明は、遊技機に配設された機器の駆動や照明装置の点灯等のオンオフ制御を行うPWM出力装置であって、任意の信号としての出力信号を出力する信号出力手段と、所定の時間帯である基準時間帯を所定の数に当分して形成される個々の時間帯としての単位時間を単位として、該単位時間の数を計測することで前記出力信号の出力時間としてのカウンタ値を検出するカウンタ手段と、該信号出力手段から出力された前記出力信号の信号値としてのデータ値を検出するデータ取得手段と、前記データ値及び前記カウンタ値に基づいてそれぞれのPWM信号のオンオフを制御するオンオフ制御手段とを備え、前記単位時間は、前記基準時間帯を2の所定数の指数倍を基準とした数に等分して得た値として設定され、前記基準時間帯と前記単位時間とは、全ての前記PWM制御にて用いられる全ての前記PWM制御において共通して用いられ、前記基準時間帯を一又は複数に等分して形成されるそれぞれの時間帯が、それぞれの前記PWM制御にて用いられる前記PWM信号の1周期として設定され、該1周期は、それぞれの前記PWM信号ごとに別個に設定され、それぞれの前記PWM信号は、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値が、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、前記カウンタ手段は、前記単位時間の数を計測することで、それぞれの前記PWM信号の前記カウンタ値を検出し、前記オンオフ制御手段においては、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値を、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定し、前記オンオフ制御手段は、前記カウンタ値に前記データ値を乗じた値を、前記カウンタ値及び前記データ値のうち少なくとも何れか一方が取り得る前記最大値で割った余りの値を算出し、該算出された余りの値に前記データ値を足した和の値と、前記しきい値とを対比し、前記和の値が前記しきい値よりも大きい場合にそれぞれの前記PWM信号をオンとし、前記和の値が前記しきい値以下の場合にそれぞれの前記PWM信号をオフとすることで、共通の前記基準時間に基づいて別個に設定したそれぞれの前記PWM信号の1周期において、それぞれの前記PWM信号のオンオフ制御を行うことを特徴とする。 To solve such problems, an invention according to claim 1, a PWM output unit for performing on-off control of the lit of the driving and lighting system of the apparatus disposed in the game machine, as any signal The number of unit times is measured in units of unit time as individual time zones formed by a signal output means for outputting the output signal and a reference time zone that is a predetermined time zone for a predetermined number of times. a counter means for detecting a counter value as an output time of the output signal by a data acquisition means for detecting the data value of the signal value of the output signal outputted from the signal output means, said data values and On / off control means for controlling on / off of each PWM signal based on the counter value, and the unit time is obtained by equally dividing the reference time zone into a number based on an exponent multiple of a predetermined number of 2. The The reference time zone and the unit time are used in common for all the PWM controls used in all the PWM controls, and are formed by dividing the reference time zone into one or a plurality of equal parts. Is set as one cycle of the PWM signal used in each PWM control, and the one cycle is set separately for each PWM signal. The counter value, the output level of the PWM signal, and a predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using a binary number, and the counter means , by measuring the number of the unit time, and detects the counter value of each of the PWM signal, in the on-off control means, said counter value and said The output level and a predetermined threshold WM signal, using the binary numbers, each of the maximum value is set as a value relative to the index times the predetermined number of 2, the on-off control means, said counter value A value obtained by multiplying the value obtained by dividing the data value by the maximum value that can be taken by at least one of the counter value and the data value is calculated, and the data value is added to the calculated remainder value. The sum value added is compared with the threshold value. When the sum value is larger than the threshold value, each PWM signal is turned on, and the sum value is less than the threshold value. each of the PWM signal by turning off the if, in one period of each of the PWM signal set separately based on a common said reference time, and characterized by performing on-off control of each of the PWM signal That.

請求項2に記載の発明は、請求項1に記載の構成に加え、前記最大値は、2の指数倍の値から1を引いた値であることを特徴とする。   The invention according to claim 2 is characterized in that, in addition to the configuration according to claim 1, the maximum value is a value obtained by subtracting 1 from an exponential multiple of 2.

請求項3に記載の発明は、請求項1又は2に記載の構成に加え、前記しきい値は、前記最大値から1を引いた値であることを特徴とする。   According to a third aspect of the present invention, in addition to the configuration according to the first or second aspect, the threshold value is a value obtained by subtracting 1 from the maximum value.

請求項4に記載の発明は、請求項1乃至3の何れか一つに記載の構成に加え、前記オンオフ制御手段は、下記式(A)及び式(B)を用いて、前記和の値と、前記しきい値との対比を行い、前記オンオフ制御手段は、前記式(A)におけるOut=1のときは前記PWM信号をオンとし、前記式(B)におけるOut=0のときは前記PWM信号をオフとすることを特徴とする。
Out=1・・・(A)
ただし(Seqcnt×Data)mod −1+Data>2−2のとき
Out=0・・・(B)
ただし(Seqcnt×Data)mod −1+Data≦2−2のとき
ここで、
Out:PWM信号の出力(1=オン、0=オフ)
Data:PWM信号を出力する該当チャンネルにおけるPWM出力レベル(0乃至2−1の整数値)
Seqcnt:全チャンネル共通の時系列カウンタ(0→2−2の整数値を繰り返す)
According to a fourth aspect of the present invention, in addition to the configuration according to any one of the first to third aspects, the on / off control means uses the following formulas (A) and (B) to calculate the value of the sum. And the threshold value, the on / off control means turns on the PWM signal when Out = 1 in the equation (A), and the output when Out = 0 in the equation (B). The PWM signal is turned off.
Out = 1 (A)
However, when (Seqcnt × Data) mod 2 n −1 + Data> 2 n −2, Out = 0 (B)
However, when (Seqcnt × Data) mod 2 n −1 + Data ≦ 2 n −2,
Out: PWM signal output (1 = on, 0 = off)
Data: PWM output level (an integer value from 0 to 2 n −1) in the corresponding channel that outputs the PWM signal
Seqcnt: Time series counter common to all channels (0 → 2 n -2 integer value is repeated)

請求項5に記載の発明は、遊技機に配設された機器の駆動や照明装置の点灯のオンオフ制御を行うためのPWM出力方法であって、任意の信号としての出力信号を出力する信号出力手順と、所定の時間帯である基準時間帯を所定の数に当分して形成される個々の時間帯としての単位時間を単位として、該単位時間の数を計測することで前記出力信号の出力時間としてのカウンタ値を検出するカウンタ手順と、該信号出力手順から出力された前記出力信号の信号値としてのデータ値を検出するデータ取得手順と、前記データ値及び前記カウンタ値に基づいてそれぞれのPWM信号のオンオフを制御するオンオフ制御手順とを備え、前記単位時間は、前記基準時間帯を2の所定数の指数倍を基準とした数に等分して得た値として設定され、前記基準時間帯と前記単位時間とは、全ての前記PWM制御にて用いられる全ての前記PWM制御において共通して用いられ、前記基準時間帯を一又は複数に等分して形成されるそれぞれの時間帯が、それぞれの前記PWM制御にて用いられる前記PWM信号の1周期として設定され、該1周期は、それぞれの前記PWM信号ごとに別個に設定され、それぞれの前記PWM信号は、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値が、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、前記カウンタ手順においては、前記単位時間の数を計測することで、それぞれの前記PWM信号の前記カウンタ値が検出され、前記オンオフ制御手順においては、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値を、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、前記オンオフ制御手順においては、前記カウンタ値に前記データ値を乗じた値を、前記カウンタ値及び前記データ値のうち少なくとも何れか一方が取り得る前記最大値で割った余りの値を算出し、該算出された余りの値に前記データ値を足した和の値と、前記しきい値とを対比し、前記和の値が前記しきい値よりも大きい場合にそれぞれの前記PWM信号をオンとし、前記和の値が前記しきい値以下の場合にそれぞれの前記PWM信号をオフとすることで、共通の前記基準時間に基づいて別個に設定したそれぞれの前記PWM信号の1周期において、それぞれの前記PWM信号のオンオフ制御を行うことを特徴とする。 The invention described in claim 5, a PWM output method for performing on-off control of lit driving and lighting system of the apparatus disposed in a gaming machine, a signal for outputting an output signal as any signal an output procedure, as the unit the unit time as individual time periods which are formed by time being the reference time zone which is a predetermined time period a predetermined number, said output signal by measuring the number of the unit time A counter procedure for detecting a counter value as an output time, a data acquisition procedure for detecting a data value as a signal value of the output signal output from the signal output procedure, and the data value and the counter value, respectively The unit time is set as a value obtained by equally dividing the reference time zone into a number based on an exponent multiple of a predetermined number of 2, Base The time zone and the unit time are used in common in all the PWM controls used in all the PWM controls, and each time zone formed by equally dividing the reference time zone into one or more. Is set as one cycle of the PWM signal used in each of the PWM controls, and the one cycle is set separately for each of the PWM signals, and each of the PWM signals includes the counter value and the The output level of the PWM signal and the predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using binary numbers, and in the counter procedure, by measuring the number, it is detected the counter value of each of the PWM signal, in the on-off control procedure, out of the counter value and the PWM signal The level and a predetermined threshold value, using a binary number respectively set maximum value as a value relative to the index times the predetermined number of 2, in the on-off control procedure, the data value to the counter value the value obtained by multiplying, calculates the value of the remainder at least one is divided by the maximum possible value of the counter value and the data value, plus the data value to the value of the remainder issued the calculated sum the value of the comparison with a threshold value of the sum is turned on each of the PWM signal is greater than the threshold value, respectively when the value of the sum is less than the threshold value by turning off the said PWM signal, in one period of each of the PWM signal set separately based on a common said reference time, and performs on-off control of each of the PWM signal

請求項6に記載の発明は、遊技機であって、請求項1乃至4の何れか一つに記載のPWM出力装置に基づいて、遊技機本体に配設された照明装置のオンオフ制御を行うことを特徴とする。   The invention according to claim 6 is a gaming machine, and based on the PWM output device according to any one of claims 1 to 4, on / off control of the lighting device disposed in the gaming machine body is performed. It is characterized by that.

請求項1、及び請求項5に記載の発明によれば、カウンタ値にデータ値を乗じた値を、カウンタ値及びデータ値のうち少なくとも何れか一方が取り得る最大値で割った余りの値を算出し、算出された余りの値にデータ値を足した和の値と、所定のしきい値とを対比し、和の値がしきい値よりも大きい場合にPWM信号をオンとし、和の値がしきい値以下の場合にPWM信号をオフとすることにより、カウンタ値とデータ値との数値の組み合わせに基づいて、1周期の長さが異なるPWM信号を容易に形成できる。そのため、一のカウンタ部の動作に基づいて、異なる周期のPWM信号を複数形成することができるので、簡易かつ低コストの回路構成により、複数のチャンネルから、それぞれ周期やデューティ比の異なるPWM信号を発生させることができる。また、上記の演算において、カウンタ値やデータ値を変化させることで、PWM信号の周期やデューティ比を細かいレベルで変化させることができるので、PWM信号の周期を短くし、デューティ比を細かく変化させることができて、PWM信号のスイッチング周波数を高くすることや、デューティ比の微細な調整を容易に行うことができる。これにより、簡易かつ低コストの回路構成によって形成できて、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とを容易に行うことができる。 According to the first and fifth aspects of the invention, the remainder obtained by dividing the value obtained by multiplying the counter value by the data value by the maximum value that can be taken by at least one of the counter value and the data value is obtained. The sum value obtained by adding the data value to the calculated remainder value is compared with a predetermined threshold value. When the sum value is larger than the threshold value, the PWM signal is turned on, By turning off the PWM signal when the value is equal to or smaller than the threshold value, PWM signals having different lengths of one cycle can be easily formed based on a combination of numerical values of the counter value and the data value. For this reason, a plurality of PWM signals having different periods can be formed based on the operation of one counter unit. Therefore, PWM signals having different periods and duty ratios can be obtained from a plurality of channels with a simple and low-cost circuit configuration. Can be generated. In the above calculation, by changing the counter value and the data value, the cycle and duty ratio of the PWM signal can be changed at a fine level. Therefore, the cycle of the PWM signal is shortened and the duty ratio is changed finely. Therefore, it is possible to easily increase the switching frequency of the PWM signal and to finely adjust the duty ratio. Thereby, it can be formed with a simple and low-cost circuit configuration, and on-off control at a high switching frequency and fine adjustment of the duty ratio can be easily performed.

請求項2に記載の発明によれば、最大値は、2の指数倍の値から1を引いた値であることにより、ディジタル信号に適合したカウンタ値とデータ値に基づいて演算を行うことができるので、回路構成の簡素化と演算の高速化を図ることができ、特に、オンオフ制御手段をディジタル回路によって構成した場合に顕著な効果を得ることができる。   According to the second aspect of the present invention, the maximum value is a value obtained by subtracting 1 from an exponent multiple of 2 so that the calculation can be performed based on the counter value and the data value adapted to the digital signal. Therefore, the circuit configuration can be simplified and the operation speed can be increased. In particular, a remarkable effect can be obtained when the on / off control means is configured by a digital circuit.

請求項3に記載の発明によれば、しきい値は、最大値から1を引いた値であることにより、演算によって得た値が最大値以外の場合はオフまたはオンとすることができ、オンオフ制御を簡素化し、比較手段の演算を簡素化かつ高速化することができる。   According to the invention of claim 3, the threshold value is a value obtained by subtracting 1 from the maximum value, and can be turned off or on when the value obtained by the calculation is other than the maximum value, On-off control can be simplified, and the operation of the comparison means can be simplified and speeded up.

請求項4に記載の発明によれば、具体的な式の演算に基づいて本発明を実現することができる。   According to the fourth aspect of the present invention, the present invention can be realized based on the calculation of a specific expression.

請求項6に記載の発明によれば、遊技機に設けられた電気機器等のオンオフ制御、出力制御、点灯制御等において、簡易かつ低コストの回路構成によって形成できて、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とを容易に行う制御を実現することができる。   According to the sixth aspect of the present invention, on-off control, output control, lighting control, etc. of an electric device provided in a gaming machine can be formed with a simple and low-cost circuit configuration, and on-off at a high switching frequency. It is possible to realize control that facilitates control and fine adjustment of the duty ratio.

この発明の実施の形態に係るPWM出力装置の全体構成を示す機能ブロック図である。It is a functional block diagram which shows the whole structure of the PWM output device which concerns on embodiment of this invention. 同上PWM出力装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation procedure of a PWM output device same as the above. 同上PWM出力装置によって出力されるPWM信号の概念図である。It is a conceptual diagram of the PWM signal output by a PWM output device same as the above. (a)従来のPWM出力装置によって出力されるPWM信号の概念図、(b)従来のPWM出力装置において問題が起こりうるPWM信号の概念図である。(A) The conceptual diagram of the PWM signal output by the conventional PWM output device, (b) The conceptual diagram of the PWM signal which a problem may occur in the conventional PWM output device.

[基本構成]
図1乃至図3にこの発明の実施の形態1を示す。
[Basic configuration]
1 to 3 show a first embodiment of the present invention.

図1は、この実施の形態1に係るPWM制御装置の全体構成を示す機能ブロック図である。   FIG. 1 is a functional block diagram showing the overall configuration of the PWM control apparatus according to the first embodiment.

同図に示すPWM出力装置1は、遊技機例えばパチンコ機に設けられた複数の照明機器(図示せず)例えばLEDの点灯制御をするために用いられるものである。即ちPWM出力装置1は、遊技機に用いられた照明機器(図示せず)のオンオフや光量の変化を、周期的に、あるいは「大当たり」等のイベントの発生ごとに、任意のプログラムやワイヤードロジック等に基づいて行う
図1に示すPWM出力装置1は、1の遊技機本体(図示せず)に配設されている。ただし、PWM出力装置1が遊技機本体(図示せず)とは別に設けられていてもよく、また、一のPWM出力装置1が複数の遊技機本体(図示せず)にそれぞれ複数設けられた照明機器(図示せず)の点灯制御を行うものであってもよい。また、PWM出力装置1は、遊技機本体(図示せず)に設けられた照明機器(図示せず)以外の機器、例えばモータ等の駆動制御に用いてもよい。
A PWM output device 1 shown in FIG. 1 is used to control lighting of a plurality of lighting devices (not shown) provided in a gaming machine such as a pachinko machine. In other words, the PWM output device 1 can be used to turn on / off lighting devices (not shown) used in gaming machines and change the amount of light periodically or whenever an event such as “big hit” occurs. The PWM output device 1 shown in FIG. 1 based on the above is disposed in one gaming machine main body (not shown). However, the PWM output device 1 may be provided separately from the gaming machine main body (not shown), and one PWM output device 1 is provided in each of a plurality of gaming machine main bodies (not shown). You may perform lighting control of an illuminating device (not shown). Further, the PWM output device 1 may be used for drive control of equipment other than lighting equipment (not shown) provided in the gaming machine main body (not shown), such as a motor.

PWM出力装置1は、少なくとも1のCPU21を備え、このCPU21における命令やデータの処理によってPWM出力装置1の動作が制御される。さらに、PWM出力装置1は、CPU21の処理における作業領域として機能するRAM22、各種データ等が記憶されるROM23、EEPROM(図示せず)、磁気ディスク(図示せず)等を備えている。なお、PWM出力装置1は、CPU21に替えてシーケンス制御のための各種構成を備え、当該構成の動作によって動作が制御されるものであってもよい。   The PWM output device 1 includes at least one CPU 21, and the operation of the PWM output device 1 is controlled by processing of commands and data in the CPU 21. Further, the PWM output device 1 includes a RAM 22 that functions as a work area in the processing of the CPU 21, a ROM 23 that stores various data, an EEPROM (not shown), a magnetic disk (not shown), and the like. Note that the PWM output device 1 may include various components for sequence control instead of the CPU 21, and the operation may be controlled by the operation of the configuration.

また、PWM出力装置1は、「信号出力手段」としての信号出力部11、「カウンタ手段」としてのカウンタ部12、「データ取得手段」としてのデータ取得部13、「オンオフ制御手段」としてのオンオフ制御部14を備えている。信号出力部11、カウンタ部12、データ取得部13、オンオフ制御部14は、図1に示す通り、ハードウェアとして構成されるものであってもよいし、CPU21における各種プログラムの実行によって実現される機能手段として構成されてもよい。   The PWM output device 1 includes a signal output unit 11 as a “signal output unit”, a counter unit 12 as a “counter unit”, a data acquisition unit 13 as a “data acquisition unit”, and an on / off unit as an “on / off control unit”. A control unit 14 is provided. As shown in FIG. 1, the signal output unit 11, the counter unit 12, the data acquisition unit 13, and the on / off control unit 14 may be configured as hardware or realized by executing various programs in the CPU 21. It may be configured as a functional means.

信号出力部11は、「出力信号」としての任意の信号を出力する。具体的には、ロジックやプログラムに基づいて任意のタイミングで出力するように設定された信号や、PWM出力装置に入力された任意のデータ等に基づいて生成された信号を出力する。信号出力部11が出力する信号は、ディジタル信号であってもアナログ信号であってもよい。 The signal output unit 11 outputs an arbitrary signal as an “output signal” . Specifically, a signal set to be output at an arbitrary timing based on logic or a program, or a signal generated based on arbitrary data input to the PWM output device is output. The signal output from the signal output unit 11 may be a digital signal or an analog signal.

カウンタ部12は、信号出力部11から出力された「出力信号」としての信号の出力時間としてのカウンタ値を検出する。具体的には、例えば、カウンタ部12は、任意の時間帯たとえば1秒ごとに区切られた「基準時間帯」としての時間帯をさらに任意の値例えば256等分に区分された単位時間を形成し、信号の出力された時間を、単位時間単位で計測したカウンタ値を検出する。このカウンタ値は、データ取得部13が取得したデータ値との関係で、RAM22に形成された一時記憶領域(図示せず)等に、個々の単位時間ごとのデータ値という相関関係が記憶される。 The counter unit 12 detects a counter value as an output time of a signal as an “output signal” output from the signal output unit 11. Specifically, for example, the counter unit 12 forms a unit time in which a time zone as a “reference time zone” divided every arbitrary time zone, for example, every second is further divided into arbitrary values, eg, 256 equal parts. Then, the counter value obtained by measuring the signal output time in unit time is detected. This counter value is related to the data value acquired by the data acquisition unit 13, and the correlation of the data value for each unit time is stored in a temporary storage area (not shown) formed in the RAM 22. .

データ取得部13は、信号出力部11から出力された信号の信号値としてのデータ値を検出する。具体的には、信号出力部11から出力された信号の任意の値の大きさを検出する。この、任意の値の大きさは、例えば信号の電圧値が考えられるが、電流値等であってもよい。   The data acquisition unit 13 detects a data value as a signal value of the signal output from the signal output unit 11. Specifically, the magnitude of an arbitrary value of the signal output from the signal output unit 11 is detected. The magnitude of the arbitrary value may be a voltage value of a signal, for example, but may be a current value or the like.

オンオフ制御部14は、データ値及びカウンタ値に基づいてPWM信号のオンオフを制御する。制御の具体的内容は後述する。   The on / off control unit 14 controls on / off of the PWM signal based on the data value and the counter value. Specific contents of the control will be described later.

[オンオフ制御部14における制御の原理]
オンオフ制御部14は、カウンタ値にデータ値を乗じた値を、カウンタ値及びデータ値のうち少なくとも何れか一方が取り得る最大値で割った余りの値を算出し、算出された余りの値にデータ値を足した和の値と、任意のしきい値とを対比し、和の値がしきい値よりも大きい場合にPWM信号をオンとし、和の値がしきい値以下の場合にPWM信号をオフとする。
[Principle of control in the on / off control unit 14]
The on / off control unit 14 calculates a remainder value obtained by dividing the value obtained by multiplying the counter value by the data value by the maximum value that at least one of the counter value and the data value can take, and the calculated remainder value is calculated. The sum of the data values is compared with an arbitrary threshold value. When the sum value is larger than the threshold value, the PWM signal is turned on. When the sum value is less than the threshold value, the PWM signal is turned on. Turn off the signal.

具体的には、オンオフ制御部14は、2ビット(n≧1)の精度でPWM信号を出力する際には、下記の式(A)及び式(B)を用い、式(A)におけるOut=1のときはPWM信号をオンとし、式(B)におけるOut=0のときはPWM信号をオフとする制御を行う。
Out=1・・・(A)
ただし(Seqcnt×Data)mod −1+Data>2−2のとき
Out=0・・・(B)
ただし(Seqcnt×Data)mod −1+Data≦2−2のとき
ここで、
Out:PWM信号の出力(1=オン、0=オフ)
Data:PWM信号を出力する該当チャンネルにおけるPWM出力レベル(0乃至2−1の整数値)。データ取得部13が取得したデータ値に基づいて値が構成される。
Seqcnt:全チャンネル共通の時系列カウンタ(0→2−2の整数値を繰り返す)。カウンタ部12が検出したカウンタ値に基づいて形成される。
Specifically, when outputting the PWM signal with an accuracy of 2 n bits (n ≧ 1), the on / off control unit 14 uses the following equations (A) and (B), and in the equation (A) When Out = 1, the PWM signal is turned on, and when Out = 0 in the formula (B), the PWM signal is turned off.
Out = 1 (A)
However, when (Seqcnt × Data) mod 2 n −1 + Data> 2 n −2, Out = 0 (B)
However, when (Seqcnt × Data) mod 2 n −1 + Data ≦ 2 n −2,
Out: PWM signal output (1 = on, 0 = off)
Data: PWM output level (an integer value from 0 to 2 n −1) in a corresponding channel that outputs a PWM signal. A value is configured based on the data value acquired by the data acquisition unit 13.
Seqcnt: a time series counter common to all channels (0 → 2 n -2 integer value is repeated). It is formed based on the counter value detected by the counter unit 12.

より具体的には、例えば、PWM出力装置1が用いられるコンピュータや、遊技機(図示せず)における、PWM出力装置1が用いられたコンピュータが8ビットのコンピュータである場合、具体的には、オンオフ制御部14は、下記の式(C)及び式(D)を用い、式(C)におけるOut=1のときはPWM信号をオンとし、式(D)におけるOut=0のときはPWM信号をオフとする制御を行う。
Out=1・・・(C)
ただし(Seqcnt×Data)mod255+Data>254のとき
Out=0・・・(D)
ただし(Seqcnt×Data)mod255+Data≦254のとき
ここで、
Out:PWM信号の出力(1=オン、0=オフ)
Data:PWM信号を出力する該当チャンネルにおけるPWM出力レベル(0乃至255の整数値)。データ取得部13が取得したデータ値に基づいて値が構成される。
Seqcnt:全チャンネル共通の時系列カウンタ(0→254の整数値を繰り返す)。カウンタ部12が検出したカウンタ値に基づいて形成される。
More specifically, for example, when a computer using the PWM output device 1 or a computer using the PWM output device 1 in a gaming machine (not shown) is an 8-bit computer, specifically, The on / off control unit 14 uses the following equations (C) and (D), turns on the PWM signal when Out = 1 in equation (C), and turns on the PWM signal when Out = 0 in equation (D). Control to turn off the.
Out = 1 ... (C)
However, when (Seqcnt × Data) mod 255 + Data> 254, Out = 0 (D)
However, when (Seqcnt × Data) mod 255 + Data ≦ 254,
Out: PWM signal output (1 = on, 0 = off)
Data: PWM output level (an integer value from 0 to 255) in a corresponding channel that outputs a PWM signal. A value is configured based on the data value acquired by the data acquisition unit 13.
Seqcnt: A time series counter common to all channels (the integer value of 0 → 254 is repeated). It is formed based on the counter value detected by the counter unit 12.

このようにすることで、以下の効果を得ることができる。   By doing in this way, the following effects can be acquired.

まず、8ビットのシステムにおいて、8ビットで表せる数値(10進数で0乃至255、2進数だと00000000乃至11111111)の最高値で割った値の余りを算出することは、任意の数値から255を1回乃至複数回引いた値に等しくなるので、演算が簡易かつ高速になる。さらに、上記式(C)や式(D)においては、(Seqcnt×Data)mod255の演算は、{(0乃至254の整数)×(0乃至255の整数)mod255}となり、オンオフ制御部14において上記式(C)及び式(D)を演算する際に、(Seqcnt×Data)mod255の部分は除算以外の演算によって剰余を求めることができるので、当該部分において、事実上除算が不要になる。そのため、オンオフ制御部14における演算を簡易かつ高速に行うことが可能になり、かつ、オンオフ制御部14の構成も簡易なもので足りる。 First, in an 8-bit system, calculating the remainder of the value divided by the highest value of a numerical value represented by 8 bits (0 to 255 in decimal number, or 00000000 to 11111111 in binary number) is 255 from an arbitrary numerical value. Since it is equal to the value obtained by one or more times, the calculation is simple and fast. Further, in the above formulas (C) and (D), the calculation of (Seqcnt × Data) mod 255 is {(integer of 0 to 254) × (integer of 0 to 255) mod 255 }, and the on / off control unit 14, when calculating the above formulas (C) and (D), the remainder of (Seqcnt × Data) mod 255 can be obtained by calculation other than division, so that division is virtually unnecessary in that part. become. Therefore, the calculation in the on / off control unit 14 can be performed easily and at high speed, and the configuration of the on / off control unit 14 may be simple.

次に、Seqcntは、8ビットの数値で表しうるカウント数(10進数で0カウント乃至254カウントの合計255カウント)であり、このSeqcntを使用して、複数のチャンネルに対して式(C)及び式(D)を適用することにより、PWM信号の周期が細かい周期となる(具体的には、図4の(b)における、“seqcntの1周期”に対する、PWM信号201における“CH−AのPWMの1周期”、及び、PWM信号202における“CH−BのPWMの1周期”の関係を参照)。これにより、一のカウンタ部12の動作に基づいて、複数のチャンネルから、それぞれ細かくかつ異なる周期のPWM信号を出力させることができる。   Next, Seqcnt is a count number that can be represented by an 8-bit numerical value (a total of 255 counts of 0 to 254 counts in decimal number). Using this Seqcnt, the expression (C) and By applying the formula (D), the cycle of the PWM signal becomes a fine cycle (specifically, “CH-A of the CH-A in the PWM signal 201 with respect to“ one cycle of seqcnt ”in FIG. 4B). (Refer to the relationship between “one PWM cycle” and “one PWM cycle of CH-B” in the PWM signal 202). Thereby, based on the operation of one counter unit 12, it is possible to output PWM signals with fine and different periods from a plurality of channels.

以上の通り、上記式(C)及び式(D)を用いることにより、PWM出力装置1は、8ビットのシステムにおいて、簡易かつ低コストの回路構成によって形成できて、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とを容易に行うことができる。   As described above, by using the above formulas (C) and (D), the PWM output device 1 can be formed with a simple and low-cost circuit configuration in an 8-bit system, and on / off control at a high switching frequency is possible. And fine adjustment of the duty ratio can be easily performed.

また、上記式(C)及び式(D)において、Seqcntの最大値は254(2から2を引いた値)であり、Dataの最大値255(2から1を引いた値)であって、それぞれ2の指数倍の値から任意の値(ここでは2又は1)を引いた値である。これにより、ディジタル信号に適合したカウンタ値とデータ値に基づいて演算を行うことができるので、回路構成の簡素化と演算の高速化を図ることができ、特に、オンオフ制御部14をディジタル回路によって構成した場合に顕著な効果を得ることができる。 In the above formula (C) and Formula (D), the maximum value of Seqcnt is 254 (minus 2 from 2 8), (a value obtained by subtracting 1 from 2 8) the maximum value 255 of the Data met Each of these is a value obtained by subtracting an arbitrary value (2 or 1 in this case) from the value of an exponent of 2. As a result, the calculation can be performed based on the counter value and the data value suitable for the digital signal, so that the circuit configuration can be simplified and the calculation speed can be increased. When configured, a remarkable effect can be obtained.

また、上記式(C)及び式(D)において、しきい値は254(Dataの最大値255(2=)から1を引いた値)である。これにより、演算によって得た値が最大値以外の場合はオフまたはオンとすることができ、オンオフ制御を簡素化し、オンオフ制御部14の演算を簡素化かつ高速化することができる。 In the above formulas (C) and (D), the threshold value is 254 (a value obtained by subtracting 1 from the maximum value 255 of Data (2 = 8 )). Thereby, when the value obtained by the calculation is other than the maximum value, it can be turned off or on, the on / off control can be simplified, and the calculation of the on / off control unit 14 can be simplified and speeded up.

なお、これらの効果は、式(C)及び式(D)を一般化した、上記式(A)及び式(B)を適用した場合にも奏することができるし、8ビット以外のシステムに式(A)及び式(B)を適用した場合にも奏することができる。   These effects can also be achieved when the above formulas (A) and (B), which are generalized from the formulas (C) and (D), are applied. This can also be achieved when (A) and (B) are applied.

例えば、16ビットのシステムにPWM出力装置1を適用する際に、オンオフ制御部14において、下記の式(E)及び式(F)を用いることで、上記と同様の効果を奏することもできる。
Out=1・・・(E)
ただし(Seqcnt×Data)mod65535+Data>65534のとき
Out=0・・・(F)
ただし(Seqcnt×Data)mod65535+Data≦65534のとき
ここで、
Out:PWM信号の出力(1=オン、0=オフ)
Data:PWM信号を出力する該当チャンネルにおけるPWM出力レベル(0乃至65535の整数値)。データ取得部13が取得したデータ値に基づいて値が構成される。
Seqcnt:全チャンネル共通の時系列カウンタ(0→65534の整数値を繰り返す)。カウンタ部12が検出したカウンタ値に基づいて形成される。
For example, when the PWM output device 1 is applied to a 16-bit system, the following effects (E) and (F) can be used in the on / off controller 14 to achieve the same effect as described above.
Out = 1 ... (E)
However, when (Seqcnt × Data) mod 65535 + Data> 65534, Out = 0 (F)
However, when (Seqcnt × Data) mod 65535 + Data ≦ 65534,
Out: PWM signal output (1 = on, 0 = off)
Data: PWM output level (an integer value from 0 to 65535) in a corresponding channel that outputs a PWM signal. A value is configured based on the data value acquired by the data acquisition unit 13.
Seqcnt: A time series counter common to all channels (the integer value of 0 → 65534 is repeated). It is formed based on the counter value detected by the counter unit 12.

また、上記以外の2乗のシステムにおいても、同様の構成により、上記と同様の効果を奏することができる。 Also, in the 2n power system other than the above, the same effects as described above can be obtained with the same configuration.

[動作手順]
図2は、この実施の形態のPWM出力装置1の動作手順を示すフローチャートである。以下、同図に基づいてPWM出力装置の動作を説明する。ここでは説明の便宜上、PWM出力装置1が8ビットのシステムにおいて用いられている場合に基づいて説明する。
[Operation procedure]
FIG. 2 is a flowchart showing an operation procedure of the PWM output device 1 of this embodiment. Hereinafter, the operation of the PWM output device will be described with reference to FIG. Here, for convenience of explanation, a description will be given based on the case where the PWM output device 1 is used in an 8-bit system.

まず、遊技機(図示せず)において、周期的動作(例えばイベントの有無に関わらず断続的に行われるLEDの点滅)や、イベントの発生(例えば「大当たり」となった場合)において(ステップS1)、信号出力部11は、プログラムやワイヤードロジック等により予め設定された信号を出力する(ステップS2、信号出力手順)。この実施の形態において、信号出力部11はディジタル信号を出力するが、アナログ信号であってもよい。   First, in a gaming machine (not shown), in a periodic operation (for example, blinking of an LED that is intermittently performed regardless of the presence or absence of an event) or an occurrence of an event (for example, when a “big hit” occurs) (step S1) The signal output unit 11 outputs a signal set in advance by a program, wired logic, or the like (step S2, signal output procedure). In this embodiment, the signal output unit 11 outputs a digital signal, but may be an analog signal.

次に、ステップS1において信号出力部11から出力された信号に基づいて、カウンタ部12は、出力される信号のカウンタ値を検出する(ステップS3、カウンタ手順)。 Then, based on the signal outputted from the signal output unit 11 in step S1, the counter unit 12 detects the counter value of the signal that will be output (step S3, the counter steps).

また、ステップS1において信号出力部11から出力された信号に基づいて、データ取得部13は、ステップS2で検出されたカウンタ値に対応する任意の時点における、信号のデータ値を取得する(ステップS4、データ取得手順)。   Further, based on the signal output from the signal output unit 11 in step S1, the data acquisition unit 13 acquires the data value of the signal at an arbitrary time corresponding to the counter value detected in step S2 (step S4). , Data acquisition procedure).

次に、オンオフ制御部14は、ステップS3で取得されたカウンタ値、ステップS4で取得されたデータ値を式(C)及び式(D)に適用して、カウンタ値ごとのPWM信号を算出する。具体的には、オンオフ制御部14は、Out=1のときはPWM信号をオンとし(ステップS5の“Out=1”→ステップS6、オンオフ制御手順)、Out=0のときはPWM信号をオフとする(ステップS5の“Out=0”→ステップS7、オンオフ制御手順)。   Next, the on / off control unit 14 applies the counter value acquired in step S3 and the data value acquired in step S4 to the equations (C) and (D) to calculate a PWM signal for each counter value. . Specifically, the on / off control unit 14 turns on the PWM signal when Out = 1 (“Out = 1” in step S5 → step S6, on / off control procedure), and turns off the PWM signal when Out = 0. (“Out = 0” in step S5 → step S7, on / off control procedure).

ステップS6又はS7の手順の後、動作、イベントが継続している場合には(ステップS8の“No”)、カウンタ部12はカウンタ値をインクリメントしたのち、ステップS2乃至ステップS6又はS7の手順を繰り返す。この手順は、動作、イベントが終了するまで繰り返される(ステップS8の“Yes”)。   If the operation or event continues after the procedure of step S6 or S7 (“No” in step S8), the counter unit 12 increments the counter value and then performs the procedure of step S2 to step S6 or S7. repeat. This procedure is repeated until the operation and the event are completed (“Yes” in step S8).

以上の手順において、図3に概念図を示すPWM信号100が生成される。具体的には、同図に示す通り、一の任意のカウンタ値において、ステップS5乃至S6の手順による動作が行われた箇所は、PWM信号100の出力がオンとなり、他の任意のカウンタ値において、ステップS5乃至S7の手順による動作が行われた箇所は、PWM信号100の出力がオフとなる。なお、オンオフ制御部14は、上記の手順に基づいて複数のチャンネルから、それぞれ異なる周期の複数のPWM信号100を同時に出力させることができる。   In the above procedure, the PWM signal 100 whose conceptual diagram is shown in FIG. 3 is generated. Specifically, as shown in the figure, the output of the PWM signal 100 is turned on at the position where the operation according to the procedure of steps S5 to S6 is performed in one arbitrary counter value, and the other arbitrary counter value The output of the PWM signal 100 is turned off at the places where the operations according to the steps S5 to S7 are performed. Note that the on / off control unit 14 can simultaneously output a plurality of PWM signals 100 having different periods from a plurality of channels based on the above procedure.

以上示した通り、この実施の形態においては、オンオフ制御部14において、カウンタ値にデータ値を乗じた値を、カウンタ値及びデータ値のうち少なくとも何れか一方が取り得る最大値で割った余りの値を算出し、算出された余りの値にデータ値を足した和の値と、任意のしきい値とを対比し、和の値がしきい値よりも大きい場合にPWM信号100をオンとし、和の値がしきい値以下の場合にPWM信号100をオフとすることにより、カウンタ値とデータ値との数値の組み合わせに基づいて、1周期の長さが異なるPWM信号100を容易に形成できる。そのため、一のカウンタ部12の動作に基づいて、異なる周期のPWM信号100を複数出力することができるので、簡易かつ低コストの回路構成により、複数のチャンネルから、それぞれ周期やデューティ比の異なるPWM信号100を発生させることができる。また、上記の演算において、カウンタ値やデータ値を変化させることで、PWM信号100の周期やデューティ比を細かいレベルで変化させることができるので、PWM信号100の周期を短くし、デューティ比を細かく変化させることができて、PWM信号100のスイッチング周波数を高くすることや、デューティ比の微細な調整を容易に行うことができる。これにより、簡易かつ低コストの回路構成によって形成できて、高いスイッチング周波数でのオンオフ制御とデューティ比の細かい調整とを容易に行うことができる。   As described above, in this embodiment, the on / off controller 14 divides the value obtained by multiplying the counter value by the data value by the maximum value that at least one of the counter value and the data value can take. A value is calculated, the sum of the calculated remainder value plus the data value is compared with an arbitrary threshold value, and if the sum value is greater than the threshold value, the PWM signal 100 is turned on. By turning off the PWM signal 100 when the sum value is less than or equal to the threshold value, the PWM signal 100 having a different length of one cycle can be easily formed based on the combination of the counter value and the data value. it can. Therefore, since a plurality of PWM signals 100 having different periods can be output based on the operation of one counter unit 12, PWMs having different periods and duty ratios can be obtained from a plurality of channels with a simple and low-cost circuit configuration. A signal 100 can be generated. In the above calculation, by changing the counter value and the data value, the cycle and duty ratio of the PWM signal 100 can be changed at a fine level. Therefore, the cycle of the PWM signal 100 is shortened and the duty ratio is made fine. The switching frequency of the PWM signal 100 can be increased, and fine adjustment of the duty ratio can be easily performed. Thereby, it can be formed with a simple and low-cost circuit configuration, and on-off control at a high switching frequency and fine adjustment of the duty ratio can be easily performed.

なお、上記実施の形態においては、例えば式(A)及び式(B)において、Dataの最大値を2−1とし、Seqcntの最大値を2−2としたが、これに限らず、Dataの最大値、あるいはSeqcntの最大値に関して、任意のnを適用することもできる。 In the above embodiment, for example, in Formula (A) and Formula (B), the maximum value of Data is set to 2 n −1 and the maximum value of Seqcnt is set to 2 n −2, but not limited to this, Arbitrary n can be applied to the maximum value of Data or the maximum value of Seqcnt.

上記実施の形態は本発明の例示であり、本発明が上記実施の形態のみに限定されることを意味するものではないことは、いうまでもない。   The above embodiment is an exemplification of the present invention, and it is needless to say that the present invention is not limited to the above embodiment.

1・・・PWM信号出力装置
11・・・信号出力部(信号出力手段)
12・・・カウンタ部(カウンタ手段)
13・・・データ取得部(データ取得手段)
14・・・オンオフ制御部(オンオフ制御手段)
100,201,202・・・PWM信号
DESCRIPTION OF SYMBOLS 1 ... PWM signal output device 11 ... Signal output part (signal output means)
12 ... Counter section (counter means)
13: Data acquisition unit (data acquisition means)
14 ... ON / OFF control section (ON / OFF control means)
100, 201, 202 ... PWM signal

Claims (6)

遊技機に配設された機器の駆動や照明装置の点灯等のオンオフ制御を行うPWM出力装置であって、
任意の信号としての出力信号を出力する信号出力手段と、
所定の時間帯である基準時間帯を所定の数に当分して形成される個々の時間帯としての単位時間を単位として、該単位時間の数を計測することで前記出力信号の出力時間としてのカウンタ値を検出するカウンタ手段と、
該信号出力手段から出力された前記出力信号の信号値としてのデータ値を検出するデータ取得手段と、
前記データ値及び前記カウンタ値に基づいてそれぞれのPWM信号のオンオフを制御するオンオフ制御手段とを備え、
前記単位時間は、前記基準時間帯を2の所定数の指数倍を基準とした数に等分して得た値として設定され、
前記基準時間帯と前記単位時間とは、全ての前記PWM制御にて用いられる全ての前記PWM制御において共通して用いられ、
前記基準時間帯を一又は複数に等分して形成されるそれぞれの時間帯が、それぞれの前記PWM制御にて用いられる前記PWM信号の1周期として設定され、
該1周期は、それぞれの前記PWM信号ごとに別個に設定され、
それぞれの前記PWM信号は、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値が、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、
前記カウンタ手段は、前記単位時間の数を計測することで、それぞれの前記PWM信号の前記カウンタ値を検出し、
前記オンオフ制御手段においては、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値を、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定し、
前記オンオフ制御手段は、前記カウンタ値に前記データ値を乗じた値を、前記カウンタ値及び前記データ値のうち少なくとも何れか一方が取り得る前記最大値で割った余りの値を算出し、該算出された余りの値に前記データ値を足した和の値と、前記しきい値とを対比し、
前記和の値が前記しきい値よりも大きい場合にそれぞれの前記PWM信号をオンとし、前記和の値が前記しきい値以下の場合にそれぞれの前記PWM信号をオフとすることで、
共通の前記基準時間に基づいて別個に設定したそれぞれの前記PWM信号の1周期において、それぞれの前記PWM信号のオンオフ制御を行うことを特徴とするPWM出力装置。
A PWM output unit for performing on-off control of the lit of the driving and lighting apparatus disposed the equipment to the gaming machine,
Signal output means for outputting an output signal as an arbitrary signal;
As a unit time as an individual time zone formed by allocating a reference time zone, which is a predetermined time zone, to a predetermined number as a unit, by measuring the number of the unit time, as an output time of the output signal Counter means for detecting the counter value;
Data acquisition means for detecting a data value as a signal value of the output signal output from the signal output means;
On / off control means for controlling on / off of each PWM signal based on the data value and the counter value,
The unit time is set as a value obtained by equally dividing the reference time zone into a number based on an exponent multiple of a predetermined number of 2,
The reference time zone and the unit time are used in common in all the PWM controls used in all the PWM controls,
Each time zone formed by equally dividing the reference time zone into one or a plurality is set as one cycle of the PWM signal used in each PWM control,
The one period is set separately for each of the PWM signals,
In each PWM signal, the counter value, the output level of the PWM signal, and a predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using a binary number. And
The counter means detects the counter value of each PWM signal by measuring the number of unit times,
In the on / off control means, the counter value, the output level of the PWM signal, and a predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using a binary number. And
The on / off control means calculates a remainder value obtained by dividing a value obtained by multiplying the counter value by the data value by the maximum value that can be taken by at least one of the counter value and the data value. A value obtained by adding the data value to the remainder value is compared with the threshold value;
When the sum value is larger than the threshold value, the respective PWM signals are turned on, and when the sum value is less than the threshold value, the respective PWM signals are turned off .
A PWM output device that performs on / off control of each of the PWM signals in one cycle of each of the PWM signals set separately based on the common reference time .
前記最大値は、2の指数倍の値から1を引いた値であることを特徴とする請求項1に記載のPWM出力装置。   2. The PWM output device according to claim 1, wherein the maximum value is a value obtained by subtracting 1 from an exponent multiple of 2. 3. 前記しきい値は、前記最大値から1を引いた値であることを特徴とする請求項1又は2に記載のPWM出力装置。   The PWM output device according to claim 1, wherein the threshold value is a value obtained by subtracting 1 from the maximum value. 前記オンオフ制御手段は、下記式(A)及び式(B)を用いて、前記和の値と、前記しきい値との対比を行い、
前記オンオフ制御手段は、前記式(A)におけるOut=1のときは前記PWM信号をオンとし、前記式(B)におけるOut=0のときは前記PWM信号をオフとすることを特徴とする請求項1乃至3の何れか一つに記載のPWM出力装置。
Out=1・・・(A)
ただし(Seqcnt×Data)mod −1+Data>2−2のとき
Out=0・・・(B)
ただし(Seqcnt×Data)mod −1+Data≦2−2のとき
ここで、
Out:PWM信号の出力(1=オン、0=オフ)
Data:PWM信号を出力する該当チャンネルにおけるPWM出力レベル(0乃至2−1の整数値)
Seqcnt:全チャンネル共通の時系列カウンタ(0→2−2の整数値を繰り返す)
The on / off control means compares the sum value with the threshold value using the following formulas (A) and (B):
The on / off control means turns on the PWM signal when Out = 1 in the equation (A), and turns off the PWM signal when Out = 0 in the equation (B). Item 4. The PWM output device according to any one of Items 1 to 3.
Out = 1 (A)
However, when (Seqcnt × Data) mod 2 n −1 + Data> 2 n −2, Out = 0 (B)
However, when (Seqcnt × Data) mod 2 n −1 + Data ≦ 2 n −2,
Out: PWM signal output (1 = on, 0 = off)
Data: PWM output level (an integer value from 0 to 2 n −1) in the corresponding channel that outputs the PWM signal
Seqcnt: Time series counter common to all channels (0 → 2 n -2 integer value is repeated)
遊技機に配設された機器の駆動や照明装置の点灯のオンオフ制御を行うためのPWM出力方法であって、
任意の信号としての出力信号を出力する信号出力手順と、
所定の時間帯である基準時間帯を所定の数に当分して形成される個々の時間帯としての単位時間を単位として、該単位時間の数を計測することで前記出力信号の出力時間としてのカウンタ値を検出するカウンタ手順と、
該信号出力手順から出力された前記出力信号の信号値としてのデータ値を検出するデータ取得手順と、
前記データ値及び前記カウンタ値に基づいてそれぞれのPWM信号のオンオフを制御するオンオフ制御手順とを備え、
前記単位時間は、前記基準時間帯を2の所定数の指数倍を基準とした数に等分して得た値として設定され、
前記基準時間帯と前記単位時間とは、全ての前記PWM制御にて用いられる全ての前記PWM制御において共通して用いられ、
前記基準時間帯を一又は複数に等分して形成されるそれぞれの時間帯が、それぞれの前記PWM制御にて用いられる前記PWM信号の1周期として設定され、
該1周期は、それぞれの前記PWM信号ごとに別個に設定され、
それぞれの前記PWM信号は、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値が、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、
前記カウンタ手順においては、前記単位時間の数を計測することで、それぞれの前記PWM信号の前記カウンタ値が検出され、
前記オンオフ制御手順においては、前記カウンタ値及び前記PWM信号の出力レベル及び所定のしきい値を、2進数を用いて、それぞれの最大値が2の所定数の指数倍を基準とした値として設定され、
前記オンオフ制御手順においては、前記カウンタ値に前記データ値を乗じた値を、前記カウンタ値及び前記データ値のうち少なくとも何れか一方が取り得る前記最大値で割った余りの値を算出し、該算出された余りの値に前記データ値を足した和の値と、前記しきい値とを対比し、
前記和の値が前記しきい値よりも大きい場合にそれぞれの前記PWM信号をオンとし、前記和の値が前記しきい値以下の場合にそれぞれの前記PWM信号をオフとすることで、共通の前記基準時間に基づいて別個に設定したそれぞれの前記PWM信号の1周期において、それぞれの前記PWM信号のオンオフ制御を行うことを特徴とするPWM出力方法。
A PWM output method for performing on-off control of lit driving and lighting system of the apparatus disposed in the game machine,
A signal output procedure for outputting an output signal as an arbitrary signal;
As a unit time as an individual time zone formed by allocating a reference time zone, which is a predetermined time zone, to a predetermined number as a unit, by measuring the number of the unit time, as an output time of the output signal A counter procedure for detecting the counter value;
A data acquisition procedure for detecting a data value as a signal value of the output signal output from the signal output procedure;
An on / off control procedure for controlling on / off of each PWM signal based on the data value and the counter value,
The unit time is set as a value obtained by equally dividing the reference time zone into a number based on an exponent multiple of a predetermined number of 2,
The reference time zone and the unit time are used in common in all the PWM controls used in all the PWM controls,
Each time zone formed by equally dividing the reference time zone into one or a plurality is set as one cycle of the PWM signal used in each PWM control,
The one period is set separately for each of the PWM signals,
In each PWM signal, the counter value, the output level of the PWM signal, and a predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using a binary number. And
In the counter procedure, the counter value of each PWM signal is detected by measuring the number of unit times,
In the on / off control procedure, the counter value, the output level of the PWM signal, and a predetermined threshold value are set as values based on an exponential multiple of a predetermined number of 2 using a binary number. And
In the on-off control procedure, the data value obtained by multiplying a, calculates the value of the modulo least the maximum one can take of the counter value and the data value to the counter value, the the value of the sum of the calculated remainder value plus the data value, and the threshold value comparison,
Each PWM signal is turned on when the sum value is larger than the threshold value, and each PWM signal is turned off when the sum value is less than or equal to the threshold value . A PWM output method , wherein on / off control of each PWM signal is performed in one cycle of each PWM signal set separately based on the reference time .
請求項1乃至4の何れか一つに記載のPWM出力装置に基づいて、遊技機本体に配設された照明装置のオンオフ制御を行うことを特徴とする遊技機。   A gaming machine that performs on / off control of a lighting device disposed in a gaming machine main body based on the PWM output device according to any one of claims 1 to 4.
JP2013060506A 2013-03-22 2013-03-22 PWM output device, PWM output method, and game machine Active JP5560453B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013060506A JP5560453B1 (en) 2013-03-22 2013-03-22 PWM output device, PWM output method, and game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013060506A JP5560453B1 (en) 2013-03-22 2013-03-22 PWM output device, PWM output method, and game machine

Publications (2)

Publication Number Publication Date
JP5560453B1 true JP5560453B1 (en) 2014-07-30
JP2014187519A JP2014187519A (en) 2014-10-02

Family

ID=51417002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013060506A Active JP5560453B1 (en) 2013-03-22 2013-03-22 PWM output device, PWM output method, and game machine

Country Status (1)

Country Link
JP (1) JP5560453B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239052A (en) * 2017-05-23 2017-10-10 中国电子科技集团公司第四十研究所 A kind of triggering level automatic calibrating method realized based on FPGA
CN110572141A (en) * 2019-08-16 2019-12-13 赛特威尔电子股份有限公司 method and device for improving precision of PWM controller

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61212652A (en) * 1985-03-19 1986-09-20 Mitsubishi Motors Corp Control device of internal-combustion engine
JPS61221595A (en) * 1985-03-22 1986-10-01 Fujitsu Ltd Pulse motor drive monitoring system
JPH01130615A (en) * 1987-11-17 1989-05-23 Nec Corp Pulse output device
JPH04165721A (en) * 1990-10-29 1992-06-11 Nippon Telegr & Teleph Corp <Ntt> Optimum transmission power setting system
JP2007167383A (en) * 2005-12-22 2007-07-05 Konami Digital Entertainment:Kk Game program, game system, and game system control method
JP2008186045A (en) * 2007-01-26 2008-08-14 Denso Corp Driving evaluation apparatus
JP2008212362A (en) * 2007-03-02 2008-09-18 Sega Corp Game apparatus
JP2010274002A (en) * 2009-05-29 2010-12-09 Sega Corp Game device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61212652A (en) * 1985-03-19 1986-09-20 Mitsubishi Motors Corp Control device of internal-combustion engine
JPS61221595A (en) * 1985-03-22 1986-10-01 Fujitsu Ltd Pulse motor drive monitoring system
JPH01130615A (en) * 1987-11-17 1989-05-23 Nec Corp Pulse output device
JPH04165721A (en) * 1990-10-29 1992-06-11 Nippon Telegr & Teleph Corp <Ntt> Optimum transmission power setting system
JP2007167383A (en) * 2005-12-22 2007-07-05 Konami Digital Entertainment:Kk Game program, game system, and game system control method
JP2008186045A (en) * 2007-01-26 2008-08-14 Denso Corp Driving evaluation apparatus
JP2008212362A (en) * 2007-03-02 2008-09-18 Sega Corp Game apparatus
JP2010274002A (en) * 2009-05-29 2010-12-09 Sega Corp Game device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239052A (en) * 2017-05-23 2017-10-10 中国电子科技集团公司第四十研究所 A kind of triggering level automatic calibrating method realized based on FPGA
CN107239052B (en) * 2017-05-23 2019-09-24 中国电子科技集团公司第四十一研究所 A kind of triggering level automatic calibrating method realized based on FPGA
CN110572141A (en) * 2019-08-16 2019-12-13 赛特威尔电子股份有限公司 method and device for improving precision of PWM controller
CN110572141B (en) * 2019-08-16 2024-02-13 赛特威尔电子股份有限公司 Method and device for improving precision of PWM controller

Also Published As

Publication number Publication date
JP2014187519A (en) 2014-10-02

Similar Documents

Publication Publication Date Title
KR100732141B1 (en) Pulse width modulation circuit
JP2005341596A5 (en)
KR20080030928A (en) Pwm signal generating circuit and power supply apparatus comprising such pwm signal generating circuit
JP5560453B1 (en) PWM output device, PWM output method, and game machine
WO2009122769A1 (en) Control device and control method for power converter circuits
KR20130029738A (en) Pwm signal output circuit
US9035710B2 (en) PWM signal generating circuit, printer, and PWM signal generating method
JP2017101932A5 (en)
US9872346B2 (en) Phase controller apparatus and methods
US9252762B2 (en) Pulse generation device and pulse generation method
JP6103557B1 (en) Power converter and control method of power converter
JP2019070603A (en) Abz phase frequency divider
CN103856211A (en) Counter, counting method and frequency divider
JP2005339245A (en) Interruption generation circuit
CN112261756A (en) LED gray scale display control method and device
JP2014007455A (en) Pwm signal creation method and pwm signal creation device
JP6500550B2 (en) Timer correction device, timer correction method and timer correction program
US20160342139A1 (en) Frequency division circuit, method of controlling frequency division circuit, and analog electronic timepiece
JP6142567B2 (en) Pulse motor driving device and pulse motor driving method
CN205453534U (en) Multistage dc -to -ac converter controlling means
JP3847734B2 (en) Timer circuit
CN110572141B (en) Method and device for improving precision of PWM controller
JP5984688B2 (en) Signal output device
US8896356B1 (en) Ramp control with programmable parameters
KR20150083599A (en) Method for outputting positioning pulse of PLC

Legal Events

Date Code Title Description
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: 20140430

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140519

R150 Certificate of patent or registration of utility model

Ref document number: 5560453

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250