Home
Manual of ET-BASE AVR ATmega64-128 r3
Contents
1. PB7 vcc L L GND PORT PB 0 7 ETT CO LTD 0 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 El 8BIT PORT PC 8BIT PORT PD 8BIT PORT PE 8BIT PORT PF ETT CO LTD Pco C L Pct Pc2 kC L PC3 PC4 L L pcs Pce PL L Pc7 vcc C C GND PORT PC O 7 PDO L PDA PD2 W C C PD3 PD4 WL L pps PD6 FLC C PD7 vcc L L GND PORT PD O 7 PEO L PE1 PE2 b C L PE3 PE4 L L PES PE6 P LC PE7 VCC L L GND PORT PE O 7 PFO L PF1 PF2 WC L PF3 PF4 BL L PFs PF6 PL L PF7 vcc C GND PORT PF O 7 A www etteam com gt User s Manual of ET BASE AVR ATmega64 128 r3 ENT Port AVR ISP mos vec Nc LE O GND RESET JO O GND miso O vec sck PL LI GND SCK 0 O mosi miso Q O GND RESET GND AVR ISP 10PIN AVR ISP 6 PIN 5V H9 1 2 3 9 6 AVR ISP AVR ISP Figures display circuit to connect with AVR ISP Port ET CLCD It is used with Character LED as 4Bit Interface and it uses signals from Port PG and PD PD7 to connect with LCD It connects Cable from Connector of Port LCD to LCD Display in this case it uses the pin names to be the reference point so all 14 Cables must be agreed with all 14 pin names vcc C GND Rs CL LJ vo EN WL RW D1 gL L Do D3 C C v2 D5 C D4 D7 L De ET
2. CLCD ETT CO LTD aS www etteam com i e User s Manual of ET BASE AVR ATmega64 128 r3 El 5V Figure displays how to arrange pin of Character LCD as standard type 2 Channel Port RS232 There are 2 channels one channel is connected with Signal PEO RXDO and PEl TXDO and other one is connected with Signal PD2 RXD1 and PD3 TXD1 RS232 CH1 RS232 CH0O 161610 BILI 2232 232 a e e ogag ETT CO LTD 6 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 El SE A C8 Me 2 100n C12 100n 100n TIOUT T2IN _ T20UT R10UT R11N R20UT R2IN R8 R5 R7 OR 330R OR RS232 CHO0 By 5 fe a PD Gui a PD PD min B yA Figure displays the part of circuit that is connected with RS232 How to download HEX File into MCU If user requires download HEX File into AVR MCU of ATMEL through Serial Programming it has to use ET AVR ISP or other ISP Programmers such as AVRISP of AMTEL If using ET AVR ISP it downloads HEX File through Parallel Port of computer moreover it has to use with ET CAP10P of ETT and Software PonyProg200 This PonyProg2000 is the program to download HEX File data into AVR CPU through Serial Programming and is compatible with AVR Board from ETT well User can read more information about general use of program from Help of Program by self In this case we will mention about how to setup Program PonyProg2000 to use with AVR Board from ETT moreover it
3. LTD oe www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 Ell Picture shows how to connect ET AVR ISP with ET BASE AVR ATmega64 128 r3 by connecting both boards together Please look at position of PIN 1 it must agree How to program Board ET BASE AVR ATmega64 128 r3 by Program PonyProg2000 Program PonyProg2000 is the program to download HEX File Data into AVR CPU through Serial Programming and it is compatible with AVR Board from ETT well User can read more information about general use of program from Help of Program by self In this case we will mention about how to setup Program PonyProg2000 to use with AVR Board from ETT moreover it is compatible with all AVR Boards from ETT Please be careful in using AVR CPU No ATmega64 128 there are many Fuse Bits internal structure of ATmega64 128 that are used to set conditional operations of CPU Some Fuse Bits have effect on Serial Programming Download if user sets these Fuse Bits wrongly it is unable to program any CPU by Serial Programming any more In this case user needs to edit these Fuse Bits by Parallel Programmer correctly first If using Program PonyProg2000 to program AVR CPU that 1s used with ETT Board it needs to set Option of program as follows ETT CO LTD 10 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ETT 1 Click Setup gt Interface Setup as follows VO port setup 140 port setup Set I O Port as Parallel and the Pro
4. file Look irn B T4HC595_0UT_7SEG y Pe Recent a E Desktop My Documents y May Computer My Network File name l174HC595_OUT_7SEG Places Files of type her Cancel 7 Start programming data into CPU click Command gt Program and program start running as chosen in the step 5 that are Load File Erase Write Program memory FLASH respectively User needs to wait until the operation of program runs completely Status Program succestul After programmed successfully CPU starts running according to the downloaded data instantly ETT CO LTD 16 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT How to initially check if be unable to download program If any error occurred while programming please check the problem as follows Read manual of board and learn how to download Program AVR by PonyProgZ000 throughout Check the Cables connection if downloading program through PonyProg2000 it has to use with Cable Download ET CAP1O0PIN of ETT and then sets Jumper to be PonyProg correctly see more detailed in Page 9 Check Power Supply of board Check setting values OT program to download PonyProg2000 Check whether signal from PORT PB of CPU is connected with external devices while downloading or not For example Signal from Port PB is connected with LED or other circuits while downloading data How to use with other Programmers Example of us
5. is 4Bit Interface No 14 and 15 It is Connector RS232 for general use No 16 It is Jumper to choose between RS232 or Port VO No 17 It is Connector Power Supply for board No 18 It is LED Power to display the operating result of 5VDC Power Supply LTD 2 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 Ell Connectors It has designed and arranged Connectors of Port I O from MCU through 6 of Connectors IDC Header 10PIN 2x5 that are PA PB PC PD PE and PF respectively Connectors in each set consist of Signal I Os that are directly connected from Pin of MCU The connecting points that are used to interface with external signal are listed below e Connector Power Supply for board e Connector 8Bit PORTA that is PAO PA7 e Connector cBit PORTB that 16 PBO Ps e Connector OBIC PORTC that 18 PCO BC7 e Connector 8Bit PORTD that is PDO PD e Connector 8Bit PORTE that is PEO PE 7 e Connector 8Bit PORTF that is PFO PF 7 e Connector ET CLCD to connect with Character LCD e 2 Channel Connector RS232 one channel 1S connected with PEO RXDO and PE1 TXDO and other one 1s connected with PD2 RXD1 and PD3 TXD1 so user can connect with RS232 easily e Connector AVR ISP to download HEX File into MCU SBIT PORT PA PAO L PA1 PA2 bC C PA3 PA4 M L PAS PA6 FL L PA7 VCC L L GND PORT PA 0 7 8BIT PORT PB PBO PB1 PB2 kW C L PB3 PB4 BL LI Pes PB6 PL L
6. is compatible with all AVR Boards from HIT ETT CO LTD www etteam com e User s Manual of ET BASE AVR ATmega64 128 r3 El Structure of Board ET AVR ISP h UN DIJE MMM e No 1 It is Port for interfacing with ET CAP10P of ETT to program HEX File into MCU e No 2 It is LED PGM Green to display the status of programming or downloading HEX File into MCU e No 3 It is LED PWR Red to display the operating status of Power Supply for board e No 4 It is Port to connect with Target Board that can program HEX File into board ET BASE AVR ATmega64 128 r3 by plugging Board ET AVR ISP on Port AVR IOP IC arranges pins as shown in the picture below so ETT CO LTD 8 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT How to connect devices to program HEX File If user requires programming HEX File Code into AVR MCU it has tO use with ET CAPIOPIN and Program PonyProgZ000 It Connects ET CAPLOPIN with Printer Porc sets Jumper for using with Program PonyProg2000 connects Cable Download at Connector AVR ISP Download of board and then supplies power into the board completely If there is any external device is connected with Port PB user has to remove it from the port first The connections feature is shown in the picture below STAN T r Left ET CAP10P V2 0 Right ET CAP10P V1 0 Picture shows how to set Jumper and interface Cable Download of ET CAP10P for using with AVR ETT CO
7. IN1 PES E a i a PF2 ADC2 XCKO AINO PE2 E J g N O PF1 ADC1 TXDO PDO PE1 PE B 2 a ee a 2 H10 aa Srna L PFO ADCO RXDO PDI PEO L V _1 V _1 ATMEGA128 2 2 3 3 PFO PF7 4 4 LOGO ETT J3 3 12vDC OMOOOO U3 5V KIA278R05 Sheet Title rion Project Title ET BASE AVR MEGA128 Size A4 PWR Drawn By ETT CO LTD REV 3 Date 23 9 2553 15 25 44 Sheet 1 1 1 2 3 4 5 6
8. User s Manual of ET BASE AVR ATmega64 128 r3 El ET BASE AVR ATmega64 128 r3 ET BASE AVR ATmega64 128 t3 is AVR Board Microcontroller from ATMEL that uses 64Pin MCU No ATmega6o4 and No ATmegal28 It mainly emphasizes on using resources of MCU on this Board ET BASE AVR ATmega64 128 r3 I O Pins are externally connected to be Port PA PB PC PD PE PF and Port ET CLCD so 1t 2S more Convenient to Connect and including Port for downloading program Moreover it adds Circuit Line Driver RS 232 to increase the capability of RS 232 Serial Port Communication easier and more convenient Features of Board e Use 8Bit AVR MCU No ATmega64 ATmegal28 from ATMEL and use Signal Clock Generator as XTAL 16MHz Moreover there are other outstanding features of MCU as follows Has o64Kbyte Flash Memory for ATmega64 128Kbyte Flash Memory for ATmegal28 and 4Kbytes RAM Has 2Kbyte EEPROM for ATmega64 and 4Kbyte EEPROM for ATmegal28 can be re written more than 100 000 times Has a maximum of 53 I O Pins Has 1 Channel SPI l Channel LZ Channel Programmable Serial USARTs Has 8 Channel 10 Bit ADC Has 2 Channel 8 Bit Timers Counters 2 Channel 16 Bit Timers Counters 2 Channel 8 Bit PWM Watchdog Timer Real Time Counter e Has 6 of 10PIN I O PORTs PA PB PC PD PE PF e Has Port ISP LOAD for programming MCU has to use with ET AVR ISP of other ISP Programmers that has the same pin arrangement e Has Circuit Line Driver 2 Channel for RS232 Serial P
9. d with external Signal Clock So it is unable to program CPU through Serial Programming any more User has to edit Fuse Bit of the CPU correctly and it needs to choose the Frequency Generator as External Crystal ETT CO LTD lt 13 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 EN Clock Generator of AVR Atmega128 Setting Fuse Bit of CKSEL 3 0 O Program 1 Un Program External Crystal Ceramic Resonator 1111 1010 External Low Frequency Crystal 1001 External RC Oscillator 1000 0101 Calibrated Internal RC Oscillator 0100 0001 External Clock 0000 Table shows how to choose Frequency Generator from Fuse Bit CKSEL 3 0 NOTE Value 1 It means that it does not program the Fuse Bit and there is no any tick sign N in front of the Fuse E Value 0 It means that it programs the Fuse Bit and Should program the Fuse Bit of CKOPT to run at the Frequency 1 0MHz 16 00MHz Not allowed to program Fuse Bit of CKSEL 3 0 because it makes the operation error For example if user programs all Fuse Bits of CKSEL 3 0 as 0 after Program PnonyProg2000 wrote this Fuse Bit into CPU completely it is unable to use CPU with ETT Board anymore moreover it is unable to program and edit any new Fuse Bit into CPU through Serial Programming because CPU is unable to work Remember if user has programmed all Fuse Bit of CKSEL 3 0 as 0 it commands CPU to run with frequency of External Clock s
10. gramming type Serial Parallel as Avr ISP I O Avr ISP 140 Set Printer Port according to actual connections tor a E le example LPT1 if using o E E with Printer Port LEIA Do not set any value in Select Polarity of the Control lines the part of Polarity Invert Reset Invert DAA ESARLOL LIne Setup only one time when Invert SCEL Invert D OUT using the program in the Cancel OK Probe first time 2 set Program PonyProg2000 to calculate the proper speed for transmitting signal to program CPU click Setup gt Calibration Yes or No Bus timing calibration Be sure there are no application running other than PonyProg 000 the CPU and hard disk have to be idle The calibration may take a couple of seconds Do you want to run calibration row Cancel Notice Calibration OF Calibration only one time when using the program in the first time ETT CO LTD 11 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT 3 Set CPU number click Device AVR Micro gt Atmega64 or ATmegal28 U PonyProg2000 Serial Device Programmer SEE File Edit Device Command Script Utility Setup Window Zamora g lt PonyProg2000 ATmegal28 Size 135168 Bytes CRC 0000h 4 Click Command gt Security and Configuration Bits If it 1s other AVR numbers user can set the operation of Fuse Bit as required and user can read more information of the Fuse Bits from Data Sheet of CPU by se
11. ing with AVRISP mkll from ATMEL ETT CO LTD 17 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT E TE M q al m yo y a Gear Y s Example of using with ET AVR ISP USB V1 0 from ATMEL TERE fie 3 l Example of using with ET AVR ISP mkll from ETT ETT CO LTD 18 www etteam com 5V O R1 10k R AD7 PA7 n PA AD6 PA6 PAQ swt EA C1pp22pF XTAL2 ADS PAS SES PAO PA7 y1 AD4 PA4 RAS Ho pa E2 22pF XTAL1 aDs pas 48 PA dilo AD2 PA2 49 PA R2 OR e 50 PA ral COT OO SPA oe AVCC ADO PAO AU E GND de GE OC2 0C1C PB7 T i on O nT a ile T 35 PBO PB7 pee ae VCC OC1A PB5 PES i GND OC0 PB4 H3 Es 100n 4100n 53 GND MISO PB3 n gt i MOSI PB2 AURIS or PG3 TOSC2 SCK PB1 11 PR ic 10 D 0 e SS PBO PG4 TOSC1 oe Eno E g M15 PC7 PES 1000 E P Ae 40 P PCO PC7 C12 PGO A 39 PC4 ver 100n paper NET H4 100n 2 014 a E C11 o na A10 PC2 p GOP H E De A8 PCO TN T10UT PL apor A T T2IN T20UT T1 PD6 G is yO gt RIOUT RIN XCK1 PD5 PDO PD7 R20UT R2IN CP1 PD4 PEL ne a TXD1 INT3 PD3 5 5 gt j E E E Es RXD1 INT2 PD2 FS 52 SCL INTO PDo 42 PDO J f a a RS232 ae P PF7 ADC7 TDI ICP3 INT7 PE7 P 5 5 I O 32 PF6 ADC6 TDO T3 INT6 PE6 EE6 rr I PORT i EES PF5 ADCS TMS OC3CINTS PES EE JP1 JP2 JP3 JP4 7 5 PF4 ADC4 TCK OC3B INT4 PE4 5 H6 2 Si Si RX P PF3 ADC3 OC3A A
12. lf If using with ATmega64 128 please be careful in setting Fuse Bits correctly otherwise user cannot program any CPU through Serial Programming any more After set values as shown in the picture completely click Button Write This process has been done only one time and user can skip this process when entering later If using Board ET BASE AVR ATmega64 128 r3 it is unnecessary to do this process again because ETT has already set the values except user requires changing the value Configuration and Security bits E is Bootlockl Bootlock11 Bootlock02 BootlockO Lock Lockl MiI03C WOTON arta ela la ald slo W OCDEN W JTAGEN F W CKOPTIT EESAVE pBooTsz1 eBooTszo BOOTRST w sutal BODLEYEL BODEN SUT CESEL3 CKSEL2 CEKSEL1 CKSELO v E Refer to device datasheet please e o Clear All Set All Write Eg Picture displays how to set Fuse Bit to use with CPU No ATmega64 128 ETT CO LTD 12 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 Ell Meaning of Fuse Bits of ATmega64 128 a If ticked V in front of any Fuse Bit it means that it sets the Fuse Bit to be 0 or it programs the Fuse Bit a Tf did mot tack V in front of any Fuse Bit it means that it sets the Fuse Bit to be 1 or it does not program thee Fuse Bit Meaning of Fuse Bits of ATmega64 128 that has effect on Serial Programming e SPIEN It is Serial Programming Enable Bit and user alwa
13. o it makes the Frequency Generator of External Crystal stop running in this case CPU waits to receive the External Clock only However ETT Board only uses Signal Clock from Circuit Crystal External Crystal so if CPU cannot start running it is unable to program or edit any Fuse Bit for CPU correctly through Serial Programming It has to edit Fuse Bit of the CPU by Parallel Programmer first and user can use CPU with Serial Programming again Sec cle use ive poseo Ot lock e as meculcec 5 Click Command Program Option as follows ETT CO LTD 14 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 El 6 Open file Program LA Program Options W Reload Files Read Program memory FLASH Read Data memory EEPROM Bute Swap Set Serial Number Read Ose Calibration Byte IW Erase e Write Program memory FLASH Write Data memory EEPROM Write Security and Config bits Cancel program into CPU click File Open File specify name and location of HEX File to program completely ETT CO LTD New Window Open Program FLASH File Open Data EEPROM File Save Device File Save Device File As Save Program FLASH File 4s Save Data EEPROM File 4s Reload Files Ctrl L Print Close Exif FSHCS9S OUT FSEG hex PROG Main hex PROG 15 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT Open program FLASH content
14. ort Communication one channel is connected with Signal PEO RXDO and PE1l TXDO and other one is connected with PD2 RXD1 and PD3 TXD1 so user can connect with RS232 easily e Has circuit to connect with Character LCD Display ET CLCD and VR to adjust contrast or brightness of LCD circuit is connected with 4Bit Interface LCD e Has Circuit 5V 2A Regulate to be Power Supply for Circuit LCD Display and I O Devices that are compatible with 5V Power Supply including red LED to display the operating status e Be small PCB Size 8 x 6 cm ETT CO LTD 1 www etteam com User s Manual of ET BASE AVR ATmega64 128 r3 ENT Structure of Board ETT CO hel aa T pae BAe al A ET BAS pul Almegaizs r Al ai ancians o A A e e Ui tl llas CONT PTTL ETT ui Ric fal na AB No 1 It is AVR MCU No ATmega64 or ATmegal28 from ATMEL No 2 It is Switch RESET to reset the operation of MCU No 3 It is Crystal 16MHz No 4 It is VR to adjust contrast or brightness of LCD No 5 It is Port AVR ISP 6PIN to download HEX File into MCU No 6 It is Port AVR ISP 10PIN to download HEX File into MCU No 7 It is 8Bit PORTC that is PCO PC7 No 8 It is 8Bit PORTA that is PAO PA7 No 9 It is 8Bit PORTF that is PEO PE7 No 10 It is 8Bit PORTE that is PEO PE7 No 11 It is 8Bit PORTB that is PBO PB7 No 12 It is 8Bit PORTD that is PDO PD7 No 13 It is Port ET CLCD to connect with Character LCD that
15. ys sets this Fuse Bit because it is able to download program into CPU through In System Serial Programming Normally this Fuse Bit has been set from the factory and it cannot be erased or edited by any Serial Programming Mode If CPU has been programmed by Parallel Programming user does not forget to set and program this Fuse Bit e OCDEN and JTAGEN Both bits are used in case of debugging the operation of MCU programming data through JRTAG Interface and it has to use with AVR JTAG Debugger If user does not use this operation it 1S unnecessary to choose both bits e CKOPT It is Oscillator Option Bit If this Fuse Bit has been programmed it sets CPU to run at Frequency 16MHz on the other hand if this Fuse Bit has not been programmed it sets CPU to run at Frequency not higher than 8MHz If using with the standard Board from ETT that uses XTAL to be the Frequency Generator user should program this Fuse Bit because it makes CPU run at XTAL frequency in the range of L lt OMBZ L6UMAZ e CKSEL3 0 It is Select Clock Source Bit that is used together to choose Generator and frequency range Lor using with CPU If using with standard Board of ETT it has to set the value as External Crystal 1 0MHz 16 0MHz otherwise it makes the operation of program error If user sets the Frequency Generator wrongly for example if user sets the value as External Clock or External RC Oscillator it makes CPU cannot work because it has not been connecte
Download Pdf Manuals
Related Search
Related Contents
Calendriers et modalités de contrôle des connaissances Otterbox Nokia E63 Commuter Case Karcher WD 3.2XX Vacuum Cleaner User Manual nr. 841 21A-39M8897 Aménagement des points d`arrêt bus Atterrissage dur et affaissement du train d`atterrissage principal du Fujitsu P Line 27T-6 IPS Instructions for use General Henry Schein® Eurosil® Putty is a Copyright © All rights reserved.
Failed to retrieve file