The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.   United States  United States   


Datasheet Search Engine   
 
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)


  Datasheet Home \ Datasheet Details

UART, Digital Analog Converter, Register, Receiver, Switches, Delay Line, LED, Controller

Download

PDF Abstract Text:

ATSAM2193


Section 1 MPU-401 and Serial MIDI ................................... 1-1

ATSAM2193
User Guide
Table of Contents
Section 1 MPU-401 and Serial MIDI ................................... 1-1
1.1 Stand-alone and UART Modes .................................1-1 Stand-alone Mode .......................................1-1 UART Mode ............................................1-2 1.1.1 1.1.2
Section 2 Configuration and Special MIDI Controls ............................................ 2-1
2.1 2.2 2.3 DAC Configuration ..........................................2-1 Special MIDI Controls ........................................2-1 Controls...................................................2-2 Control Messages Overview................................2-2 System Messages .......................................2-3 Spatial Effect Device .....................................2-4 Routing Messages .......................................2-4 MIDI Messages..........................................2-4 Reverb Device ..........................................2-5 Chorus Device ..........................................2-6 Equalizer Device.........................................2-7
Section 3 Detailed MIDI Implementation ............................... 3-1 Section 4 Sounds................................................. 4-1
4.1 4.2 4.3 Main Sounds: General MIDI ...................................4-1 MT-32 Sound Variation #127 ..................................4-2 Drum Set Table (MIDI Channel 10)..............................4-3
Section 5 Auto-test ................................................ 5-1 Section 6 Appendix ................................................ 6-1
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Table of Contents
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 1 MPU-401 and Serial MIDI
The ATSAM2193 can be controlled both from the parallel MPU-401 interface (D0-D7, CS / , WR / , RD / , INT) and from the serial MIDI interface (MIDI IN). The MPU-401 Interface consists of two byte registers and one IRQ (interrupt request) line. Table 1-1. MPU-401 Interface
Figure 1-1. Status Register
Stand-alone and UART Modes
Stand-alone Mode After power-up, hardware reset, or MPU reset control, the ATSAM2193 is in stand-alone mode. In this mode, the MPU-401 interface is inactive and the IRQ line is floated. The serial MIDI IN is connected to the synthesis. Stand-alone mode accepts two controls: 3Fh to switch to UART mode: 3Fh control is acknowledged by receiving 0FEh as DATA8. BEH to send any control (see list of control messages on page 2-2, Section 2). Only
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
MPU-401 and Serial MIDI
one control can be sent, which means that each control sent in stand-alone mode should start with the BEH control. 1.1.2 UART Mode In UART mode, all data received by serial MIDI IN is sent to the MPU-401 DATA8 all data received in MPU-401 DATA8 is MIDI data sent to the synthesis. UART mode accepts the standard MPU-401 control. Control 0FFH (MPU reset) switches back to stand-alone mode. Additional nonstandard controls can be sent to the control port when in UART mode. These additional controls, being independent of the MIDI data flow, allow the user to easily insert MIDI commands in the middle of a MIDI data flow, thus avoiding MIDI merge types of operations in the host. Figures 1-2 and 1-3 illustrate stand-alone and UART mode. Figure 1-2. Stand-alone Mode
DATA8 IN (from PC)
SYNTHESIS
Serial MIDI IN
DATA8 OUT (to PC)
Figure 1-3. UART Mode
DATA8 IN (from PC) SYNTHESIS
Serial MIDI IN
DATA8 OUT (to PC)
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 2 Configuration and Special MIDI Controls
DAC Configuration
Table 2-1. DAC Configuration
DACSEL GND VCC Configuration IIS format DAC (16 to 22 bits) Sony format DAC, 16 bits
Special MIDI Controls
These controls are received on serial MIDI in stand-alone or on MPU-401 data port in UART mode.
Table 2-2. Special MIDI Controls
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Configuration and Special MIDI Controls
Table 2-2. Special MIDI Controls (Continued)
Controls
Control Messages Overview
Controls are normally sent in UART mode and are received on MPU-401 control port. Individual controls can also be sent in stand-alone mode if preceeded by control 0BEH. A control message consists of one CONTROL byte followed by one DATA8 byte (parameter).
Table 2-3. Control Messages Overview
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Configuration and Special MIDI Controls
Table 2-3. Control Messages Overview (Continued)
Post effects are spatial effect + equalizer
System Messages
Table 2-4. System Messages
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Configuration and Special MIDI Controls
Routing Messages
Table 2-6. Routing Messages
MIDI Messages
Table 2-7. MIDI Messages
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Configuration and Special MIDI Controls
Reverb Device
Table 2-8. Reverb Device
Reverb program. Same as GM system exclusive message "40h 01h 30h" or GM control 80.
room3 2h hall1 3h hall2 4h plate 5h delay 6h pan delay 7h
room1 0h
room2 1h
Default values:
room1 room2 room3 hall1 hall2 plate delay pan delay
90h 2.3.6.3
Reverb time same as GM system exclusive message "40h 01h 34h".
Default values:
room1 room2 room3 hall1 hall2 plate delay pan delay
7Fh 2.3.6.4
delay 22h pan delay 26h
Modify reverb send level for general MIDI. 80h: 0 to 7Fh: Original reverb send levels of MIDI sequence not modified. Original reverb send levels decreased.
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Configuration and Special MIDI Controls
Chorus Device
Table 2-9. Chorus Device
Chorus program same as GM system exclusive message "40h 01h 38h" or GM control 81.
chorus3 02h chorus4 03h FB chorus 04h flanger 05h short del 06h FB delay 07h
chorus1 00h
chorus2 01h
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Configuration and Special MIDI Controls
Equalizer Device
Table 2-10. Equalizer Device
00h -12 dB 20h -6 dB 40h 0 dB 60h +6 dB 7Fh +12 dB
Band LB MLB MHB HB Range 0-4.7 Khz 0-4.2 Khz 0-4.2 Khz 0-18.75 Khz Default 0Ch 1Bh 72h 40h
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Configuration and Special MIDI Controls
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 3 Detailed MIDI Implementation
PROGRAM CHANGE
CnH pp
CHANNEL AFTERTOUCH MIDI RESET CTRL 00 CTRL 01 CTRL 05 CTRL 06 CTRL 07 CTRL 10 CTRL 11 CTRL 64
DnH vv
FFH BnH 00H cc BnH 01H cc BnH 05H cc BnH 06H cc BnH 07H cc BnH 0AH cc BnH 0BH cc BnH 40H cc
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Detailed MIDI Implementation
Table 3-1. Detailed MIDI Implementation (Continued)
CTRL 81
BnH 51H vv
DREAM
CTRL 91 CTRL 93 CTRL 120 CTRL 121 CTRL 123 CTRL 126 CTRL 127 CTRL CC1
BnH 5BH vv BnH 5DH vv BnH 78H 00H BnH 79H 00H BnH 7BH 00H BnH 7EH 00H BnH 7FH 00H BnH ccH vvH
GS GS MIDI MIDI MIDI MIDI MIDI GS
CTRL CC2
BnH ccH vvH
RPN 0000H RPN 0001H RPN 0002H NRPN 0108H NRPN 0109H NRPN 010AH NRPN 0120H
BnH 65H 00H 64H 00H 06H vv BnH 65H 00H 64H 01H 06H vv BnH 65H 00H 64H 02H 06H vv BnH 63H 01H 62H 08H 06H vv BnH 63H 01H 62H 09H 06H vv BnN 63H 01H 62H 0AH 06H vv Bnh 63H 01H 62H 20H 06H vv
MIDI / GM MIDI MIDI GS GS GS GS
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Detailed MIDI Implementation
Table 3-1. Detailed MIDI Implementation (Continued)
SYSEX SYSEX SYSEX SYSEX SYSEX
F0H 41H 00H 42H 12H 40H 00H 04H vv xx F7H F0H 41H 00H 42H 12H 40H 00H 05H vv xx F7H F0H 41H 00H 42H 12H 40H 00H 06H vv xx F7H F0H 41H 00H 42H 12H 40H 00H 7FH 00H xx F7H F0H 41H 00H 42H 12H 40 01H 10H vv1 vv2 vv3 vv4 vv5 vv6 vv7 vv8 vv9 vv10 vv11 vv12 vv13 vv14 vv15 vv16 xx F7h F0H 41H 00H 42H 12H 40H 01H 30H vv xx F7H
SYSEX
F0H 41H 00H 42H 12H 40H 01H 31H vv xx F7H
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Detailed MIDI Implementation
Table 3-1. Detailed MIDI Implementation (Continued)
SYSEX SYSEX SYSEX SYSEX SYSEX SYSEX
F0H 41H 00H 42H 12H 40H 01H 3AH vv xx F7H F0H 41H 00H 42H 12H 40H 01H 3BH vv xx F7H F0H 41H 00H 42H 12H 40H 01H 3CH vv xx F7H F0H 41H 00H 42H 12H 40H 01H 3DH vv xx F7H F0H 41H 00H 42H 12H 40H 01H 3EH vv xx F7H F0H 41H 00H 42H 12H 40H 1pH 02H nn xx F7H
MIDI channel 9 (DRUMS) 0-8 10-15 GS
SYSEX
F0H 41H 00H 42H 12H 40H 1nH 40H v1 v2 .. v12 xx F7H
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Detailed MIDI Implementation
Table 3-1. Detailed MIDI Implementation (Continued)
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Detailed MIDI Implementation
Table 3-1. Detailed MIDI Implementation (Continued)
Notes:
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 4 Sounds
4.1 Main Sounds: General MIDI
General MIDI (Grand) Piano 1 (Bright) Piano 2 (El, Grd) Piano 3 Honky-tonk Piano El. Piano 1 El. Piano 2 Harpsichord Clavi Celesta Glockenspiel Music Box Vibraphone Marimba Xylophone Tubular Bells Santur Drawbar Organ Percussive Organ Rock Organ Church Organ Reed Organ Accordion (French) Harmonica Tango Accordion Accoustic Guitar (nylon) Accoustic Guitar (steel) El. Guitar (jazz) El. Guitar (clean) El. Guitar (muted) Overdriven Guitar Distortion Guitar Guitar Harmonics Program Change
(all channels except 10)
Table 4-1. Main Sounds
PC 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 Note: PC 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 General MIDI Acoustic Bass Finger Bass Picked Bass Fretless Bass Slap Bass 1 Slap Bass 2 Synth Bass 1 Synth Bass 2 Violin Viola Cello Contrabass Tremolo Strings Pizzicato Strings Orchestral Harp Timpani String Ensemble 1 String Ensemble 2 Synth Strings 1 Synth Strings 2 Choir Aahs Voice Oohs Synth Voice Orchestra Hit Trumpet Trombone Tuba Muted Trumpet French Horn Brass Section Synth Brass 1 Synth Brass 2 PC 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 General MIDI Soprano Sax Alto Sax Tenor Sax Baritone Sax Oboe English Horn Bassoon Clarinet Piccolo Flute Recorder Pan Flute Blown Bottle Shakuhachi Whistle Ocarina Lead 1 (square) Lead 2 (sawtooth) Lead 3 (calliope) Lead 4 (chiff) Lead 5 (charang) Lead 6 (voice) Lead 7 (fifths) Lead 8 (bass+lead) Pad 1 (fantasia) Pad 2 (warm) Pad 3 (polysynth) Pad 4 (choir) Pad 5 (bowed) Pad 6 (metallic) Pad 7 (halo) Pad 8 (sweep) PC 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 General MIDI FX 1 (rain) FX 2 (soundtrack) FX 3 (crystal) FX4 (atmosphere) FX 5 (brightness) FX 6 (goblins) FX 7 (echoes) FX 8 (sci-fi) Sitar Banjo Shamisen Koto Kalimba Bagpipe Fiddle Shanai Tinkle Bell Agogo Steel Drums Woodblock Taiko Drum Melodic Tom Synth Drum Reverse Cymbal Guitar Fret Noise Breath Noise Seashore Bird Tweet Teleph. Ring Helicopter Applause Gunshot
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Sounds
MT-32 Sound Variation #127
Table 4-2. MT-32 Sound Variation #127
PC# 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 Instrument name Piano 1 E. Piano 1 Organ 1 Church Org. 2 Harpsichord Clav. Synth Brass 1 Synth Bass 1 Fantasia Soundtrack Tinkle Bell Saw Wave Strings Violin Contrabass Steel-String Guitar Acoustic Bs. Slap Bs. 1 Flute Recorder Tenor Sax Oboe Trumpet French Horn Brass 2 Tinkle Bell Marimba Whistle Timpani Melo. Tom Castanets Bird PC# 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126 Instrument name Piano 2 E.Piano 2 Organ 2 Church Org. Coupled Hps. Clav. Synth Brass 2 Synth Bass 2 Syn Calliope Atmosphere Ice Rain Charang Tremolo Strings Viola Harp Chorus Guitar Fingered Bs. Slap Bs. 2 Flute Pan Flute Baritone Sax English Horn Muted Trumpet French Horn Vibraphone Glockenspiel Koto Whistle Melo Tom Taiko Tinkle Bell Helicopter PC# 3 7 11 15 19 23 27 31 35 39 43 47 51 55 59 63 67 71 75 79 83 87 91 95 99 103 107 111 115 119 123 127 Instrument name Piano 3 Detuned EP2 Organ 3 Church Org. Coupled Hps. Celesta Synth Brass 3 Synth Bass 3 Choir Aahs Crystal Oboe Tubular Bells Slow Strings Cello Harp Funk Gt. Picked Bs. Fretless Bs. Piccolo Soprano Sax Clarinet Bassoon Trombone Tuba Vibraphone Tubular Bell Taisho Koto Bottle Blow Concert BD Taiko Orchestra Hit Bowed Glass PC# 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120 124 128 Instrument name Detuned EP1 Honky-Tonk Detuned Or. 1 Accordion Fr. Clav. Celesta Synth Brass 4 Synth Bass 4 Bowed Glass Bagpipe Pan Flute Square Wave Pizzicato Strings Cello Nylon-str. Gt Sitar Fretless Bs. Fretless Bs. Piccolo Alto Sax Clarinet Harmonica Trombone Brass Kalimba Xylophone Shakuhachi Pan Flute Synth Drum Reverse Cym. Telephone Ice Rain
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Sounds
Drum Set Table (MIDI Channel 10)
Prog 1: Standard Set 27 - D#1 28 - E1 29 - F1 30 - F#1 31 - G1 32 - G#1 33 - A1 34 - A#1 35 - B1 36 - C2 37 - C#2 38 - D2 39 - D#2 40 - E2 41 - F2 42 - F#2 43 - G2 44 - G#2 45 - A2 46 - A#2 47 - B2 48 - C3 49 - C#3 50 - D3 51 - D#3 52 - E3 53 - F3 54 - F#3 55 - G3 56 - G#3 57 - A3 58 - A#3 59 - B3 60 - C4 Kick Drum 2 Kick Drum 1 Side Stick Snare Drum 1 Hand Clap Snare Drum 2 Low Floor Tom Closed Hi Hat EXC1 High Floor Tom Pedal Hi-Hat EXC1 Low Tom Open Hi-Hat EXC1 Low / Mid Tom Hi / Mid Tom Crash Cymbal 1 High Tom Ride Cymbal 1 Chinese Cymbal Ride Bell Tambourine Splash Cymbal Cowbell Crash Cymbal 2 Vibraslap Ride Cymbal 2 Hi Bongo
Prog 17: Power Set
Prog 41: Brush
Prog 49: Orchestra Closed Hi-Hat Pedal Hi-Hat Open Hi-Hat Ride Cymbal
Prog 127: CM-64 / 32 (Partial)
Jazz BD 2 Jazz BD 1
Kick Drum Kick Drum Rim Shot
Gated Snare
Brush Tap Brush Slap Brush Swirl
Snare Drum 2 Castanets Snare Drum 2 Timpani F Timpani F# Timpani G Timpani G# Timpani A Timpani A# Timpani B Timpani C Timpani C# Timpani D Timpani D# Timpani E Timpani F
Snare Drum Hand Clap Elec. Snare Drum Acoustic Low Tom Closed Hi-Hat Exc1 Acoustic Low Tom Open Hi-Hat 2 Acoustic Middle Tom Open Hi-Hat 1 Exc1 Acoustic Middle Tom Acoustic High Tom Crash Cymbal Acoustic High Tom Ride Cymbal Tambourine Cowbell
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Sounds
Prog 1: Standard Set 61 - C#4 62 - D4 63 - D#4 64 - E4 65 - F4 66 - F#4 67 - G4 68 - G#4 69 - A4 70 - A#4 71 - B4 72 - C5 73 - C#5 74 - D5 75 - D#5 76 - E5 77 - F5 78 - F#5 79 - G5 80 - G#5 81 - A5 82 - A#5 83 - B5 84 - C6 85 - C#6 86 - D6 87 - D#6 88 - E6 89 - F6 90 - f#6 91 - G6 92 - G#6 93 - A6 94 - A#6 95 - B6 96 - C7 97 - C#7 Low Bongo Mute Hi Conga Open Hi Conga Low Conga High Timbale Low Timbale High Agogo Low Agogo Cabasa Maracas Short Whistle EXC2 Long Whistle EXC2 Short Guiro EXC3 Long Guiro EXC3 Claves Hi Wood Block Low Wood Block Mute Cuica EXC4 Open Cuica EXC4 Mute Triangle EXC5 Open Triangle EXC5
Prog 17: Power Set
Prog 41: Brush
Prog 49: Orchestra
Prog 127: CM-64 / 32 (Partial)
Vibra Slap Claves Applauses Applauses Helicopter Gun Shot
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Sounds
Prog 1: Standard Set 98 - D7 99 - D#7 100 - E7 101 - F7 102 - F#7 103 - G7 104 - g#7 105 - A7 106 - A#7 Note:
Prog 17: Power Set
Prog 41: Brush
Prog 49: Orchestra
Prog 127: CM-64 / 32 (Partial) Birds Seashore
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Sounds
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 5 Auto-test
Test in Progress On chip RAM On chip ROM PASS Output Frequency 1.18 kHz 876 Hz 295 Hz
If PASS frequency is detected, this means that part is OK.
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Auto-test
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Section 6 Appendix
Table 6-1. Instruments Requiring Two Voices (two-layer instrument)
PC 4 19 22 24 40 52 56 61 63 64 81 82 83 84 85 86 87 88 89 91 93 94 95 97 98 Name Honky-tonk Piano Rock Organ Accordion (french) Tango Accordion Synth Bass 2 Synth Strings 2 Orchestra Hit French Horn Synth Brass 1 Synth Brass 2 Lead 1 (square wave) Lead 2 (saw wave) Lead 3 (calliope) Lead 4 (chiff) Lead 5 (charang) Lead 6 (voice) Lead 7 (fifths) Lead8 (bass+lead) Pad 1 (new age) Pad 3 (polysynth) Pad 5 (bowed) Pad 6 (metallic) Pad 7 (halo) FX 1 (rain) FX 2 (soundtrack)
ATSAM2193 User Guide
6012A-DRMSD-10 / 03
Appendix
PC 99 100 101 102 104 123 124 127
Name FX 3 (crystal) FX4 (atmosphere) FX 5 (brightness) FX 6 (goblins) FX 8 (sci-fi) Seashore Bird Applause
6012A-DRMSD-10 / 03
ATSAM2193 User Guide
Atmel Corporation
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600
Atmel Operations
Memory
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314
RF / Automotive
Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel: (49) 71-31-67-0 Fax: (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759
Regional Headquarters
Europe
Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500
Microcontrollers
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18 Fax: (33) 2-40-18-19-60
Biometrics / Imaging / Hi-Rel MPU / High Speed Converters / RF Datacom
Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00 Fax: (33) 4-76-58-34-80
Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369
ASIC / ASSP / Smart Cards
Zone Industrielle 13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00 Fax: (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000 Fax: (44) 1355-242-743
Japan
9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581
Literature Requests
www.atmel.com / literature
Printed on recycled paper.
6012A-DRMSD-10 / 03