Creative SB0350 Hardware Programming Guide - Page 40

Creative SB0350 Manual

Page 40 highlights

Digitized Sound I/O Programming 3-11 Sample Procedures This section provides step by step procedures needed to perform the various DMA modes of digitized sound operations described in the first section. It covers the following sample procedures General procedures for a DMA mode transfer Handling the DSP digitized sound I/O interrupt 8-bit mono PCM or ADPCM single-cycle DMA mode transfer 8-bit mono PCM or ADPCM auto-initialize DMA mode transfer 8-bit mono PCM high-speed single-cycle DMA mode transfer 8-bit mono PCM high-speed auto-initialize DMA mode transfer 8-bit stereo PCM high-speed single-cycle DMA mode transfer 8-bit stereo PCM high-speed auto-initialize DMA mode transfer 8-bit or 16-bit PCM single-cycle DMA mode transfer 8-bit or 16-bit PCM auto-initialize DMA mode transfer To help you utilize the sample procedures more effectively, we have also included simple C language I/O port instructions along with the discussions. In order to focus on the key steps involved, the checking of the status ports before reading from and writing to the DSP has been deliberately omitted. In your actual program, you must check the status ports. Refer to the chapter "Introduction to DSP Programming" for the details on reading from and writing to the DSP. Before you continue, you should have read earlier section and have yourself familiar with digitized sound data format and the transfer rate (time constant).

  • 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
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141

Digitized Sound I/O Programming
3-11
Sample Procedures
This section provides step by step procedures needed to perform the various DMA
modes of digitized sound operations described in the first section.
It covers the following sample procedures:
±
General procedures for a DMA mode transfer
±
Handling the DSP digitized sound I/O interrupt
±
8-bit mono PCM or ADPCM single-cycle DMA mode transfer
±
8-bit mono PCM or ADPCM auto-initialize DMA mode transfer
±
8-bit mono PCM high-speed single-cycle DMA mode transfer
±
8-bit mono PCM high-speed auto-initialize DMA mode transfer
±
8-bit stereo PCM high-speed single-cycle DMA mode transfer
±
8-bit stereo PCM high-speed auto-initialize DMA mode transfer
±
8-bit or 16-bit PCM single-cycle DMA mode transfer
±
8-bit or 16-bit PCM auto-initialize DMA mode transfer
To help you utilize the sample procedures more effectively,
we have also included
simple C language I/O port instructions along with the discussions.
In order to focus
on the key steps involved, the checking of the status ports before reading from and
writing to the DSP has been deliberately omitted.
In your actual program, you must
check the status ports.
Refer to the chapter "Introduction to DSP Programming" for
the details on reading from and writing to the DSP.
Before you continue, you should have read earlier section and have yourself familiar
with digitized sound data format and the transfer rate (time constant).