Hardware Programming Guide
Page 42
...an interrupt after transferring the programmed number of the following are the steps needed to be transferred. Set up the DSP interrupt service routine. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Send an I /O ... = 1FFFh Hence, wLength.LowByte = 0FFh and wLength.HighByte = 1Fh. Set the DSP transfer Time Constant. Digitized Sound I /O command followed by data transfer count. Enable the interrupt used. to turn on the DAC speaker for 8-bit single-cycle DMA mode transfer. outp(wSBCBaseAddx+0xC, bCommand) outp...
...an interrupt after transferring the programmed number of the following are the steps needed to be transferred. Set up the DSP interrupt service routine. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Send an I /O ... = 1FFFh Hence, wLength.LowByte = 0FFh and wLength.HighByte = 1Fh. Set the DSP transfer Time Constant. Digitized Sound I /O command followed by data transfer count. Enable the interrupt used. to turn on the DAC speaker for 8-bit single-cycle DMA mode transfer. outp(wSBCBaseAddx+0xC, bCommand) outp...
Hardware Programming Guide
Page 44
... as an example. Enable the interrupt used , the DSP block transfer size should be set to 4KB. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Set the DSP transfer Time Constant. outp(wSBCBaseAddx+0xC, 0x48) outp(wSBCBaseAddx+0xC, wBlkSize.LowByte...-initialize DMA mode transfer. Again, wBlkSize is used . outp(wSBCBaseAddx+0xC, bCommand) bCommand is received. Otherwise, turn it off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to 2-bit ADPCM output with reference byte 8-bit to turn off . to perform 8-bit mono PCM and ADPCM...
... as an example. Enable the interrupt used , the DSP block transfer size should be set to 4KB. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Set the DSP transfer Time Constant. outp(wSBCBaseAddx+0xC, 0x48) outp(wSBCBaseAddx+0xC, wBlkSize.LowByte...-initialize DMA mode transfer. Again, wBlkSize is used . outp(wSBCBaseAddx+0xC, bCommand) bCommand is received. Otherwise, turn it off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to 2-bit ADPCM output with reference byte 8-bit to turn off . to perform 8-bit mono PCM and ADPCM...
Hardware Programming Guide
Page 46
..., 0xD1) Program the DMA controller for the next block. Set the DSP transfer Time Constant. outp(wSBCBaseAddx+0xC, 0x40) outp(wSBCBaseAddx+0xC, bTimeConstant) 4. 5. 6. Set the DSP transfer block size. to turn off . Otherwise, turn on the DAC speaker for the next block. Send an I /O Programming 3-17... routine: 1. 2. Digitized Sound I /O command to turn it off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to start high-speed single-cycle DMA mode transfer. Set up the DSP interrupt service routine. Set the DSP block size and program the DSP for 8-bit single-cycle DMA mode ...
..., 0xD1) Program the DMA controller for the next block. Set the DSP transfer Time Constant. outp(wSBCBaseAddx+0xC, 0x40) outp(wSBCBaseAddx+0xC, bTimeConstant) 4. 5. 6. Set the DSP transfer block size. to turn off . Otherwise, turn on the DAC speaker for the next block. Send an I /O Programming 3-17... routine: 1. 2. Digitized Sound I /O command to turn it off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to start high-speed single-cycle DMA mode transfer. Set up the DSP interrupt service routine. Set the DSP block size and program the DSP for 8-bit single-cycle DMA mode ...
Hardware Programming Guide
Page 48
... DSP block transfer size. Use an 8KB buffer as an example. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Set the DSP transfer Time Constant. At the end of the following: bCommand 98h 90h Description 8-bit...bit mono PCM high-speed autoinitialize DMA mode transfer: 1. to turn on the DAC speaker for 8-bit auto-initialize DMA mode transfer. outp(wSBCBaseAddx+0xC, 0x40) outp(wSBCBaseAddx+0xC, bTimeConstant) 2. 3. 4. 5. 6. 7. Set up the DSP interrupt service routine. outp(wSBCBaseAddx+0xC, 0x48) outp(wSBCBaseAddx+0xC, wBlkSize...
... DSP block transfer size. Use an 8KB buffer as an example. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Program the DMA controller for digitized output. Set the DSP transfer Time Constant. At the end of the following: bCommand 98h 90h Description 8-bit...bit mono PCM high-speed autoinitialize DMA mode transfer: 1. to turn on the DAC speaker for 8-bit auto-initialize DMA mode transfer. outp(wSBCBaseAddx+0xC, 0x40) outp(wSBCBaseAddx+0xC, bTimeConstant) 2. 3. 4. 5. 6. 7. Set up the DSP interrupt service routine. outp(wSBCBaseAddx+0xC, 0x48) outp(wSBCBaseAddx+0xC, wBlkSize...
Hardware Programming Guide
Page 50
Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Set the hardware to turn on the DAC speaker for one silent byte (value 0x80). a. a. to turn off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to stereo mode. For stereo output: i. Program the DSP to perform 8-bit stereo PCM ...high-speed singlecycle DMA mode transfer: 1. 2. 3. Enable the interrupt used. Otherwise, turn it off . Set the DSP transfer Time Constant. outp...
Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Set the hardware to turn on the DAC speaker for one silent byte (value 0x80). a. a. to turn off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to stereo mode. For stereo output: i. Program the DSP to perform 8-bit stereo PCM ...high-speed singlecycle DMA mode transfer: 1. 2. 3. Enable the interrupt used. Otherwise, turn it off . Set the DSP transfer Time Constant. outp...
Hardware Programming Guide
Page 51
... is one of a block, send the reset DSP command. Restore the filter status. Set the hardware to start high-speed single-cycle DMA mode transfer. a. During high-speed DMA mode data I /O Programming 8. Set the DSP block size and program the DSP for subsequent block. Send an I/O command ...to mono mode. Turn off the DAC speaker. Hence, to stop data transfer before the end of the following: bCommand 99h ...
... is one of a block, send the reset DSP command. Restore the filter status. Set the hardware to start high-speed single-cycle DMA mode transfer. a. During high-speed DMA mode data I /O Programming 8. Set the DSP block size and program the DSP for subsequent block. Send an I/O command ...to mono mode. Turn off the DAC speaker. Hence, to stop data transfer before the end of the following: bCommand 99h ...
Hardware Programming Guide
Page 52
...+0xC, bTimeConstant) 8. Allocate a DMA buffer in contiguous memory without straddling a 64KB physical page boundary. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Set the hardware to output one byte single-cycle output. outp(wSBCBaseAddx+0x4, 0xE) bTmp = inp(wSBCBaseAddx+0x5) outp(wSBCBaseAddx+0x5..., (bTmp | 0x2)) ii. iii. Set the DSP transfer Time Constant. to turn off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to perform 8-bit stereo PCM high-speed autoinitialize DMA mode transfer: 1. b. For...
...+0xC, bTimeConstant) 8. Allocate a DMA buffer in contiguous memory without straddling a 64KB physical page boundary. Turn on the DAC speaker outp(wSBCBaseAddx+0xC, 0xD1) Set the hardware to output one byte single-cycle output. outp(wSBCBaseAddx+0x4, 0xE) bTmp = inp(wSBCBaseAddx+0x5) outp(wSBCBaseAddx+0x5..., (bTmp | 0x2)) ii. iii. Set the DSP transfer Time Constant. to turn off the DAC speaker outp(wSBCBaseAddx+0xC, 0xD3) to perform 8-bit stereo PCM high-speed autoinitialize DMA mode transfer: 1. b. For...
Hardware Programming Guide
Page 74
... 2 dB steps. Default is 0 ⇒ - 62 dB. The default is Line.L 1 Line.R 1 CD.L 1 CD.R 1 Mic 1 Register 0x3D (Input Mixer.L switches) Set the appropriate bit to 1 to close the switch, 0 to open. 4-16 Mixer Chip Programming Registers 0x38/0x39 (Line volume .L/.R) Register 0x3A (Mic volume) 5 bits per...MIDI.L 0 MIDI.R 0 Line.L 1 Line.R 0 CD.L 1 CD.R 0 Mic 1 Register 0x3E (Input Mixer.R switches) Set the appropriate bit to 1 to close the switch, 0 to open . Register 0x3B (PC Speaker volume) 2 bits, giving 32 levels. 0 to 31 ⇒ - 62 dB to be taken from the left input mixer...
... 2 dB steps. Default is 0 ⇒ - 62 dB. The default is Line.L 1 Line.R 1 CD.L 1 CD.R 1 Mic 1 Register 0x3D (Input Mixer.L switches) Set the appropriate bit to 1 to close the switch, 0 to open. 4-16 Mixer Chip Programming Registers 0x38/0x39 (Line volume .L/.R) Register 0x3A (Mic volume) 5 bits per...MIDI.L 0 MIDI.R 0 Line.L 1 Line.R 0 CD.L 1 CD.R 0 Mic 1 Register 0x3E (Input Mixer.R switches) Set the appropriate bit to 1 to close the switch, 0 to open . Register 0x3B (PC Speaker volume) 2 bits, giving 32 levels. 0 to 31 ⇒ - 62 dB to be taken from the left input mixer...
Hardware Programming Guide
Page 87
...bit ADPCM output with ref. byte 8-bit to 2-bit ADPCM output 8-bit to their functionalities. byte Pause DMA mode Continue DMA mode Turn on speaker Turn off speaker Polling mode input Interrupt mode input Output Pause digitized sound output for DSP versions 1.xx, 2.00, 2.01+, 3.xx and 4.xx. byte 8-bit...14h 24h 74h 75h 76h 77h 16h 17h 8-bit DMA mode digitized sound I/O control Digitized sound output speaker control MIDI I/O D0h D4h D1h D3h 30h 31h 38h 80h E1h Description Output Input Set digitized sound transfer time constant Output Input 8-bit to 4-bit ADPCM output 8-bit to 3-bit ADPCM...
...bit ADPCM output with ref. byte 8-bit to 2-bit ADPCM output 8-bit to their functionalities. byte Pause DMA mode Continue DMA mode Turn on speaker Turn off speaker Polling mode input Interrupt mode input Output Pause digitized sound output for DSP versions 1.xx, 2.00, 2.01+, 3.xx and 4.xx. byte 8-bit...14h 24h 74h 75h 76h 77h 16h 17h 8-bit DMA mode digitized sound I/O control Digitized sound output speaker control MIDI I/O D0h D4h D1h D3h 30h 31h 38h 80h E1h Description Output Input Set digitized sound transfer time constant Output Input 8-bit to 4-bit ADPCM output 8-bit to 3-bit ADPCM...
Hardware Programming Guide
Page 88
...-speed mode digitized sound I /O 48h 34h 35h 36h 37h Digitized sound output speaker control D8h Description Output Input 8-bit to 3-bit ADPCM output with ref. byte 8-bit to 4-bit ADPCM output with time stamping Get speaker status The commands below are available on DSP versions 2.00, 2.01+, 3.xx... and 4.xx. byte Exit 8-bit auto-init DMA-mode Set block transfer size Polling mode Interrupt mode Polling with time stamping Interrupt with...
...-speed mode digitized sound I /O 48h 34h 35h 36h 37h Digitized sound output speaker control D8h Description Output Input 8-bit to 3-bit ADPCM output with ref. byte 8-bit to 4-bit ADPCM output with time stamping Get speaker status The commands below are available on DSP versions 2.00, 2.01+, 3.xx... and 4.xx. byte Exit 8-bit auto-init DMA-mode Set block transfer size Polling mode Interrupt mode Polling with time stamping Interrupt with...
Hardware Programming Guide
Page 110
... The DSP takes a maximum of the digitized sound output to the amplifier input. However, it will still set to 'On' the DSP's internal speaker On/Off flag so that command D8h, Get speaker status, will pause the DMA transfer after executing this command. It has no practical effect on the output ...signal. See Also command D3h, Turn off speaker command D8h, Get speaker status 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 Available On DSP version 4.xx, this command has no effect on the FM ...
... The DSP takes a maximum of the digitized sound output to the amplifier input. However, it will still set to 'On' the DSP's internal speaker On/Off flag so that command D8h, Get speaker status, will pause the DMA transfer after executing this command. It has no practical effect on the output ...signal. See Also command D3h, Turn off speaker command D8h, Get speaker status 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 Available On DSP version 4.xx, this command has no effect on the FM ...
Hardware Programming Guide
Page 111
On DSP version 4.xx, this command has no practical effect on speaker command D8h, Get speaker status 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 Available D4h Output Remarks D4h Continue 8-bit DMA mode digitized sound I/O Resumes the DMA transfer paused by command ... after executing this command. However, it will still set to complete this command. 6-26 DSP Commands D3h Output Remarks D3h Turn off speaker The DSP takes a maximum of 220 milliseconds to 'Off' the DSP's internal speaker On/Off flag so that command D8h, Get speaker status, will return the correct status. See Also...
On DSP version 4.xx, this command has no practical effect on speaker command D8h, Get speaker status 1.xx 9 2.00 9 2.01+ 9 3.xx 9 4.xx 9 Available D4h Output Remarks D4h Continue 8-bit DMA mode digitized sound I/O Resumes the DMA transfer paused by command ... after executing this command. However, it will still set to complete this command. 6-26 DSP Commands D3h Output Remarks D3h Turn off speaker The DSP takes a maximum of 220 milliseconds to 'Off' the DSP's internal speaker On/Off flag so that command D8h, Get speaker status, will return the correct status. See Also...