Creative SB0350 Hardware Programming Guide - Page 82
Creative SB0350 Manual
View all Creative SB0350 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 82 highlights
MIDI Port I/O Programming 5-7 Sending a Command Commands are sent through the Command port to control the operation of the interface. Before sending the command, the Status port must be polled. Example code: mov inc Busy: in test jnz mov out al,dx al,40h Busy al,bCommand dx,al ;Read status port ;Ready for output? ;Get command ;Output command via Command port dx,wMpuBaseAddx dx ;MPU-401 base I/O address ;Status port As only the UART mode is supported, only two commands are recognized. These two commands are Reset and Enter UART mode.
MIDI Port I/O Programming
5-7
Sending a Command
Commands are sent through the Command port to control the operation of the interface.
Before sending the command, the Status port must be polled.
Example code:
mov
dx,wMpuBaseAddx
;MPU-401 base I/O address
inc
dx
;Status port
Busy:
in
al,dx
;Read status port
test
al,40h
;Ready for output?
jnz
Busy
mov
al,bCommand
;Get command
out
dx,al
;Output command via Command port
As only the UART mode is supported, only two commands are recognized.
These two
commands are
Reset
and
Enter UART mode
.