JPH0119305B2 - - Google Patents
Info
- Publication number
- JPH0119305B2 JPH0119305B2 JP56041370A JP4137081A JPH0119305B2 JP H0119305 B2 JPH0119305 B2 JP H0119305B2 JP 56041370 A JP56041370 A JP 56041370A JP 4137081 A JP4137081 A JP 4137081A JP H0119305 B2 JPH0119305 B2 JP H0119305B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- sample
- circuit
- output
- sample value
- 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.)
- Expired
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B14/00—Transmission systems not characterised by the medium used for transmission
- H04B14/02—Transmission systems not characterised by the medium used for transmission characterised by the use of pulse modulation
- H04B14/04—Transmission systems not characterised by the medium used for transmission characterised by the use of pulse modulation using pulse code modulation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
- Reduction Or Emphasis Of Bandwidth Of Signals (AREA)
Description
【発明の詳細な説明】
この発明は、標本数変換回路に関し、特に画像
信号等の標本数を変換する回路に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sample number conversion circuit, and more particularly to a circuit that converts the number of samples of an image signal or the like.
画像信号や音声信号のデイジタル処理におい
て、信号は標本値の集合として表わされる。音声
信号は勿論のこと画像信号も走査により時間に従
つて振幅が変化する電気信号として処理されるの
で、標本値は時系列を成しており、通常の場合標
本間の時間間隔は一定である。 In digital processing of image signals and audio signals, the signals are represented as a set of sample values. Since not only audio signals but also image signals are processed as electrical signals whose amplitude changes over time due to scanning, the sample values form a time series, and the time interval between samples is usually constant. .
信号の変化の速さに対して、標本間の間隔が十
分に小さい場合において、標本の間引きや内挿に
よつて標本数を変換することにより得られる系列
は、同数の標本値を持つ標本値系列の良い近似と
なる。M個の標本の系列SIをN個の標本の系列S- O
に変換したとする。ここでM,Nは正整数であ
る。M>Nであれば、変換の結果は同じ信号に対
して粗い標本化を行つた標本系列にほぼ等しい。
もし、変換前後の標本時間間隔を等しいものとす
れば、変換後は信号が時間的に圧縮されたものと
なる。画像信号の場合には、画像が縮小されるこ
とに等しい。逆に、M<Nであれば変換結果は信
号に対してより密な標本化を行つた標本系列に近
いものとなり、変換前後の標本間隔を等しいとす
れば信号の時間伸長や画像の拡大になる。 If the interval between samples is sufficiently small relative to the speed of change of the signal, the series obtained by converting the number of samples by sample thinning or interpolation will have the same number of sample values. This is a good approximation of the series. Let the sequence S I of M samples be the sequence S - O of N samples
Suppose you convert it to Here, M and N are positive integers. If M>N, the result of the transformation is approximately equal to a sample sequence obtained by coarsely sampling the same signal.
If the sample time intervals before and after conversion are made equal, the signal will be temporally compressed after conversion. In the case of image signals, this is equivalent to reducing the image. Conversely, if M<N, the conversion result will be close to a sample sequence obtained by sampling the signal more densely, and if the sampling intervals before and after conversion are the same, it will be possible to time-expand the signal and enlarge the image. Become.
上述の様な標本数変換をデイジタル的に行う回
路では、従来数値MとNの関係は比較的単純なも
のに限られていた。 In circuits that digitally perform sample number conversion as described above, the relationship between numerical values M and N has conventionally been limited to relatively simple ones.
第1図aはM>Nの場合の標本数変換回路の構
成の従来例を示すブロツク図である。変換前の標
本値系列S1がメモリ11に記憶されており、アド
レスカウンタ12はアドレスカウントアツプ信号
SFとしてのクロツクによりカウントアツプされ、
標本値DTが順次得られる。同じクロツクは分周
カウントアツプ信号CKとして分周カウンタ13
にも与えられ、分周カウンタ13の計数値は比較
回路14の一方の入力となつている。比較回路1
4のもう一方の入力には、分周比を示す2進信号
DRが印加されており、分周カウンタ13の計数
値が信号DKに一致した時に、比較回路14より
一致パルスが出力される。このパルスは分周カウ
ンタ13のリセツト端子に与えられて、分周カウ
ンタ13をリセツトするので、分周カウンタ13
は数値DRを周期とする計数を繰返す。 FIG. 1a is a block diagram showing a conventional example of the configuration of a sample number conversion circuit when M>N. The sample value series S1 before conversion is stored in the memory 11, and the address counter 12 receives the address count up signal.
It is counted up by the clock as SF,
Sample values DT are obtained sequentially. The same clock is sent to the frequency division counter 13 as the frequency division count up signal CK.
The count value of the frequency division counter 13 is also provided as one input of the comparison circuit 14. Comparison circuit 1
The other input of 4 is a binary signal indicating the division ratio.
When DR is being applied and the count value of the frequency division counter 13 matches the signal DK, the comparison circuit 14 outputs a matching pulse. This pulse is given to the reset terminal of the frequency division counter 13 and resets the frequency division counter 13.
repeats counting with a period equal to the numerical value DR.
一致パルスは、また再サンプルパルスSMとし
て出力され、このパルスが出力された時点でのメ
モリ11の出力値DTを変換後の標本値とするこ
とを示す。従つて、再サンプルパルスSMの出力
された時点のみのメモリ11の出力値は変換後の
標本値系列S- Oとなつている。たとえば、この再
サンプルパルスSMを用いてメモリ11の出力値
を他の出力用メモリ(あるいはシフトレジスタ)
に書込めば、変換後の標本値系列S- Oがそのメモ
リ内に記憶されることが容易に理解されるであろ
う。第1図bは、上述のような変換回路による標
本数変換の一例を示す図で、分周比が2の場合を
示す。以下では簡単のため標本値は2値信号0又
は1であるとする。この例では、MとNは2対1
の簡単な比を成しており、標本数変換は1標本置
きの間引きに等しい。第1図の様な回路構成で
は、一般にMとNの比は分周比DRに等しく、変
換はDR−1標本置きの間引きとなるのが普通で
ある。MとNの比が整数でないときは比較回路1
4への入力信号DRを再サンプルパルスSM発生
毎に変化させればよいがその制御は繁雑である。 The coincidence pulse is also output as a re-sampling pulse SM, indicating that the output value DT of the memory 11 at the time when this pulse is output is to be the sample value after conversion. Therefore, the output value of the memory 11 only at the time when the resampling pulse SM is output is the converted sample value sequence S - O. For example, using this resampling pulse SM, the output value of memory 11 is transferred to another output memory (or shift register).
It will be easily understood that if the sample value sequence S - O after transformation is written to , the converted sample value sequence S - O will be stored in its memory. FIG. 1b is a diagram showing an example of sample number conversion by the conversion circuit as described above, and shows a case where the frequency division ratio is 2. In the following, for simplicity, it is assumed that the sample value is a binary signal 0 or 1. In this example, M and N are 2 to 1
It forms a simple ratio of , and sample number conversion is equivalent to thinning out every other sample. In the circuit configuration as shown in FIG. 1, the ratio of M and N is generally equal to the frequency division ratio DR, and the conversion is usually performed by thinning out every DR-1 sample. When the ratio of M and N is not an integer, comparator circuit 1
It is possible to change the input signal DR to the resampling pulse SM every time the resampling pulse SM occurs, but this control is complicated.
図2aはM<Nの場合の標本数変換回路の構成
の従来例を示すブロツク図である。この第2図a
において、各部の機能動作は、第1図aの場合と
同様であるが、信号線の接続が異なる。分周カウ
ンタ23へ印加される分周カウントアツプ信号
CKとしてのクロツクは、そのまま再サンプルパ
ルスSMとして出力され、また比較回路24の出
力の一致パルスが分周カウンタ23のリセツトと
共にアドレスカウンタ22のカウントアツプ信号
SFとして用いられ、このカウントアツプ信号SF
によりアドレスカウンタ22がカウントアツプさ
れる。これにより、比較回路24に入力される信
号DRだけの分周比だけの再サンプルパルスSM
につき1カウントアツプパルスSFが発生される。
従つて、変換前の標本系列SIのそれぞれの標本値
が分周比DR個ずつ標本系列S- Oの標本値として出
力され、標本数はDR倍されることになる。 FIG. 2a is a block diagram showing a conventional example of the configuration of a sample number conversion circuit when M<N. This second figure a
In this case, the functional operation of each part is the same as in the case of FIG. 1a, but the connections of signal lines are different. Frequency division count up signal applied to frequency division counter 23
The clock as CK is output as is as a resampling pulse SM, and the coincidence pulse output from the comparator circuit 24 resets the frequency division counter 23 and generates a count-up signal for the address counter 22.
This count-up signal SF is used as SF.
As a result, the address counter 22 is counted up. As a result, the resampling pulse SM with only the frequency division ratio of the signal DR input to the comparator circuit 24 is generated.
One count up pulse SF is generated per time.
Therefore, each sample value of the sample sequence S I before conversion is output as a sample value of the sample sequence S - O by a division ratio of DR, and the number of samples is multiplied by DR.
第2図bは分周比が2、即ちM対Nが1対2の
場合の変換例を示す。第2図の様な回路構成で
は、NがMの整数倍であるのが普通であり、そう
でなければ比較回路24への入力値DRをカウン
トアツプパルスSF毎に変化させなければならず、
制御は繁雑である。 FIG. 2b shows an example of conversion when the frequency division ratio is 2, that is, M:N is 1:2. In the circuit configuration as shown in FIG. 2, it is normal that N is an integer multiple of M; otherwise, the input value DR to the comparator circuit 24 must be changed for each count-up pulse SF.
Control is complicated.
上述の様な従来の回路構成で、MとNの値を任
意に選べる様にするには、MとNの大小に従つて
図1と図2の回路接続を切換えなければならず、
回路構成とその制御はさらに複雑になる。 In order to be able to arbitrarily select the values of M and N in the conventional circuit configuration as described above, it is necessary to switch the circuit connections in FIGS. 1 and 2 according to the magnitudes of M and N.
The circuit configuration and its control become even more complex.
それゆえに、この発明の主たる目的は比較的簡
単な単一の回路で、MとNの値を任意に設定でき
るような標本数変換回路を提供することである。 Therefore, the main object of the present invention is to provide a sample number conversion circuit that can arbitrarily set the values of M and N using a relatively simple single circuit.
この発明を要約すれば、M個の第1の標本値系
列SIにより表わされる信号をN個の第2の標本値
系列S- Oに変換する回路において、数値Nを表わ
す2進信号を−Nを表わす2進信号に負化し、選
択手段でこの−Nの2進信号または数値Mを表わ
す2進信号の一方を選択して加算回路に与える。
加算回路は選択された信号と一時記憶手段に記憶
されている数値とを加算して一時記憶手段に記憶
させる。この一時記憶手段に記憶された内容に基
づいて、第1の記憶手段に記憶されている第1の
標本値系列SI中の次の標本値信号を読出すための
読出信号を第1の記憶手段に与え、第2の標本値
系列S- Oにおける次の標本値信号の書込みを行な
うための書込信号を発生して第2の記憶手段に与
えるように構成したものである。 To summarize the invention, in a circuit that converts a signal represented by a first sequence of M sample values S I into a second sequence of N sample values S - O , a binary signal representing a numerical value N is - The binary signal representing N is made negative, and the selection means selects either the binary signal of -N or the binary signal representing the numerical value M and supplies it to the adder circuit.
The adder circuit adds the selected signal and the numerical value stored in the temporary storage means and stores the result in the temporary storage means. Based on the contents stored in this temporary storage means, a read signal for reading out the next sample value signal in the first sample value series S I stored in the first storage means is stored in the first storage means. The write signal for writing the next sample value signal in the second sample value series S - O is generated and applied to the second storage means.
この発明の上述の目的およびその他の目的と特
徴は図面を参照して行なう以下の詳細な説明から
一層明らかとなろう。 The above objects and other objects and features of the invention will become more apparent from the following detailed description with reference to the drawings.
第3図はこの発明による標本数変換回路の構成
を示すブロツク図である。図に示す様に、数値N
を表わす2進信号が負化回路31により数値−N
の2進信号にされて選択回路32の一方の入力と
なり、もう一方には数値Mを表わす2進信号が入
力される。レジスタ34の出力信号SGに従つて
いずれか一方の2進信号が選択回路32より出力
され、加算回路33の一方の入力Bとなる。加算
回路33ではAとBの両方の入力信号の2進加算
が演算され、和が出力されてレジスタ34の入力
となる。レジスタ34では、ストローブパルス
STにより入力値が出力側に伝達され、これが加
算回路33のA入力になる。レジスタ34の2進
信号出力のうち最大桁位MSBの信号SGは、出力
数値が正又は零のとき0で、負のとき1となる符
号ビツトであり、この信号SGは選択回路32に
与えられ、0のときに2進信号−Nが、1のとき
に2進信号Mが選択回路32の出力となる。上述
のような構成により、選択回路32、加算回路3
3、レジスタ34では、ストローブパルスSTの
印加直後に入出力の変化が生じる。 FIG. 3 is a block diagram showing the configuration of a sample number conversion circuit according to the present invention. As shown in the figure, the number N
The binary signal representing
is converted into a binary signal and becomes one input of the selection circuit 32, and a binary signal representing the numerical value M is input to the other input. According to the output signal SG of the register 34, one of the binary signals is outputted from the selection circuit 32 and becomes one input B of the addition circuit 33. The adder circuit 33 performs binary addition of both the input signals A and B, and the sum is output and becomes the input to the register 34 . In register 34, the strobe pulse
The input value is transmitted to the output side by ST, and this becomes the A input of the adder circuit 33. The signal SG of the highest digit MSB of the binary signal output of the register 34 is a sign bit that is 0 when the output value is positive or zero and 1 when it is negative, and this signal SG is given to the selection circuit 32. , the binary signal -N is output from the selection circuit 32 when it is 0, and the binary signal M is output when it is 1. With the above-described configuration, the selection circuit 32 and the addition circuit 3
3. In the register 34, a change in input and output occurs immediately after the application of the strobe pulse ST.
シーケンス制御回路35は、前記ストローブパ
ルスSTと、変換前の標本値系列SIの次の標本値
の要求を示すパルスSFおよび変換後の標本値系
列S- Oへの標本値の追加を示すパルスSMを発生す
る回路で、一般的な構成の順序回路である。状態
レジスタ61はクロツクCKにより入力を出力側
に伝達することにより順序回路の状態を更新し、
その出力がROM62のアドレス入力となつてい
る。ROM62は各状態における順序回路の出力
と次の状態決定に関する指示をプログラムとして
記憶しており、アドレス入力に従つて出力する。
ROM62の出力の一部は状態決定論理回路63
に入力され、外部入力との組み合わせにより条件
分岐など次にとるべき状態が決定される。ROM
62の出力の他の一部は出力論理回路64に入力
され、クロツクCKを条件的にゲートするなどに
より、必要なパルスやレベルの出力を発生する。
外部入力としてはレジスタ34の出力信号SGの
他、変換の開始や終了の指示(図示せず)などが
あり、出力としては上述の3種のパルスの他に例
えばレジスタ34をリセツトするパルスCLなど
がある。パルスSFは第1図や第2図のアドレス
カウンタのカウントパルスに相当し、パルスSM
は再サンプルパルスに相当するものである。 The sequence control circuit 35 generates the strobe pulse ST, a pulse SF indicating a request for the next sample value of the sample value series S I before conversion, and a pulse indicating addition of a sample value to the sample value series S - O after conversion. This is a circuit that generates SM, and is a sequential circuit with a general configuration. The status register 61 updates the status of the sequential circuit by transmitting the input to the output side using the clock CK.
The output serves as the address input for the ROM62. The ROM 62 stores the output of the sequential circuit in each state and instructions regarding determination of the next state as a program, and outputs the output in accordance with the address input.
A part of the output of the ROM 62 is sent to the state determination logic circuit 63.
The next state to be taken, such as conditional branching, is determined by combining with external input. ROM
The other part of the output of 62 is input to an output logic circuit 64, which generates an output of the required pulses and levels, such as by conditionally gating the clock CK.
In addition to the output signal SG of the register 34, external inputs include instructions to start and end conversion (not shown), and outputs include, in addition to the three types of pulses mentioned above, a pulse CL for resetting the register 34, etc. There is. Pulse SF corresponds to the count pulse of the address counter in Figures 1 and 2, and pulse SM
corresponds to the resampling pulse.
パルスSFはアドレスカウンタ41に与えられ
てアドレスをカウントアツプし、このアドレスカ
ウンタ41のアドレス出力によつてSIメモリ42
のアドレスが指定される。このSIメモリ42は変
換前の標本値系列SIを記憶している。また、パル
スSMはアドレスカウンタ43に与えられてアド
レスをカウントアツプし、このアドレスカウンタ
43のアドレスが出力によつてS- Oメモリ44の
アドレスが指定される。このS- pメモリ44は変
換後の標本値系列S- Oを記憶している。 The pulse SF is given to the address counter 41 to count up the address, and the address output of the address counter 41 causes the S I memory 42 to be counted up.
address is specified. This S I memory 42 stores the sample value series S I before conversion. Further, the pulse SM is applied to the address counter 43 to count up the address, and the address of the S - O memory 44 is designated by the address of the address counter 43 being output. This S - p memory 44 stores the sample value sequence S - O after conversion.
第4図は、第3図中の負化回路31の具体的回
路例を示すものであり、加算回路40および否定
回路41ないし44を含む。この例では4桁の2
進数Nを、同じく4桁の2進数−Nに変換してい
る。加算回路40の一方の入力値をN、他方の入
力値を−1とするので、加算回路40の出力値は
N−1となり、否定回路41ないし44により全
ての桁の値が論理的に反転されるので−(N−1)
−1=−Nを表わす2進信号が得られる。第3図
の他の構成ブロツクは、対応する論理集積回路素
子により容易に実現できる。 FIG. 4 shows a specific circuit example of the negative circuit 31 in FIG. 3, and includes an addition circuit 40 and negation circuits 41 to 44. In this example, the 4-digit 2
The base number N is also converted to a 4-digit binary number -N. Since one input value of the adder circuit 40 is N and the other input value is -1, the output value of the adder circuit 40 is N-1, and the values of all digits are logically inverted by the NOT circuits 41 to 44. Because -(N-1)
A binary signal representing -1=-N is obtained. The other building blocks of FIG. 3 can be easily implemented with corresponding logic integrated circuit elements.
第5図は、第3図の様な標本数変換回路による
標本数変換の一例を示す図で、特に第5図aはス
トローブパルスST毎の変換回路の主な入出力信
号の変化を表わす図を示し、第5図bは変換前後
の標本値系列SIおよびS- Oの関係を示す図である。
この例はMが7でNが4(M>N)の場合を示す。 FIG. 5 is a diagram showing an example of sample number conversion by the sample number conversion circuit as shown in FIG. 3. Particularly, FIG. FIG. 5b is a diagram showing the relationship between the sample value series S I and S - O before and after conversion.
This example shows a case where M is 7 and N is 4 (M>N).
変換開始前(ステツプ0)にレジスタ34がリ
セツトされるので、レジスタ34の出力値Aは0
となり最大桁の信号SGも0となるため、選択回
路32では−Nが選択されて出力Bの数値は−4
となり、従つて加算回路33の出力も数値−4と
なる。信号SGが0であるから、ステツプ1では
ストローブパルスSTと同時にパルスSFが出力さ
れる。これにより変換前の標本値系列SIの1番目
の標本値0が得られる。また、ステツプ1ではレ
ジスタ34の出力にステツプ0における加算回路
33の出力値−4が伝達され、最大桁の信号SG
が1に変わる。この結果、選択回路32では数値
Mが選択されて加算回路33に達し、加算回路の
出力値は7−4=3となる。次のステツプ2で
は、信号SGが1であることから、ストローブパ
ルスSTと同時に再サンプルパルスSMが発生さ
れる。これにより標本値系列SIより得られている
1番目の標本値が、変換後の標本値系列S- Oの1
番目の標本値として出力される。パルス発生後に
は、レジスタ34の出力値が3、信号SGが0、
選択回路32の出力値が−4、そして加算回路3
3の出力値は−1となる。したがつて、次のステ
ツプ3では、ストローブパルスSTとパルスSFが
同時に発生され、変換前の標本値系列SIから2番
目の標本値0が得られる。以下同様にして、各ス
テツプにおいてストローブパルスSTと同時に信
号SGに従つてパルスSFか或は再サンプルパルス
SMが発生される。すなわち、直前のステツプで
レジスタ34の出力値Aが正又は零であれば、次
のステツプでストローブパルスSTとパルスSFが
発生されて、Aと−Nの和が計算され、そうでな
ければストローブパルスSTと再サンプルパルス
SMが発生されてAとMの和が計算される。この
ようにして、再サンプルパルスSMがN回発生さ
れるまで、すなわち変換後の標本値系列S- Oの標
本数がNに達するまで前述の過程が繰返される。
その結果、第5図bに示すように、標本値系列SI
の7標本値から4標本値が選択されて出力され、
標本値系列S- Oが形成される。 Since the register 34 is reset before the conversion starts (step 0), the output value A of the register 34 is 0.
Therefore, the signal SG of the largest digit also becomes 0, so the selection circuit 32 selects -N and the numerical value of the output B becomes -4.
Therefore, the output of the adder circuit 33 also becomes a numerical value of -4. Since the signal SG is 0, in step 1, the pulse SF is output simultaneously with the strobe pulse ST. As a result, the first sample value 0 of the sample value series S I before conversion is obtained. Furthermore, in step 1, the output value -4 of the adder circuit 33 in step 0 is transmitted to the output of the register 34, and the maximum digit signal SG
changes to 1. As a result, the selection circuit 32 selects the numerical value M and reaches the addition circuit 33, and the output value of the addition circuit becomes 7-4=3. In the next step 2, since the signal SG is 1, a resampling pulse SM is generated simultaneously with the strobe pulse ST. As a result, the first sample value obtained from the sample value series S I becomes 1 of the sample value series S - O after conversion.
Output as the th sample value. After the pulse is generated, the output value of the register 34 is 3, the signal SG is 0,
The output value of the selection circuit 32 is -4, and the addition circuit 3
The output value of 3 is -1. Therefore, in the next step 3, strobe pulse ST and pulse SF are generated simultaneously, and the second sample value 0 is obtained from the sample value series S I before conversion. Similarly, at each step, pulse SF or resampling pulse is applied simultaneously with strobe pulse ST according to signal SG.
SM is generated. That is, if the output value A of the register 34 is positive or zero in the previous step, strobe pulse ST and pulse SF are generated in the next step, and the sum of A and -N is calculated. Pulse ST and resample pulse
SM is generated and the sum of A and M is calculated. In this way, the above process is repeated until the resampling pulse SM is generated N times, that is, until the number of samples of the converted sample value sequence S - O reaches N.
As a result, as shown in Figure 5b, the sample value series S I
4 sample values are selected and output from the 7 sample values of
A sample value sequence S - O is formed.
第6図は第3図の様な標本数変換回路による標
本数変換の他の例でMが5及びNが8(M<N)
の場合を示す。第5図の場合と同様にして、第6
図aはストローブパルスST毎の変換回路の主な
入出力信号の変化を表わし、第6図bは変換前後
の標本値系列SIおよびS- Oの関係を示す。第5図で
の回路動作と同じく、直前のステツプでレジスタ
34の出力値Aが正又は零であれば、次のステツ
プでストローブパルスSTとパルスSFが発生され
て、Aと−Nの和が計算され、そうでなければス
トローブパルスSTと再サンプルパルスSMが発
生されてAとMの和が計算される。このときNが
Mより大きいので、再サンプルパルスSMを発生
するステツプが連続して生じることがある。この
結果、第6図bに示すように変換前の標本値系列
SI中の一部の標本値が繰返し出力されて変換後の
標本値系列S- Oを形成することになる。そして、
変換後の標本数がNに達した時に変換が終了す
る。 Figure 6 is another example of sample number conversion using the sample number conversion circuit as shown in Figure 3, where M is 5 and N is 8 (M<N).
The case is shown below. In the same way as in Fig. 5, the sixth
Figure 6a shows changes in the main input and output signals of the conversion circuit for each strobe pulse ST, and Figure 6b shows the relationship between the sample value series S I and S - O before and after conversion. Similar to the circuit operation in FIG. 5, if the output value A of the register 34 is positive or zero in the previous step, strobe pulse ST and pulse SF are generated in the next step, and the sum of A and -N is If not, a strobe pulse ST and a resample pulse SM are generated to calculate the sum of A and M. Since N is larger than M at this time, steps for generating resampling pulses SM may occur successively. As a result, as shown in Figure 6b, the sample value series before conversion is
Some of the sample values in S I are repeatedly output to form the converted sample value sequence S - O. and,
The conversion ends when the number of samples after conversion reaches N.
これまでの例では、標本数変換を開始する前
に、レジスタ34をリセツトするものとしたが、
レジスタ34にM以下の正整数値をプリセツトす
れば、標本値系列SIから異なる標本値が選択され
て標本値系列S′- Oを形成することになる。 In the previous example, the register 34 was reset before starting the sample number conversion, but
If a positive integer value less than or equal to M is preset in the register 34, different sample values are selected from the sample value series S I to form the sample value series S' - O.
第7図は、その様な標本数変換の一例を示すも
ので、第5図の場合と同様にして第7図aはスト
ローブパルスST毎の変換回路の主な入出力信号
の変化を、また第7図bは変換前後の標本値系列
SI及びS′- Oの関係を示す。MとNは第5図の場合
と同じ数値7および4とする。 FIG. 7 shows an example of such sample number conversion. Similarly to the case of FIG. 5, FIG. 7a shows changes in the main input and output signals of the conversion circuit for each strobe pulse ST, and Figure 7b shows the sample value series before and after conversion.
The relationship between S I and S′ - O is shown. M and N are the same numbers 7 and 4 as in the case of FIG.
変換開始時において、パルスCLによりレジス
タ34をリセツトして、さらに一時的にNの値を
−6とおいてストローブパルスSTを発生させる
と、選択回路32および加算回路33を経てレジ
スタ34に数値6がプリセツトされる。これを初
期状態とし、MとNをそれぞれ7と4にして、第
5図の場合と同様のシーケンス制御が行われる
と、各ステツプは第7図aの様になり、標本数変
換の結果第7図bの様に変換前の標本値系列SIか
ら変換後の標本値系列S′- Oが得られることになる。
変換後の系列S′- Oは、第5図bの変換後の系例S- O
と標本数が同じであるが内容は異なつている。こ
れは元の信号に対して標本化の位相を変えた標本
値系列が得られたことを意味する。つまり、レジ
スタ34にプリセツトする数値を変えることによ
り標本化の位相を選択することができるわけであ
る。 At the start of conversion, when the register 34 is reset by the pulse CL and the strobe pulse ST is generated by temporarily setting the value of N to -6, the value 6 is stored in the register 34 via the selection circuit 32 and the addition circuit 33. Preset. If this is the initial state, M and N are set to 7 and 4, respectively, and the same sequence control as in the case of Fig. 5 is performed, each step becomes as shown in Fig. 7a, and as a result of sample number conversion, As shown in Figure 7b, the sample value sequence S' - O after conversion is obtained from the sample value sequence S I before conversion.
The converted sequence S' - O is the converted system example S - O in Figure 5b.
Although the number of samples is the same, the contents are different. This means that a sampled value sequence with a different sampling phase relative to the original signal has been obtained. In other words, by changing the numerical value preset in the register 34, the sampling phase can be selected.
以上の説明からわかる様に、第3図の様な標本
数変換回路ではMとNの値を任意に選ぶことがで
き、両者の関係に依らず同様のシーケンス制御方
法により、標本数をMからNへ変換することが可
能である。実施例では、説明を簡単にするために
MとNの値を小さい正整数としたが、大きい正整
数に対しても負化回路31、選択回路32、加算
回路33およびレジスタ34のそれぞれの2進数
処理桁数を増すことにより対処できることはいう
までもない。また、実施例では標本値は2値(0
または1の1ビツト)であるとしたが、複数ビツ
トより成る多値信号の場合も、当該複数ビツトを
並列に処理することにより、同様の標本数変換が
可能である。さらに、レジスタ34にプリセツト
する数値を選ぶことにより、変換後の標本値系列
の元の信号に対する標本化位相を選択することが
できる。 As can be seen from the above explanation, in the sample number conversion circuit shown in Figure 3, the values of M and N can be arbitrarily selected, and the number of samples can be changed from M to M using the same sequence control method regardless of the relationship between the two. It is possible to convert to N. In the embodiment, in order to simplify the explanation, the values of M and N are small positive integers. Needless to say, this problem can be solved by increasing the number of digits in base number processing. In addition, in the example, the sample value is binary (0
However, even in the case of a multivalued signal consisting of a plurality of bits, similar sample number conversion is possible by processing the plurality of bits in parallel. Furthermore, by selecting a numerical value to be preset in the register 34, the sampling phase of the converted sample value series relative to the original signal can be selected.
以上の様に、この発明によれば、標本数変換回
路を負化回路、選択回路、加算回路、レジスタお
よびシーケンス制御回路により構成することにし
たので、変換前後の標本値系列の標本数を任意に
選ぶことができ、かつ同様の制御方法で標本数変
換を行える比較的簡単な回路を実現し、信号の時
間圧縮や伸長または画像の縮小や拡大などの処理
に関して有用な手段を得ることができる。 As described above, according to the present invention, since the sample number conversion circuit is configured with a negative circuit, a selection circuit, an addition circuit, a register, and a sequence control circuit, the number of samples of the sample value series before and after conversion can be set arbitrarily. It is possible to realize a relatively simple circuit that can be selected as the desired one and convert the number of samples using a similar control method, and to obtain a useful means for processing such as time compression and expansion of signals or reduction and expansion of images. .
第1図および第2図は従来の標本数変換回路の
例を示すもので、第1図は標本数を減少させる場
合を示し、第2図は標本数を増大させる場合を示
す。第3図はこの発明の一実施例による標本数変
換回路の構成を示すブロツク図である。第4図は
負化回路の具体例を示す図である。第5図、第6
図および第7図は、この発明の一実施例による標
本数変換回路による標本数変換の実施例を示す図
である。
図において、31は負化回路、32は選択回
路、33は加算回路、34はレジスタ、35はシ
ーケンス制御回路を示す。
1 and 2 show examples of conventional sample number conversion circuits, with FIG. 1 showing a case where the number of samples is decreased, and FIG. 2 showing a case where the number of samples is increased. FIG. 3 is a block diagram showing the configuration of a sample number conversion circuit according to an embodiment of the present invention. FIG. 4 is a diagram showing a specific example of a negative conversion circuit. Figures 5 and 6
FIG. 7 and FIG. 7 are diagrams showing an example of sample number conversion by a sample number conversion circuit according to an embodiment of the present invention. In the figure, 31 is a negative circuit, 32 is a selection circuit, 33 is an addition circuit, 34 is a register, and 35 is a sequence control circuit.
Claims (1)
号をN個の第2の標本値系列に変換する標本数変
換回路において、 書込信号に応じて入力信号を出力側に伝達する
一時記憶手段、 数値Nを表わす2進信号を負化した数値−Nを
表わす2進信号に変換する負化手段、 前記一時記憶手段の出力符号信号に応じて、前
記負化手段の出力信号および数値Mを表わす2進
信号の少なくともいずれか一方を選択して出力す
る選択手段、 前記選択手段によつて選択された信号と、前記
一時記憶手段の出力符号信号とを加算して前記一
時記憶手段に入力信号として与える加算手段、 前記第1の標本値系列を記憶する第1の記憶手
段、 前記第2の標本値系列を記憶する第2の記憶手
段、および 予め定める間隔で前記一時記憶手段に与える書
込信号を発生するとともに、前記一時記憶手段の
出力符号信号に応じて、前記第1の記憶手段から
前記第1の標本値系列中の次の標本値信号を読出
すための読出信号を発生し、前記第2の標本値系
列における次の標本値信号を前記第2の記憶手段
に書込むための書込信号を発生するシーケンス制
御手段を備えた、標本数変換回路。[Claims] 1. In a sample number conversion circuit that converts a signal represented by M first sample value series into N second sample value series, an input signal is transferred to the output side according to a write signal. temporary storage means for converting a binary signal representing a numerical value N into a binary signal representing a negative numerical value -N; Selection means for selecting and outputting at least one of an output signal and a binary signal representing the numerical value M; adding the signal selected by the selection means and the output code signal of the temporary storage means; addition means for supplying the temporary storage means as an input signal; first storage means for storing the first sample value series; second storage means for storing the second sample value series; generating a write signal to be applied to the storage means, and reading out the next sample value signal in the first sample value series from the first storage means in accordance with the output code signal of the temporary storage means; A sample number conversion circuit comprising sequence control means for generating a read signal and a write signal for writing a next sample value signal in the second sample value series into the second storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56041370A JPS57152742A (en) | 1981-03-17 | 1981-03-17 | Sample number converting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56041370A JPS57152742A (en) | 1981-03-17 | 1981-03-17 | Sample number converting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57152742A JPS57152742A (en) | 1982-09-21 |
| JPH0119305B2 true JPH0119305B2 (en) | 1989-04-11 |
Family
ID=12606544
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56041370A Granted JPS57152742A (en) | 1981-03-17 | 1981-03-17 | Sample number converting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57152742A (en) |
-
1981
- 1981-03-17 JP JP56041370A patent/JPS57152742A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57152742A (en) | 1982-09-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4715257A (en) | Waveform generating device for electronic musical instruments | |
| US4982354A (en) | Digital finite impulse response filter and method | |
| US4276544A (en) | Code converting circuits | |
| US5553011A (en) | Waveform generating apparatus for musical instrument | |
| US4937579A (en) | Method of converting analog signals into digital signals and system for carrying out the method | |
| US5761348A (en) | Data processing apparatus with data bit width conversion | |
| US5627795A (en) | Timing generating device | |
| JPH0119305B2 (en) | ||
| EP0858163B1 (en) | Pulse width modulation operation circuit | |
| JPH026463B2 (en) | ||
| US5130921A (en) | Digital controller for scanned actual condition signals | |
| JP3234318B2 (en) | Video signal processing circuit | |
| JPH05344113A (en) | Frame synchronizing circuit | |
| JPH1078314A (en) | Detecting device for displacement | |
| JP3461672B2 (en) | Successive approximation A / D converter | |
| JP3258938B2 (en) | Decimation filter | |
| KR100339542B1 (en) | High speed a/d converter | |
| JP3041932B2 (en) | Sample rate conversion circuit | |
| JP3279243B2 (en) | Digital comparator | |
| JPH07154345A (en) | Analog-digital converter indicating receiving signal intensity, and determining method for subjecting value of analog signal to one of a plurality of predetermined bit-resolutions | |
| JP2956373B2 (en) | Arithmetic circuit | |
| JPH0568912B2 (en) | ||
| JPS6132867B2 (en) | ||
| JPH0117880Y2 (en) | ||
| JPH05315971A (en) | Serial/parallel conversion circuit |