Home

MAN - GMM AM128 - UK - 5.00

image

Contents

1. C3 ICC AVR Ricompilutiom AVR C3ICC AVR In standard editor load the project file using the menu Project Open DE for ICCAVR STANDARD View Project Studio BCS Tools Terminal Help Open Project 2 xi Cerca ____ d_am128u prj Res Close Files Reopen Project Add Opened File Rent Elected Nome d_am128u prj Tipo file Project Files pri x Apri in sola lettura Options Manual SobBrowser Window Annulla FIGURE 21 LOADING PROJECT FILE WITH ICC AVR C3 ICC AVR b Compile the project using the menu Project Make project aft IDE for ICCAVR STANDARD Search View Project Studio ACS Tools Terminal Help 52 n New Open Ctrl F11 gt Open All Files Close Files RRR FREESE Reopen Progra Ed Compilat MEC ss bne V6 Scheda Rebuild All Shift F9 Add File s Shift F11 l Add Topmost Opened File qued alli Remove Selected File s http v fo it Dptions Realizze Manual Sort Browser Window LE Close Save As 168 FIGURE 22 COMPILATION WITH ICC AVR E Page 32
2. 6 28 Rel 5 00 C4 Program compiled file into FLASH memory of GMM AM128 the steps of point B ID JPIUNAVL D1 Close the Boot Loader PC utility When during execution of the steps above described a problem or a malfunction is found we suggest to read and repeat again all the steps carefully and if malfunction persists please contact directly grifo technician Instead when execution of all the steps above described is right the user has realized his first application program that coincides with demo of GMM AM128 At this point it is possible to modify the source of the demo s program according to application requirements and test the obtained program with the steps above listed successive to B and C in cyclic mode until the developed application program is completely well running When this focus is reached the developmnet PC can be eliminated Remember to reconfigure USARTO of Mini Module if required Page 33 128 Rel 5 00 bus qgrifo A iu O Z SOFTWARE ID A wide selection of software development tools can be obtained allowing use of the module as a system for its own development both in assembler and in other high level languages in this way the user can
3. 01 2 AL OSA 2 0 199 5 oe B fodit arupo ddi 002 ZH 001 198 jueuno Ajddns A 09 01 514 021 A 09 gz jddns LINN NIW NOLLIGNOD u313NVHVd 71O8WAS 39N3H3H3H 1008HW 72 10 OV 31LIHM V 20 V Q vau SseJppe uaisioau 2177748 pue sew uueje SS3uaav lt 198 E rar 0v suoneoo WYH 941 dal jeue 99 4 WH 994 10 uueje se eseq ZH 06 10 ZH 89 72 SS eq 3 g eu jeuuoj Jnou 21 10 y 21501 13539 pue 10 pesn eie eui 5 8 EM JOHLNOO NO H3MOd Y pue ZHY 89 26 UIING eu pue seek serum 79 1 snq aui SOAP Spuooes 8211001 5
4. e eee ee ee eee een eese ee tn sese etna eee teen ae 32 FIGURE 22 COMPILATION WITH ICC AVR 32 1 23 view GMM AM128 35 FIGURE 24 AVAILABLE CONNECTIONS DIAGRAM eeeeee esso oe eee ense eee sese eese enses teta see seen sees seen ae eee 39 FiGcunE B 1 DIAGMAM OF INTERFACE BETWEEN GMM TST 2 MP AVR 51 3 B 2 DIAGMAM OF INTERFACE BETWEEN GMM TST 2 AND UEP 49 B 3 FIGURE B 3 COMPONENT SELECTION USING PG4UW ssssccccssssscccssssscccssssscccscssseccscssssccecesscees B 4 Ficure B 4 ISP PROGRAMMING SOCKET FOR GMM 128 AND GMM TST 2 B 5 FIGURE B 5 PROGRAMMER CONFIGURATION USING 1 0 1 B 6 FIGURE B 6 COMPONENT CONFIGURATION USING PG4UW 2 2 B 6 FIGURE B 7 PROJECT CONFIGURATION USING EQTOOLS sscccssssssscssssssccsesssscccscsssccsssssscccsessscees B 8 FIGURE 8 CPU SELECTION USING AVR STUDIO cccsssssccesssssccsssssscccesssscccssssssccssssssccccssssees B 10 FIGURE B 9 CPU CONFIGURATION USING AVR STUDIO eee eee eee ee ee eerte eee B 10 FicunE B 10 AVR ISP CONFIGURATION USING AVR STUDIO eee ee eee eee ee eese ense eee B 10 FIGURE C 1 TST2 ELECTRIC DIAGRAM 1 OF 3
5. BIBLIOGRAPHY In this chapter there is a complete list of technical books and notes where the user can find all the necessary documentations on the components mounted on GMM AM128 Mini Module Technical paper MAXIM True RS 232 Transceivers Manual PHILIPS I2C bus compatible ICs Technical paper ATMEL Data Sheet Atmel ATmegal128L The described manual can be requested directly to manufacturer or local dealers Alternatively this information and or upgrades can be found in specific internet web pages of the listed companies Page 36 e GMM AMI28 Rel 5 00 bus grifo ITALIAN TECHNOLOGY SIMPO souy YOLSISNVAL AVIAN 14 80 101 0 49 SANIT LLL TV LISI 9 ANOWAW YAINNd 83D VBELENI TV LIOIG SYSEIINLL SYEELEN F 0 N a v itl TET SUXT IPA 05 0 10 PE sag 2 MAV ISM SADHOWCIIN 0 ISIN doo 8 SU ccr Su TET SU MAAN TVS SAV 145 DAA LATHS SARIOWAK 145 S32IA3G TVINAS 5 FiGURE 24 AVAILABLE CONNECTIONS DIAGRAM Page 39 128 Rel 5 00 iuuvetiaouo Page 40
6. e ee C 1 1 2 TST2 ELECTRIC DIAGRAM 2 OF 3 eere eee eere eene sa se e C 2 FIGURE 3 TST2 ELECTRIC DIAGRAM 3 OF 3 eere eere eee ee eee sa se C 3 128 Rel 5 00 Page III iuuvetiaouo Page IV GMM AMI28 Rel 5 00 INTRODUCTION The use of these devices has turned IN EXCLUSIVE WAY to specialized personnel This device is not a safe component as defined in directive 98 37 CE Pins of Mini Module are not provided with any kind of ESD protection They are connected directly to their respective pins of microcontroller Mini Module is affected by electrostatic discharges Personnel who handles Mini Modules is invited to take all necessary precautions to avoid possible damages caused by electrostatic discharges The purpose of this handbook is to give the necessary information to the cognizant and sure use of the products They are the result of a continual and systematic elaboration of data and technical tests saved and validated from the manufacturer related to the inside modes of certainty and quality of the information The reported data are destined INEXCLUSIVE WAY to specialized users that can interact with the devices in safety conditions for the persons for the machin
7. JO uonoeuuoo y vil og ZH 0 193 jue uno jo Pe 10 pesn si oy erep peas A 9 01 A 00 51 45 0109 6898424 44 1080 10 Y Jaye si 1 81 X Y SseJppe eu SNA Ozl ei A eues ejep pue sesseJppy 510 8 A0901A0 Aq spiom 992 SOWO 01815 19 8202 0 0 010 S 858404 PUL A901 A G z Ajddns sng 2 WvH5via 490198 NOILdlHOS3d 1VH3N3D sauniv34 19 8 0 SJOJONPUODILUAS 6848 24 uoneoyioeds INVH 19 8 Tepue eopo 1 S Re S lt 5 Page 2 APPENDIX ISP PROGRAMMING WITH GMM TST 2 In this appendix the user can find specific instructions to program Mini Module GMM AM128 installed on GMM TST 2 using an external ISP programmer This method to program Mini Mo
8. TECHNICAL MANUAL 5 7 Via dell Artigiano 8 6 40016 San Giorgio di Piano g rifo Bologna ITALY d ITALIAN TECHNOLOGY E mail grifo grifo it http www grifo it http www grifo co Tel 39 051 892 052 a r FAX 39 051 893 661 GMMAM128 Rel 5 00 Edition 09 January 2006 aveeo e grifo are trade marks of grifo TECHNICAL MANUAL Standard container with 40 pins male socket dual in line 100 mils pitch 600 mils width very small dimension 62 x 23 x 15 mm single power supply voltage required in the wide range from 3 0 to 5 0 Vdc 31 mA max the current consumption can change according with module connections availability of power saving setting as idle mode and power down mode Atmel ATmega128L microcontroller with external 7 3729 Mhz crystal 128 KBytes FLASH for code up to 8 FLASH be reserved for Boot Loader 4KBytes RAM for data 4K Bytes EEPROM for data 2 analog comparators channels with different input and output configurations options that allow to create easily bipolar A D conversion 8 channels multiplexed A D converter resolution 10 bits and 120 usec conversion time 35 interrupt sources 4 Timers Counters up to 16 bits with functions of PWM compare capture etc up to 36 digital I O lines available on connector Some of these lines have multiple functions two hardware serial communication line with program
9. gr ifo FicuRE 14 GMM TST 2 AM128 Page 25 128 Rel 5 00 HOW START Across this chapter we presume that you a GMM TST 2 or a GMB HR168 where to install GMM AM128 For further information please refer the specific manual of GMB HR168 GMM AM128 AX CONNIECITION 757872 78789 Gu LIEU S 1 To make the serial connection between GMM 128 and a PC the structure described on figure 15 should be built GMM AM128 features two serial interfaces called USARTO and USARTI The figure shows the pins to connect USARTO The program delivered to the customer in the Mini Module is its test program which communicates through USARTO Please remark that the test program is not designed to work outside grifo specific test structures so we strongly recommend this do not connect any other signal exept the ones of USARTO in this phase DB25F DBO9F 9 RXDO0USARTO set as RS232 2 3 TX 10 TXD0 USARTO set as 5232 CN1 GMM 128 Q 8 g gt Qo 1 15 RS 232 SERIAL CONNECTION BETWEEN GMM 128 AND PC A2 Keep ready for running a terminal emulator on PC configure it to use the serial port where Mini Module is connected with 19200 baud 8 data bits 1 stop bit no parity If you are using BASCOM AVR you
10. 64 lead TQFP and 64 pad MLF Operating Voltages 2 7 5 5V for ATmega128L 4 5 5 5V for ATmega128 Speed Grades 0 8 MHz for ATmega128L Rev 2467H AVR 02 03 0 16 MHz for 128 Flash 128 Rel 5 00 Page A 1 e ITALIAN TECHNOLOGY grifo bus 8583 Link URL Home Technical documentation Service BUS Data Sheet PCF8583 Iwww grifo com PRESS DOC PHILIPS PCF8583 pdf http eAnisod 8 a 2 64 941108 Apog g eDexoed jews 808 18585 uedo 1 1 46108 006 sper 8 988984 youn 9 X NOISH3A vs SS enas g vc NOLLVIWHOHNI 9NIH3QHO TS 9 10 ndu 45858494 0080 ndino 101211050 OOS 586 adus 9 051 59 5 qui egind quene 09 los 2 68 Or
11. 24 0 4 4 0 40 B 1 PROGRAMMING USING grifo MP AVR 51 grifo UEP 49 B 4 PROGRAMMING USING EQUINOX EPSILONS B 7 PROGRAMMING USING ATMEL AVR ISP 9 APPENDIX C GMM TST 2 ELECTRIC DIAGRAM 021274 20 02 0 1 5 D 1 GMM AMI28 Rel 5 00 Page II ITALIAN TECHNOLOGY gr ifo FIGURES INDEX FIGURE 1 LOCATION OF REVISION NUMBER ee cese ee ee ee ee ee een osos esee e etta to aa Pe eee e tete en ases esee e eee 3 FIGURE 2 BLOCKS DIAGRAM ee see ea eo po e eoe ao eee p epo Ee poe bo e Fea p eee eo Po ne pe eee 7 1 3 GMM AM128 PHOTO NC 9 FIGURE 4 COMPONENTS COMPONENTS SIDE eee eee ee eee enn nonne tnn tasa asses e 11 FIGURE 5 COMPONENTS MAP SOLDER SIDE eee eee eee eerta nen e ette tasa sese see e tete tasa asses e 11 FIGURE HEB DR 14 FIGURE 7 SOCKET WITH MINI MODULE SIGNALS ssscccssssssscessssscccssssscccssssscccssssssccssesssscceees 15 FIGURE 8 DS W2 4 WAYS DIP SWITCH TABLE
12. 1 1 4 16 FIGURE 9 DSW1 8 WAYS DIP SWITCH TABLE cccssssssccssssscccsssscccsssssccccccsssscccsssssccscssssccccscsssesesees 17 FIGURE 10 EXAMPLE OF RS 232 SERIAL CONNECTION ee eee ee eee esee no ee eee enses tetas ee teens esee sean esee 19 FIGURE 11 EXAMPLE TTL SERIAL CONNECTION ee ee ee eo eo eo ee eee eee eee een aane eee ee eee aane see eee eaa 19 FIGURE 12 LEDs DIP SWITCHED ETC LOCATION eeeeee eee eo ense eoe e ee eese etas aas eee e teen asse Pee e seen 21 Ficure 13 IMAGE MODULE GMB HR 168 AND AM IOS eere eee ee eee nen eee toan 23 FicunE 14 GMM TST 2 128 PHOTO eee eee ee eee ee eee eee een se 25 Ficure 15 RS 232 SERIAL CONNECTION BETWEEN 128 AND A eere 26 FIGURE 16 EXAMPLES Erin eiS 27 17 BOOT LOADER UTILITY 29 FIGURE 18 LOADING A SOURCE FILE WITH BASCOM 1 1 21 101 4 00 4 30 FIGURE 19 CONFIGURATION OF COMPILER BASCOM e eee ee ee een seen see teta aestas 31 FIGURE 20 COMPILATION WITH BASCOM AVR eere ee eee eee ene tn sesta ense ee eene eee een se eee 31 FIGURE 21 LOADING PROJECT FILE WITH ICC AVR
13. GMM AMI28 Rel 5 00 APPENDIX DATA SHEETS grifo provides completely free technical documentation service to make available data sheets of on board components through its web site In this chapter the user found the complete and ready to use links and URLs to these information together with the first pages of the same documents To use our technical documentation service just connect to our site www grifo com and click its icon ATMEGA128L Link Home Technical documentation Service ATMEL Data Sheet ATmega128 URL http www grifo com PRESS DOC Atmel A Tmega1 28 pdf Features High performance Low power AVR 8 bit Microcontroller Advanced RISC Architecture 133 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Peripheral Control Registers Fully Static Operation Up to 16 MIPS Throughput at 16 MHz On chip 2 cycle Multiplier Nonvolatile Program and Data Memories 128K Bytes of In System Reprogrammable Flash Endurance 10 000 Write Erase Cycles Optional Boot Code Section with Independent Lock Bits 8 bit AVR In System Programming by On chip Boot Program Microcontrol ler True Read While Write Operation 4K Bytes EEPROM 1 Endurance 100 000 Write Erase Cycles with 1 28K Bytes 4K Bytes Internal SRAM Up to 64K Bytes Optional External Memory Space In System Programming Lock for Software Security SPI Interface
14. interface allows to enter the core of microcontroller to examine its status during execution of applcation program directly on the application hardware The user can insert both hardware and software breakpoints and when execution is stopped the values contained in memory and internal registers can be examined JTAG interface also allows to reprogram the microcontroller memories Using JTAG interface several debugging problems are solved increasing the possibility to eliminate bugs and drastically reducing the time required to obtain the final application completely debugged a a NL N N I M m A LIE 542 NO 2 pow 4 oa 542 FIGURE 23 VIEW AM128 Page 35 128 Rel 5 00 DEVICES SOFTWARE DESCRIPTION Below there is a specific description of the software managements of the on board peripheral devices Whenever the reported documentation is not sufficient please search a more detailed description of the devices in manufacturing company data sheets Furthermore in this chapter the microprocontroller internal peripheral devices are not described so if their programmation is necessary please refer to appendix A of this manual In the following paragraphs t
15. CARDS 22 USE WITH GMB HR168 MODULE 22 USE 5 8 8 24 HOW TO START snc 26 RICOMPILATION WITH BASCOM 30 RICOMPILATION WITH ICC AVR eesseseseceecesosseseseccecesosoesesecoeeesorcesesecoeeesororsesecoeeesoseeseeee 32 SOFTWARE DESCRIPTION esseseseseeseroesesescccesororseseseccesororoesereecesesorcesereecesororoeseseecoeeosoreeseseeesee 34 P GMM 128 Rel 5 00 amp I grifo ITALIAN TECHNOLOGY PERIPHERAL DEVICES SOFTWARE DESCRIPTION 4 4 7 1 36 ACTIVILY LEDS 36 DIP SWITCH en 36 25 5255 5885 37 5 5555 37 38 APPENDIX A DATA SHEET isi scss s ee A 1 ATMEGA ps p M A 1 8583 e M A 2 APPENDIX ISP PROGRAMMING WITH TST 2 00 4 00 08 B 1 COMMON OPERATIONS FOR ALL 85
16. OC3C INT5 PBI SCK 18 PD7 T2 0 55 19 PE6 T3 INT6 GND 20 PB4 FIGURE 7 SOCKET MODULE SIGNALS Signals description RXDn I Receive Data of USARTn it can be buffered as RS 232 or TTL TXDn Transmit Data of USARTn it can be buffered as RS 232 TTL PDI I ISP programming data output line PDO ISP programming data input line PAX PBX PFx T O CPU I OTTL signals SCL Bus clock signal SDA Bus reception and transmission signal Tn I External inputs for counters of timer n th INT n CPU n th interrupt signal ADCn N th A D converter analog input AINn N th comparator analog inputs AREF I A D converter reference voltage OCn A B C Compare output of n th section TDO TDI I O Data signals of JTAG interface TCK TMS I Clock and control signals of interface XCKn I Exeranl clock signals for USARTn in synchronous mode INTRTC Periodic interrupt signal generated by PCF 8583 RESET I Reset signal MOSI SPI interface data output MISO SPI interface data input 188 I interface slave select SCK I O SPI interface clock Vdc POW I Power supply GND Ground Page 15 128 Rel 5 00 MINI MODULE CONFIGURATION On GMM AM128 module there are an 8 ways dip switch and
17. allows to control its working status directly on the application it is running In this case debugging is controlled through the PC and a specific interface to connect to the six signals of Mini Module directly available on its socket The PC program that controls interface is AVR Studio free IDE developed by Atmel they distribute through their website Both the solutions ensure a short time to market the user can obtain a prototype or even a ready product in one week Overall features are Standard container with 40 pins male socket dual in line 100 mils pitch 600 mils width Very small dimension 62 x 23 x 15 mm Single power supply voltage required in the wide range from 3 0 to 5 0 Vdc 31 mA max the current consumption can change according with module connections Availability of power saving setting as idle mode and power down mode Atmel ATmegal128L microcontroller with external 7 3729 Mhz crystal 128 KBytes FLASH for code up to 8K Byes FLASH can be reserved for Boot Loader 4KBytes RAM for data 4KBytes EEPROM for data 2 analog comparators channels with different input and output configurations options that allow to create easily bipolar A D conversion E 4 6 28 Rel 5 00 8 channels multiplexed A D converter resolution 10 bits and 120 usec conversion time 35 interrupt sources 4 Timers Counters up to 16 bits with functions of PWM c
18. easily develop all the requested application programs in a very short time Generally all software packages available for the mounted microprocessor or for the AVR family can be used Software packages purchased from grifo are always provided with example programs that show how to use each section of the board and a complete use documentation Remarkable are BASCOM AVR It is a powerfull new integrated development environment for AVR microcontroller The toolset incorporates an editor optimising BASIC compiler assembler and HEX creator The BASIC compiler produces very tight AVR machine code by virtue of the fact it translates the BASIC source into actually run timeassembly code wich is optimised to run as fast as possible The target AVR microcontroller therefore runs true assembly code rather than tokenised code wich is found in many other BASIC compilers Itis also provided with integrated simulator for source level debugging and optional external libraries to drive or simulate several external devices likebadge readers PS 2 keyboards graphic and alphanumeric displays ICC AVR PRO Cross compiler for C source program It is a powerfull software tool that includes editor ANSI C compiler assembler linker library management program and project manager included in an easy to use integrated development environment for Windows and other P C operating systems Library sources floating point integration with AVR studio on line
19. for In System Programming Prog ramm able JTAG IEEE std 1149 1 Compliant Interface Boundary scan Capabilities According to the JTAG Standard Extensive On chip Debug Support Programming of Flash EEPROM Fuses and Lock Bits through the JTAG Interface Peripheral Features Two 8 bit Timer Counters with Separate Prescalers and Compare Modes 1 28 Two Expanded 16 bit Timer Counters with Separate Prescaler Compare Mode Capture Mode Real Time Counter with Separate Oscillator 1 28L Two 8 bit PWM Channels 6 PWM Channels with Programmable Resolution from 2 to 16 Bits Output Compare Modulator 8 10 bit ADC im inary 8 Single ended Channels 7 Differential Channels 2 Differential Channels with Programmable Gain at 1x 10x or 200x Byte oriented Two wire Serial Interface Dual Programmable Serial USARTs Master Slave SPI Serial Interface Programmable Watchdog Timer with On chip Oscillator On chip Analog Comparator Special Microcontroller Features Power on Reset and Programmable Brown out Detection Internal Calibrated RC Oscillator External and Internal Interrupt Sources Six Sleep Modes Idle ADC Noise Reduction Power save Power down Standby and Extended Standby Software Selectable Clock Frequency ATmega103 Compatibility Mode Selected by a Fuse Global Pull up Disable and Packages 53 Programmable I O Lines
20. further information about project file management please refer to manuale of EQTools C6 Who creates a new project must be sure to perform the settings shown in figure B 7 Who opens an existing project must be sure that these settings have already been performed These settings assure that The project is programmed correctly by EPSLON5 Target device is ATmegal28L File programmed on the target is d am128u hex Target component configuration is correct forfurtherinformation about configuring a project please referto EQTools documentation GMM 128 Rel 5 00 Page B 7 ITALIAN TECHNOLOGY C7 Who creates a new project must also indicate to use it as Test EDS mode To enable and perform Flash write operation the user must move back to Flash menu put the check sign on Edit Menu checkbox and press button Write C8 Window Write Block to Flash shows a summar of some current settings to verify them If they are correct pressing OK starts the memory writing procedure C9 Current status of programming is indicated by a progress bar when programming completes a message indicates the operation final result C10 To perform configuration bits write operation it is required to move back to Fuses menu and press button Write in frame Target Fuses Programmer Project Type Programmer and Project JEPSILONS Get Info
21. help and ANSI terminal emulator for target communication are provided too DDS MICRO C AVR Low cost ross compiler for C source program It is a powerful software tool that includes editor C compiler integer assembler optimizer source linker and library in one easy to use integrated development environment There are also included the library sources and many utilities programs The default IDE can be replaced by a new one named Micro that is more powerfull for Windows operating system and provided of many utility functions AVR Studio It is a development tool for AVR family of microcontroller that fully control execution of program on AVR in circuit emulator or on the built in AVR instruction set simulator AVR Studio supports source level execution of assembly and C programs generated by external compilers and assemblers The tolls is based on a set of windows for source watch registers memory peripherals message and processor that enable the user to have full control of the status of every elementin the execution target It also features an application builder to easy the generation of code to initialise all hardware peripherals USART SPI Port ADC ect starting from a graphic interface There is also the remarkable possibility to drive the JTAG interface called JTAG ICE manufactured E Page 34 gt gt gt gt amp GMM 128 Rel 5 00 by Atmel A
22. it http www grifo com Tel 39 051 892 052 a r FAX 39 051 893 661 GMMAM128 Rel 5 00 Edition 09 January 2006 aveeo e grifo are trade marks of grifo DOCUMENTATION COPYRIGHT grifo ALL RIGHTS RESERVED No part of this document may be reproduced transmitted transcribed stored in a retrieval system or translated into any language or computer language in any form or by any means either electronic mechanical magnetic optical chemical manual or otherwise without the prior written consent of grifo IMPORTANT SYMBOLS DESCRIPTION Trade Marks grifo are trade marks of grifo Other Product and Company names listed are trade marks of their respective companies ITALIAN TECHNOLOGY GENERAL INDEX 1 CARD 3 5 8 5 4 DIGITAL LINES 6 SERIAL COMMUNICATION 6 M 6 MEMORY DEVICES 5555 8 8 1d W d O4 13 5 Y i uM 8 DIP SWITCH 9 A D CONVERTERS enm 10 ANALOG COMPARATOR
23. logged data system status and configuration etc in each working conditions Whenever the amount of memory for data is not sufficient i e for data loghin systems itis always possible to connect external memory devices with SRAM EEPROM FLASH technologies through the comfortable and efficient SPI and BUS interface of the card The addressing of memory devices is controlled by microcontroller as described in the component data sheet or in APPENDIX A of this manual BUS INTERFACE Standard pin out of 40 pins grifo Mini Module connector reserves two pins 12 and 13 to BUS interface These signals are provided with a 4 7 pull up on the Mini Module board GMM AM128 features a hardware BUS interface and is managed through microcontroller inernal registers It can work both as master or slave in transmission or reception This interface allows to connect components featuring the same communication standard to expand locally the potentialities of Mini Module For this Mini Module arich serie of demo programs that explain how to use A D and D A converters memories temperature sensors on board RTC etc by a complete and well commented code is available Remarkable is the possibility to connect the grifo operator panels serie through BUS QTP are capable to manage alphanumeric and graphicdisplay and several models of keyboards according to the model selected Mini Modules support cards manufacture
24. may simply open the terminal emulator in its IDE Page 26 GMM AMI28 Rel 5 00 ITALIAN TECHNOLOGY gr ifo Supply GMM TST 2 or GMB HR168 Starting screen of GMM AM128 test program should appear in the terminal Otherwise check the connection cable and power supply rifo ITALIAN TC CHNOLOGY M 3 ROGRAMS FOR MINI MODULES AND MINI BLOCKS 18981603 8051 f Atmel T99C51cc01 Atmel 71890510002 3051 Atmel T89C5115 S E 8051 Mxrodmp PICI6FS76A PIC 14 Code PHILIPS gt E PSSLPCS32 8051 Code LE T99C51AC2 8051 Code Amel AT Megas AVR Code Atmel ATMega32 AVR Code Block 9 input opto 4 output rel 16 au 2 2 2 mput opto 8 compat rel e e e egrifo egrifo TT ALIAM TECHNOLOGY TALIAN TECHMOLOG Y FIGURE 16 EXAMPLES TABLE Page 27 128 Rel 5 00 AJLA SION IMUUN G Mini Module programming is performed using th Boot Loader preprogrammed in the Flash of Mini Module itself Such program allows to create a comm
25. modes For software management of serial SRAM RTC backed module please refer to specific manufacturer documentation This manual reports no software information because management of this component is complex and requires a deep knowledge anyway the user can use the demo programs supplied with the card The board control logic allows to realize a serial communication with bus standard protocol through two I O microprocessor pins The only necessary information is the electric connection INTI SDA input output gt line SDA PDO INTO SCL input output gt CLOCK line SCL Please remark that AO of this component s slave address is bound to logic 0 This means that RTC takes permanently the slave address 0 which is not available for user application The above mentioned module is capable to generate a programmable periodic signal which is connected on board to a 4 7 kQ pull up and is available on pin 11 of Mini Module connector CN1 and is connected to signal PD4 of microcontroller CPU INTERNAL PERIPHERALS Registers description and purpose for all internal peripherals Analog COMPARATORS A D CONVERTER Timer Counters USARTO and 1 PC BUS SPI etc is availabe in the proper data sheet and user manual of the manufacturer Please refer to chapter BIBLIOGRAPHY and to appendix A of this manual to easily locate such documentation Page 37 128 Rel 5 00
26. 2 as described in the manual of GMM TST 2 B4 Select ATmegal28L ISP as the component to program in specific menu of PG4UW as indicated in figure B 3 B5 Load the file previously saved on point A4 by pressing the button Load Select device All Only selected type Only selected manufacturer Adapter 128 4 01 40 ZIF 2 _ Manufacturer Atmel ATmegal28L 4 DIL40 TOFP64 ZIF amp vRmega 2 Atmel 128 MLF64 DIL40 MLF64 ZIF CS 1 Atmel 1 28 MLF64 DIL40 MLF64 ZIF CS AVR 1 Atmel ATmegal 28 15 Note via ISP connector Atmel ATmegal 28L ISP Note via ISP connector Atmel ATmegal28CAN11 4 DIL40 TQFP64 ZIF AvRmega 2 Atmel ATmegal28CAN11 15 Note via ISP connector Search atmegal 28 18 found Device info FIGURE B 3 COMPONENT SELECTION USING PG4UW GMM AMI28 Rel 5 00 4 128 Rel 5 00 _ PIN 40 PIN 21 IPIN 1 PIN 20 1 PIN9 10 PIN 20 ________ ________ Te ee ee rrr ONAL PIN 14 PIN 15 B 4 ISP PROGRAMMING SOCKET FOR GMM 128 GMM TST 2 Page 5 B6 Configure the component using the menu Device options View Edit options and security The component must be co
27. 8 like in figure B 8 D5 Load the file previously saved on point A4 by pressing the button Load D6 Configure CPU as indicated in images of figure B 9 D7 Configure the programmer to check signature erase device and reprogram with verify Flash memory and configuration bits like indicated in figure B 10 08 Perform the programming sequence by pressing button Start indicated in figure B 10 Page B 9 128 Rel 5 00 grifo ITALIAN TECHNOLOGY B 8 CPU sELECTION USING AVR STUDIO Boot Reset vector Enabled default address 0000 BOOTRST 0 Brown out detection level at VCC 4 0 V BODLEVEL D Brown out detection level at 2 7 V BODLEVEL 1 Brown out detection enabled BODEN 0 Iv CKOPT fuse operation dependent of CKSEL fuses CKOPT 0 Ext Crystal Resonator High Freq Start up time 1K CK 64 ms CKSE Ext Crystal Resonator High Freq Start up time 16K CK 0 ms CKSE Ext Crystal Resonator High Freq Start up time 16K 4 ms CKSE Ext Crystal Resonator High Freq Start up time 16K CK 64 ms Ficure 9 CPU CONFIGURATION USING AVR STUDIO v Erase Device v Check signature v Program FLASH Verify FLASH Read FLASH Program EEPROM Verify EEPROM Read EEPROM Write osc cal byte Program fuses Verify fuses Read fuses Program lock bits Verify lock bits Read
28. C 4 GMM AMI28 Rel 5 00 APPENDIX D ALPHABETICAL INDEX SIMBOLI VDC POW 13 15 20 A A D CONVERTER 10 12 15 20 ANALOG COMPARATOR 10 12 20 ISP 1 AVR STUDIO 34 B 9 AVRBOOTLOADERGRIFO 28 B BACK UP 9 10 16 37 BACK UP BATTERY CONSUMPTION 13 BACK UP BATTERY VOLTAGE 13 BASCOM AVR 30 34 BATTERY 9 10 16 37 BIBLIOGRAPHY 38 BOOT LOADER 28 BROWN OUT THRESHOLD 13 CARD VERSION 3 CLOCK 6 12 14 CONFIGURATION BITS 28 CONNECTIONS 14 COUNTER MAXIMUM FREQUENCY 12 CURRENT CONSUMPTION 13 CURRENTLOOP 6 9 D DDS MICRO CAVR 34 DIGITAL I O LINES 12 DIPSWITCH 9 12 16 36 B 2 DSW 9 2 DSW2 9 2 E EEPROM 8 12 28 EPROM 8 12 5 7 1 128 Rel 5 00 FLASH 8 12 28 168 22 TST2 24 1 HOW TO START 26 I PC BUS 8 10 12 15 20 PC BUS PULL UP RESISTOR 13 ICCAVR 32 34 IMPEDANCE ANALOG SIGNALS GENERATORS 13 INTERRUPT 12 21 37 ISP 15 B 1 J JTAG 21 34 L LEDS 12 14 36 M MEMORY 8 MIPS 6 51 1 4 MSI01 6 P PORTS 6 POWER ON TIME 12 POWER SUPPLY 13 15 20 PROTECTION FUSES 28 PULL UP 8 37 PWM 10 12 20 Page D 2 ITALIAN TECHNOLOGY GMM 128 Rel 5 00 ITALIAN TECHNOLOGY grifo R REAL TIME CLOCK 10 12 37 RE
29. Electronics BASCOM AVR Ami 28 T STAM128 Browse EEPROM Code Browse Synch to Bootloader Status Idle Info Exit 17 LOADER UTILITY 128 Rel 5 00 Page 29 INING IDIEMIO TB XUB CUITAIBILIE CODE 1 C2 C3 Install on the hard disk of the development P C the software environment selected to develop the application program As described in the chapter SOFTWARE DESCRIPTION there are many different software tools that satisfy any customers requirements but here we remind only the most diffused as the BASCOM AVR ICC AVR etc Ongrifo CD in addition to file with the executable code of the demo program described at point B2 there are also the source files of the same These have an extension that identifies the used software developmenttools forexample d_am128u bas for BASCOM AVR or d_am128u c for ICC AVR and they are properly organized inside demo programs tables available on CD together with possible definition file for example d_am128u prj for ICC AVR Once these files have been located they must be copied in a comfortable folder on the hard disk of development PC Compile the source file by using the selected software tools the file d_am128u hex must be obtained equal to those available on grifo CD and already used at points B This operation is very different according to the programming e
30. GMM TST 2 2 3 12 2 3 J3 not connected 14 not connected J5 not connected J6 not connected J7 not connected A4 Locate on grifo CD and save to a comfortable position on the hard disk of the PC the file called d_am128u hex following the path English Example Tables Mini Module and Mini Block examples AM128 please refer to figure 16 of manual Page B 2 Next sections described a detailed configuration specific for each programmer GMM 128 Rel 5 00 CN7 ISP GMM TST 2 MP AVR 51 4 2 2 9 LL 1 10 _ 6 FIGURE B 1 DIAGMAM OF INTERFACE BETWEEN TST 2 MP AVR 51 CN7 ISP GMM TST 2 UEP 49 184 6 2 AHH 1 0 all 10 gt FIGURE 2 DIAGMAM OF INTERFACE BETWEEN TST 2 UEP 49 GMM 128 Rel 5 00 Page B 3 I 1B IPIROGIRAWWIMUUNG WUPSAWIR 5 gt 4 Instructions for installing connecting to PC and using programmer delivered with the programmer itself The control program for all grifo programmers is called PG4UW and will be indicated by that name from now on B2 Connect the programmer to GMM TST 2 using the interface described at point A2 B3 Insert module in socket Z1 or Z2 of GMM TST 2 using the interface and the instructions described at point A2 and A3 then turn on power supply of GMM TST
31. Hz start up time 16K 64 ms Calibration bytes FIGURE 6 COMPONENT CONFIGURATION USING PG4UW GMM AMI28 Rel 5 00 Page B 6 C1 Programming of Mini Module TST 2 board is performed through specific connector of the card First of all programmer Equinox EPSILONS must be physically configured to connect to GMM TST 2 To perform such configuration Connect the 10 ways flat cable to connector J7 ATMEL10 of EPSILONS Connect jumper J9 of EPSILONS for further information please refer to manual of EPSILONS C2 After configuring and closing the EPSILONS its control program must be installed This program s name is EQTools and will be called this way from now on For further information about installing the program and connecting EPSILONS to the PC please refer to manual of EPSILONS C3 Connect the programmer to connector CN7 of GMM TST 2 C4 Insert module in socket 71 or Z2 of GMM TST 2 using the interface and the instructions described at points A2 and A3 then turn on power supply of GMM TST 2 as described in the manual of GMM TST 2 C5 To use Equinox EPSILONS connected to the PC instead of stand alone it is required to open a project file extension EDS This can be done creating a new one from stat screen of EQTools using specific menus and buttons or loading and existing project file For
32. ISP PRO End in programming T 312 161 4 eis ATmegal03 NO POLL 301 ATmega103L ATmegal03L NO POLL 304 128 16 305 1 29 8 Device Code megal 28L Bxx Flash Size fi 31072 0520000 EEPROM Size Fuses PC Fuse State TaraetFuse State Description CKSELO 1 UNPROGRAMMED Clock Select 0 CKSEL1 1 UNPROGRAMMED Clock Select 1 CKSEL2 1 UNPROGRAMMED Clock Select 2 CKSEL3 1 UNPROGRAMMED Clock Select 3 SUTO 1 UNPROGRAMMED Oscillator Select Start Up Time 0 SUT1 1 UNPROGRAMMED Ig Oscillator Select Start Up Time 1 tst 1 T a Mabe obese FiGunE B 7 PROJECT CONFIGURATION USING EQTOOLS JD JP OG UA ADD DNI SJ NY Gr AUEMUBIL AVIR JISE D1 Control program of AVR ISP is AVR STUDIO version 4 or greater Latest version can be downloaded from Atmel website www atmel com You may download it and install it following the instructions on screen D2 Configure AVR ISP to use the 10 ways flat cable and connect it to connector CN7 of GMM TST 2 connect AVR ISP to PC serial port please refer to instructions at points A2 and configure GMM TST 2 to program through AVR ISP and supply it please refer to GMM TST 2 manual D3 Run AVR STUDIO AVR ISP control program can be run by pressing the button with AVR chip as icon D4 Select as CPU 12
33. LATIVE HUMIDITY 13 REVISION NUMBER 3 RISC 6 RS 232 6 9 12 16 18 20 RS 232 PROTECTION 13 RS422 6 9 RS 485 6 9 RTC 6 8 9 10 15 16 37 S SCL 37 SDA 37 SERIAL LINES 6 SIZE 13 SLAVE ADDRESS 37 SPI 8 12 20 SRAM 8 9 10 12 16 37 T TEMPERATURE RANGE 13 TIMER COUNTER 10 12 TTL 6 9 12 15 16 18 20 U UEP 49 B 1 B 4 USART 15 USARTO 9 18 26 USARTI 9 18 WATCH DOG 10 12 WEIGHT 13 128 Rel 5 00 Page D 3 iuuvetiaouo Page D 4 GMM 128 Rel 5 00
34. a 4 ways dip switch that define some configurations of the card In the following figures is reported their list their position and their functions in all the available connection modes The asterisk denotes the default connection or on the other hand the connection set up at the end of testing phase that is the configuration the user receives To recognize the configuration elements location please refer to figure 12 For further information about serial communication lines please refer to paragraph SERIAL COMMUNICATION SELECTION It connects RXD1 INT2 PD 2 signal on to RS232 serial driver Used in conjunction with DSW2 3 It does not connect RXD1 INT2 PD 2 signal on to RS232 serial driver thus allowing the direct connection to microcontroller Used in conjunction with DSW2 3 It connects TXDI INT3 PD 3 signal on to RS232 serial driver Used in conjunction with DSW2 4 It does not connect TXDI INT3 PD 3 signal on CNI to RS232 serial driver thus allowing the direct connection to microcontroller Used in conjunction with DSW2 4 It connects RXDI INT2 PD 2 signal on CN1 directly to microcontroller with no use of RS232 serial driver Used in conjunction with DSW2 1 It does not connect RXD1 INT2 PD 2 signal on to microcontroller thus allowing the use of RS232 serial driver Used in conjunction with DSW2 1 It connects TXD1 INT3 PD 3 signal on directly to microcontroller w
35. at TTL or RS 232 level thanks to some on board dip switches configuration so when the card must be connected in a network or at long distance or with other systems that use different electric protocol the user must provide external drivers RS 232 RS 422 RS 485 Current loop etc Please remember that on CN1 connector more than standard receive and transmit signals are available also other I O signals that can be driven by software these signals can be used to define the RS 485 line direction to enable the RS 422 transmit drive or to generate an RS 232 handshake For example it can be used the MSI 01 module that converts a TTL serial line in any other electric standards in a pratical and inexpensive way Please read SERIAL COMMUNICATION SELECTION paragraph of this manual or contact directly grifo technician for further explanation or any other necessary information CLOCK On GMM AM128 module there are two separate and indipendent circuits based on crystals that generate the clock signals for the microcontroller and the RTC module The first generates a 7 3728 MHz while the second generates a 32768 Hz The choice of using two circuits and two separated clock sources has the advantage to reduce cost in the larger number of low middle speed applications and to afford the high speed applications when necessary About speed and performances please remind that GMM AM128 has a RISC microcontroller on board capable to execute in average one in
36. d at the end of the manual to find information in a faster and more easy way GMM AMI28 Rel 5 00 Page 2 CARD VERSION This handbook make reference to card GMM AM128 with printed circuit version 120305 The validity of the information contained in this manual is subordinated to the printed circuit revision number and so the user must always check the correspondance The printed circuit revision number 15 always printed in several positions of the circuit and following figure shows the easiest to access grifo wave itary PRINTED CIRCUIT REVISION NUMBER FIGURE 1 LOCATION OF REVISION NUMBER Page 3 128 Rel 5 00 grifo ITALIAN TECHNOLOGY ENE JON COJ RMI AM128 grifo Mini Module with 128 is a module based on microcontroller Atmel ATmegal128L a powerful and complete system on chip provided with CPU integrated memory both for data and code a watch dog many digital I O lines 4 multifunction timers counters with capture and compare capability two asynchronous serial lines one BUS synchronous seria linel 2comparators for analog signals one 8 channels A D converter etc In module s very small area are already mounted the components that exploit microcontrollers s performance and that allow each functionality mode like a reset generator circuitery Possibl
37. d by grifo like GMB HR168 are provided also with a connector dedicated to BUS to easy the field connections Please remark that RTC with backed SRAM permanently takes the slave address 0 so user applications cannot use it For further information please refer to component data sheet or appendix A of this manual SPI INTERFACE Mini Module grifo GMM AM128 is provided with a SPI serial inteface featured through a specific hardware section of the microcontroller Signals SCK SDI and SDO of SPI interface are available respectively on pins 14 15 and 18 of connector All interface parameters are managed through microcontroller inernal registers For further information please refer to component data sheet or appendix A of this manual GMM 128 Rel 5 00 Page 8 DIP SWITCH GMM AM128 Mini Module is provided with two dip switches ab eight ways and a four ways whose purpose is to set up several electric parameters of module itself and the card operating mode In fact DS W1 allows to decide whether serial interface USARTO must be buffered as RS 232 or TTL in this latter case allowing to use and external buffer like RS 422 RS 485 or current loop drivers Four ways DSW2 has the same purpose but for USARTI DSW1 also allows to connect or not the back up battery of RTC SRAM module In addition status of some swithces can be acquired by software through reading specific microcontroller
38. description of which devices can geneate interrupts and their modalities for further information about interrputs management please refer to the microprocessor data sheet or APPENDIX A of this manual Pin 12 of CN1 gt Generates an interrupt INTO of microprocessor Pin 13 of CN1 gt Generates an interrupt INT1 of microprocessor Pin 40 of gt Generates an interrupt INT2 of microprocessor Pin 39 of gt Generates an interrupt INT3 of microprocessor Pin 25 of CN1 gt Generates an interrupt INT4 of microprocessor Pin 24 of gt Generates an interrupt INT5 of microprocessor Pin 22 of gt Generates an interrupt INT6 of microprocessor CPU peripherals gt Generate an internal interrupt In detail the possible microcontroller interrupt sources are Timer Counter OCM USARTO USARTI analog comparators A D converter PC BUS SPI EEPROM An interrupt management section integrated in microcontroller allows to enable disable and mask 50 the user has the possibility to respond promptly and efficently to any external event The microcontroller has an interrupt section that let the user manage the 35 interrupt sources So theapplication program has always the possibility to react promptly to every event JTAG INTERFACE The microcontroller on board of AM128 is provided with JT AG interface Signals of this interface TDI TDO TMS and TCK are available respectively on pins from 26 t
39. dule on board Flash and EEPROM can be considered and alternative to the one explained in section B of chapater How to start of manual Content of other sections in above mentioned chapter are still valid anyway ISP programming allows also to change the value of configuration bits and security fuses in addition to the programming of whole Flash and EEPROM content The Boot Loader does not allow to program the whole content of Flash because the Boot Loader itself resides in a Flash area which becomes protected Also configuration bits that enable the Boot Loader itself and security fuses are out of the range programmable by the Boot Loader and must be programmed in ISP mode If you think it is more convenient to use a Boot Loader on RS 232 serial line refer to above mentioned chapter For more information on how to connect a PC serial port to GMM TST 2 or even to Mini Module as stand alone to test the program refer to section A of chapter How to start of manual For further information on how to develop and debug the firmware refer to section C of chapter How to start of manual Programmers that can be used with GMM TST 2 are grifo MP AVR 51 grifo UEP 49 Equinox EPSILON5 ATMEL AVR ISP COMIMION IPIROGIRAMIMUBIKS 1 Programming of Mini Module GMM TST 2 board is performed through specific connector of the card and if required an interface adapter betwee
40. e and for the enviroment impersonating an elementary diagnostic of breakdowns and of malfunction conditions by performing simple functional verify operations in the height respect of the actual safety and health norms The informations for the installation the assemblage the dismantlement the handling the adjustment the reparation and the contingent accessories devices etc installation are destined and then executable always and in exclusive way from specialized warned and educated personnel or directly from the TECHNICAL AUTHORIZED ASSISTANCE in the height respect of the manufacturer recommendations and the actual safety and health norms The devices can t be used outside a box The user must always insert the cards in a container that rispect the actual safety normative The protection of this container is not threshold to the only atmospheric agents but specially to mechanic electric magnetic etc ones To be on good terms with the products is necessary guarantee legibility and conservation of the manual also for future references In case of deterioration or more easily for technical updates consult the AUTHORIZED TECHNICAL ASSISTANCE directly GMM AMI28 Rel 5 00 Pare 1 i To prevent problems during card utilization itis a good practice to read carefully all the informations of this manual After this reading the user can use the general index and the alphabetical index respectly at the begining an
41. e applications of GMM AM128 Mini Modules are several For example smart Intelligent Nodes with local functionalities as PID algorithms for controlling temperatures motors valves etc or decentralized systems as robots automation of production line machines big factory automations Moreover Teleacquisition and Telecontrol on medium and low distances the Home Automations lights turning ON OFF heating and cooling systems control supervision of electric devices security and acces control systems car automations lights turning ON OFF heating and cooling systems control supervision services for drivers anti teft and acces control systems functionality checks It is really important the Didactics use in fact GMM AM128 offers a very low cost system suitable to learn a RISC microcontroller with AVR core and to develop the typical start applications for the students For this purpose it is likewise interesting the GMM TST 2 support card that solves the problems for power supply for serial connection to development PC and for module lines connection In the same support card there 15 a matrix keyboard and a LCD display that allow test and experience with low cost user interface solutions GMM 128 is delivered with a Boot Loader preinstalled This program allows to reprogram Flash and EEPROM through a simple RS 232 serial port for example PC COM port On board microcontroller electronics also supports the well known JTAG interface that
42. ent signals of the Mini Module as the power supply the lines the synchronous and asynchronous communication lines the on board peripheral devices signals the operating mode selection lines etc Some pins of this connector have multiple purposes in fact they can be multiplexed by programming some software registers with several CPU internal devices and the following figure lists all these possible functionalities So the signals available on CN1 have different types as described in the following CONNECTOR SIGNALS INTERFACEMENT paragraph and they follow grifo Mini Module standard pin out Page 14 GMM AMI28 Rel 5 00 ITALIAN TECHNOLOGY arito baso u To avoid problems in pin counting and numbers the figure 7 shows the signals directly on the top view of the GMM AM128 moreover the serigraph reports the pins number on the four corner of the card both on bottom solder and top component side PC0 A8 1 RXDI INT2 PD2 9 2 TXD1 INT3 PD3 PC2 A10 3 A15 PC3 All 4 6 14 PD6 T1 5 PC5 A13 6 4 12 AREF 7 POW 8 PFO ADCO RXDO PDI PEO 9 PB7 OC2 TXDO PDO PE1 10 PB6 OCIB INTRTC PD4 11 5 PDO INTO SCL 12 PDI INTI SDA 13 PB3 MISO 14 PB2 MOSI 15 2 16 17 2 PFS ADCS TMS PF6 ADC6 PF7 ADC7 TDI PE4 OC3B INT4 PES
43. essesesosseseseecesesosceseseecesesorcesesercecesoroeseseroeceesororseseroreesosorsesesoeceseseee 10 TIMER COUNTER AND PWM esesessesorsesesececcesoroesesescecesoroesesecoecesorcesesecoeeesororsesecoeeesoreesesee 10 WATCH DOG 10 REAL TIME CLOCK 585 10 558 12 GENERAL BEA 12 5555 55 13 55 13 INSTALLATION pet 14 VISUAL SIGNALATIONS PR I PREMIER VERA TUE 14 CONNECTIONS DS Ee Ya HP R EE io EE resnice isid 14 EXTERNAL POWER SUPPLY CONNECTOR 0 14 MINI MODULE CONFIGURATION RES PE 16 SERIAL COMMUNICATION 4 2 18 CONNECTOR SIGNALS INTERFA 21 2 11 11 20 555 5 20 55 21 21 SUPPORT
44. he D7 D0 and 0 7 indications denote the eight bits of the combination involved in I O operations ACTIVITY LEDS The GMM AM128 allows software management of activity or status LEDs LD1 and LD2 through an I O line of the microcontroller with the following corrispondence 0 0 gt 1 gt LD1 OFF 1 0 gt 102 1 1 gt 1 2 OFF It is important to remind that PAO and are not connected to The signals PAO and are set high after reset or power on so during these phases LEDs are OFF or disabled DIP SWITCH GMM AM128 allows to read by software the status of two dip switches DSW1 7 8 through two signals of microcontroller DSW1 7 ON gt PA2is0 DSW1 7OFF gt PA2is1 DSWI1 8ON gt PA3isO DSW1 8 OFF gt PA3is1 It is important to remind that PA2 and PA3 are not connected to CN1 Page 36 GMM 128 Rel 5 00 Mini Module GMM 128 is provided with a complete Real Time Clock capable to manage hours minutes seconds day month year and weekday in complete autonomy This module can be backed up through the back up circuitery to warrant data validity in any working condition and is completely managed by software RTC section can also generate periodic interrupts at software programmable time intervals to switch the CPU out of normal operations or to awaken it from low consumption
45. ion PWM signals generated by Timer Counter and OCM sections are TTL type so they must be buffered to interface the power circuitery Typical interfaces can be current driver if PWM signal is still required or an intergrator circuit if analog voltage is required Also BUS and SPI signals are at TTL level as defined by the same standards for completeness it is remarked that in a network with several devices and rather long it is better to study the connection lay out and to set properly the output stage the best operational modes and the programmable bit rate all these conditions allow communications in any condition On Mini Module signals SDA and SCL are pulled up to Vdc POW through 4 7 resistors POWER SUPPLY Mini Module can be supplied by a tension in the range 3 5 Vdc called Vdc POW in this manual GMM AM128 design adopted all the circuital and componentistic options that reduce sensibility to noise and reduce consumption including the possibility to switch the microcontroller to low consumption modes In optimal situation the minimun consumption in power down mode is lower tham 1 mA so it can for example increase battery life in case of portable applications For further information please refer to paragraph ELECTRIC FEATURES Page 20 GMM 128 Rel 5 00 INTERRUPTS A remarkable feature of GMM AM128 card is the powerful interrupt management Here follows a short
46. ith no use of RS232 serial driver Used in conjunction with DSW2 2 It does not connect TXDI INT3 PD 3 signal on CNI to microcontroller thus allowing the use of RS232 serial driver Used in conjunction with DSW2 2 8 DSW2 4 ways Dir switcH TABLE Page 16 GMM 128 Rel 5 00 It connects serial receive signal RXDO PDI PE O of the microcontroller to RS232 driver Used in conjunction with DSW1 3 5 It does not connect the serial receive signal of the microcontroller to RS232 driver thus allowing the direct connection to RXDO PE O signal on Used in conjunction with DSW1 3 5 It connects TXDO PE 1 signal to RS232 serial driver Used in conjunction with DSW1 4 It does not connect TXDO PE 1 signal to RS232 serial driver thus allowing the direct connection to microcontroller Used in conjunction with DSW1 4 It connects RXDO PDI PE O signal on to RS232 serial driver Used in conjunction with DSW1 1 5 It does not connect RXDO PDI PE 0 su signal to RS232 serial driver thus allowing the direct connection to microcontroller Used in conjunction with DSW1 1 5 It connects TXDO PDO PE 1 signal on 1 directly to microcontroller with no use of RS232 serial driver Used in conjunction with DSW1 2 It does not connect TXDO PE 1 signal on to microcontroller thus allo
47. lock bits B 10 AVR ISP CONFIGURATION USING AVR STUDIO GMM 128 Rel 5 00 Page B 10 APPENDIX TST2 ELECTRIC DIAGRAM In this appendix are reported the electric diagram of GMM TST2 support card that shows the connection modes for Mini Module signals Detailed information on the board are available in the relative technical manual and the user can use them freely for example to develop his own card that use the AM128 as a macro component Matrix LCD 20x2 Keyboard 6 21 y d DC POWER JACK cam Title TST 2 D S 111003 Bae 174 112002 Note grifoe 1 GMM TST 2 ELECTRIC DIAGRAM 1 OF 3 GMM 128 Rel 5 00 4 ITALIAN TECHNOLOGY grifo CO C0 F 9090 C OF N CO LO CO CO CO D S 111003 Date 17 11 2002 GMM TST 2 5 E GMM TST 2 ELECTRIC DIAGRAM 2 or 3 FIGURE B 2 GMM 128 Rel 5 00 2 OOOOOOOOO 0 e Date 17 11 2002 Ficure B 3 GMM TST 2 ELECTRIC DIAGRAM 3 or 3 GMM 128 Rel 5 00 LLL 3 iuuvetiaouo Page
48. m CN1 GMM AM128 11 EXAMPLE OF TTL SERIAL CONNECTION GMM 128 Rel 5 00 Page 19 CONNECTOR SIGNALS INTERFACEMENT To prevent possible connecting problems between GMM AM128 and the external systems the user has to read carefully the previous paragraph information and he must follow these instrunctions For RS 232 signals the user must follow the standard specifications of this protocol defined by CCITT normative All TTL signals must follow the rules of this electric standard The connected digital signals must be always referred to card ground GND and then the OV level corresponds to logic state 0 while the Vdc POW level corrisponds to logic state 1 The connection of these lines to devices of the controlled system encoders switches proximity electric valves power relays etc must be performed through proper power interfaces it is preferible to adopt opto coupled interfaces that ensure an electric insulation between Mini Module electronic and external noisy typically generated by power electronic The inputs for analog comparators must be connected to signals generators featuring a low impedance in the range from 0 to Vdc POW to assure greater stability and precision The inputs for A D converter must be connected to signals generators featuring a low impedance in the range from 0 to Vdc POW to assure greater stability and precis
49. mable physical protocol Baud Rate up to 115200 Baud 8 or 9 data bits 1 or 2 stop bit RS 232 buffered or at TTL level JTAG interface for in circuit remote debugging BUS controller completely software configurable SPI interface programmable for syncronous high speed communications reset circuitery one Real Time Clock for long and accurate timing active even in low power modes capable to manage date and time and to generate periodic interrupts 240 bytes of SRAM for configuration parameters RTC and SRAM backed with on board Lithium battery Watch Dog section that protect the controlled system in any operating condition 2 status LED tmanaged by software through one digital I O line two Dip switches for operating modes selection of the Mini Module internal FLASH and EEPROM can be managed through ISP In System Programming Boot Loader preinstalled that allows to program microcontroller FLASH and EEPROM through a serial port wide range of Software Development tools used to develop the user application program as Assembler C compilers ICC AVR DDS Micro C BASIC Compilers BASCOM AVR Integrated Develoment Environment AVR Studio etc long list of Demo Programs and use examples supplied under source form duly remarked and executable form for the available development tools Via dell Artigiano 8 6 J 40016 San Giorgio di Piano g rifo Bologna ITALY ITALIAN TECHNOLOGY E mail grifo grifo it http www grifo
50. n the programmer and the connector itself The two grifo programmers that can be interfaced with GMM TST 2 that is UEP 49 and MP A VR 51 use a specific interface for each one of them whose diagram is shown in figures B 1 and B 2 On the left side of the figures there is the list of GMM TST 2 CN7 connector s ways that must be connected to corresponding pins on programmer s connector indicated by the arrow Programmers AVR ISP and Equinox EPSILONS do not require any specific interface Page 1 128 Rel 5 00 grifo ITALIAN TECHNOLOGY A2 Interfacement between Mini Module GMM AM 128 and on of the 40 ways socket connectors of GMM TST 2 is performed through a specific ISP programming socket To perform ISP programming of GMM AM128 on socket Z1 or Z2 of aGMM TST 2 ISP programming socket must be installed between GMM TST 2 and Mini Module ISP programming socket must connect pins 14 and 15 of GMM TST 2 respectively to pins 9 and 10 of Mini Module and isolate pins 9 and 10 of GMM TST 2 as indicated in figure B 4 A3 GMM TST 2 jumpers configuration and Mini Module Dip Switch position is the one reported on page 24 of manual and repeated here for comfort Configuration GMM AMI28 DSWI 1 DSW1 2 DSW1 3 DSW1 4 DSW1 5 DSW1 6 DSW1 7 DSW1 8 DSW2 1 DSW2 2 DSW2 3 DSW2 4 ON ON ON OFF OFF OFF OFF OFF OFF OFF OFF OFF Configuration
51. ne or as an external tool of an IDE Option for command line are com2 com9 Number of serial port used for communication Serial ports from 1 to COMO are supported lt FLASHProgram gt Indicates the complete pathname of the HEX file to write in microcontroller FLASH memory lt EEPROMProgram gt Indicates complete pathname of HEX file to write in microcontroller EEPROM memory For example AVRBootloaderGrifo exe com2 f C Projects MotorControl Main hex opens a connection on serial port to the Boot Loader and sends the file Main hex located in folder C Projects MotorControl To integrate AVRBootloaderGrifo exe in a IDE for example the one of BASCOM AVR described at point C the user must 1 Open the window of menu Options Programmer 2 In the text box Programmer choose External Programmer 3 Click the tab Other 4 In text box Program insert the complete pathname of AVRBootloaderGrifo exe pressing Browse 5 In text box Parameters insert command line parameter for AVRBootloaderGrifo Please remaind that the string file in the above mentioned text box is automatically replaces by BASCOM AVR with the name of hex file just generated Please refer to BASCOM AVR documentation for further information Page 28 GMM 128 Rel 5 00 B1 Find CD grifo and save to a comfortable position on your hard drive program d_am128u hex It can be f
52. nfigured as indicated in figure B 5 that is the configuration required to make the demo program am128u hex work Quartz and start up time options must be configured like in the figure Other settings are not important Of course the user can perform any other configuration required by his her application B7 Configure the programmer using the menu Device options Operating options Programmer must be configured as indicated in figure B 6 B8 Start the programming operation pressing the Program button B9 During the programming operation a progress bar advances until the operation is completed Eventual errors are promptly indicated Device operation options Insertion test Device ID check Command execution Erase before programming Enable Blank check before programming Disable Verify after reading Enable gt Verify Once Verify options Not supported gt Target system parameters Oscillator frequency Hz 7372800 Supply voltage mv 5000 s Disable supply voltage test Delay after reset active sums Inactive level of all ISP signals 5 signals at defined level after operation Programming parameters Flash EEPROM Device options Lock amp Fuses cot 1 B 5 PROGRAMMER CONFIGURATION USING PG4UW Clock option and start up time CKSEL 1111 SUT 11 Ext crystal resonator osc 3 0 MHz 8 M
53. ntroller internal registers Each serial interface called USARTO and USARTI has its own group of registers for configuration and can work in total independence respect to the other interface Electric protocol is selected by hardware and requires the dip switches to be configured correctly as described in previous tables the user can set any configuration in autonomy following the below reported information SERIAL LINE USARTO CONFIGURED AS RS 232 default configuration DSWI1 ON DSW1 2 ON DSW1 3 ON DSW1 4 OFF 05 1 5 OFF SERIAL LINE USARTO CONFIGURED AS TTL DSW1 1 OFF DSW1 2 OFF DSW1 3 OFF DSW1 4 ON DSW1 5 ON SERIAL LINE USART1 CONFIGURED AS RS 232 DSW2 1 ON DSW2 2 ON DSW2 3 OFF DSW2 4 OFF SERIAL LINE USART1 CONFIGURED AS RS 232 DSW2 1 OFF DSW2 2 OFF DSW2 3 ON DSW2 4 ON Figures 10 and 11 show how to connect a generic external system to both serial lines of GMM AM128 Page 18 GMM 128 Rel 5 00 9 RXDO set as 5232 10 TXD0 USARTO set as 5232 External System CN1 GMM AM128 40 RXD1 USARTI set as RS232 39 TXD1 USARTI set as RS232 External System CN1 GMM AM128 10 EXAMPLE RS 232 SERIAL CONNECTION 9 RXDO USARTO set as TTL 10 TXD0 USARTO set as TTL External System e z lt Z 40 RXD1 USARTI set as TTL 39 TXD1 USARTI set as TTL External Syste
54. nvironment selected so here follow the details Bascom AYR kucompulation using BASCOM AWR Page 30 C3 Bascom AVR a In BASCOM IDE load the program source with menu File Open Select file to open Cerca in E Gmmam128 a d_am128u bas Nome file d am128u bas Tipo BAS COM AVR BAS Reson Annulla FIGURE 18 LOADING A SOURCE FILE WITH BASCOM AVR 6 GMM AMI28 Rel 5 00 Bascom AVR b From menu Options Compiler Chip the value 64 for HW Stack 32 for Soft Stack 64 for Framesize as suggesterd also in the source code and press OK Such values must be considered minimal and must be increased if required BASCOM AVHR Options Communication Environment Simulator Programmer Manitor Printer Chip Output Communication 12C SPI Chip 21 128 0 2 SRAM 409 Hw Stack 64 EEPROM 4096 Soft Stack 32 XRAM waitstate Framesize 54 External Access Enable x Cancel FIGURE 19 CONFIGURATION OF COMPILER BASCOM AVR C3 Bascom AVR c Compile the source file by pressing the button with the icon of an integrated circuit lad BASCOM AVR IDE 18 x File Edit Program Tools Options Window Help FIGURE 20 COMPILATION WITH BASCOM AVR Page 31 128 Rel 5 00
55. o 29 of CNI Configuration registers of microcontroller must be carefully programmed to enable or disable JTAG functions Qm 128 120505 20 12 LEDs DIP SWITCHED ETC LOCATION GMM 128 Rel 5 00 Page 21 SUPPORT CARDS GMM AM128 Mini Module can be used as a macro components for some support cards either developed by the user or directly chosen from the grifo boards In the following paragraphs are reported the suggested configuration of the most interesting support cards USE WITH GMB HR168 MODULE Amongst grifo cards GMB HR168 module is the one designed specifically to provide 16 optocoupled inputs relay outputs and in addition to the comfortable cabling by quick release connecters and the possibility to install on omega rails The complete description of the product is available in the relative data sheet and technical manual while in this paragraph are listed the advantages obtained by using this pair of cards GMB 168 allows easily to to supply the Mini Module through on board power supply to have sixteen TTL I O signals of microprocessor ports optocoupled NPN and PNP at the same time and visualized through LEDs green for the first byte and yellow for the second byte I O signals are multiplexed with timer inputs so developed functions like counters are immediatly available to have eight TTL I O signals of microproce
56. ompare capture etc Up to 36 digital I O lines available on connector Some of these lines have multiple functions Two hardware serial communication line with programmable physical protocol Baud Rate up to 115200 Baud 8 or 9 data bits 1 or 2 stop bit RS 232 buffered or at TTL level JTAG interface for in circuit remote debuggin BUS controller completely software configurable SPI interface programmable for syncronous high speed communications Reset circuitery One Real Time Clock for long and accurate timing active even in low power modes capable to manage date and time and to generate periodic interrupts 240 bytes of SRAM for configuration parameters RTC and SRAM backed with on board Lithium battery Watch Dog section that protect the controlled system in any operating condition 2 status LED tmanaged by software through one digital I O line Two Dip switches for operating modes selection of the Mini Module Internal FLASH and EEPROM can be managed through ISP In System Programming Boot Loader preinstalled that allows to program microcontroller FLASH and EEPROM through a serial port Wide range of software development tools used to develop the user application program as Assembler C compilers ICC AVR DDS Micro C BASIC compilers BASCOM AVR Integrated Develoment Environment AVR Studio etc Long list of demo programs and use examples supplied under source form duly rema
57. ound starting from main page following the path English Examples tables Mini Modules and Mini Block examples GMM AM128 please refer to figure 16 You may want to remove the read only attribute B2 Connect the Mini Module to PC serial port makin the connection described at point A Close the terminal emulator B3 Indicate in combo box Com Port the serial port connected at the previous point B4 Check the check box Application Code and press the button Browse on the right then select the file previously saved at point B1 B5 Uncheck the check box EEPROM Code if checked B6 Press the button Synch to Bootloader or the key combination Alt S on the PC then reset the Mini Module or turn off and then on its supply The file is dowloaded into the Mini Module If this does not happen and the program should indicate a No repsonse from target bootloader try to repeat the operation decreasing the time between pressure of button on the PC and reset of Mini Module If the problem persists check cable and connection B7 When operation is completed the program reports its status In case of problems check cable and connection B8 Start the terminal emulator configured like in point A2 and verify that the application program just downloaded is executed in internal Flash AVR Bootloader grifo r V 1 1 File Defaults Info e grifo zi ITALIAN TECHNOLOGY zs m m Files Application Code C ProgrammiX MCS
58. ratesignals of variable duty cycle and frequency set by software with eight or sixteen bits of resolution Typical applications of these signals are motor velocity control in fact several motor control cards are provided with compatible inputs Another application is analog signals generation by simply adding an integrator WATCH DOG Microcontroller ATmegal28L features a hardware programmable watch dog capable to reset the CPU if it is enabled and the application program does not retrigger it in the activation time This latter time can be programmed between 16 msec and 2 seconds REAL TIME CLOCK Mini Module features an on board Real Time Clock in PC BUS with slave address A0 capable to manage hours minutes seconds year month day and weekday It also features 240 bytes of SRAM This component can be completely managed by software and is backed through a back up battery that if enabled can warrant data validity in any operating condition GMM AMI28 Rel 5 00 Page 10 Qrifo nitay FIGURE 4 COMPONENTS MAP COMPONENTS SIDE grifo 9 a gmm am 128 of 120305 MADE IN ITALY FIGURE 5 COMPONENTS MAP SOLDER SIDE 128 Rel 5 00 Page 11 TECHNICAL FEATU GENERAL FEATURES Resources Memories CPU Clock frequency Counter maximum frequency Power on time Watch dog inte
59. rked and executable form for the available development tools Here follows a description of the board s functional blocks with an indication of the operations performed by each one To easily locate such section on verify their connections please refer to figure 2 Page 5 128 Rel 5 00 DIGITAL LINES The Mini Module GMM AM128 is provided with 36 TTL digital I O lines of the microprocessor Atmel ATmegal28L that are all the signals of Ports PB PC PD PE and MSNibble of PF These lines are connected directly to 40 pins connectors with standard grifo Mini Module pin out allowing to be connected direclty to several interface cards By software it is possible to define and acquire the function and the status of these lines and also to match them to peripheral devices like Timer Counter Interrupt BUS SPI etc simply programming some CPU internal registers For further information please refer to paragraph CONNECTIONS and PERIPHERAL DEVICES SOFTWARE DESCRIPTION SERIAL COMMUNICATION On GMM AM128 there is always availability of two hardware serial lines that are completely software configurable for physical protocol baud rate stop bits number lenght of character etc by simply programming some microprocessor registers as described in the manufacturer documentation or in the appendix of this manual The serial lines are connected to CN1 connector
60. rvent time A D converter resolution A D conversion time A D maximum error Page 12 grifo ITALIAN TECHNOLOGY 36 TTL digital I O lines 2 analog inputs on comparator 8 channels A D converter 4 Timer Counter for compare capture PWM 1 Watch dog section 1 SPI interface 1 BUS interface 1 Real Time Clock section 35 interrupt sources 2 hardware serial lines RS 232 or TTL 1 Dip switch 8 ways 1 Dip switch 4 ways 2 status LEDs 128 KBytes FLASH EPROM for code 4 KBytes SRAM for data 4 KBytes EEPROM for data 240 Bytes external SRAM for data on BUS Atmel ATmegal28L 7 3728 MHz Clock I O frequency from 36 msec to 92 msec settable through configuration bits programmable from about 16 msec up to 2 sec 10 bits min 116 usec for 10 bits 2 points GMM 128 Rel 5 00 PHYSICAL FEATURES Size W x Hx D 62 x 23 15 mm Weight 14 5 2 Connectors 40 pins male socket DIL 100 mils pitch 600 mils width Temperature range 0 50 C Relative humidity 20 90 without condense ELECTRIC FEATURES Power supply voltage Vdc POW 43 0 5 0 Current consumption minimum about 0 3 mA normal 23 mA maximum 31 mA Back up battery voltage 3 0 Vde Back up battery consumption 2 9 uA Impedance analog signals generators lt 10 RS 232 protection 15 BUS pull up resistor 4 7kQ Brown out threshold 2 7 or 3 7 with hysteresi
61. s Page 13 128 Rel 5 00 grifo _ ITALIAN TECHNOLOGY INSTALLATION In this chapter there are the information for a right installation and correct use of the GMM AM128 card In detail there are the locations and functions of each connector of the user settable dip switches LEDs and so on VISUAL SIGNALATIONS GMM AM128 features the LEDs described in the following table FIGuRE 6 LEDs TABLE The main function of LEDs is to inform the user about card status with a simple visual indication and in addition to this LEDs make easier the debug and test operations of the complete system To recognize the LEDs location on the card please refer to figure 12 while for further information please refer to paragraph ACTIVITY LEDS CONNECTIONS The GMM AM128 module has connector that can be linkeded to other devices or directly to the field according to system requirements In this paragraph there are connector pin out a short signals description including the signals direction and connectors location see figure 12 that simplify and speed the installation phase Some additional figures shows the pins functionalities and some of the most frequently used connections EXTERNAL POWER SUPPLY CONNECTOR is a 40 pins male dual in line socket connector with 100 mils pitch and 600 mils width On are available all interfacem
62. signals PA2 and PA3 For further information please see also the paragraph DIP SWITCH FIGURE 3 AMI28 128 Rel 5 00 Page 9 A D CONVERTERS Mini Module GMM AM128 is provided with an eight channels A D converter multiplexed on signals of port PF with 10 bit of resolution Reference voltage can be fetched externally through a pin or internal reference generator can be used Range of connectable signals is from 0 to 5 Vdc analog signal generator must have a low impedance Conversion end can be used to trigger an interrupt if enabled Peripheral management is performed by manipulating specific microcontroller internal registers For further information please refer to Appendix A or to the comments in high level languages examples ANALOG COMPARATOR Microcontroller ATmegal28L features an analog comparator that can select as input both an internal reference voltage and several pins pin 16 and 17 of CNI but also A D converter inputs through an internal multiplexer For further information please refer to application notes on Atmel web site TIMER COUNTER AND PWM Microcontroller is provided with four Timer Counter two featuring eight bits two featuring sixteen bits capable to count clock pulses through a programmable prescaler level transictions on specific pins and to generate interrupts They can also be used in PWM mode to gene
63. ssor ports on bufferd relays driving and visualized through red LEDs to connect on PC BUS and 5 Vdc power supply on a dedicated connector to connect immediatly communication serial line through a comfortable 8 pins standard AMP MOD II 8 pins connector to buffer easily TTL UARTO signals from microprocessor in RS 422 RS 485 or current loop to connect PWM signal through a comfortable standard AMP connector Page 22 GMM 128 Rel 5 00 arito baso E ITALIAN TECHNOLOGY 8 7 6 5 4 312 1 1817 6 514 31 2 1 M B OPTO INPUTS 2 ITALIAN TECHNOLOGY RELAY OUTPUTs 2 C ct 82 81 A2 A Dp e 2 e gt gt 4 FIGURE 13 IMAGE MODULE GMB HR 168 128 128 Rel 5 00 Page 23 USE WITH TST2 MODULE Amongst grifo cards GMM TST2 is the one designed specifically to provide a first entry point to 28 and 40 pins Mini Modules with suitable evaluation purposes The complete description of the product is available in the relative data sheet and technical manual is electric diagram is in appendix C of this manual In this paragraph are listed the advantages obtained by using this pair of cards The GMM 2 allows easily to supply the Mini Module through on board AC DC power supply connect all
64. struction per clock cycle So considering the frequency of quartz installed execution speed may be greater than 7 MIPS Page 6 GMM 128 Rel 5 00 Vdc POW 3 5 Vde BROWN OUT 2 signals 22 gt lt lt 2 Pa lt gt Q 2 signals 15 Lines o H gnals 2 Lines TTL serial line E RS 232 DRIVER c protection 15 kV USARTI 2 signals 2 Lines TTL serial line ES RS 232 DRIVER Lines protection 15 2 signals PWM TIMER COUNTER Internal MUX 40 pins socket CN1 gt Q lt m un x lt un E o lt T lt E gt LITHIUM BATTERY 128KB KB 4KB 4 EEPROM SRA CPU AT MEGA 128L FIGURE 2 BLOCKS DIAGRAM GMM 128 Rel 5 00 Page 7 MEMORY DEVICES The card is provided of 136 25K of memory divided with a maximum of 128K Bytes FLASH EPROM 4KBytes Bytes of internal SRAM 4KBytes EEPROM and 240 Bytes in RTC module reachable only through PC BUS The memory configuration must be chosen considering the application to realize or the specific requirements of the user Thanks to on board EEPROM and SRAM of RTC when the back up battery is connected there is the possibility to keep data also when power supply is failed In this way the card is always able to maintain parameters
65. the I O signals of microcontroller ports on comfortable connectors compatible with ABACO standard pin connect immediately USARTO serial line through a comfortable 9 pins D type connector set and show the status of 2 microcontroller I O lines through push button and LEDs with different colours generate audible feed back thanks to active buzzer mounted on board develop in a short time user interface applications by using the on board matrix keyboard with 4x4 16 keys and the backlite LCD display with 2 rows of 20 characters develop easily a support card that satisfy customer requirements starting from the supplied electric diagrams program FLASH and EEPROM using the Boot Loader and in ISP modality The following configuration is suggested to use the couple GMM TST 2 GMM AM128 in their base version that is RUN mode with serial line buffered in RS 232 GMM AM128 configuration GMM TST 2 configuration DSW1 1 ON JL 2 3 DSW1 2 ON 2 2 3 DSW1 3 ON 3 not connected DSW1 4 OFF J4 not connected DSW1 5 OFF J5 not connected DSW1 6 OFF 6 not connected DSW1 7 OFF J7 not connected DSW1 8 OFF DSW2 1 OFF DSW2 2 OFF DSW2 3 OFF DSW2 4 OFF The serial connection cable with development PC is the CCR 9 9 E or in other words an extension cable provided of D9 Female and D9 Male connectors GMM AM 128 Rel 5 00 Page 24 ITALIAN TECHNOLOGY
66. unication between Mini Module and the PC and to use it to send a file to code memory and or EEPROM memory area of microcontroller Boot Loader does not allow to program configuration bits and security fuses of microcontroller this can be done usigne ISP programming please refer to appendix B of this manual The portion of Flash memory taken by the Boot Loader is 2 KBytes this means that the last block of 1 KWord at the end of the memory is reserved to Boot Loader and is not available for user application any more Boot Loader communicates through PC serial port installing a specific utility that can be downloaded for free from our website www grifo com or can be found in our CD called AVRBootloaderGrifo exe This utility allows to select the serial port to use end to select the files to program memories of Mini Module For some applications use of an ISP programmer may be the only chance Please refer to appendix B for more information about ISP programming Combo box called Com Port allows to select the serial port to use for communication with Mini Module Checking the ckeck box Application Code file whose name is written in the text box on right will be stored in Flash of Mini Module To choose the file press the Browse button Chek box EEPROM Code performs the same operation described above but writes to EEPROM There is also the possibility to use AVRBootloaderGrifo from DOS window commands prompt a command li
67. wing the use of RS232 serial driver Used in conjunction with DSW1 2 It connects RXDO PE O signal on 1 directly to microcontroller with no use of RS232 serial driver Used in conjunction with DSW1 1 3 It does not connect RXDO PDI 0 signal on to microcontroller thus allowing the use of RS232 serial driver Used in conjunction with DSW1 1 3 It connects on board battery to RTC PCF 8583 allowing to keep date time and SRAM content even when power supply is turned off It does not connect on board battery to RTC PCF 8583 so date time and SRAM content are lost when power supply is turned off It connects PA 2 AD2 signal to GND signal This switch can be a user input It does not connect PA 2 AD2 signal to GND signal 2 2 is connected to Vdc POW through a pull up This switch can be a user input It connects PA 3 AD3 signal to GND signal This switch can be a user input It does not connect PA 3 AD3 signal to GND signal PA 3 AD3 is connected to Vdc POW through a pull up This switch can be a user input 9 DSW1 8 ways TABLE 128 Rel 5 00 Page 17 58 uan vetinoro SERIAL COMMUNICATION SELECTION Serial communication lines of AM 128 can be buffered as RS 232 or TTL By software it is possible to define physical communicatin protocol for each line setting some microco

Download Pdf Manuals

image

Related Search

Related Contents

Service Manual - Market Forge Industries    BO644.1SS  Bulletin SNAPEC juillet 2011  user`s manual hydraulic 4 rolls plate bending machine 4r hss 320  Series One Ladder Logic Programmer Kit  AIB 国際検査統合基準 穀物取扱施設 ドラフト (平成 26 年 8 月版)  Avaya 2033 IP Conference Phone - Communication Server 1000 User Guide    Jukebox Multimedia 20, 120 e AV140  

Copyright © All rights reserved.
Failed to retrieve file