參數(shù)資料
型號(hào): μSAP703000-B04
廠商: NEC Corp.
英文描述: 8 Bit Single Chip Microcontrollers(8位單片微控制器)
中文描述: 8位單片機(jī)微控制器(8位單片微控制器)
文件頁(yè)數(shù): 47/51頁(yè)
文件大?。?/td> 132K
代理商: ΜSAP703000-B04
47
CHAPTER 3 INSTALLATION
3.3 Creating Sample Program
The directory smp810 (V810 family version) or smp850 (V850 family version) stores a sample program using the
compression function and expansion function of 32 kbps ADPCM (linear code interface) and speech data (refer to
APPENDIX
for the source program of sample.c).
The sample program compresses a data array called linear_enc stored in the file linear.o, and the result of
compression is stored in an array called adpcm_32. Next, this compressed data is expanded and the result of decoding
(expansion) is stored in an array called linear_dec.
Figure 3-1. Organization of Sample Program
In the example given below, sample program “make”, NEC tools, and UNIX version are used.
<1>
Move to the directory containing the sample program.
% cd mw_adpcm/nectools/smp810/adpcm <CR>
<2>
Change startup.c in accordance with the target, by using an editor. startup.c supplied as a sample describes
only initialization of the stack pointer.
<3>
Execute the make command to create sample.elf
% make sample.elf <CR>
<4>
Confirm that sample.elf has been created.
% ls - l sample.elf <CR>
<5>
Download the sample program to the target using an in-circuit emulator and execute it.
cnt=1
cnt=2
cnt=3
cnt=4
cnt=5
cnt=6
short linear_enc [cnt]
(linear.o)
cnt=1
cnt=2
cnt=3
cnt=4
cnt=5
cnt=6
short linear_dec [cnt]
cnt=2
cnt=4
cnt=6
cnt=1
cnt=3
cnt=5
unsigned char adpcm_32 [cnt]
7
4 3
0
Compression
Expansion
(Bit)
相關(guān)PDF資料
PDF描述
μSAP70372-B04 8 Bit Single Chip Microcontrollers(8位單片微控制器)
μSAP703000-B06 8 Bit Single Chip Microcontrollers
μSAP70732-B03 8 Bit Single Chip Microcontrollers(8位單片微控制器)
AADG812YRU 0.5 CMOS 1.65 V to 3.6 V Quad SPST Switches
AC1226 Micropower Thermocouple Cold Junction Compensator(微功耗熱電耦冷節(jié)點(diǎn)補(bǔ)償)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
SAP-8511250B300 制造商:Seiko Instruments Inc (SII) 功能描述:
SAPM01N 制造商:SANKEN 制造商全稱:Sanken electric 功能描述:silicon power MOSFET
SAPPBU10 制造商:Panduit Corp 功能描述:ZONE CORD, CAT 6A FTP SOLID PLENUM BLUE - Cable Rools/Shrink Tubing
SAPPBU100 制造商:Panduit Corp 功能描述:ZONE CORD, CAT 6A FTP SOLID PLENUM BLUE - Cable Rools/Shrink Tubing
SAPPBU110 制造商:Panduit Corp 功能描述:ZONE CORD, CAT 6A FTP SOLID PL 制造商:Panduit Corp 功能描述:ZONE CORD, CAT 6A FTP SOLID PLENUM BLUE - Cable Rools/Shrink Tubing