Meniu Referate
Romana
Romana1
Romana2
Istorie
Istorie1
Geografie
Geografie1
Diverse
Drept
Economie
Filozofie
Fizica
Informatica
Biologie
Chimie
Italiana
Spaniola
Germana
Franceza
Engleza
Marketing
Matematica
Medicina
Psihologie
Astronomie
Stiinte Politice
Proiecte

Porturile placii SOUDBLASTER, lucrare de practica, Comenzi, registre, intreruperi

...re permitcalculul functiilor de autocorelatiecalculul functiilor de intercorelatiePrincipiul functionariiProgramul foloseste o placa SOUNDLBLASTER pentru achizitionarea semnalelor, semnalul analogic continuu este convertat in semnal digital discret, care este prelucrat de program care realizeaza functiile cerute.CerinteCalculator 386OS DOS 6.20 in9x,in XP,NT,2000Placa SOUNDBLASTERMonitor VGA Programul a fost testat pe un sistem cu OS in98, SVGA, placa de sunet C-Media Inc.8330 compatibil SB16, pe acest sistem programul functioneaza stabil.Descriere programProgramul principal 123.exe,utilizeaza biblioteca grafica egavga.bgi.Are ca argument 0,1,20 doar osciloscop1 osciloscop fct. de autocorelatie2 osciloscop fct. de intercorelatieIn program sunt utilizateIRQ,DMA,VGAPAGEFLIP.etcProgramul foloseste o placa SOUNDBLASTER pentru achizitionarea semnalelorSemnalul analogic este aplicat la intrarea de microfon a placii SOUNDBLASTER.Semnalul analogic continuu este convertat in semnal digital discret de CAN din placa SOUNDBLASTER. Structura principial este reprezentat in Figura 1Programul foloseste acest convertor analog-digital pe 8 biti.In cazul SB16 acest convertor este pe 16 biti dar se poate folosi si pe 8 bitiTransferul de date se face prin DMA.Pentru a functiona corect pentru placa SOUNDBLASTER trebuie sa fie setat urmatorii parametrii Adresa de baza 0x220IRQ 5DMA 1Programul nu detecteaza automat setarile, daca placa SOUNDBLASTER are alte parametrii trebuie modificat fisierul sbaster.h,dmasmem.cProgramarea unitatii DSP Digital Signal Processor din placa SOUNDBLASTER,se face prin porturi.Porturile placii SOUDBLASTERTabel 1 02x00h CMS 1-6 - Data Port rite SB Only 02x00h FM Music - Left Status Port Read SBPro 02x00h FM Music - Left Register Port rite SBPro 02x01h CMS 1-6 - Register Port rite SB Only 02x01h FM Music - Left Data Register rite SBPro 02x02h CMS7-12 - Data Port rite SB Only 02x02h FM Music - Right Status Port Read SBPro 02x02h FM Music - Right Register Port rite SBPro 02x03h CMS7-12 - Register Port rite SB Only 02x03h FM Music - Right Data Register rite SBPro 02x04h Mixer - Register Port rite SBPro 02x05h Mixer - Data Register Readrite SBPro 02x06h DSP - Reset rite SB 02x08h FM Music - Compatible Status Port Read SB 02x08h FM Music - Compatible Register Port rite SB 02x09h FM Music - Compatible Data Register rite SB 02x0Ah DSP - Read Data Read SB 02x0Ch DSP - rite Data or Command rite SB 02x0Ch DSP - rite Buffer Status Read SB 02x0Dh DSP - Timer Interrupt Clear Read SB16 02x0Eh DSP - Data Available Status Read SB 02x0Eh DSP - IRQ Acknoledge, 8-bit Read SB 02x0Fh DSP - IRQ Acknoledge, 16-bit Read SB16 02x10h CD-ROM - Data Register Read SBPro 02x10h CD-ROM - Command Port rite SBPro 02x11h CD-ROM - Status Port Read SBPro 02x12h CD-ROM - Reset rite SBPro 02x13h CD-ROM - Enable rite SBPro 0388h AdLib - Status Port Read SB 0388h AdLib - Register Port rite SB 0389h AdLib - Data Register rite SB 038Ah Advanced AdLib - Status Port Read SB16 038Ah Advanced AdLib - Register Port rite SB16 038Bh Advanced AdLib - Data Register rite SB16 03x00h MPU-401 - Data Port Readrite SB16 03x01h MPU-401 - Status Port Read SB16 03x01h MPU-401 - Command Port rite SB16 0200h-0207h Joystick Varies SB Comenzi DSPTabel 2 003h ASP Status SB16ASP 004h DSP Status Obsolete SB2.0-Pro2 004h ASP SB16ASP 005h ASP SB16ASP 010h Direct DAC, 8-bit SB 014h DMA DAC, 8-bit SB 016h DMA DAC, 2-bit ADPCM SB 017h DMA DAC, 2-bit ADPCM Reference SB 01Ch Auto-Initialize DMA DAC, 8-bit SB2.0 01Fh Auto-Initialize DMA DAC, 2-bit ADPCM Reference SB2.0 020h Direct ADC, 8-bit SB 024h DMA ADC, 8-bit SB 028h Direct ADC, 8-bit Burst SB-Pro2 02Ch Auto-Initialize DMA ADC, 8-bit SB2.0 030h MIDI Read Poll SB 031h MIDI Read Interrupt SB 032h MIDI Read Timestamp Poll SB 033h MIDI Read Timestamp Interrupt SB 034h MIDI Read Poll rite Poll UART SB2.0 035h MIDI Read Interrupt rite Poll UART SB2.0 037h MIDI Read Timestamp Interrupt rite Poll UART SB2.0 038h MIDI rite Poll SB 040h ...
Download