Creative SB0350 Hardware Programming Guide - Page 56

Creative SB0350 Manual

Page 56 highlights

Digitized Sound I/O Programming 3-27 bMode is one of the following: bMode 00h 20h 10h 30h Description 8-bit mono unsigned PCM 8-bit stereo unsigned PCM 16-bit mono signed PCM 16-bit stereo signed PCM wLength is one less than the actual number of samples to be transferred. The transfer begins here. The DSP will generate an interrupt after transferring the programmed number of samples. Upon receiving an interrupt from the DSP, the following steps should be done in the interrupt service routine: 1. 2. Program the DMA controller for the next block. Program the DSP for the next block (step 5 shown above). At the end of data transfer: 1 2 Disable the interrupt used. Restore the original interrupt service routine.

  • 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-27
bMode
is one of the following:
bMode
Description
00h
8-bit mono unsigned PCM
20h
8-bit stereo unsigned PCM
10h
16-bit mono signed PCM
30h
16-bit stereo signed PCM
wLength
is one less than the actual number of
samples
to be transferred.
The transfer begins here.
The DSP will generate an interrupt after transferring the
programmed number of samples.
Upon receiving an interrupt from the DSP, the following steps should be done in the
interrupt service routine:
1.
Program the DMA controller for the next block.
2.
Program the DSP for the next block (step 5 shown above).
At the end of data transfer:
1
Disable the interrupt used.
2
Restore the original interrupt service routine.