Creative SB0350 Hardware Programming Guide - Page 31

Creative SB0350 Manual

Page 31 highlights

3-2 Digitized Sound I/O Programming Digitized Sound Operation Modes This section describes the digitized sound data format and various digitized sound operation modes available on the DSP. It covers the following topics digitized sound data format digitized sound I/O transfer rate direct mode digitized sound I/O single-cycle DMA mode digitized sound I/O auto-initialize DMA mode digitized sound I/O high-speed DMA mode digitized sound I/O Adaptive Delta Pulse Code Modulation (ADPCM) DMA mode digitized sound I/O DSP digitized sound I/O capability Digitized Sound Data Format The digitized sound data is in Pulse Code Modulation (PCM) format. For 8-bit PCM data, each sample is represented by an unsigned byte. For 16-bit PCM data, each sample is represented by a 16-bit signed value. The maximum and minimum values for PCM samples of 8-bit and 16-bit sizes are as follows: Format 8-bit PCM 16-bit PCM Maximum Value 255 (0xFF) 32767 (0x7FFF) Minimum Value 0 -32768 (-0x8000) Midpoint Value 128 (0x80) 0 Figure 3-1: PCM sample size

  • 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

3-2
Digitized Sound I/O Programming
Digitized Sound Operation Modes
This section describes the digitized sound data format and various digitized sound
operation modes available on the DSP.
It covers the following topics:
±
digitized sound data format
±
digitized sound I/O transfer rate
±
direct mode digitized sound I/O
±
single-cycle DMA mode digitized sound I/O
±
auto-initialize DMA mode digitized sound I/O
±
high-speed DMA mode digitized sound I/O
±
Adaptive Delta Pulse Code Modulation (ADPCM) DMA mode digitized
sound I/O
±
DSP digitized sound I/O capability
Digitized Sound Data Format
The digitized sound data is in Pulse Code Modulation (PCM) format.
For 8-bit PCM
data, each sample is represented by an unsigned byte.
For 16-bit PCM data, each
sample is represented by a 16-bit signed value.
The maximum and minimum values for PCM samples of 8-bit and 16-bit sizes are as
follows:
Format
Maximum Value
Minimum Value
Midpoint Value
8-bit PCM
255 (0xFF)
0
128 (0x80)
16-bit PCM
32767 (0x7FFF)
-32768 (-0x8000)
0
Figure 3-1: PCM sample size