ATSAM2533
ATSAM2533
1. Description
The ATSAM2553 integrates into a single chip a SAM core (64-slots DSP + 16-bit pro-
cessor), a 32K x 16 RAM, an LCD display interface and a scanner allowing direct
connection to velocity sensitive keyboards, switches, LEDs and sliders. With addition
of a single external ROM or Flash and a stereo DAC, a complete low cost musical
instrument can be built, including reverb and chorus effects, parametric equalizer, sur-
round effects, orchestrations, pitch bend, wheel controller, without compromising on
sound quality. The ATSAM2553 is housed in a standard 128-lead LQFP package.
6399A–DRMSD–13-Oct-08
Figure 1-1. Typical Application
ROM
• Keyboards
• Switches
• Leds DAC
• LCD display ATSAM2553
• Sliders
• Midi in/out
2. Main Features
The ATSAM2553 provides a new generation of integrated solutions for electronic musical instru-
ments. The ATSAM2553 includes all key circuitry into a single silicon chip: sound
synthesizer/processor, 16-bit control processor, interface with keyboards, switches, sliders,
LEDs, LCD display, etc.
The synthesis/sound processing core of the ATSAM2553 is taken from the SAM97xx series,
whose quality has already been demonstrated through dozens of different musical products:
E.Pianos, home keyboards, professional keyboards, classical organs, sound expanders. The
maximum polyphony is 64 voices without effects. A typical application will be 38-voice polyphony
with reverb, chorus, 4-band equalizer and surround.
The ATSAM2553 is directly compatible with most available musical keyboards. This includes
configuration options for spring or rubber type contacts, common anode or common cathode
type matrix. A 64 µs timing accuracy for velocity detection provides a very reliable dynamic
response even with low cost unweighted keyboards. The time between contacts is coded with
256 steps on a logarithmic time scale, then converted by software to a 128-step MIDI scale
according to the type of keyboard and a selected keyboard sensitivity.
The ATSAM2553 can handle directly up to 176 switches. Switches, organized in matrix form,
require only a serial diode. Up to 88 LEDs can be directly controlled by the ATSAM2553 in a
time multiplexed way. Additional LEDs can be connected through additional external shift regis-
ters using the GPIO lines (general purpose I/O) of the ATSAM2553. The built-in analog to digital
converter of the ATSAM2553 allows connecting continuous controllers like pitch-bend wheel,
modulation, volume sliders, tempo sliders, etc. Up to 16 sliders can be connected.
The ATSAM2553 can be directly connected to most LCD displays through an 8-bit dedicated
data bus and 3 control signals.
Configuration options allow the ATSAM2553 to cover a wide range of musical products, from the
lowest cost keyboard to the high range digital piano, thanks to flexible memory and I/O organiza-
tion: built-in 64K bytes RAM, up to 64M bytes external memory for firmware, orchestrations and
PCM data. The external memory can be ROM, RAM or FLASH. Memory types can be mixed,
but for most applications there is no need for external RAM memory as the built-in 64K bytes
2 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
RAM is enough to handle firmware variables and reverb delay lines. External flash memory can
be programmed on-board from a host processor through the ATSAM2553.
The ATSAM2553 operates from a single 12.2880 MHz crystal. A built-in PLL raises the fre-
quency to 49.152 MHz for internal processing. This allows to minimize radio frequency
interference (RFI), making it easier to comply with FCC, CSA, CE standards.
A power-down feature is also included which can be controlled externally (PDWN pin). This
makes the ATSAM2553 very suitable for battery operated instruments.
The ATSAM2553 has been designed with final instrument quick time to market in mind. The
ATSAM2553 product development program includes key features to minimize product develop-
ment efforts:
• C compiler for built-in P16 processor
• Specialized debug interface, allowing on-target software development with a source code
debugger.
• Standard sound generation/processing firmware
• Standard orchestration firmware
• Windows tools for sounds, soundbanks and orchestrations developments
• Standard soundbanks
• Strong technical support available directly from Dream®
3
6399A–DRMSD–13-Oct-08
3. ATSAM2553 Internal Architecture
Figure 3-1. Internal Architecture
DACLK
DABDx
DAAD
64 Slots DSP CLBD
with WSBD
Algorithm s in RUN
RAM
VCCBAT
P16 32k x 16
Proces s or SRAM
256x16 RAM
512x16 ROM Memory A0-A24
Manager A0-A23
D0-D15
Unit D0-D15
RD/, WR/
RD/, WR/
CSx/
CSx/
MIDI UART XIO/
3 x Tim ers XIOx/
Control &
Status regs MIDIIN/OUT
MIDI IN/OUT
DEBUG/ P0-3 -4
GPIO0
KBDIO/
KBD|IO/
X1,X2 ROW0-3
ROW0-2
LFT BR0-10
RESET/ Keyboards MK0-10
PDWN/ 128 x 16
304 11 Switches
Scanning Sliders
RAM LEDs VA33
VREFP
Clock & Scanning I/F 8 bit ADC
10-bit ADC AGND
VREFN
PLL VIN
VIN
DB0-DB7
DB0-DB7
LCD RS
RS
dis play R/W
RW
Interface E
ENB
4 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
5
6399A–DRMSD–13-Oct-08
3.4 Keyboards/Switches/Sliders/LEDs Scanning Interface
The scanning interface consists of hardwired logic. It time multiplexes keyboard, switches and
LEDs connections therefore minimizing the amount of wiring required. It communicates with the
P16 through an 304 x 11 dual port RAM and a few control registers. When a new incoming event
is detected, such as key-on, key-off or switch change, the scanning interface will notify the P16
by indicating the type of event. The P16 then simply reads the dual port RAM to get the corre-
sponding parameter, such as velocity or switch status. Conversely, the P16 simply writes into
the dual port RAM the led states to be displayed and the scanning interface will then take care of
time multiplexing the display.
The scanning interface uses an unique key velocity detect scheme with a pseudo-logarithmic
time scale. This allows velocities to be accurately detected, even when keyboard keys are
pressed very softly.
Finally a built-in 10-bit analog to digital converter (ADC) allows the connection of up to 16 contin-
uous controllers through external analog multiplexers such as the 4051.
6 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
4. Pin Description
5VT indicates a 5 volt tolerant Input or I/O pin.
Power supply decoupling note: like all high speed HCMOS ICs, proper decoupling is mandatory
for reliable operation and RFI reduction. The recommended decoupling is 100 nF at each corner
of the IC with an additional 10 µFT bulk capacitor close to the X1, X2 pins.
7
6399A–DRMSD–13-Oct-08
Table 4-4. Keyboard, Switches, LEDs, Sliders, Scanning
Pin Name Pin# Type Function
If 1 BR[0-10] & MK[0-10] hold keyboard contact input data. If 0
KBDIO 19 OUT BR[0-10] holds switch status input, MK[0-10] holds led data
output.
Row select: keyboard, switches/LEDs, external slider analog
multiplexer (4051) channel select. Sixteen rows combined
with eleven BR/MK columns allow to control 176 keys, 176
ROW0-ROW3 56-59 OUT switches, 88 leds and 16 sliders. The programmable bit P0
can be programmed to be used as ROW4. This allows to use
keyboards with matrix other than 8*11 (e.g. 22*4) or multiple
keyboards up to 264 keys.
Kbd contact 1/switch status. When KBDIO =1 then BR[0-10]
holds the keyboard key-off or first contact status. This can be
configured as normally close (spring type), normally open
BR0-BR10 104-114 IN 5VT
(rubber type), common anode or common cathode contact
diodes. When KBDIO = 0 then BR[0-10] holds the switch
status from ROW[0-4].
Kbd contact 2/LED data. When KBDIO = 1 then MK[0-10]
holds the keyboard key-on or second contact status. This can
MK0-MK10 79-83,86-91 I/O 5VT be configured as common anode or common cathode contact
diodes. When KBDIO = 0 then MK[0-10] holds the LED data
from ROW[0-4]
Slider analog input. Ranges from AGND to VA33. Should hold
VIN 15 ANA the ROW[0-3] slider voltage. Multiple sliders should be
connected through external analog multiplexer(s) like 4051.
The following signals are controlled by firmware, therefore their timing relationships is deter-
mined by firmware only.
8 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
The ATSAM2553 connects to a variety of stereo DACs or CODECs from 16 to 20 bits, with Jap-
anese or I2S format. When Japanese format is used, only 16 bits are supported without external
circuitry
9
6399A–DRMSD–13-Oct-08
4.2 Pinout by Pin Number 128-lead LQFP Package
10 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
5. Marking
Figure 5-1. ATSAM2553 Marking
FRANCE
SAM2553
YYWW 58A66C
XXXXXXXXX
PIN 1
11
6399A–DRMSD–13-Oct-08
6. Mechanical Dimensions 128-lead LQFP Package
Figure 6-1. Mechanical Dimensions
12 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
7. Electrical Characteristics
Temperature under bias................................. -55°C to +125°C *NOTICE: Stresses beyond those listed under “Absolute
Maximum Ratings” may cause permanent dam-
Storage Temperature ..................................... -65°C to +150°C age to the device. This is a stress rating only and
functional operation of the device at these or any
Voltage on any 5 volt tolerant pin .......................... -0.3 to 5.5V other conditions beyond those indicated in the
Recommended Operating Conditions of this
Voltage on any non 5 volt tolerant pin ........ -0.3 to VD33 + 0.3V specification is not implied. Exposure to absolute
maximum rating conditions for extended periods
Supply Voltage..........................................................................
may affect device reliability.
VD33 ......................................................................-0.3V to 3.6V
VD18 .........................................................................-0.3V to 2V
VA33 ......................................................................-0.3V to 3.6V
13
6399A–DRMSD–13-Oct-08
7.2 Recommended Operating Conditions
7.3 DC Characteristics
Table 7-2. DC Characteristics (TA = 25°C, VD33 = 3.3V ± 10%, VD18 = 1.8V ± 10%)
Symbol Parameter Min Typ Max Unit
VIL Low level input voltage -0.3 - 0.8 V
VIH High level input voltage on non-5VT pins 2 - 3.6 V
VIH High level input voltage on 5VT pins 2 - 5.5 V
VOL Low level output voltage IOL=4mA - - 0.4 V
VOH High level output voltage IOH=4mA VD33-0.4 - - V
ID18 0.7 mA
Power supply current at (crystal freq.=12.288 MHz)
ID33 36 mA
– Power down supply current 0.6 mA
Rud Pull-up or Pull-down resistor 8 13 25 kOhm
14 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
8. Timings
All timings conditions: VD33=3.3V, VD18=1.8V, TA=25°C, all outputs except X2, have load
capacitance = 30 pF.
All timings refer to tck, which is the internal master clock period.
The internal master clock frequency is 4 times the frequency at pin X1. Therefore tck=txtal/4.
The sampling rate is given by 1/(tck*1024). The maximum crystal frequency/clock frequency at
X1 is 12.288 MHz (48 KHz sampling rate).
Using 12.288 MHz crystal frequency allows to use widely available ROM/Flash with 90 ns
access time, while providing state of the art 48 kHz sampling rate.
15
6399A–DRMSD–13-Oct-08
8.2 Scanning (Keyboard, Switches, LEDs, Sliders
tsclk
SCLK
KBDIO/
ROW
BR[0-10]
tka tioa
tkd tiod
MK[0-10]
tka
tioh
tkd tiog
16 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
tRC
WCS0/
WCS1/
XIO/
tCSOE
WA0-
WA24
tPOE
WOE/
tOE tDF
WD0-
WD15 tACE
17
6399A–DRMSD–13-Oct-08
8.4 External Flash, RAM, I/O Write Timing
tRC
WCS0/
WCS1/
XIO/
tCSOE
WA0-
WA24
tPOE
WOE/
tOE tDF
WD0-
WD15 tACE
18 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
CLBD
tsod tsod
DABD0
DABD1
DAAD
WSBD
(I2S)
WSBD
(Japanese)
CLBD
DABD0
DABD1
DAAD MSB LSB MSB
(16bits) LSB
(20bits)
LSB
(18bits)
19
6399A–DRMSD–13-Oct-08
9. Recommended Crystal Compensation
Figure 9-1. Recommend Crystal Compensation
20 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
21
6399A–DRMSD–13-Oct-08
12. Overview of Operations
Note: the reader should be familiar with the ATSAM97xx series operation. Refer to the
ATSAM9707 product development kit “prgdvkit.pdf” document.
This chapter describes operations and registers specific to the ATSAM2553.
Write Read
0-9 0-9 Standard ATSAM97xx I/O (Refer to prgdvkit.pdf)
0A 0A LCD port
0B X Keyboard config
0C - 0E 0C - 0E Scanning port ADD0-2
0F 0F GPIO Control/Status
LCD_Reg[7:0] DB[7:0]
LCD_Reg[8] RS
LCD_Reg[9] RW
LCD_Reg[10] ENB
22 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
The default configuration (power-up) is common anode (Reg[1]=0) and rubber contact
(Reg[0]=0) which corresponds to most popular keyboards.
Reg[3:2] = Scanning clock divider. (Default 00).
23
6399A–DRMSD–13-Oct-08
12.5 Scanning Interface
The ATSAM2553 has built-in specialized hardware which allows the following functions:
• Scanning of up to 264 keys from an external keyboard, with key-on and key-off velocity
measurement (time between contacts)
• Scanning of up to 176 switches
• Time multiplex control of up to 88 LEDs
• Analog to digital conversion of up to 16 analog sources
The P16 interfaces with the scanning using a 3 addresses port located at 0CH to 0EH in the I/O
mapping.
This port enables access to the keyboard RAM. This 304 x 11 RAM is mapped as follows:
LED data
60H
SWITCH data
70H
ADC data
7FH
24 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
“i” refers to the Mki or Bri signal number which ranges from 0 to 10. For example, the information
regarding the key at row 2, column MK5/BR5, will be found at RAM address 8*5+2=42.
The scanning hardware cycles the row[2:0] signals from 0 to 7 to the output pins in 41.6 µs (5.2
µs per row).
Bit–> 10 9 8 7 6 5 4 3 2 1 0
Key velocity & status SRQ ON BUSY VEL
LED data MK10 MK9 MK8 MK7 MK6 MK5 MK4 MK3 MK2 MK1 MK0
Switch data BR10 BR9 BR8 BR7 BR6 BR5 BR4 BR3 BR2 BR1 BR0
ADC status X X X ADC DATA
25
6399A–DRMSD–13-Oct-08
Key velocity & Status:
• SRQ: If 1, indicates that the velocity detection is completed and that this key requests
attention from the P16. In this case BUSY = 0, ON and VEL hold valid information.
• ON: 1 indicates key-on, 0 indicates key-off. Valid only if SRQ = 1.
• BUSY: Used internally by the scanning hardware, indicates “velocity detection in progress”.
• VEL: From 0 to 255, valid only if SRQ = 1, indicates the time between contacts. Time is
depending on Scanning divider and Scanning matrix configuration.
Time = TimeCount x 2Scanning divider x (1 + Scanning matrix)
– 0 < VEL < 128: TimeCount = VEL x 41.6 µs.
– 128 < VEL < 192: TimeCount = 128 x 41.6 µs + (VEL - 128) x 2 x 41.6µs.
– 192 < VEL < 224: TimeCount = 2 x 128 x 41.6 µs + (VEL - 192) x 4 x 41.6µs.
– 224 < VEL < 240: TimeCount = 3 x 128 x 41.6 µs + (VEL - 224) x 8 x 41.6µs.
– 240 < VEL < 255: TimeCount = 4 x 128 x 41.6 µs + (VEL - 240) x 16 x 41.6µs.
• LED data: The P16 should write to these locations the MK information which should appear
to the MK[10:0] pins at row[2:0] time.
• Switch data: These locations hold the BR information read from the BR[10:0] pins at row[3:0]
time.
• ADC data: These locations represent the analog voltage at VIN pin at row[3:0] time, from 0
(VIN = AGND) to 03FFH (VIN = VA33). ADC data are sampled with 10-bit precision and the
result is stored on 8 bits.
12.6 GPIO
P[3:1] are controlled by the ATSAM97xx config and control/status registers (refer to
prgdvkit.pdf).
P0 in normal mode is controlled by the ATSAM97xx config and control/status registers (refer to
prgdvkit.pdf).
The ATSAM2553 additional GPIO control/status register controls P0 normal and alternate
mode.
The GPIO register is located at address 0xF in the I/O mapping.
26 ATSAM2553
6399A–DRMSD–13-Oct-08
ATSAM2553
PO:
27
6399A–DRMSD–13-Oct-08
13. Revision History
Change
Request
Document Ref. Comments Ref
6399A First issue.
28 ATSAM2553
6399A–DRMSD–13-Oct-08
Headquarters International
Product Contact
Literature Requests
www.atmel.com/literature
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-
TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY
WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN-
TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT
OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications
and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided
otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life.
© 2008 Atmel Corporation. All rights reserved. Atmel®, Atmel logo and combinations thereof, Dream ® and others are registered trademarks or
trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
6399A–DRMSD–13-Oct-08