Home

ATMega32 Kit User Manual

image

Contents

1. 9 23 JTAG Connector Pinout o 22222 o og oo x o he EG RE x RC 10 11 o TYosgment Displays 22222252562 esie os S RC e RR 12 du ISSUE uade 13 SA push o wee doses ke wd hob Hood mox aoe dea 14 3 5 RS 232 Serial Int rfa 12 9 dh ok GRE GE ad bd aaea 14 5 1 Mechanical Dimensions 2222 44 oom kn oam 18 Chapter 1 Introduction 1 1 Overview This document describes the ATMEGA32 Microcontroller kit This board is designed to allow an easy access to all the ATMEGA32 MCU peripherals and to be easily integrated in more advanced projects To increase its demonstrative capabilities this stand alone board has numerous onboard resources RS232 Interface 7 segments Display General Purpose Press Switches LED s Buzzer This user guide acts as a general getting started guide as well as a complete technical reference for users 1 2 Kit Features Figure 1 1 shows the ATMega32 kit The kit provides the following features e ATMEGA32 TQFP 44 device e Regulated 5V using External power connector ICSP connector for on chip In Circuit Serial Programming ICSP e Serial interface using RS 232 port 4 Press Switches e 4 LEDs e 2 Seven Segment Displays e Buzzer e Installed 8 MHz crystal 1 3 ATMEGA32 PROCESSOR CHAPTER 1 INTRODUCTION RS 232 On Off Interface ISP Header
2. JTAG CON Figure 2 3 JTAG Connector Pinout 2010 http www m3atronics com DESIGN 10 Chapter 3 On Board Peripherals 3 1 Overview This chapter illustrates the onboard utility perihperals that are included in the kit to help in developing applications and prototypes rapidly Each utility is illustrated and discussed briefly 3 2 Display LEDS 5V 9 05 R28 560 LES D1 R7 560 a tEDs 02 RB 560 p9 LEps 03 is D10 560 04 Figure 3 1 LEDS 11 3 3 7 SEGMENTS CHAPTER 3 ON BOARD PERIPHERALS The kit includes 4 LEDs implemented on one line They are connected to 4 successive port pins To light ON a LED the corresponding port pin must be driven to LOGIC LOW level To turn OFF a LED the corresponding port pin must drive a LOGIC HIGH level Figure 3 1 illustrates the schematics for LEDs part 3 8 7 Segments gt Figure 3 2 7 Segment Displays The kit is equipped with 2 seven segment displays The displays are of the common anode type Each segment is enabled through a PNP transistor Enabling a segment is done through driving the corresponding enable pin to LOGIC LOW level To enable segment of the display the corresponding pin is to be driven to LOGIC LOW
3. JTAG Header Pre Buzzer Controller 7 Segment Pins Displays Pre Press ATMEGA32 KIT P sh Buttons EDS Analog Potentiometer Figure 1 1 ATMega32 Kit 1 3 ATMega32 Processor The ATmega32 is a low power CMOS 8 bit microcontroller based on the AVR enhanced RISC architecture By executing powerful instructions in a single clock cycle the ATmega32 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power con sumption versus processing speed The kit is equipped with 44 lead TQFP ATMega32 processor Figure 1 2 shows a block diagram for the ATMega32 processor 1 3 1 Memories The AVR architecture has two main memory spaces the Data Memory SRAM and the Program Memory Is System Reprogrammable Flash Program Memory space In addition the ATmega32 features an EEPROM Memory for data storage 2010 M3ATronics 5 http www m3atronics com 1 3 ATMEGA32 PROCESSOR CHAPTER 1 INTRODUCTION 1 3 2 Clock Options Allowable Operating speed for the ATMega32 ranges from DC 16 MHz clock input The kit is equipped with an 8 MHz crystal 1 3 3 I O Ports 32 programmable I O lines divided into 4 ports 8 pins each 1 3 4 Peripheral Features e 8 channel 10 bit ADC e Two 8 bit Timer Counters e One 16 bit Timer Counter e Four PWM Channels e Programmable Serial USART e Master Slave SPI Serial Interface e Programmable Watchdog Timer with On chip
4. 118 47 Figure 5 1 Mechanical Dimensions 2010 M3ATronics 18 http www m3atronics com AA DESIGN 2011 M3ATronics Disclaimer All rights reserved logo and combinations thereof are registered trademarks of M3atronics Other terms and product names may be trademarks of others The information in this document is provided in connection with M3A products No license express or implied or otherwise to any intellectual property right is granted by this document or in connection with the sale of M3A products Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder The product described in this document is subject to continuous development and improvements All particulars of the product and its use contained in this document are given by M3A in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product M3A shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product 19
5. a configuration jumper 3 7 RS 232 Serial Interface The board is equipped with an RS 232 interface for communication with the target microcon troller using UART The RS 232 uses the standard D sub 9 pin connector Figure 3 5 illustrates the circuit containing the MAX232 level translation circuit 2010 M3ATronics 13 http www m3atronics com DESIGN 3 7 RS 232 SERIAL INTERFACE CHAPTER 3 ON BOARD PERIPHERALS R32 47K SW8 a vw PRESS1 V 00 SW10 press PB PRESS2 5 9 5 6 PB_PRESS3 R30 47K VCC_5V 1 R29 ex PB 554 SW7 Figure 3 4 Push Buttons UART TXD gt UART RXD 5 Figure 3 5 RS 232 Serial Interface 2010 M3ATronics http www m3atronics com VCC 5V DESIGN 7 7 7 mum 14 Chapter 4 Pin Allocation 4 1 Overview This section acts as a help for firmware developer It describes the IO pins of the microcontroller and their assignment on the on board peripherals 4 2 I O Pins assignment Pin Functionality Comments Analog input from Potentiometer J8 must be in Closed position refer to section 2 3 1 Enable Seven Segment g Use logic low to enable segment PA2 Enable Seven Segment f Use logic low to enable segment PA3 Enable Seven Segment e Use logic lo
6. 2 USING ATMEGA32 KIT 2 8 JUMPER CONFIGURATIONS The on board regulator provides a regulated 5V supply through an external DC input with a safe operation range of 7 5V up to 12V DC An On board power on off switch is available The POWER ON LED is lit when the power switch is switched on Figure 2 1 shows the schematic for the power supply circuit 2 3 Jumper Configurations The kit contains the following configuration jumpers J8 Closed PAO is connected to analog output of R26 potentiometer Open PAO can be used as a generic digital I O 2 4 Programming The Kit The kit supports two interface connectors for programming Figure 2 2 ISP Connector Pinout e ISP In System Programming this can be done through J10 connector J10 connects to 2010 M3ATronics http www m3atronics com the microcontroller using SPI mode J10 is shown in Figure 2 2 It supports any standard ATMEL ISP programmer Caution should be exercised when programming the microcon troller fuses Programming the fuses to use an external clock source would render the microcontroller unreachable through SPI A mode e JTAG Connector J9 This connector supports standard ATMEL JTAG debuggers It can be used to connect to the microcontroller for JTAG mode for programming as well as debugging as well Figure 2 3 shows the pinout of the connector DESIGN CHAPTER 2 USING ATMEGA32 KIT 2 4 PROGRAMMING THE KIT
7. AA DESIGN ATMEGA32 KIT USER GUIDE Contents 1 JIntroduction LI TED I 81 7 MCCC e Brash ke Ge ee ee 13 ATMega32 Memories cese ew XO DR S EA we 123 2 Clock 22e ee ue Ae 3 4 lp OE On 194 Peripheral Features o Roe 9 x 24 Pw ES 135 Operating Voltage o ar ba saae a a 2 Using ATMega32 Kit 0o 24 Programme THe Kib eo OR oe awe CONTENTS CONTENTS 3 On Board Peripherals 11 Jd 2222259 oes pedis a guy Rem e e Rh MU dre 11 52 Depay LEDS 22552552558 c E Rok s m 3 109 303 Rb 11 12 12 13 30 Analog Potentiometer occ se bira seda wa krea a a e LATE A Wu m 13 Ot 232 Serial oeo ai e e ek ee 13 4 Pin Allocation 15 AE E 15 42 Pins assignment es 15 5 Mechanical Dimensions 17 2010 http www m3atronics com DESIGN List of Figures 22 22 2222 22224 Wo PROBE Re RE n 5 1 2 ATMega32 Microcontroller Diagram 7 8 22 ISPonuecbor Pinot cca a 22
8. Comments PDO Not assigned Can be accessed from pin header PD1 UART TxD PD2 UART RxD PD3 Not assigned Can be accessed from pin header PD4 Not assigned Can be accessed from pin header PD5 Buzzer enable disable Use logic low to enable buzzer logic high to disable buzzer PD6 Not assigned Can be accessed from pin header PD7 Enable Seven Segment Dot Use logic low to enable Note that all controller can be accessed from pin header even if the pins are assigned to some resource in the board 2010 M3ATronics http www m3atronics com DESIGN 16 Chapter 5 Mechanical Dimensions Figure 5 1 illustrates the mechanical dimensions for the ATMEGA32 kit 17 CHAPTER 5 MECHANICAL DIMENSIONS 0000 e 0 9 le 3i m mj 1 3 o gt g zs cg e we z e els mc ee Yd e J7 J reser ooo 55 47 42 99 126 39
9. Oscillator e On chip Analog Comparator 1 3 5 Operating Voltage The ATMega32 processor operates from 4 5V to 5 5V 2010 M3ATronics http www m3atronics com DESIGN 1 3 ATMEGA32 PROCESSOR CHAPTER 1 INTRODUCTION PA7 VCC PORTA DRIVERS BUFFERS PORTC DIGITAL INTERFACE PCO PORTC DRIVERS BUFFERS AREF COUNTERS OSCILLATOR TW TIMERS OSCILLATOR INTERNAL H RE REGISTERS XTAL2 Ft MG RESET CONTROL INTERRUPT E uie LINES UNIT OSCILLATOR PORTB DIGITAL INTERFACE PORTB DRIVERS BUFFERS ee PB0 PB7 PDO PD7 Figure 1 2 ATMega32 Microcontroller Diagram 2010 M3ATronics http www m3atronics com yu DESIGN CUCU Chapter 2 Using ATMega32 Kit 2 1 Overview This chapter is intended to act as a quick start for using the kit It contains information needed in order to start using the kit and experimenting with it It is concerned with options or configurations that the user can change in order to change the behavior of the board It can be used to run demonstration codes that can be downloaded from M3A website This product contains static sensetive devices Observe proper static handling precautions when touching the product 2 2 Power Supply R10 330 C12 3 470uF 1O00nF IA Figure 2 1 Power Supply CHAPTER
10. level as well The two segments are connected to the same data port for multiplexing purposes example usage for the seven segment displays can be downloaded from M3A website Figure 3 2 illustrates the schematics for 7 Segments 3 4 Buzzer The kit is equipped with a piezo electric buzzer The buzzer generates a tone arround 1 KHz when enabled The buzzer is powered through a PNP transistor Enabling the buzzer requires the corresponding port pin to be driven to LOGIC LOW The port pin is also selected to be a PWM output so that the fundamental tone of the buzzer can be modulated using PWM signal if required Figure 3 3 illustrates the schematics for the buzzer part 2010 M3ATronics 12 http www m3atronics com DESIGN 3 5 PUSH BUTTONS CHAPTER 3 ON BOARD PERIPHERALS ver R33 EuzN gt v m 15K 1 2 Figure 3 3 Buzzer 3 5 Push Buttons The kit is equipped with 4 push buttons with a normally open state The 4 push buttons are connected to 4 successive port pins LOGIC HIGH level is observed on the corresponding port pin when the button is not pressed LOGIC LOW level is observed on the corresponding port pin when the push button is pressed Figure 3 4 illustrates the push buttons 3 6 Analog Potentiometer The kit is equipped with an analog potentiometer in order to generate an analog voltage The voltage ranges from OV to 5V The output of the analog potentiometer is connected to a port pin through
11. w to enable segment PA4 Enable Seven Segment d Use logic low to enable segment 5 Enable Seven Segment Use logic low to enable segment PA6 Enable Seven Segment b Use logic low to enable segment PAT7 Enable Seven Segment a Use logic low to enable segment 15 42 I O PINS ASSIGNMENT CHAPTER 4 PIN ALLOCATION Pin Functionality Comments PBO Push button 1 Logic low detected when button is pressed PB1 Push button 2 Logic low detected when button is pressed PB2 Push button 3 Logic low detected when button is pressed PB3 Push button 4 Logic low detected when button is pressed PB4 Not assigned Can be accessed from pin header PB5 Not assigned Can be accessed from pin header PB6 Not assigned Can be accessed from pin header PB7 Not assigned Can be accessed from pin header Pin Functionality Comments PCO Not assigned Can be accessed from pin header Not assigned Can be accessed from pin header PC2 LED 4 Use logic low to enable LED logic high to disable LED PC3 LED 3 Use logic low to enable LED logic high to disable LED PC4 LED 2 Use logic low to enable LED logic high to disable LED PC5 LED 1 Use logic low to enable LED logic high to disable LED PC6 Enable Seven Segment 2 Use logic low to enable segment Enable Seven Segment 51 Use logic low to enable segment Pin Functionality

Download Pdf Manuals

image

Related Search

Related Contents

GOCLEVER ACCFQ400FLIP mobile phone case    UNIVERGE 客室タブレットソリューションパック - 日本電気    Contraception et IVG de l`adolescente_NISAND  Untitled  Human-centred Pedestrian Safety Evaluation Program: User Guide  Manual de uso y mantenimiento Manual de uso e  PLASMA CUT    

Copyright © All rights reserved.
Failed to retrieve file