Creative SB0350 Hardware Programming Guide - Page 80

Creative SB0350 Manual

Page 80 highlights

MIDI Port I/O Programming 5-5 MPU-401 UART Mode Only the MPU-401 UART (or pass-through) mode is supported on Sound Blaster 16. In this mode, the interface performs no services, literally relaying everything it receives, without modification or interpretation, between the PC and the attached MIDI device. Once UART mode is entered, the only command the interface recognizes is Reset. I/O Addresses The Sound Blaster 16 MPU-401 UART mode MIDI interface uses one IRQ line and two consecutive I/O addresses. Possible IRQ lines are at 2, 5, 7 and 10, with a factory default of 5. Possible base I/O addresses are at 300h and 330h, with a factory default of 330h. Two consecutive I/O addresses, counting up from the base address, are used to access the MPU-401 MIDI interface. The two addresses are 300h and 301h, or 330h and 331h. The two I/O addresses can be classified as: Status port 3x1h (read only) This port indicates whether the interface is ready to accept a data/command byte, or has in-bound data available for reading. Bit 6: Output Ready 0 - The interface is ready to receive a data/command byte 1 - The interface is not ready to receive a data/command byte Bit 7: Input Ready 0 - Data is available for reading 1 - No data is available for reading Command port Data port 3x1h (write only) 3x0h (read/write) Commands are sent via this port. This is the port through which in-bound or out-bound data passes. Table 4-1: MPU-401 I/O Ports

  • 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

MIDI Port I/O Programming
5-5
MPU-401 UART Mode
Only the MPU-401 UART (or pass-through) mode is supported on Sound Blaster 16.
In
this mode, the interface performs no services, literally relaying everything it receives,
without modification or interpretation, between the PC and the attached MIDI device.
Once UART mode is entered, the only command the interface recognizes is
Reset
.
I/O Addresses
The Sound Blaster 16 MPU-401 UART mode MIDI interface uses one IRQ line and two
consecutive I/O addresses.
Possible IRQ lines are at 2, 5, 7 and 10, with a factory default of 5.
Possible base I/O
addresses are at 300h and 330h, with a factory default of 330h.
Two consecutive I/O addresses, counting up from the base address, are used to access
the MPU-401 MIDI interface. The two addresses are 300h and 301h, or 330h and 331h.
The two I/O addresses can be classified as:
Status port
3
x
1h
(read only)
This port indicates whether the interface is ready to
accept a data/command byte, or has in-bound data
available for reading.
Bit 6:
Output Ready
0
-
The interface is ready to receive a
data/command byte
1
-
The interface is not ready to receive a
data/command byte
Bit 7:
Input Ready
0
-
Data is available for reading
1
-
No data is available for reading
Command
port
3
x
1h
(write only)
Commands are sent via this port.
Data port
3
x
0h
(read/write)
This is the port through which in-bound or out-bound
data passes.
Table 4-1: MPU-401 I/O Ports