AVR364: MEGA-1284P Xplained Hardware User's Guide Features • Atmel® megaAVR® ATmega1284P microcontroller - Target controller • Atmel AVR® AT32UC3B1256 32-bit microcontroller - Board controller - Communication gateway • Analog input (to ADC) - Temperature sensor - Light sensor - RC filter • Digital I/O - Three mechanical buttons - Four LEDs - Four expansion headers • Footprints for external memory - Atmel AT45DB series DataFlash® serial flash - Atmel AT25DF series industrial standard serial data flash • Touc
Related items Atmel AVR Studio® 4 (free IDE from Atmel) http://atmel.com/dyn/products/tools_card.asp?tool_id=2725&category_id=163&family _id=607&subfamily_id=760 Atmel AVR Dragon™ (on-chip programming and debugging tool) http://atmel.com/dyn/products/tools_card.asp?tool_id=3891&category_id=163&family _id=607&subfamily_id=760 Atmel AVR JTAGICE mkII (on-chip programming and debugging tool) http://atmel.com/dyn/products/tools_card.
AVR364 3 General information This document targets the Atmel ATmega1284P evaluation kit revision 3, and parts of the document may, therefore, be inconsistent with earlier revisions of the product. For earlier revisions, please refer to the schematics, which is the only documentation available for these revisions.
Figure 3-2. Functional overview of the Atmel MEGA-1284P Xplained kit. 3.1 Preprogrammed firmware The MEGA-1284P Xplained kit comes with both the Atmel ATmega1284P and the Atmel AT32UC3B1256 preprogrammed. The preprogrammed firmware in the ATmega1284P is set up with example code that allows the user to choose different sleep modes, and provides an example of how to use the light sensor to dim the four onboard LEDs.
AVR364 3.2 Power supply The kit is powered via the USB connector, which presents two options for powering it: Either connect the kit to a PC through a USB cable or to a 5V USB power supply (AC/DC adapter). The 5V is regulated to 3.3V with an LDO regulator, which provides power to the entire board. The Atmel ATmega1284P is powered by 3.3V, but if 1.8V operation is desired, some modifications to the board are needed. This includes replacing the regulator with one that delivers a 1.
4 Connectors The Atmel MEGA-1284P Xplained kit has five 10-pin, 100mil headers. Two headers have a fixed communication interface (J1 and J4). One header has analog functionality (J2), and the last header (J3) has general purpose digital I/O. The 90° angled header is the Atmel ATmega1284P JTAG programming and debugging header. For the location of the respective headers, refer to Figure 3-1. 4.
AVR364 Please note that programming the Atmel AT32UC3B1256 using a programming tool will erase the boot loader. Please refer to the Atmel application note, AVR370: MEGA-1284P Xplained Getting Started Guide, for more details regarding how to program the onboard microcontrollers. 4.2 I/O expansion headers There are four available I/O expansion headers in the kit. Because of the low pin count on the device, the I/O expansion header pins are shared with onboard functionality.
Table 4-4. Atmel MEGA-1284P Xplained I/O expansion header – J3. Pin J3 ATmega1284P pin Shared with onboard functionality 1 GPIO0 PB0 SW0, LED0 2 GPIO1 PB1 SW1, LED2 3 GPIO2 PB2 SW2, LED3 4 GPIO3 PB3 LED1 5 GPIO4 PD4 J4 (SPI SS1), DataFlash (SPI SS1) PD5 Filter input (1) 6 GPIO5 7 GPIO6 PC4 JTAG(TDO) 8 GPIO7 PC5 JTAG(TDI) 9 GND - - - - 10 VCC_P5V0 Notes: (2) 1.
AVR364 5 Memories The Atmel MEGA-1284P Xplained kit does not have any external memories mounted on the board. Footprints are available for adding either an industrial standard flash device or an Atmel proprietary serial DataFlash device. The footprints share the same SPI lines, including the chip select, and it is, therefore, not possible to mount devices on both footprints at the same time. Table 5-1. Compatible devices for the footprints.
6 Miscellaneous I/O 6.1 Mechanical buttons The board is equipped with three mechanical buttons. The buttons (SW0:2) are shared with LED0, LED2, and LED3. Onboard protection circuitry is added to avoid a short when driving the port high at the same time as pushing the button, which will short it to the ground. To be able to use both button and LED, time multiplexing has to be used.
AVR364 6.5 Board controller The Atmel AT32UC3B1256 board controller and the Atmel ATmega1284P are connected through TWI, SPI, and USART interfaces. All interfaces can be used to communicate between the devices, but only the USART is implemented by default on the board controller. Table 6-2. ATmega1284P and board controller communication interface.
7 Included code example For documentation, help, and examples on the drivers used, please refer to the Atmel application note, AVR370: MEGA-1284P Xplained Getting Started Guide. 8 Revision history The kit revision can be identified by a barcode sticker on the bottom side of the kit. For example, A09-1164/4 indicates that the product number for this kit is A09-1164 and the revision is 4. 8.1 Revision 4 Revision 4 of the MEGA-1284P Xplained kit is the first revision released.
AVR364 9 EVALUATION BOARD/KIT IMPORTANT NOTICE This evaluation board/kit is intended for use for FURTHER ENGINEERING, DEVELOPMENT, DEMONSTRATION, OR EVALUATION PURPOSES ONLY. It is not a finished product, and may not (yet) comply with some or any technical or legal requirements that are applicable to finished products, including, without limitation, directives regarding electromagnetic compatibility, recycling (WEEE), FCC, CE, or UL (except as may be otherwise noted on the board/kit).
10 Table of contents Features ............................................................................................... 1 1 Introduction ...................................................................................... 1 2 Related items.................................................................................... 2 3 General information......................................................................... 3 3.1 Preprogrammed firmware.......................................................
Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: (+1)(408) 441-0311 Fax: (+1)(408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Milennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan 9F, Tonetsu Shinkawa Bldg.