-













































:

:

: . . 01 3 . . ______________

()

___________2003.

: . . _____________

()

___________2003.

2003


򅅅.....4

充...5

1. ⅅ....7

2. ....11

3. ..19

4. 20

5. .....25

6. ..30

䅅.......33

.34

.35

.36

: 34 ., 12 .

, .

MICROCHIP PIC16C711, . , B.

, . , , .

, , MICROCHIP, . .

.

, .


, . :

     ;

     ;

    

;

     , ;

     / .

, , . , , , , .

R2

x(t) x(t) C y(t)

R1

y(t)

t t

1.1 -

1. . - R2, C. , . . .

, , , , . , , .


1.

- , , . 60- , , , . . , . ( ). 60- . , ( ), . . ( 1), .

. , , . , . , , RC .

. 1.2 (), (), (). , , , .

RC , . . . . . .

1.2 .

, , , . .

, () .

() .. .. (. . , ), 4 : , (), .

1.3

. . , :

  • , , ;
  • ;
  • .

, . , , . . , , , .


2.

. , . . . , , .

2.1 ANLOG DEVICES.

Analog Devices : ADSP21xx ADSP210xx.

ADSP21xx 16- , , .

ADSP210xx 32- , , .

. .

, .

ADSP21xx , . DSP56xxx (Motorola) TMS320C1x, TMS320C2xx, TMS320C5x (Texas Instruments).

, , , . ADSP21xx , , .

: , , . 16- .

, , , . , .

/ .

(SPORTs) , - , A- m- .

- , , , Motorola 68000 Intel 8051.

ADSP 21msp5x , . , , , .

. . , .

2.2 MOTOROLA

Motorola. 16- 24- DSP 560xx, - 561xx, - 563xx, -566xx, 568xx DSP 960xx.

24- DSP 560xx. Motorola. DSP . /. , , DSP56000/DSP56001.

33 16 MIPS, 1024 3,23.

, , 24- .

, , , . .

2.3 TEXAS INSTRUMENTS

Texas Instruments : . , TMS320.10, .20, .50. TMS320.30, . 40, TMS32080, , , TMS320C6x , .

( , ).

, .

1. TMS320C1x

TMS320C10 1982. .

, , .

TMS320C10 16- . 4K 16- . 160-200 .

. , , / .

8 16- /. .

, , ( ) .

2. TMS320C2x.

TMS320C2x , . 64K , 16 16- / .

TMS320C2x . , , . , - , .

2.4

, . Microchip. Microchip PIC16C711. , .

PIC16C711 , , 8- . RISC , , . /, - , - . 20MHz.

2.1 PIC16C711. : (ALU), , ; (W), ; , , ; (FSR), ; (RAM), 8- , 68x8; 13- (Program Counter), 8 PCL, 5 PCLATH; (EPROM), 1K 14- ; 8- , 13-, ; 8- ; 4- 8- (A/D); Timer0.

. 2.1 PIC16C711

. , . , , .

. + , , , , . , , . , , . , , .

, , . , , . : 35 . .


3

.3.1. :

: ;

: ;

: .

. 3.1

, , :

1)   :

;

2)   :

;

3)   :

.

:

.


4

. - 4.1 , , .







4.1 -
,

. . . . TRISA. - . TRISB. 0, RA0. PIC16C711 10ad, ad =1,6 . .

, .

, . . 17. , , 2,4,8, . 17. .

, , . , , , . , 10Tad.

.

, :

 1


COUNT-1

ࠠ Z=0

򠠠

6

0x17W ADCON1

WCOUNT 0xC1W

WADCON0

0x0CW

WFSR Ϡ

INDF 堠

FSR + 1

1 2

2 3

11UM1 -

- A32YN2YK2=

=A32(YN2+YK2)

B11YN1 -

-

B31YL1

12YN2

YLL

= A31YN1YK1+

+ A32YN2YK2-

YNN=11UM1- - B31YL1 -

- B11YN1- -

- 12YN2 -

-

堠 YK1 W

A21UM1 -

-

堠 W YK2

B21YK1

YK W

YK=21UM1-

- B21YK1 -

-

W YK1

A31YN1YK1 =

=A31(YN1+YK1)

A10UM



3 4
4 6 5


YN =A10UM+ UM W

+YNN

W UM1

YL=A30(YN+

+YK)+YLL

-

YL

B

YN1 W

W YN2

YN W

W YN1

YL W


5

4.2 - 

5

. 5.1

5.1 PIC16C71

, 0004h. 0000h , 0004h . , , . , , , 0004h .

.

5. , . , , . .

5.2 PIC16C711

. - 1 .

5.1

ORG 0x004
0004h MOVWF W_TEMP W W_TEMP 1
0005h MOVF STATUS, 0 STATUS W 1
0006h MOVWF STATUS_TEMP W STATUS _TEMP 1
5.1
0007h BCF STATUS, RP0 0 1
0008h MOVF ADRES, 0 W 1
0009h MOVWF UM W UM
000Ah MOVF STATUS_TEMP, 0 STATUS_TEMP W 1
000Bh MOVWF STATUS W STATUS 1
000Ch MOVF W_TEMP, 0 W_TEMP W 1
000Dh RETFIE 2

, 000Eh 5, 2.

5.2

ORG 0x00E
000Eh MOVLW 0xFF 0xFF 1
000Fh BSF STATUS, RP0 1 1
0010h MOVWF TRISA 1
0011h CLRF TRISB 1
0012h MOVLW 0x18 OUNT 1
0013h BCF STATUS, RP0 0 1
0014h MOVWF COUNT 1
0015h MOVLW 0x0C 1
0016h MOVWF FSR FSR 1
0017h M1: CLRF INDF 1
0018h INCF FSR, 1 + 1 1
0019h DECF COUNT 1 1
001Ah BTFSS STATUS, Z 1 1(2)
001Bh GOTO M1 2
001Ch M2: BSF STATUS,RP0 1 1
001Dh CLRF ADCON1 RA0-RA3 1
001Eh MOVLW 0xC1 1
001Fh BCF STATUS,RP0 0 1
0020h MOVWF ADCON0 , 0 (RA0), 32Tosc. 1
0021h BSF INTCON ADIE 1
0022h BSF INTCON GIE 1
0023h BSF ADCON0, GO 1
0024h BCF STATUS, C 1
0025h RRF UM1, 0 1
0026h BCF STATUS, C 1
0027h RRF W, 0 1
0028h MOVWF A11UM1 W A11UM1 1
0029h BCF STATUS, C 1
002Ah RRF YN1, 0 1
002Bh BCF STATUS, C 1
002Ch RRF W, 0 1
002Dh BCF STATUS, C 1
002Eh RRF W, 0 1
5.2
002Fh BCF STATUS, C 1
0030h RRF W, 0 1
0031h MOVWF B11YN1 W B11YN1 1
0032h BCF STATUS, C 1
0033h RRF YN1, 0
0034h ADDWF W, 0 W=W+W 1
0035h ADDWF W, 0 W=W+W 1
0036h ADDWF B11YN1 W=W+ B11YN1 1
0037h SUBWF A11UM1, 0 W= A11UM1- W 1
0038h MOVWF YNN W YNN 1
0039h BCF STATUS, C 1
003Ah RRF UM1, 0 1
003Bh MOVWF A21UM1 W A21UM1 1
003Ch BCF STATUS, C 1
003Dh RRF YK1, 0 1
003Eh BCF STATUS, C 1
003Fh RRF W, 0 1
0040h BCF STATUS, C 1
0041h RRF W, 0 1
0042h SUBWF A21UM1, 0 W= A21UM1- W 1
0043h MOVWF YK W YK 1
0044h MOVF YN1, 0 YN1W 1
0045h ADDWF YK1 W=W+ YK1 1
0046h BCF STATUS, C 1
0047h RRF W, 0 1
0048h BCF STATUS, C 1
0049h RRF W, 0 1
004Ah BCF STATUS, C 1
004Bh RRF W, 0 1
004Ch BCF STATUS, C 1
004Dh RRF W, 0 1
004Eh MOVWF A31YN1YK1 W A31YN1YK1 1
004Fh MOVF YN2, 0 YN2W 1
0050h ADDWF YK2 W=W+ YK2 1
0051h BCF STATUS, C 1
0052h RRF W, 0 1
0053h BCF STATUS, C 1
0054h RRF W, 0 1
0055h BCF STATUS, C 1
0056h RRF W, 0 1
0057h MOVWF A32YN2YK2 W A32YN2YK2 1
0058h BCF STATUS, C 1
0059h RRF YL1, 0 1
5.2
005Ah ADDWF W, 0 W=W+W 1
005Bh ADDWF W, 0 W=W+W 1
005Ch SUBWF A32YN2YK2, 0 W= A32YN2YK2- W 1
005Dh ADDWF A31YN1YK1 W=W+ A31YN1YK1 1
005Eh MOVWF YLL W YLL 1
005Fh BCF STATUS, C 1
0060h NOP 1
0061h NOP 1
0062h NOP 1
0063h NOP 1
0064h NOP 1
0065h NOP 1
0066h NOP 1
0067h NOP 1
0068h NOP 1
0069h NOP 1
006Ah NOP 1
006Bh NOP 1
006Ch NOP 1
006Dh NOP 1
006Eh NOP 1
006Fh NOP 1
0070h NOP 1
0071h NOP 1
0072h NOP 1
0073h NOP 1
0074h MOVF YK1, 0 YK1W 1
0075h MOVWF YK2 W YK2 1
0076h MOVF YK, 0 YK W 1
0077h MOVWF YK1 W YK1 1
0078h RRF UM, 0 1
0079h ADDWF YNN W=W+ YNN 1
007Ah MOVWF YN W YN 1
007Bh ADDWF YK W=W+ YK 1
007Ch BCF STATUS, C 1
007Dh RRF W, 0 1
007Eh ADDWF W, 0 W=W+W 1
007Fh ADDWF YLL W=W+ YLL 1
0080h MOVWF YL W YL 1
0081h MOVWF PORTB W PORTB 1
0082h MOVF YN1, 0 YN1W 1
0083h MOVWF YN2 W YN2 1
0084h MOVF YN, 0 YN W 1
0085h MOVWF YN1 W YN1 1
0086h MOVF YL, 0 YL W 1
0087h MOVWF YL1 W YL1 1
0088h MOVF UM, 0 UM W 1
0089h MOVWF UM1 W UM1 1
008Ah GOTO M2 1
END
283

56 .

NOP . 4 . . , , 49 . 24,6 , 41000. : , . PIC NOP.

6 Š

:

-     ;

-     ;

-     220 , 50 .

:

PIC16C711 (.6.1). .

RA4/RTCC - . / / RTCC. RA0/AIN0 - /. 0. .

RA1/AIN1 - /. 1. .

RA2/AIN2 - /. 2. .

RA3/AIN3/Vref - /. 3. .

RB0/INT - . .

RB1 - RB5 - / . .

RB6 - / . .

RB7 - / . .

/MCLR/Vpp - . . .

OSC1 - , RC .

OSC2 /CLKOUT - , RC , - .

Vdd - .

Vss ().

 


RA2/AIN2 1 18 RA1/AIN1

RA3/AIN3/Vref RA0/AIN0

RA4/RTCC OSC1/CLKIN

/MCLR/Vpp OSC2/CLKOUT

Vss PIC16C711 Vdd

RB0/INT RB7

RB1 RB6

RB2 RB5

RB3 9 10 RB4

6.1 PIC16C711

:

Analog Devices AD7302. :

AD7302 , 8- , +2.7 - +5.5 . AD7302 , (DSP). . CS WR. ~A/B 2 .

.

D7-D0 - . 8- AD7302 CS WR.

CS - . .

WR - . . CS A/B, .

A/B .

PD , .

LDAC . , .

CLR . , .

Vdd .

REFIN . . 1 Vdd/2.

AGND .

VoutB B.

VoutA .

DGND .

 


DB7 1 20 DGND

DB6 VoutA

DB5 VoutB

DB4 AGND

DB3 AD7302 REFIN

DB2 Vdd

DB1 CLR

DB0 LDAK

CS PD

WR 10 11 A/B

6.2 AD7302

220 , 50 :

6.3 3 ( 200 ) (I = 250 ). 1 . HL1. 1 , 1-127/220-50 2-127/220-50. 5...6 . 1... 50-35. DA1, , 3,5 . , , . R2. .

5-2.jpg

6.2

. ACCEL. , , .

. , - . , , .

. . 0,3 3,4 . , , , 15..20 (, ..).


1.   . .

: . . .:

, 1988. 368.: .

2.   . ., . . . .:, 1998. 240 .; .

3.   MICROCHIP PIC16/17 MICROCONTROLLER DATA BOOK.

4.   CD, MICROCHIP.


2012 , .