
3.0 Register Description
(Continued)
Bit 7
0
Ack. Byte is available or External
MIDI Input Data is Available in
MDI-IN FIFO;
NO Acknowledfe Byte or External
MIDI Input Data;
Ready for MIDI Data Output or New
MIDI Command
MIDI-OUT FIFO is Full
MIDI-IN FIFO is not Full
MIDI-IN FIFO is Full
MPU401 engine is at PASS-THRU
mode
MPU401 engine is at UART mode
RESERVED
1
Bit 6
0
1
0
1
0
Bit 5
Bit 4
1
Bit 3..0
Write MPU-401 Command
Bit 7..0
Command to MPU-401 MIDI
Controller;
3.4.3.3 MPUR2 (MPU-401 Operation Control / Status
Register)
Address:
AudioBase + 22h or MPU401Base + 2h
Size:
8 bits
Type:
Bit 7..3 Read/Write
Bit 2.00 Read Only
Default:
10h
Read MPU-401 MIDI Engine Current Status
Bit 7
0
MIDI-IN FIFO Source From External
MIDI-IN Pad;
MIDI-IN FIFO Source From
MIDI-OUT FIFO;
External MIDI-OUT Pad Source From
MIDI-OUT FIFO;
External MIDI-OUT Pad Source From
External MIDI-IN Pad;
Regular MIDI Clock is being used;
Fast MIDI Clock (12.288 MHz) is
being used;
MPUR0 Disconnect From MIDI-OUT
FIFO;
Connect MPUR0 to MIDI-OUT FIFO;
Interrupt will be generated When
MIDI-IN FIFO is not Empty;
Interrupt will not be generated When
MIDI-IN FIFO is not Empty;
MPU401 Midi-out buffer full flag is
not masked at loop back mode;
MPU401 Midi-out buffer full flag is
masked at loop back mode;
MIDI-OUT FIFO is Empty;
MIDI-OUT FIFO is Not Empty;
MIDI-IN FIFO is Empty;
MIDI-IN FIFO is not Empty
1
Bit 6
0
1
Bit 5
0
1
Bit 4
0
1
0
Bit 3
1
Bit 2
0
1
Bit 1
0
1
0
1
Bit 0
Write MPU-401 MIDI Engine Operation Control
Bit 7
0
MIDI-IN FIFO Source From External
MIDI-IN Pad;
MIDI-IN FIFO Source From
MIDI-OUT FIFO;
External MIDI-OUT Pad Source From
MIDI-OUT FIFO;
External MIDI-OUT Pad Source From
External MIDI-IN Pad;
Regular MPU401 MIDI Clock is being
used;
Fast MPU401 MIDI Clock (12.288
MHz) is being used;
Disconnect MPUR0 From MIDI-OUT
FIFO When at Pass-Thru Mode;
Connect MPUR0 to MIDI-OUT FIFO
When at Pass-Thru Mode;
Genarate Interrupt When MIDI-IN
FIFO is not Empty;
Do Not Generate Interrupt When
MIDI-IN FIFO is not Empty;
External MIDI-OUT Source from
Internal MIDI-OUT
Force External MIDI-OUT Output
Pad to Stay at High Level
RESERVED
1
Bit 6
0
1
Bit 5
0
1
Bit 4
0
1
Bit 3
0
1
Bit 2
0
1
Bit 1..0
3.4.3.4 MPUR3 (MPU-401 MIDI-IN FIFO Access Port)
Address:
AudioBase + 23h or MPU401Base + 3h
Size:
8 bits
Type:
Read Only
Default:
00h
Read
Bit 7..0
MIDI Data Serialized In MIDI-IN FIFO
3.4.3.5 Implementation Note:
After power up reset, MPU-401 MIDI engine is at pass-
through mode. MPU-401 MIDI engine will only execute the
following two commands when at pass-through mode.
Command Code:
3Fh
Function:
Enter_UART Mode from Pass-Through
Mode
Behavior:
Return acknowledge byte (0FEh) in
MPUR0, generate an interrupt if switch to
UART
mode
MPUR0 will clear this interrupt.
Command Code:
FFh
Function:
MIDI Reset
Behavior:
Return acknowledge byte (0FEh) in
MPUR0, generate an interrupt and stay
in Pass-Through mode. Reading MPUR0
will clear this interrupt.
MPU-401 MIDI engine will only execute the following com-
mand when at UART mode.
Command Code:
FFh
Function:
Enter Pass-Through Mode from UART
Mode
Behavior:
Flush MIDI-IN FIFO, go to Pass-Through
Mode;
successfully.
Reading
www.national.com
17