EB19430 EB-194-00-1 AT90S1200 90S1200 EB-004 RS232 EB-019-00-1 J11J10 LS8535 - Datasheet Archive
EB19430 Atmel AVR® datasheet Contents 1. About this document 2. General information 3. Board overview 4. Getting Started 5.
Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Atmel AVR® datasheet Contents 1. About this document 2. General information 3. Board overview 4. Getting Started 5. Block schematic and description Appendix A. Circuit diagram B. Compatible AVR® device C. Bus connections Copyright © 2004 Matrix Multimedia Limited Page 1 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 1 About this document This document concerns the Matrix Atmel AVR® Board code EB-194-00-1 EB-194-00-1. Trademarks and Copyright PIC, PICmicro are registered trademarks of Arizona Microchip Inc. E-blocks is a trademark of Matrix Multimedia Limited. EB-194-00-1 EB-194-00-1 and associates software and documentation are Copyright ©2004 Matrix Multimedia Limited. Other sources of information There are various other documents and sources that you may find useful: Getting started with E-Blocks.pdf This describes the E-blocks system and how it can be used to develop complete systems for learning electronics and for PICmicro programming. Disclaimer The information in this document is correct at the time of going to press. Matrix Multimedia reserves the right to change specifications from time to time. Technical support If you have any problems operating this product then please refer to the troubleshooting section of this document first. You will find the latest software updates, FAQs and other information on our web site: www.matrixmultimedia.co.uk. If you still have problems please email us at: email@example.com. When emailing please state the operating system, the version of PPP you are using. Copyright © 2004 Matrix Multimedia Limited Page 2 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 2 General information Description This new AVR® microcontroller programmer connects to your PC via an in circuit programmer to provide you with one of the world's lowest cost and most flexible AVR® microcontroller programmers. The board is fully compatible with our entire range of E-blocks allowing the investigation into many interesting and exciting projects. The Atmel AVR® Board allows serial programming of a large selection of 20 and 40 pin Atmel AVR® devices. This board uses Atmel's AVR® studio a free and comprehensive downloadable AVR® program. The board can be programmed using Assembly and C. It provides `clean' access to all I/O lines on the relevant Atmel AVR® devices. Further information on E-blocks is available in a separate document entitled Introduction to Eblocks.doc. Features · · · · · · · E-blocks compatible Low cost Used as a programmer and as a development board Programs a wide range of Atmel AVR® devices Full suite of programming software Xtal operation and internal RC operation 4 full I/O ports Copyright © 2004 Matrix Multimedia Limited Page 3 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 3 Board overview 1. Screw Terminals 2. Power connector (positive outer negative inner) 3. Reset switch 4. AVRISP programming connector 5. 20-way AVR® socket with AVR® device 6. 40-way AVR® socket 7. 40-way header mirroring AVR® pins 8. Defualt programming block 9. Port A I/O 10. Port B I/O 11. Port C I/O 12. Port D I/O Copyright © 2004 Matrix Multimedia Limited Page 4 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 4 Getting Started 4.1 Installation instructions - Software Installing AVR® Studio 4 from AVR® ISP CD 1. 2. 3. 4. 5. 6. Insert Atmel AVR® CD into CD drive. Click `Start' in the pop-up screen. The AVR web page will now be running from the CD. Click `Software" on the left hand toolbar. Next, click "AVR Studio 4:" This will show you all the features available using the AVR Studio software Scroll down to the CD marked "Install AVR Studio4.xx Build (Press "Open" when prompted). By clicking on this then pressing "Open" when prompted, will allow you to install the software Follow the on-screen instructions. For the most up-to-date version of this software please visit the Atmel web page at: www.atmel.com Installing AVR® Studio 4 from Atmel's Web page 1. 2. 3. 4. 5. Click on the "Products" icon Using the left hand toolbar, click on "Microcontrollers", then "AVR 8-bit RISC" Again using the left hand toolbar click on "Tools & Software" Scroll down to the CD marked "AVR Studio4.xx Buildxx. By clicking on this then pressing "Open" when prompted, will allow you to install the software. Follow the on-screen instructions. For more help and guidance on installing AVR® Studio visit the Atmel Website at: www.atmel.com Copyright © 2004 Matrix Multimedia Limited Page 5 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 4.3 Programming the AT90S1200 AT90S1200 Testing the Atmel AVR® Board 90S1200 90S1200.hex The following instructions explain the steps to test and use your Atmel AVR® Board. The instructions assume that AVR® Studio is installed and functional. It also assumes that the test program 90S1200 90S1200.hex has been downloaded. This test routine is a step-by-step guide to loading a programming into the Atmel AVR® Board. Follow these instructions to test the Atmel AVR® Board 1) 2) 3) 5) 6) Ensure power is supplied to all the Atmel AVR® Board via the power connector J4. Insert EB-004 EB-004 LED board into Port B of the Atmel AVR® Board Ensure that the Almel AVR® is in correct configuration for programming Jumper links for J9, J10 and J11 are in the position marked "DEFAULT" Ensure that a 11.052MHz crystal is inserted in the Atmel AVR® Board AVRISP connected to PC and J3 of AVR Board - Connect RS232 RS232 style cable (cable provided) to PC and to AVRISP box (grey box) - Connect grey header socket (6-way) to J3 of AVR Board Ensure the cable is placed with the tab to the outside of the AVR board (this orientation of the header is shown on the AVR Board silk screen) For details on AVRISP connector see `Programming Hardware' in chapter 5 Open AVR studio Software Cancel the pop-up window to open any project / files 7) 8) 9) Click on the AVR programming symbol Select AT90S1200 AT90S1200 device form "Device" pop-down window Select the "." button in the Flash section as shown below 10) 11) Navigate to the program 90S1200 90S1200.hex Press the program button. This will program the AT90S1200 AT90S1200 with the test program 90S1200 90S1200.hex Press the "RESET" button (PB1) on the AVR Board Check the illumination of all LEDs 4) 12) 13) This should satisfy that the Atmel AVR® Board is fully functional! Copyright © 2004 Matrix Multimedia Limited Page 6 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Ensuring correct polarity for power supply Positive Inner/Positive Outer polarity To set up the correct polarity the connection symbols on the jack need to match those shown below. Connector dimensions The PSU is supplied with a number of connectors. The correct connector for Matrix Multimedia products is: Type D 5.0mm external diameter 2.1mm internal diameter "D" is marked on one side, down by the pins, and "5.0x2.1" is marked on the other side. EB-019-00-1 EB-019-00-1 Atmel AVR®(R) Board requires Positive Outer power supply The two arrows one on the connector socket and one on the connector pin, help you select the correct side of the power jack, and the symbol shows the correct outer connection. Copyright © 2004 Matrix Multimedia Limited Page 7 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 5 Block schematic and description PC 6-way IDC cable AVRISP J3 Programming Header For AVRISP Recommended "DEFAULT" position Clock circuit X1 C5 J11J10 J11J10 J9 C6 2 RB7 RB6 RB5 Power supply Vpp AVR devices J4 20 Pin 40 Pin Port B PB1 Reset 0V +V OUT +V OUT 14V Port A 5V [RB0 - RA7] regulation [RB0 - RB7] 14V 8 1 J2 D2 J1 Port D Port C [RD0 - RD7] POWER INDICATOR 8 1 [RC0 - RC7] J13 8 8 1 1 The AVR® Board solution is made up of two parts: A circuit board that allows various slave Atmel AVR® devices to be programmed, and the program to be executed `seamlessly', and the Windows based programming utility AVR® Studio. Copyright © 2004 Matrix Multimedia Limited Page 8 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Power Supply The board can be powered from an unregulated 14V supply. The regulation circuitry will withstand unregulated 20V as a maximum input voltage and 7V as a minimum. If you are using a DC power supply then you should use a 14V setting. Power can be connected using the 2.1mm power jack (positive outer), or the screw terminal connectors J1, J2. The two "+V OUT" screw terminals are supplied for powering other E-blocksTM, supplying approximately +5V. The regulator will supply up to 400mA via all outputs. LED D3 will indicate that power is connected to the board and that the voltage regulation circuitry is fully functional. Please note connector J4 is directly connected to the J1 screw terminal pin 1 labelled `+14V', therefore any voltage input to J4 will also be available direct from pin 1 of J1. This means that `+14V' will not necessarily be +14V Note Remember that other E-blocks will have to receive +5V by placing a connecting wire from the "+V Out" screw terminal of the Multiprogrammer to the "+V" screw terminal of each E-Block that requires a voltage. Programming - Hardware The AVR® Board connects to a personal computer via the AVRISP or compatible device. The AVRISP requires +5V and ground connection these are all provided on the board via the programming header J3. The following diagram shows the pin-out of the connector J3. The pin-out is the standard pin-out as used by AVRISP. MISO 1 2 VCC SCK 3 4 MOSI /RESET 5 6 GND Figure showing Pin-Out of ISP header J3 By default the pins RB5, RB6, and RB7 are used to program the slave AVR® device. These are the pins that provide the programming functions MOSI, MISO and SCK respectively. Due to the nature of programming it is recommended that programming pins have clean signals when programming, therefore there are 120-Ohm resistors between these pins and the associated Port B pins. This is achieved by placing the 3-way link block in the "DEFAULT" mode for J9, J10 and J11. This provides the adequate protection whilst programming. If problems occur in the programming sequence we recommend completely removing the 3-way jumper link on J9, J10 and J11. This allows MISO, MOSI and SCK to be completely clean whilst Copyright © 2004 Matrix Multimedia Limited Page 9 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 programming. This removes the link to Port B, so pins RB5, RB6 and RB7 are only used for programming. It is possible to get 100% clean signals on RB5, RB6 and RB7 by placing the 3-way jumper link in the side opposite to that labelled "default" on J9, J10 and J11. Please note that the AVR® devices can NOT be programmed when in this state this state is only recommended if problems with attachments in Port B occur. Programming - Software The CD ROM includes a range of development tools including an Integrated Development Environment for code writing in assembly and debugging, a professional C compiler, and the ISP programming software. DIL Sockets and I / O Ports The slave AVR® DIL sockets are wired in parallel (see table of connections below) and the ports are fed out to 4 D-type sockets grouped in ports. These signals are also available on a 40-way header for expansion purposes. Some of the ports will be inactive. This reflects the pin outs of the various AVR® devices themselves. For example, the AT90S1200 AT90S1200 only has Port B and Port D, therefore Port A and Port C are inactive. Please refer to device datasheets for availability of port outputs on each device. NOTE Only insert ONE Atmel AVR® device at a time! Reset Push Button PB1 provides a reset by pulling the /RESET pin low. PB1 is pulled normally high through a resistor so that the device will not be reset during normal operation. The programming software has control over the reset line during programming. Frequency Selection By default the board is fitted with a 11.0592 MHz crystal. The crystal fits into a small socket, which allows the crystal to be easily changed. These frequencies are chosen as they divide down by AVR® pre-scalers to give suitable frequencies for clock systems and for facilitating serial communication using standard baud rates. USB circuitry In the future there may be a possibility of this device being USB compatible. The PCB has been manufactured with the circuitry on board to enable quick development. Note this circuitry is not suppose to be populated Copyright © 2004 Matrix Multimedia Limited Page 10 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Appendix A Circuit Diagram Copyright © 2004 Matrix Multimedia Limited Page 11 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Appendix B Compatible AVR® devices This board is designed to be as versatile as possible. This means that it has been designed so that it maximizes the amount of AVR® devices that can be used with this board. The following table shows the AVR® devices that are compatible with this board: 20 Pin AVR® devices 40 Pin AVR® devices 90S1200 90S1200 90s2313 Tiny2313 Mega16L Mega16 Mega32L Mega32 Mega8535L Mega8535 LS8535 LS8535 S8535 S8535 Mega163L Mega163 Mega323L Mega323 The items in Red are devices that are compatible but are no longer manufactured by Atmel®. These devices can be used but are not recommended. The following diagram shows the pin-out of 20 and 40 pin AVR® device that are compatible with this board. 20 Pin Compatible AVR® Device Pin Out 40 Pin Compatible AVR® Device Pin Out Copyright © 2004 Matrix Multimedia Limited Page 12 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Appendix C - Bus connections Expansion bus The pin connections on the expansion bus exactly mirror the pin numbering on the 40-pin DIL socket. Note that the pin numbering on the IDC socket is slightly different to that on a DIL socket which results in the seemingly odd arrangement of pins on the IDC pin chart. Pin Comparison Chart Bus Name VDD GND XTAL1 XTAL2 /RESET RA0 RA1 RA2 RA3 RA4 RA5 RA6 RA7 RB0 RB1 RB2 RB3 RB4 RB5 / MOSI RB6 / MISO RB7 / SCK RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7 RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 AVCC AREF Compatible AVR® Pin out 20 Pin 40 Pin 20 10 10 11 & 31 5 13 4 12 1 9 40 39 38 37 36 35 34 33 12 1 13 2 14 3 15 4 16 5 17 6 18 7 19 8 22 23 24 25 26 27 28 29 2 14 3 15 6 16 7 17 8 18 9 19 11 20 21 30 32 Connections on J3 Programming header Bus Name RB5 / MOSI RB6 / MISO RB7 / SCK VDD GND /RESET J3 4 1 3 2 6 5 Copyright © 2004 Matrix Multimedia Limited Page 13 Matrix Multimedia Atmel AVR® Board EB19430 EB19430 Connections on J5 40 Pin header connections Bus Name VDD GND XTAL1 XTAL2 /RESET RA0 RA1 RA2 RA3 RA4 RA5 RA6 RA7 RB0 RB1 RB2 RB3 RB4 RB5 / MOSI RB6 / MISO RB7 / SCK RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7 RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 AVCC AREF 20 Pin Device 20 10 5 4 1 12 13 14 15 16 17 18 19 2 3 6 7 8 9 11 40 Pin device 10 11 & 31 13 12 9 40 39 38 37 36 35 34 33 1 2 3 4 5 6 7 8 22 23 24 25 26 27 28 29 14 15 16 17 18 19 20 21 30 32 IDC connector 19 20 & 21 25 23 17 2 4 6 8 10 12 14 16 1 3 5 7 9 11 13 15 38 36 34 32 30 28 26 24 27 29 31 33 35 37 39 40 18 22 Copyright © 2004 Matrix Multimedia Limited Page 14