Example: confidence

16 ビット言語ツール ライブラリ - microchip.com

16 .. 2007 microchip Technology Inc. DS51456C_JP. ( ) .. microchip microchip Accuron . dsPIC KEELOQ KEELOQ microID MPLAB . PIC PICmicro PICSTART PRO MATE PowerSmart . rfPIC SmartShunt . microchip Technology Incorporated .. AmpLab FilterLab Linear Active Thermistor Migratable Memory MXDEV MXLAB PS SEEVAL . SmartSensor The Embedded Control Solutions Company . microchip Technology Incorporated . / . Analog-for-the-Digital Age Application Maestro . CodeGuard dsPICDEM dsPICworks . ECAN ECONOMONITOR FanSense FlexROM . fuzzyLAB In-Circuit Serial Programming ICSP ICEPIC . Mindi MiWi MPASM MPLAB Certified MPLIB . MPLINK PICkit PICDEM PICLAB . PICtail PowerCal PowerInfo PowerMate PowerTool . Real ICE rfLAB rfPICDEM Select Mode Smart Serial . SmartTel Total Endurance UNI/O WiperLock ZENA . microchip Technology Incorporated . SQTP microchip Technology Incorporated.

16 ビット言語ツール ライブラリ © 2007 Microchip Technology Inc. DS51456C_JP - ページ iii 目次 はじめに.....1

Tags:

  Microchip

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of 16 ビット言語ツール ライブラリ - microchip.com

1 16 .. 2007 microchip Technology Inc. DS51456C_JP. ( ) .. microchip microchip Accuron . dsPIC KEELOQ KEELOQ microID MPLAB . PIC PICmicro PICSTART PRO MATE PowerSmart . rfPIC SmartShunt . microchip Technology Incorporated .. AmpLab FilterLab Linear Active Thermistor Migratable Memory MXDEV MXLAB PS SEEVAL . SmartSensor The Embedded Control Solutions Company . microchip Technology Incorporated . / . Analog-for-the-Digital Age Application Maestro . CodeGuard dsPICDEM dsPICworks . ECAN ECONOMONITOR FanSense FlexROM . fuzzyLAB In-Circuit Serial Programming ICSP ICEPIC . Mindi MiWi MPASM MPLAB Certified MPLIB . MPLINK PICkit PICDEM PICLAB . PICtail PowerCal PowerInfo PowerMate PowerTool . Real ICE rfLAB rfPICDEM Select Mode Smart Serial . SmartTel Total Endurance UNI/O WiperLock ZENA . microchip Technology Incorporated . SQTP microchip Technology Incorporated.

2 2007, microchip Technology Incorporated, Printed in the , All Rights Reserved.. Chandler Tempe ( ) . Gresham ( ) Mountain View ( ) . ISO/TS-16949:2002 .. PIC MCU dsPIC DSC KEELOQ . EEPROM .. ISO 9001:2000 .. DS51456C_JP - ii 2007 microchip Technology Inc. 16 .. 1. 1 .. 7. OMF / .. 7.. 8. DSP .. 8. 16 .. 8. C ( ) .. 8. MPLAB C30 .. 8. 2 . DSP .. 9. DSP .. 10.. 13.. 26.. 31.. 38.. 58.. 72.. 77. 3 . 16 .. 79. 16 .. 80. LCD .. 80. CAN .. 87. ADC12 .. 101. ADC10 .. 108.. 116. / .. 124. I/O .. 128.. 132.. 138. UART .. 148. DCI .. 157. SPI .. 165. QEI .. 174. PWM .. 179. I2C .. 191. 2007 microchip Technology Inc. DS51456C_JP - iii 16 . 4 . C ( )..201. C ..202. < > ..203. < > ..204. < > ..213. < > ..214. < > ..219. < > ..221. < > ..222. < > ..223. < > ..229. < > ..231. < > ..233. < > ..278. < > ..302. < > ..325. < > ..333. pic30-libs ..374. 5 . MPLAB C30 ..383.

3 384. A. ASCII .. 401..404. DS51456C_JP - iv 2007 microchip Technology Inc. 16 .. / . Web . "DS " . DS "DSXXXXXA " "XXXXX XXXXX" "A" .. MPLAB IDE .. GCC (GNU ) . 16 .. MPLAB ASM30 . MPLAB C30 C . MPLAB LINK30 . MPLAB LIB30 / .. : .. 2007 microchip Technology Inc. DS51456C_JP - 1. 16 .. 16 GNU.. 1 : . 2 : DSP DSP . 3 : 16 16 .. 4 : C ( ) C .. 5 : MPLAB C30 C MPLAB C30 .. DS51456C_JP - 2 2007 microchip Technology Inc.. : MPLAB IDE .. Output . Settings . Enable Programmer . "save project before build".. File>Save . OK . Power . 'bnnnn n 'b00100, 'b10. < > <Enter> <F1> .. : #define START. c: mcc18 h _asm, _endasm, static -Opa+, -Opa- 0, 1. file .. 0xnnnn 16 n 16 0xFFFF, 0x007A. [ ] mcc18 [options] file [options]. : { | } ; errorlevel {0|1}. OR .. var_name [, ]. void main (void). { .. }. 2007 microchip Technology Inc. DS51456C_JP - 3. 16 .. 16 16.. README.

4 README (ASCII ) . dsPIC (DS70094). 16 (MPLAB ASM30 MPLAB. LINK30 MPLAB C30) 16 . MPLAB SIM30 . MPLAB ASM30 MPLAB LINK30 . (DS51317). 16 MPLAB ASM30 16 MPLAB LINK30 . MPLAB LIB30 / 16 .. MPLAB C30 C (DS51284). 16 C MPLAB LINK30 .. dsPIC30F (DS70043). dsPIC30F . dsPIC30F/33F (DS70157). dsPIC30F/33F .. (http://www. ) . Individual .. Adobe Acrobat (PDF) .. README .. DS51456C_JP - 4 2007 microchip Technology Inc.. WWW .. (FAQ) .. Customer Change Notification .. C . MPLAB C17, MPLAB C18 MPLAB C30 C . ; MPASM MPLAB ASM30 ; MPLINK MPLAB LINK30. ; MPLIB MPLAB LIB30 .. MPLAB ICE 2000 MPLAB ICE 4000 . MPLABICD. 2 . MPLAB IDE Windows . MPLAB IDE MPLAB IDE MPLAB SIM . MPLAB SIM30 MPLAB IDE .. MPLAB PM3 . PRO MATE II PICSTART Plus .. 2007 microchip Technology Inc. DS51456C_JP - 5. 16 .. (FAE).. (FAE) .. DS51456C_JP - 6 2007 microchip Technology Inc. 16 .. 1 .. "MPLAB ASM30, MPLAB LINK30.

5 And Utilities User's Guide" (DS51317) .. 16 . DSP 16 . C . < > . C MPLAB C30 C .. C . 16 c: Program Files microchip MPLAB. C30 lib c: Program Files microchip . MPLAB C30 MPLAB C30 C . MPLAB LINK 30 .. OMF / .. DSP . 16 . C (Math ). MPLAB C30 . OMF / . OMF ( . ) OMF . COFF . ELF ELF . DWARF . OMF 2 . 1. PIC30_OMF . 2. OMF . -omf=omf -momf=omf . ( OMF ) 16 .. OMF . 2007 microchip Technology Inc. DS51456C_JP - 7. 16 .. C ( ) ( ) ..s .. (crt0) . ( ANSI . ) 1 (crt1) .. "MPLAB ASM30, MPLAB LINK30 and Utilities User's Guide" (DS51317) C "MPLAB C30 C. Compiler User's Guide"(DS51284) . DSP . DSP ( ) dsPIC30F (DSC).. DSP 49 . 16 . 16 ( ) 16 .. Device 16 ( . dsPIC30F6014 ) . C ( ). ANSI-89 C . ( Dinkumware ) . ( ) . 16 C 16 .. C 3 . MPLAB C30 . MPLAB C30 C .. DS51456C_JP - 8 2007 microchip Technology Inc. 16 .. 2 . DSP .. DSP dsPIC30/F33F .. C . DSP 52 .. DSP.

6 DSP ANSI C . DSP . DSP .. C . MPLAB C30 C (c: programfiles . microchip mplab c30) .. lib DSP / . src dsp .. support h DSP .. DSP .. 2007 microchip Technology Inc. DS51456C_JP - 9. 16 . DSP . DSP . DSP . 2 . #define typedef .. (OMF-specific . OMF / . ) . DSP . typedef .. (-- library -l linker ) .. DSP .libdsp . map .. DSP " " " . " DSP. C ..libm .libdsp . MPLAB C30 .. RCALL DSP . DSP . DSP dsPIC30F/33F DSC C . "MPLAB C30 C . " (DS51284) . 8 (W0 W7) .. W0 W7 . W8 W13 .. ( . void) W0 (WREG ) . "MPLAB C30 " C .. DSP . C .. DSP dsPIC30F/33F DSC DSP .. DS51456C_JP - 10 2007 microchip Technology Inc. DSP . DSP : #ifndef fractional typedef int fractional;. #endif fractional 1 15 . " " .. 40 . " " / 9 . 31 ( ~+ ) .. DSP 14 . / .. ( ) . DSP .. MatrixInvert .. DSP RAM .. ( ) / DSP . DSP . MPLAB IDE. / MPLAB C30 .. DSP . RAM (X-Data Y-Data) . RAM . 16 . X-Data Y-Data (.)

7 Y-Data) . CORCON . DSP CORCON . dsPIC30F/33F . CORCON . CORCON . CORCON .. CORCON 0x00F0 . dsPIC30F/33F : DSP . A B . 2007 microchip Technology Inc. DS51456C_JP - 11. 16 . ( ) .. ( ) . CORCON "dsPIC30F . " (DS70046) .. DSP . (0x7F FFFF FFFF 0x80 0000 0000 ) . STATUS (SA SB) .. SA SB .. ( . 0x00 7 FFF FFFF 0xFF 8000 0000 ) . STATUS (OA OB) . SA SB OA OB .. INTCON1 OVATE OVBTE COVTE .. Arithmetic Error .. RTOS . DSP RTOS .. DSP DO REPEAT . 16 .. DSP .. DSP .. DO REPEAT .. CORCON . DSP . DSP . MPLAB C30 DSP . c: Program Files microchip MPLAB C30 .. DS51456C_JP - 12 2007 microchip Technology Inc. DSP .. DSP .. ( ) 1 (2 ).. 16 .. N . n BA . : BA + 2(n - 1) 1 n N . 2 16 .. 2 . 2 1 . 1 2 2 . 1 . ( ) .. 1 . (2 1 ) .. ( 1 ) ( ) .. 2 2 ( 1 ).. ( ) : a) .. b) 2 . ( VectorConvolve VectorCorrelate ). c) . 2007 microchip Technology Inc. DS51456C_JP - 13. 16 .. a) (.

8 2 .. b) . 1-2-15 . 1-2-15 .. c) (SR) . SA SB SAB .. d) RAM (X-Data Y-Data) .. e) . : a = Op1 (b, c) b = Op2 (d) c = Op3 (e, f) . a = Op1 (Op2 (d) Op3 (e, f)).. VectorMax numElems . numElems .. N N+numElems-1 . numElems M M+numElems-1 . numElems . VectorCopy : fractional* dstV[DST_ELEMS] = {..};. fractional* srcV[SRC_ELEMS] = {..};. int n = NUM_ELEMS;. int N = N_PLACE; /* NUM_ELEMS+N DST_ELEMS */. int M = M_PLACE; /* NUM_ELEMS+M SRC_ELEMS */. fractional* dstVector = dstV+N;. fractional* srcVector = srcV+M;. dstVector = VectorCopy (n, dstVector, srcVector);. VectorZeroPad dstV = srcV . numElems . numZeros .. DS51456C_JP - 14 2007 microchip Technology Inc. DSP .. VectorAdd : VectorAdd 1 2 .. : : extern fractional* VectorAdd (. int numElems, fractional* dstV, fractional* srcV1, fractional* srcV2. );. : numElems . dstV . srcV1 1 . srcV2 2 . : . : srcV1[n] + srcV2[n] 1-2-15.

9 N .. : : : . ACCA . CORCON . DO REPEAT : DO : 1 . REPEAT : . (24 ): 13. (C ): 17 + 3(numElems). 2007 microchip Technology Inc. DS51456C_JP - 15. 16 . VectorConvolve : VectorConvolve 2 .. : n y( n) = x ( k )h ( n k ) , for 0 n M. k=0. n y( n) = x ( k )h ( n k ) , for M n N. k = n M+1. N 1. y( n) = x ( k )h ( n k ) , for N n N + M - 1. k = n M+1. x(k) = N 1 h(k) = M . 2 (M N) . : : extern fractional* VectorConvolve (. int numElems1, int numElems2, fractional* dstV, fractional* srcV1, fractional* srcV2. );. : numElems1 1 . numElems2 2 . dstV . srcV1 1 . srcV2 2 . : . : 2 1 .. numElems1+numElems2-1 .. : DS51456C_JP - 16 2007 microchip Technology Inc. DSP . VectorConvolve ( ). : : .. ACCA . CORCON . DO REPEAT : DO : 2 . REPEAT : . (24 ): 58. (C ): For N = numElems1, and M = numElems2, M. 28 + 13M + 6 m + ( N M ) ( 7 + 3M ) , for M N. m=1. M. 28 + 13M + 6 m , for M = N.

10 M=1. VectorCopy : VectorCopy ( ). : dstV[n] = srcV[n], 0 n numElems : : extern fractional* VectorCopy (. int numElems, fractional* dstV, fractional* srcV. );. : numElems . dstV . srcV . : . : . numElems .. : 2007 microchip Technology Inc. DS51456C_JP - 17. 16 . VectorCopy ( ). : : . DO REPEAT : DO : . REPEAT : 1 . (24 ): 6. (C ): 12 + numElems VectorCorrelate : VectorCorrelate 2 .. : N 1. r( n) = x ( k )y ( k + n ) , for 0 n N + M - 1. k=0. x(k) = N 1 y(k) = M . 2 (M N) . : : extern fractional* VectorCorrelate (. int numElems1, int numElems2, fractional* dstV, fractional* srcV1, fractional* srcV2. );. : numElems1 1 . numElems2 2 . dstV . srcV1 1 . srcV2 2 . : . : 2 1 .. numElems1+numElems2-1 .. VectorConvolve . : DS51456C_JP - 18 2007 microchip Technology Inc. DSP . VectorCorrelate ( ). : : , VectorConvolve . DO REPEAT : DO : 1 . REPEAT : , VectorConvolve DO/REPEAT.


Related search queries