BlueBoard atmega32UserManual
BlueBoard atmega32UserManual
Revision 1.0
Revision 1.0 Author: Ravi Yakkundi For any questions, concerns, or issues submit them to [email protected]
NGX Technologies Pvt. Ltd. provides the enclosed product(s) under the following conditions:
This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRATION, EDUCATION OR EVALUATION PURPOSES ONLY and is not considered by NGX Technologies Pvt. Ltd to be a finished end-product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design-, marketing-, and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards. This evaluation board/kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility, restricted substances (RoHS), recycling (WEEE), FCC, CE or UL, and therefore may not meet the technical requirements of these directives or other related directives. The user assumes all responsibility and liability for proper and safe handling of the goods. Further, the user indemnifies NGX Technologies from all claims arising from the handling or use of the goods. Due to the open construction of the product, it is the users responsibility to take any and all appropriate precautions with regard to electrostatic discharge. EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE, NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES. NGX Technologies currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive. NGX Technologies assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein. Please read the Users Guide and, specifically, the Warnings and Restrictions notice in the Users Guide prior to handling the product. This notice contains important safety information about temperatures and voltages. No license is granted under any patent right or other intellectual property right of NGX Technologies covering or relating to any machine, process, or combination in which such NGX Technologies products or services might be or are used. Mailing Address: #142, 1 Floor, 1 C Cross, 6th B Main, Remco Layout, Vijaynagar 2 Bangalore India 560040
nd st st
Stage
Revision 1.0
Change Log:
Revision 1.0
Table of Contents 1 1.1 2 INTRODUCTION ............................................................................................................5 BLUEBOARD- ATMEGA 16/32 FEATURES ................................................................................. 5 GET GOING....................................................................................................................6 2.1 SYSTEM REQUIREMENTS ...................................................................................................... 6 2.2 STARTING OFF .................................................................................................................. 6 2.2.1 Connecting the hardware ....................................................................... 6 2.2.2 Programming BlueBoard-ATMEGA 16/32 .................................................. 6 3 3.1 3.2 4 4.1 4.2 5 6 7 8 BLUEBOARD-ATMEGA 16/32 HARDWARE ......................................................................7 FUNCTIONAL OVERVIEW ...................................................................................................... 7 HARDWARE CONFIGURATIONS ............................................................................................... 8 BLUEBOARD-ATMEGA 16/32 UTILITIES ...................................................................... 14 OVERVIEW .................................................................................................................... 14 STARTING OFF ................................................................................................................ 14 TROUBLESHOOTING .................................................................................................... 15 SCHEMATICS ............................................................................................................... 16 SAMPLE APPLICATIONS .............................................................................................. 17 KNOWN ISSUES........................................................................................................... 18
Revision 1.0
1 INTRODUCTION
1.1 BlueBoard- ATMEGA 16/32 Features
BlueBoard-ATMEGA 16/32 is a evaluation board for ATMEGA32, ATMEGA16 microcontroller. The ATMEGA32 microcontroller has 32KB of internal flash and 2KB RAM and 1KB EEPROM. Following are the salient features of the board. Dimensions: 112 X 112 mm2 Two layer PCB (FR-4 material) Power: Power supply: DC 7.5V with power LED On-board linear regulators generate +5v/500mA from power supply. USB connector (as alternate power source). Connectors: Extension headers for all microcontroller pins. RS232 connectors (2). PS/2 connector. JTAG connector. USB Mini B-type connector. All peripheral configurable via jumpers. Other Peripherals: 256Kb I2C based EEPROM 2 line X 16 character LCD with back light control. 2 test LEDs. 2 seven-segment display connected to SPI.
Revision 1.0
2 Get going
2.1 System Requirements
Windows XP Serial port USB port
Revision 1.0
PS/2 KEYBOARD
74HC595
7-SEGMENT
BUZZER
ATMEGA 16/32
74HC595
7-SEGMENT
USER BUTTON
JTAG ICE
Revision 1.0
J19
Keyboard(PS/2)
Revision 1.0
3.2.1 LEDs on GPIO A few seconds after the Blueboard-ATMEGA 16/32 is turned ON or reset; the LEDs will turn ON and turn OFF for five times. Please note that both the LEDs should glow; this confirms the working of LEDs. Now, since the LEDs are connected through the gpio this test also confirms the working of GPIO pins on ATMEGA.
3.2.2 UART Test setup: Connect jumpers to all pins of J11. Open the hyper terminal as shown in the below image. To test the UART you can use either a full modem or half modem cable.
Click on hyper terminal a Connection Description window opens. Enter a name under the name tab e.g. BlueBoard and click OK. A Connect To window opens where you have to select the COM port. In this example it is COM1.Click OK. A COM1Properties window appears. Set the values as shown below. Click OK.
Revision 1.0
Revision 1.0
10
Now make sure that the BlueBoard-ATMEGA 16/32 is powered and the serial port is connected to the port. Any key pressed from keyboard will appear on the HyperTerminal window.
Revision 1.0
11
3.2.3 USB USB Type B connector is used as alternate power supply to the BlueBoard-ATMEGA 16/32.
3.2.4 JTAG connector Test setup: To enable debugging on the board connect the JTAG to debug port. We have successfully tested the BlueBoard-ATMEGA 16/32 with JTAG interface using a JTAG ICE. To test this feature you need to have the necessary software support on your PC.
Revision 1.0
12
3.2.5 User Interface Switch. Test setup: The Switch SW2 is connected to one of the external interrupt lines of LPC. To test this interface simply press the switch and you should hear the beep sound on the buzzer. This confirms that both the interrupt line and the buzzer module are working fine. Please ensure that you have connected the buzzer jumper appropriately.
3.2.6 Buzzer Test setup: Connect jumper to J14, when the board is turned on or RESET you will hear a beep after few seconds. This is how the user can confirm the status of the Buzzer.
3.2.7 PS/2 keyboard Test setup: To enable PS/2 connect jumper to J19. Connect a PS/2 keyboard to this connector. Now press any key on the keyboard and the respective character is displayed on LCD.
3.2.8 LCD display Test setup: To enable the LCD connect jumpers to all pins of J16. A default message NGX TECHNOLOGIES will be displayed and later status of is displayed. The back light of LCD can be controlled by connecting jumper to appropriate pins of J18. The contrast of LCD can be adjusted using the POT.
3.2.9 7-Segment Display Test setup: To enable the 7-Segment Display connect jumpers to all pins of J12. The numbers from 0 to 9 will be displayed on the both 7-Segment Display. This test also confirms the working of SPI of the ATMEGA.
Revision 1.0
13
Revision 1.0
14
5 Troubleshooting
Revision 1.0
15
6 Schematics
Revision 1.0
16
7 Sample applications
The source code to demonstrate the usage of the following peripherals can be found at http://blueboard-atmega32.googlecode.com/files/BlueBoard-atmega32.zip UART I2C E2PROM Driver - Reading and writing to an i2c-e2prom SPI - Using SPI in polled master mode to drive 7-Segment Display PS2 - Code to demonstrate PS2 keyboard Buzzer- Code to demonstrate buzzer on external interrupt
Revision 1.0
17
8 Known Issues
Revision 1.0
18