JP3053466B2 - Encoding device - Google Patents
Encoding deviceInfo
- Publication number
- JP3053466B2 JP3053466B2 JP3178307A JP17830791A JP3053466B2 JP 3053466 B2 JP3053466 B2 JP 3053466B2 JP 3178307 A JP3178307 A JP 3178307A JP 17830791 A JP17830791 A JP 17830791A JP 3053466 B2 JP3053466 B2 JP 3053466B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- output
- code
- bits
- signal
- 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 - Fee Related
Links
Landscapes
- Transforming Light Signals Into Electric Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Analogue/Digital Conversion (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、アナログ信号を入力し
てPCM符号化もしくはDPCM符号化する符号化装置
に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding apparatus for inputting an analog signal and performing PCM coding or DPCM coding.
【0002】更に詳述すれば、本発明は、例えば光セン
サからの出力信号を符号化してコンピュータの入力デー
タを生成するのに好適な、符号化装置に関するものであ
る。More specifically, the present invention relates to an encoding device suitable for encoding an output signal from, for example, an optical sensor to generate input data for a computer.
【0003】[0003]
【従来の技術】従来、光センサからの出力信号を符号化
する場合、システムに必要な精度に応じたアナログ・デ
ィジタル変換器(以下、ADCという)を用い符号化し
ている。2. Description of the Related Art Conventionally, when an output signal from an optical sensor is encoded, it is encoded using an analog / digital converter (hereinafter, referred to as an ADC) corresponding to the accuracy required for the system.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記従
来例では次のような欠点があった。However, the above-mentioned prior art has the following disadvantages.
【0005】1)高速(20Mbps程度のADCに関
し、8ビットまでは廉価のものが入手できるが、10ビ
ット以上の精度をもったADCは非常に高価となる。[0005] 1) For an ADC of high speed (about 20 Mbps), a low-cost ADC of up to 8 bits is available, but an ADC having an accuracy of 10 bits or more is very expensive.
【0006】2)光センサ出力信号をコンピュータで処
理し、モニターテレビもしくはプリンタ等に出力すると
き、3〜4ビットのビット落ちが処理過程で発生し、セ
ンサ出力信号の精度が8ビットのときには画質の劣化が
生じる。2) When an optical sensor output signal is processed by a computer and output to a monitor television or a printer, a bit loss of 3 to 4 bits occurs in the processing process, and when the precision of the sensor output signal is 8 bits, the image quality is reduced. Degradation occurs.
【0007】以上の理由により、光センサ出力信号の符
号化精度としては12ビット以上が望ましく、それを安
いコストで実現する必要がある。For the above reasons, the encoding accuracy of the optical sensor output signal is desirably 12 bits or more, and it is necessary to realize it at low cost.
【0008】よって本発明の目的は上述の点に鑑み、簡
易な構成にも拘らず高精度の符号化出力を可能とした符
号化装置を提供することにある。SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an encoding apparatus which enables highly accurate encoded output despite a simple configuration.
【0009】[0009]
【課題を解決するための手段】本発明は、サンプル化さ
れたアナログ信号を第1の入力端に入力する減算手段
と、前記減算手段の出力をmビットのデジタル信号に変
換するA/D変換手段と、前記A/D変換手段の出力を
第1の入力端に入力する加算手段と、前記加算手段の出
力を入力するnビット(n>m)の記憶手段と、前記記
憶手段のnビット出力を前記加算手段の第2の入力端に
供給する手段と、前記記憶手段のnビット出力をアナロ
グ信号に変換して前記減算手段の第2の入力端に供給す
るD/A変換手段とを備え、mビットのPCM符号,n
ビットのPCM符号,(m+1)ビットのDPCM符号
あるいは(m−1)ビットのPCM符号,nビットのP
CM符号,mビットのDPCM符号を発生するものであ
る。According to the present invention, there is provided a subtraction means for inputting a sampled analog signal to a first input terminal, and an A / D converter for converting an output of the subtraction means into an m-bit digital signal. Means, addition means for inputting the output of the A / D conversion means to a first input terminal, n-bit (n> m) storage means for inputting the output of the addition means, and n bits of the storage means Means for supplying an output to a second input terminal of the addition means, and D / A conversion means for converting an n-bit output of the storage means into an analog signal and supplying the analog signal to a second input terminal of the subtraction means. Equipped, m-bit PCM code, n
Bit PCM code, (m + 1) bit DPCM code or (m-1) bit PCM code, n bit PM code
A CM code and an m-bit DPCM code are generated.
【0010】[0010]
【作用】本発明では、差分符号化方法を用いることによ
り、mビット(例えば8ビット)のA/D変換手段を用
いながら、nビット(例えば12ビット)精度の出力が
得られる。According to the present invention, by using the differential encoding method, an output with n-bit (for example, 12-bit) precision can be obtained while using A / D conversion means for m-bit (for example, 8-bit).
【0011】[0011]
【実施例】以下、本発明の実施例を詳説する。Embodiments of the present invention will be described below in detail.
【0012】実施例1 図1に本発明の一実施例を示す。この実施例では、CC
Dラインセンサ2の出力を符号化する場合について説明
する。 Embodiment 1 FIG. 1 shows an embodiment of the present invention. In this embodiment, CC
A case where the output of the D line sensor 2 is encoded will be described.
【0013】本実施例は従来モードと高階調モードの2
つのモードを有し、それらの特性を図2に示した。In this embodiment, there are two modes, a conventional mode and a high gradation mode.
It has two modes, and their characteristics are shown in FIG.
【0014】CCDラインセンサ2において、センサ2
Aの出力電荷はFDA(Floating Diffusion Amplifie
r)2Bで電圧に変換される。その後、サンプル・アン
ド・ホールド(S/H)回路4を介して減算器6に入力
され、さらに絶対値回路8を介してA/Dコンバータ
(以下、ADCという)10でディジタル信号に変換さ
れる。絶対値回路8で得られた+/−符号は乗算器12
に入力され、符号を付加された後に加算器14を介して
図4に示した12ビットのメモリ16に記憶される。In the CCD line sensor 2, the sensor 2
The output charge of A is FDA (Floating Diffusion Amplifie).
r) Converted to voltage at 2B. Thereafter, the signal is input to a subtractor 6 via a sample-and-hold (S / H) circuit 4, and is further converted to a digital signal by an A / D converter (hereinafter referred to as ADC) 10 via an absolute value circuit 8. . The +/− sign obtained by the absolute value circuit 8 is
After adding a sign, the data is stored in the 12-bit memory 16 shown in FIG.
【0015】メモリ16の出力はD/Aコンバータ(以
下、DACという)18と加算器14に送られる。この
DAC18は12ビット入力をアナログ信号に変換して
減算器6に加える。The output of the memory 16 is sent to a D / A converter (hereinafter, referred to as DAC) 18 and an adder 14. The DAC 18 converts a 12-bit input into an analog signal and applies the analog signal to the subtractor 6.
【0016】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.
【0017】従来モードでは、精度8ビット,出力形式
は8ビットPCMで端子1から出力される。このときシ
ステム制御部20でメモリ16をリセット状態に保持
し、DAC18の出力は零となる。In the conventional mode, the data is output from the terminal 1 in 8-bit precision and the output format is 8-bit PCM. At this time, the system controller 20 holds the memory 16 in the reset state, and the output of the DAC 18 becomes zero.
【0018】またADC10の変換基準電圧Vref =V
drとする。このVdrは図3に示したように、符号のダイ
ナミックレンジを示す。この従来モードでは、イメージ
センサ2Aの出力信号が、8ビット精度で得られる。The conversion reference voltage V ref = V of the ADC 10
Let it be dr . This Vdr indicates the dynamic range of the code as shown in FIG. In this conventional mode, the output signal of the image sensor 2A is obtained with 8-bit accuracy.
【0019】高階調モードでは、精度12ビット,出力
形式は12ビットPCM又は9ビットDPCMとなり、
端子3および2よりそれぞれ出力される。このときシス
テム制御部20では、第1の画素に対して2サイクルで
符号化を行う。In the high gradation mode, the precision is 12 bits, and the output format is 12-bit PCM or 9-bit DPCM.
Output from terminals 3 and 2, respectively. At this time, the system control unit 20 encodes the first pixel in two cycles.
【0020】まず第1の画素信号をサンプル・ホールド
し、Vref =VdrにしてA/D変換を行い、その出力の
上位4ビットをメモリ16の上位8〜11に入力し、次
のサイクルではVref =Vdr/16としてメモリ16の
下位0〜7に入力する(図4参照)。First, the first pixel signal is sampled and held, A / D conversion is performed with Vref = Vdr , and the upper 4 bits of the output are input to the upper 8 to 11 of the memory 16, and the next cycle is performed. Then, V ref = V dr / 16 is input to the lower 0 to 7 of the memory 16 (see FIG. 4).
【0021】次に、センサ2Aの第2画素信号をS/H
回路4で取り込み、前画素との差分を求め、その値をメ
モリ16にアキュムレートしてゆく。この様子を図3を
用いて説明する。Next, the second pixel signal of the sensor 2A is converted to S / H
The difference is obtained from the previous pixel by the circuit 4, and the difference is accumulated in the memory 16. This will be described with reference to FIG.
【0022】画素(i)の信号VがS/H回路4でホー
ルドされているとき、メモリ16の出力は画素(i−
1)の信号Vi-1 が記憶されている。減算器6の出力は
Vi −Vi-1 =ΔVi となり、絶対値がとられ、ADC
10でディジタル化されメモリ16にアキュムレートさ
れる。かくして、出力端子2にはΔVi 、出力端子3に
はVi の信号がそれぞれ9ビット,12ビットで得られ
る。When the signal V of the pixel (i) is held by the S / H circuit 4, the output of the memory 16 becomes the pixel (i-
The signal Vi -1 of 1) is stored. The output of the subtractor 6 is V i −V i−1 = ΔV i , the absolute value is obtained, and the ADC
It is digitized at 10 and accumulated in the memory 16. Thus, a signal of ΔV i is obtained at the output terminal 2 and a signal of V i is obtained at the output terminal 3 in 9 bits and 12 bits, respectively.
【0023】以上はラインセンサの場合について説明し
たが、エリアセンサの場合も同様に適応できる。The case of the line sensor has been described above. However, the case of the area sensor can be similarly applied.
【0024】また精度は8,12ビットの場合について
説明したが、他の値の組合わせにも容易に拡張できる。Although the case where the precision is 8 or 12 bits has been described, the present invention can be easily extended to combinations of other values.
【0025】実施例2 図5は、本発明の第2の実施例を示す。本実施例では、
ADC10’として両極性の8ビットADCを用いる。 Embodiment 2 FIG. 5 shows a second embodiment of the present invention. In this embodiment,
An 8-bit ADC having both polarities is used as the ADC 10 '.
【0026】先の実施例1と異なる点を図6に示した。
この場合、高階調モードのDPCM符号は8ビットとな
り、従来のコンピュータ並列IFがそのまま使えるとい
う利点がある。FIG. 6 shows points different from the first embodiment.
In this case, the DPCM code in the high gradation mode has 8 bits, and there is an advantage that the conventional computer parallel IF can be used as it is.
【0027】実施例の効果 以上説明したように光センサの読取り符号化を行う場
合、8ビットのADCを用い、12ビット精度の符号化
が可能になった。しかも、コスト的には12ビットAD
Cを用いるより大幅に廉価にすることができた。 Effects of the Embodiment As described above, when reading and coding the optical sensor, it is possible to perform 12-bit precision coding using an 8-bit ADC. Moreover, in terms of cost, a 12-bit AD
The cost was significantly lower than using C.
【0028】またDPCM信号を用いれば、コンピュー
タに接続するとき、並列インターフェース(SCSI
等)がそのまま利用できるという利点もある。さらに、
従来データも容易に得られるので、システムとの互換性
にも優れている。If a DPCM signal is used, a parallel interface (SCSI
Etc.) can be used as it is. further,
Since conventional data can be easily obtained, compatibility with the system is excellent.
【0029】[0029]
【発明の効果】以上述べたとおり本発明では、差分符号
化法を用いることにより、mビットのA/D変換手段を
用いながらnビット精度(n>m)の出力が得られるの
で、廉価な高性能符号化装置を実現することができる。As described above, according to the present invention, by using the differential encoding method, an output with n-bit precision (n> m) can be obtained while using m-bit A / D conversion means. A high-performance coding device can be realized.
【図1】本発明の第1の実施例を示すブロック図であ
る。FIG. 1 is a block diagram showing a first embodiment of the present invention.
【図2】第1の実施例における動作モードを示す図であ
る。FIG. 2 is a diagram showing an operation mode in the first embodiment.
【図3】図1の動作を示す波形図である。FIG. 3 is a waveform chart showing the operation of FIG.
【図4】図1に示したメモリ16の構成図である。FIG. 4 is a configuration diagram of a memory 16 shown in FIG. 1;
【図5】本発明の第2の実施例を示すブロック図であ
る。FIG. 5 is a block diagram showing a second embodiment of the present invention.
【図6】第2の実施例における動作モードを示す図であ
る。FIG. 6 is a diagram showing an operation mode in the second embodiment.
2 CCDラインセンサ 4 サンプル/ホールド回路 6 減算器 8 絶対値回路 10 A/Dコンバータ 12 乗算器 14 加算器 16 メモリ 18 D/Aコンバータ 20 システム制御部 22 基準電圧発生回路 24 CCDドライバ 2 CCD line sensor 4 Sample / hold circuit 6 Subtractor 8 Absolute value circuit 10 A / D converter 12 Multiplier 14 Adder 16 Memory 18 D / A converter 20 System control unit 22 Reference voltage generation circuit 24 CCD driver
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 3/04 H03M 1/12 H03M 1/14 H03M 1/20 H03M 7/36 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H03M 3/04 H03M 1/12 H03M 1/14 H03M 1/20 H03M 7/36
Claims (4)
入力端に入力する減算手段と、 前記減算手段の出力をmビットのデジタル信号に変換す
るA/D変換手段と、 前記A/D変換手段の出力を第1の入力端に入力する加
算手段と、 前記加算手段の出力を入力するnビット(n>m)の記
憶手段と、 前記記憶手段のnビット出力を前記加算手段の第2の入
力端に供給する手段と、 前記記憶手段のnビット出力をアナログ信号に変換して
前記減算手段の第2の入力端に供給するD/A変換手段
とを備え、mビットのPCM符号,nビットのPCM符
号,(m+1)ビットのDPCM符号あるいは(m−
1)ビットのPCM符号,nビットのPCM符号,mビ
ットのDPCM符号を発生することを特徴とする符号化
装置。1. A subtractor for inputting a sampled analog signal to a first input terminal, an A / D converter for converting an output of the subtractor into an m-bit digital signal, and the A / D conversion. Addition means for inputting the output of the means to a first input terminal; n-bit (n> m) storage means for inputting the output of the addition means; and n-bit output of the storage means for the second output of the addition means. And a D / A conversion means for converting an n-bit output of the storage means into an analog signal and supplying the analog signal to a second input end of the subtraction means. n-bit PCM code, (m + 1) -bit DPCM code or (m-
1) An encoding device which generates a PCM code of bits, a PCM code of n bits, and a DPCM code of m bits.
を零にすることにより、mビットのPCM符号を得るこ
とを特徴とする符号化装置。2. An encoding apparatus according to claim 1, wherein an output of said storage means is set to zero to obtain an m-bit PCM code.
う場合、第1の画素信号に対しまず前記A/D変換手段
の基準電圧を2(n-m) 倍して量子化を行い、その後指定
の基準電圧に戻量子化を行うことを特徴とする符号化装
置。3. The method according to claim 1, wherein when performing DPCM encoding, the first pixel signal is first quantized by multiplying a reference voltage of the A / D conversion means by 2 (nm) , and then specified. An encoding device for performing quantization back to a reference voltage.
として両極性のものを用い、(m−1)ビットのPCM
符号,nビットのPCM符号,mビットのDPCM符号
を発生することを特徴とする符号化装置。4. The A / D conversion means according to claim 1, wherein said A / D conversion means is of a bipolar type, and is a (m-1) -bit PCM.
A coding apparatus for generating a code, an n-bit PCM code, and an m-bit DPCM code.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3178307A JP3053466B2 (en) | 1991-07-18 | 1991-07-18 | Encoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3178307A JP3053466B2 (en) | 1991-07-18 | 1991-07-18 | Encoding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0529945A JPH0529945A (en) | 1993-02-05 |
| JP3053466B2 true JP3053466B2 (en) | 2000-06-19 |
Family
ID=16046191
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3178307A Expired - Fee Related JP3053466B2 (en) | 1991-07-18 | 1991-07-18 | Encoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3053466B2 (en) |
-
1991
- 1991-07-18 JP JP3178307A patent/JP3053466B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0529945A (en) | 1993-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2573850B2 (en) | Analog-to-digital converter | |
| JP2016005171A (en) | AD converter and solid-state imaging device | |
| JPH01133422A (en) | Totally parallel and successively comparing analog-digital converter | |
| JP2014120868A (en) | Driving method of imaging apparatus, imaging apparatus, and imaging system | |
| JPH10276345A (en) | Video signal processing unit | |
| US6011503A (en) | Half-flash type analog-to-digital converter capable of converting data at high speed | |
| JP3053466B2 (en) | Encoding device | |
| US4654634A (en) | Apparatus for processing a sequence of digital data values | |
| JPH0469455B2 (en) | ||
| JPH09223968A (en) | Digitally compensated multi-bit sigma-delta analog-to-digital converter | |
| US5532758A (en) | Feedback clamp circuit for analog-to-digital conversion | |
| JPH02501102A (en) | N+1 bit resolution with N bit A/D converter | |
| JP3091084B2 (en) | Signal processing circuit | |
| JPH0828663B2 (en) | Analog-digital converter | |
| JPH05291955A (en) | A/d conversion bit expansion circuit | |
| JPH05207329A (en) | Signal processing circuit for digital video camera | |
| JP2563420B2 (en) | Endoscope device | |
| JPH0879078A (en) | Series-parallel a/d converter | |
| JPH11163726A (en) | A / D converter and A / D conversion method | |
| JPH0697827A (en) | A/d conversion circuit | |
| JPH05176221A (en) | Gamma correction circuit | |
| JPS6322735B2 (en) | ||
| JPH10108041A (en) | Nonlinear processing circuit | |
| CN1391398A (en) | Digital Signal Compensation Device | |
| JPS649773B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |