chip45 Crumbuino-Mega User manual

Crumbuino-Mega Infosheet
Crumbuino-Mega
Arduino-compatible OEM module with ATmega2560 controller and CP2102 SB ART converter.
AVAILABLE OPTIONS
Module Processor RAM EEPROM Flash Peripherals
Crumbuino-Mega ATmega2560 8kB SRAM 4kB EEPROM 256kB Fla h - CP2102 USB-UART converter
- MAX3221 RS232 tran ceiver
- SN75ALS176 RS485 tran ceiver
- mini USB B 5pin connector
- tatu LED and tiny re et button
ARDUINO BOOTLOADER
The Crumbuino-Mega module come preloaded with
the Arduino ATmega2560 bootloader. Al o actived i
the auto-re et function, providing a eamle
integration to the Arduino IDE for uploading of a
program without the need to re et the module in
advance.
AUTO RESET FEATURE
Jumper J7 ( older-jumper on the bottom of the module
be ide the ISP header) enable the automatic re et of
the ATmega2560 by the Arduino IDE before connecting
the bootloader and upload a program.
USB INTERFACE
A USB UART converter CP2102 by Silab i connected to the MCU' USART0 RXD/PE0 and TXD/PE1. A
tandard 5pin mini USB B connector i available onboard and allow for ea y connection to a ho t PC. The
CP2102 i alway powered from USB bu .
FEATURES
Hi h Performance
–16MHz operating frequency
–ingle 5V power upply
Familiar Inte rated AVR Peripherals
–up to 83 IO pin available
–two 8 bit, four 16 bit timer/counter
–4 PWM channel (8 bit re olution)
–12 PWM channel (2 to 16 bit re olution)
–input capture and output compare function
–real time clock counter
–four programmable UART
–ma ter/ lave SPI interface
–two wire interface (I²C comp.)
–analog comparator
–16 channel 10 bit ADC
–watchdog timer
–ISP and JTAG interface
Enhanced Onboard Peripherals
–CP2102 USB to UART converter at USART0 (PE0,
PE1)
–MAX3221 RS232 tran ceiver at USART2 (PH0,
PH1)
–SN75ALS176 RS485 tran ceiver at USART3 (PJ0,
PJ1, PJ2)
–16MHz XTAL cry tal
–32768Hz clock cry tal prein talled
–tandard 6 pin Atmel AVR ISP connector
–tatu LED (connected to PJ7)
Expansion Headers
–tandard 2.54mm header with all controller ignal
and ignal from onboard peripheral
–auxiliary 3pin crew terminal (connected to RS485
ignal for direct cable connection, RS485 ignal
are al o available at pin header , ee below pinout)
ARDUINO IDE INTEGRATION
Due to the preloaded Arduino Bootloader and the integrated USB UART converter with mini-USB connector, the
module can directly be u ed with the Arduino IDE. The corre ponding board upport package (BSP) i available
here: http ://github.com/beegee-tokyo/Crumbuino-Chip45. Alternatively i can be u ed a Arduino Mega 2560
board, hence lacking ome GPIO ince the original Arduino Mega doe not expo e all ATmega2560 GPIO .
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.

Crumbuino-Mega Infosheet
SCOPE OF DELIVERY
Thi module i being hipped with preloaded Arduino bootloader and 16MHz cry tal.
BUS INTERFACES
USB INTERFACE
A USB UART converter CP2102 by Silab i connected to the MCU' USART0. A tandard 5pin mini USB B
connector i available onboard and allow for ea y connection to a ho t PC. The CP2102 i alway powered from
USB bu . The USB driver for the CP2102 i available at http://www. ilab .com/product /interface/u btouart.
RS232 INTERFACE
USART2 i connected to an indu try tandard RS232 tran ceiver MAX3221. When you want to u e the RS232
port, you have to enable it by etting older jumper J2 to 1-2. If not u ed, the jumper hould be et to 2-3 to fully
di able the tran ceiver. RS232 can be u ed not only with 5V upply, but with 3.3V upply, too.
RS485 INTERFACE
USART3 i connected to an indu try tandard RS485 tran ceiver SN75ALS176. By clo ing all four jumper J3 to
J6, the RS485 tran ceiver i connected to the MCU and to VCC. If not u ed, all four jumper hould be left open.
The RS485 i available with 5V upply only.
STATUS LED
A green low-current tatu LED i connected low-active to the MCU' ignal PJ7, i.e. it’ not directly available a
Arduino Digital Pin, it ha to be controlled by direct Port J acce . Setting thi pin to output and low will turn on the
LED.
ISP CONNECTOR
An ISP header with Atmel' tandard 6-pin pinout i available on the module, ee picture below for location and
pinout.
POWER SUPPLY OPTIONS
The module can be power either externally (VCC pin on the
expan ion header ) or from USB bu 5V.
J1 elect between the e option :
•open: external power upply (1.8V – 5.5V)
•clo e: USB bu powered (approx. 5V)
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.

Crumbuino-Mega Infosheet
CRUMBUINO-MEGA PIN MAPPING
The following table how the mapping of the Arduino pin name on the Crumbuino-Mega module pin .
Connector
Con1
Connector
Con2
Pin# Port Arduino GPIO# /
Function
Arduino GPIO# /
Function Port Pin#
1 TX VBUS 48
2 RX D- 47
3 GND D+ 46
4 PG5 4 / PWM4 GND 45
5 PE0 0 / USART0_RX VCC 44
6 PE1 1 / USART0_TX AREF 43
7 PE2 54 68 / A0 PF0 42
8 PE3 5 / PWM5 69 / A1 PF1 41
9 PE4 2 / PWM2 70 / A2 PF2 40
10 PE5 3 / PWM3 71 / A3 PF3 39
11 PE6 55 72 / A4 PF4 38
12 PE7 56 73 / A5 PF5 37
13 PH0 17 / USART2_RX 74 / A6 PF6 36
14 PH1 16 / USART2_TX 75 / A7 PF7 35
15 PH2 57 76 / A8 PK0 34
16 PH3 6 / PWM6 77 / A9 PK1 33
17 PH4 7 / PWM7 78 / A10 PK2 32
18 PH5 8 / PWM8 79 / A11 PK3 31
19 PH6 9 / PWM9 80 / A12 PK4 30
20 PH7 58 81 / A13 PK5 29
21 PB0 53 / SPI_SS 82 / A14 PK6 28
22 PB1 52 / SPI_SCK 83 / A15 PK7 27
23 PB2 51 / SPI_MOSI 22 PA0 26
24 PB3 50 / SPI_MISO 23 PA1 25
25 PB4 10 / PWM10 24 PA2 24
26 PB5 11 / PWM11 25 PA3 23
27 PB6 12 / PWM12 26 PA4 22
28 PB7 13 / PWM13 27 PA5 21
29 /RESET 28 PA6 20
30 PL0 49 29 PA7 19
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.

Crumbuino-Mega Infosheet
Connector
Con1
Connector
Con2
31 PL1 48 39 PG2 18
32 PL2 47 66 PJ6 17
33 PL3 46 65 PJ5 16
34 PL4 45 64 PJ4 15
35 PL5 44 63 PJ3 14
36 PL6 43 62 PJ2 13
37 PL7 42 14 / USART3_TX PJ1 12
38 PD0 21 / I2C_SCL 15 / USART3_RX PJ0 11
39 PD1 20 / I2C_SDA 30 PC7 10
40 PD2 19 / USART1_RX 31 PC6 9
41 PD3 18 / USART1_TX 32 PC5 8
42 PD4 59 33 PC4 7
43 PD5 60 34 PC3 6
44 PD6 61 35 PC2 5
45 PD7 38 36 PC1 4
46 GND 37 PC0 3
47 A 40 PG1 2
48 B 41 PG0 1
PHYSICAL DIMENSIONS
Value are [mm] unle otherwi e noted. Note: Solder-jumper J7 is on the bottom side!
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.

Crumbuino-Mega Infosheet
PIN CONFIGURATION (ATMEGA2560 SIGNALS)
Note: Jumper J7 (Auto-Re et-Feature) i located a older-jumper on the bottom ide nearby the ISP header.
OPERATING CHARACTERISTICS
Symbol Parameter Condition Min Typ Max Units
Vcc Supply Voltage 16 MHz 4.5 5.5 V
Icc Power Supply Current
(Icc strongly depends on CPU activity like
frequency power saving modes etc. as
well as external circuitry io pin input and
output current etc. The values denoted
here are for reference only and can differ
from final application vallues.)
Active 16MHz
Vcc = 5V
22 mA
USB bu active
(power is drawn from
USB bus)
+26 mA
T Operating Temperature
(industrial temperature range on request)
-20 +70 °C
DESIGN AND HANDLING GUIDELINES
Thi module – ju t like any other emiconductor device – i u ceptible to damage by ESD. Suitable precaution
hould be taken when handling and tran porting device . The po ible damage to device depend on the
circum tance of the handling and tran porting, and the nature of the device. The extent of damage can vary from
immediate functional or parametric malfunction to degradation of function or performance in u e over time. Device
u pected of being affected hould be replaced.
DEVELOPMENT TOOLS
A an Arduino-compatible module, the Crumbuino-Mega i indendet to be u ed with the Arduino IDE a
development environment.
–Arduino Homepage: http://arduino.cc/en/
–Getting Started Page: http://arduino.cc/en/Guide/HomePage
–Arduino Software Page: http://arduino.cc/en/Main/Software
WHAT ELSE DO YOU NEED?
The only thing you really need, i a USB cable to connect the Crumbuino-Mega to a PC or Mac.
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.

Crumbuino-Mega Infosheet
Declaration of Electro Ma netic Conformity of the
CHIP45 „Crumbuino-2560“
CHIP45 embedded microcontroller module (henceforce product ) are de igned for in tallation in electrical appliance or a
dedicated evaluation board (i.e.: for u e a a te t and prototype platform for hardware/ oftware development) in laboratory
environment .
Caution:
CHIP45 product lacking protective enclo ure are ubject to damage by ESD and, hence, may only be unpacked, handled or
operated in environment in which ufficient precautionary mea ure have been taken in re pect to ESD-danger . It i al o
nece ary that only appropriately trained per onnel ( uch a electrician , technician and engineer ) handle and/or operate
the e product . Moreover, CHIP45 product hould not be operated without protection circuitry if connection to the product'
pin header row are longer than 3m.
CHIP45 product fulfill the norm of European Union' Directive for Electro Magnetic Conformity only in accordance to the
de cription and rule of u age indicated in thi document (particularly in re pect to the pin header row connector , power
connector and erial interface to a ho t-PC).
Implementation of CHIP45 product into target device , a well a u er modification and exten ion of CHIP45 product , i
ubject to renewed e tabli hment of conformity to, and certification of, Electro Magnetic Directive . U er hould en ure
conformance following any modification to the product a well a implementation of the product into target y tem
DISCLAIMER
In thi manual are de cription for copyrighted product that are not explicitly indicated a uch. The ab ence of the trademark
(™) and copyright (©) ymbol doe not imply that a product i not protected. Additionally, regi tered patent and trademark
are imilarly not expre ly indicated in thi manual.
The information in thi document ha been carefully checked and i believed to be entirely reliable. However, chip45 GmbH &
Co. KG a ume no re pon ibility for any inaccuracie . chip45 GmbH & Co. KG neither give any guarantee nor accept any
liability what oever for con equential damage re ulting from the u e of thi manual or it a ociated product. chip45 GmbH &
Co. KG re erve the right to alter the information contained herein without prior notification and accept no re pon ibility for
any damage which might re ult.
Additionally, chip45 GmbH & Co. KG offer no guarantee nor accept any liability for damage ari ing from the improper u age
or improper in tallation of the hardware or oftware. chip45 GmbH & Co. KG further re erve the right to alter the layout and/or
de ign of the hardware without prior notification and accept no liability for doing o.
© Copyright 2011 chip45 GmbH & Co. KG, D-35435 Wettenberg.
Right - including tho e of tran lation, reprint, broadca t, photomechanical or imilar reproduction and torage or proce ing in
computer y tem , in whole or in part - are re erved. No reproduction may occur without the expre written con ent from
chip45 GmbH & Co. KG.
CONTACT INFORMATION
Addre : chip45 GmbH & Co. KG
Am elweg 13
D-354435 Wettenberg
Germany
Ordering Information: +49 641 97296596
Technical Support: +49 641 97296596
Fax: +49 641 97297393
Web Site: http://www.chip45.com
Crumbuino-Me a © chip45 GmbH & Co. KG • Am elweg 13 • 35435 Wettenberg • Germany • www.chip45.com Better Embedded.
Table of contents