数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

VS1103B 数据表(PDF) 41 Page - List of Unclassifed Manufacturers

部件名 VS1103B
功能描述  MIDI/ADPCM AUDIO CODEC
PDF  61 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ETC2 [List of Unclassifed Manufacturers]
网页  
标志 ETC2 - List of Unclassifed Manufacturers

VS1103B 数据表(HTML) 41 Page - List of Unclassifed Manufacturers

Back Button VS1103B Datasheet HTML 37Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 38Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 39Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 40Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 41Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 42Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 43Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 44Page - List of Unclassifed Manufacturers VS1103B Datasheet HTML 45Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 61 page
background image
VLSI
Solution
y
VS1103b
VS1103B
7. OPERATION
void RecordAdpcm1103(void) {
/* VS1003b/VS1023 */
u_int16 w = 0, idx = 0, n = 0;
s_int32 adpcmBlocks = -1;
...
/* Check and locate free space on disk */
WriteMp3SpiReg(SCI_CLOCKF, 0xC3E8); /* 4.0x 12.288MHz */
WaitForDreq();
/* Wait for DREQ to go up again */
WriteMp3SpiReg(SCI_MODE,
0x0804); /* Normal SW reset + other bits */
WaitForDreq();
/* Wait for DREQ to go up again */
WriteMp3SpiReg(SCI_VOL,
0x1414); /* Recording monitor volume */
WriteMp3SpiReg(SCI_BASS,
0); /* Bass/treble disabled */
WriteMp3SpiReg(SCI_MIXERVOL, 0x8000U | (23<<10) | (23<<5) | (23));
WriteMp3SpiReg(SCI_ADPCMRECCTL,25+20); /* Auto gain to max +20 dB */
WriteMp3SpiReg(SCI_MODE,
0x08c8); /* Line in, SDI MIDI, SCI ADPCM, 8 kHz */
for (idx=0; idx < sizeof(header); idx++)
/* Save header first */
db[idx] = header[idx];
db[24] = sampleRate;
/* Set sample rate */
db[25] = samplRate>>8;
/* Synchronize */
do {
n = 8 * ((ReadMp3SpiReg(SCI_IN1) >> 8) & 0xFF);
Yield(1);
/* Give control to other processes for 1 ms */
} while (n >= 480);
/* whole buffer size = 512 words */
/* Record loop */
while (recording_on) {
while (idx < 512) {
do {
n = 8 * ((ReadMp3SpiReg(SCI_IN1) >> 8) & 0xFF);
Yield(1);
/* Give control to other processes for 1 ms */
} while (n < 16);
/* Only load data if >= 16 words available */
while (n--) {
w = ReadMp3SpiReg(SCI_IN0);
db[idx++] = w>>8;
db[idx++] = w&0xFF;
}
}
idx = 0;
write_block(datasector++, db); /* Write one disk block */
adpcmBlocks+=2;
/* Disk block contains 2 adpcm blocks */
}
if (adpcmBlocks >= 0) {
/* The previous algorithm will always write an unfinished ADPCM block.
It doesn’t matter as we consistently only tell of the data until
the last completely written block. */
dataSizeD
= adpcmBlocks*256;
chunkSizeF
= dataSizeD+52:
numOfSamplesS = adpcmBlocks*505;
...
/* Fix WAV header information */
}
}
Version 1.01, 2007-09-03
41



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com