Home

ET-BASE AVR ATmega64/128 User`s Manual ETT CO.,LTD

image

Contents

1. PORTF 8 Bit PFO PF 7 e No 12 is PORTA 8 Bit PAO PA 7 e No 13 and 14 are Connector RS232 for general Usage e No 15 is LED Power to display status of Power Sok Lo LG e No 16 is Connector Power Supply Connectors For Connector Port I O from MCU it is designed and is provided through 6 Connectors IDC Header 10PIN 2X5 PA PB PC PD PE and PF respectively Each Connector consists of Signal I O that is connected directly from Pin MCU The external connecting point of board is shown as following e Connector Power Supply of Board e Connector PORTA Bit PAO PA 7 e Connector PORTB Bit PBO PB 7 e Connector PORTC Bri PCU PC7 e Connector PORTD Bit PDO PD7 e Connector PORTE Bit PEO PE e Connector PORTE 8 Bit PFO PF e Connector BECLED f r interfacing with LED Character type CO CO CO OO e Connector late ev 2 Channel one channel for interfacing with Signal PEO RXDO and PE1 TXDO and other one channel for interfacing with Signal PD2 RXD1 and PD3 TXD1 in this case we can test connection OF Cie we RS232 Serial Port Communication easily e Connector ISP LOAD for downloading HEX File into MCU ETT CO LTD 3 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual Port PA 8 Bit Port PB 8 Bit Port PC 8 Bit ETT CO LTD PAO L PAM PA2 kC PA3 PA4 BL Pas Pas LI L PA7 VCC L GND PORT PA 0 7 PBO PB1 PB2 ul PB3 PB4 MI PB5 PB6 L PB7
2. VCC L GND PORT PB 0 7 Pco L Pct PC2 k C PC3 PC4 L pcs pce L PC7 VCC GND PORT PC 0 7 4 WWW ETT CO TH a ET BASE AVR ATmega64 128 Users Manual Port PD 8 Bit Port PE 8 Bit Port PF 8 Bit ETT CO LTD PDO PD1 PD2 lt k L PD3 PD4 BL pps Poe FL PD7 VCC L L GND PORT PD 0 7 PEO L PE1 PE2 L C PE3 PE4 BL LJ PES PE6 I PE7 VCC L GND PORT PE 0 7 PFO PF1 PF2 k L PF3 PF4 EL PFS PF6E L I PF7 VCC C GND PORT PF 0 7 WWW ETT CO TH PRE ET BASE AVR ATmega64 128 Users Manual EIT Port ISP LOAD MOSI L vec NC k GND RESET Ml GND SCK PL L GND MISO L GND ISP LOAD Picture displays circuit for connecting with ISP LOAD Port ET CLCD It is used with Character Type LCD for connecting as 4 Bit type It uses signal from Port PG and PD PD7 to connect with LCD In this case we must use the signal name to be reference and must interface all 14 cables corresponding with the truly name on the ONNECLOT VCC RS EN D1 D3 D5 ee OU 0 DOD D7 IL ET CLCD ETT CO LTD 6 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT 5V Picture displays Pin Arrangement of Character LCD Standard Port RS232 2 Channel It is used 1 Channel to connect with Signal PEO RXDO
3. and PEI TXD0 and other one Channel for interfacing with Signal PD2 RXD1 and PD3 TXD1 RS232 CH1 RS232 CH0 WeEILI LIE Ud0 U A 0 lt x X Z lt x x 8898 8338 ETT CO LTD 7 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT ICL3232 0 luF 16 l 0 luF O luF 2 3 6 4 0 1luF 0 luF ul 15 5 13 12 RXDI ll IXDI i 9 RXDO 10 TXDO Picture displays circuit for connecting with RS232 To Download Hex file into MCU It is necessary to use ET AVR ISP or other types of ISP Programmer such as AVRISP from ATMEL to download Hex File into MCU AVR family from ATMEL especially procedure of Serial Programming Type If we use ET AVR ISP we must download Hex File through Parallel Port of computer and must use it with ET CAPIOP from ETT and Software PonyProg2000 program that can use with ETT Board well User can learn general usage from menu HELP by self in this case we will only mention procedure to setup program PonyProg2000 for using with all versions Board AVR family from ETT ETT CO LTD 8 WWW ETT CO TH a ET BASE AVR ATmega64 128 Users Manual E Structure of Board ET AVR ISP UVOD MMA A e No l is Port for connecting with ET CAP10P from ETT to program Hex File into MCU e No 2 is LED PGM GREEN to display status of programming or to download Hex File into MCU e No 3 is LED PWR RED to display status of supplying power on board e No 4 is Port for connecting with Boa
4. Bit We must always program this Fuse Bit because we can program CPU Chrough In System Serial Programming Generally nit is configured by manufacturer and can not be erased or modified by Mode Serial Programming If CPU is programmed by Parallel Programming do not forget to command this Fuse Bit OCDEN and JTAGEN We use both Fuse Bit to debug operation of MCU and program through JTAG Interface and must use with AVR JTAG Debugger If we do not use this Fuse Bit for operation it is necessary to select both Fuse Bits CKOPT It is Oscillator Option Bit If we select this Fuse Bit it means that we configure CPU to ETT CO LTD 14 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual el run with frequency 16MHz If we do not select this Fuse Bit we configure CPU to run with frequency not much than 8 MHz If we use the standard ETT Board we use XTAL to be frequency generator So we should command this Fuse Bit because CPU can run with frequency XTAL range 1 0MHZ 16 40MEZ e CKSEL3 0 It is Select Clock Source Bit We use it to select generator frequency and frequency range for CPU If using with standard ETT Board must select External Crystal 1 0MHz 16 0MHz but 1f we select other value it makes operation of program error Remember if we select generator frequency incorrectly such as External Clock or External RC Oscillator it makes CPU can not run because we do not interface external Clock and we can not program C
5. ET BASE AVR ATmega64 128 Users Manual E il ET BASE AVR ATmega64 128 ET BASE AVR ATmega64 128 which is a Board Microcontroller AVR family from ATMEL uses MCU No ATmega64 and ATmegal28 64PIN Board ET BASE AVR ATmega64 128 uses MCU s resources on board mainly and arranges Pin I O as Port PA PB PC PD PE and PF Post BE ChCp and including Port for downloading Program it makes uS more convenient to apply for various project works Moreover there s addition circuit Driver RS 232 so we can use RS 232 Serial Port Communication easily and conveniently Specifications e Use MCU AVR family No ATmega64 ATmegal28 from ATMEL B8BIT to be permanent MCU on board and XTAL 16 MHz Moreover this MCU has other interesting specifications as following Flash Memory 64 K Bytes for ATmega64 and 128 K Bytes for ATmegal28 and RAM 4 K Bytes EEPROM 2K Bytes for ATmega64 and 4 K Bytes for ATmegal28 in this case we can erase and re write data more than 100 000 times Maximum 53 I O Pins Circuit SPI Communication Channel 126 1 Channel Programmable Serial USARTs 2 Channel ADC LUsBil 8 channel Timers Counter 8 Bit 2 Channel Timers Counter 16 Bit 2 Channel 8 Bit PWM 2 Channel Watchdog Timer Real Time Counter e 6 I O Port 10PIN PA PB PC PD PE and PF e Port ISP LOAD for program MCU must use with ET AVR ISP or ISP Programmer that has the same type of Pin arrangement e Line Driver for RS232 Serial Port Communication 2 Channel one
6. FF FF FF FF 9900F8 FF FF FF FF FF FF FF FF FF lt PornyProg 000 AT megab4 Size 67584 Bytes CAC EB h 4 Select Command Security and Configuration Bits if it is other AVR number can configure Fuse Bit as required User can learn more detailed of Fuse Bit from Data Sheet of CPU by self Be carefully 1f using with ATmega64 we must configure Fuse Bit correctly otherwise we can not program CPU through Serial Programming Type we can configure Fuse Bit as following ETT CO LTD 13 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual E i Configuration and Security bits E jm Baotlockl Bootlackl1 BootlockO2 Bootlack l Loek Lock jim jim p Ej E g MIO3C WOTON W OCDEN wW JTEGEN v W CKOPT EESAVE BOOTSZ1 BOOTSZO BOOTRST BODLEVEL BODENI SHTI Iw SUTO MKSEL3 CKSEL CKSEL1 CKSELO Hi Ei Refer to device datasheet please Cancel Lok Clear All Set All write Read Picture displays configuration of Fuse Bit for using with CPU No ATmega64 The Fuse Bit s Meaning of ATmega64 o If select or tick V sign in front of which Fuse Bit it means that we configure the Fuse Bit to be 0 or Command to program Fuse Bit If not select or tick V sign in front of which Fuse Bit it means that we configure Fuse Bit to be I or Command to not program Fuse Bit The Fuse Bit s meaning of ATmega64 that is effect on Serial programming SPIEN It is Serial Programming Enable
7. PU through Serial Programming Type We can solve this problem by modification Fuse Bit of CPU to be External Crystal Generator Frequency AVR To Configure Fuse Bit of CKSEL 3 0 Atmega64 O lt Program 1 lt Un Program External Crystal Ceramic Resonator 1111 1010 External Low Freguency Crystal 1001 External RC Oscillator 1000 0101 Calibrated Internal RC Oscillator 0100 0001 External Clock 0000 Picture displays the selection generator freguency from Fuse Bit CKSEL 3 0 ETT CO LTD 15 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual el NOTE Default value 1 It means that not program Fuse Bit and not tick any mark V in front of Fuse Bit name Default value 0 It means that command to program fuse Bit and must tick mark V in front of Fuse Bit s name Should program Fuse Bit of CKOPT to run with frequency range 1 0MHz 16 0MHz Do not command to program Fuse Bit of CKSEL 3 0 because the operation will be error For example if we program all Fuse Bit of CKSEL 3 0 to be 0 after program PonyProg200 has already written default value of Fuse Bit into CPU completely we can not use CPU with ETT Board and can not program through Serial Programming Type If we program all Fuse Bit of CKSEL 3 0 to be 0 it configures CPU to run with External Clock so External Crystal stops running and CPU wait for receiving External Clock only but ETT Board use only External crystal So we must modify Fus
8. Port for interfacing with Signal PEO RXDO and PELl TXDO and other one Port for interfacing with Signal PD2 RXD1 and PD3 TXD1 in this case we can test connection of circult RS232 Serial Port Communication easier e Circuit for connecting with Character LCD Display Monitor HT ChCD and VR for Contrasting brightness of LCD in this case it is ETT CO LTD 4 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual el interfaced circuit with LCD as 4 Bit Interface Ly Oe e Circuit Regulate 5V 1A for supplying power into oba ekle of LCD Display Monitor and IJO components for using with Power Supply that is not much than 5V and red LED e PCB Size 8 x 6 cm Structure of Board m 1 saa O 9 PFO PF7 PAO PA7 Je 2 N BE zero l EAA HES ni E TXD1 Pp3 U Slik ETT www ett co th D 8Z p9V93WALY 10K R FE ilo 16MHz 87 l y9VIJN AV avon dsl R Epo rav aJl e No 1 is MCU No ATmega64 or ATmegal28 AVR family from ATMEL 2 is Switch RESRT to reset operation of MCU 3 io Crystal le Miz e No 4 is Resistor to contrast brightness of LCD 5 19 PORTC Bit PCU PC e No 6 is Port ISP LOAD to download Hex File into MCU e No 7 is Port ET CLCD to connect with Character LCD as 4 Bit type ETT CO LTD 2 WWW ETT CO TH a ET BASE AVR ATmega64 128 Users Manual E e No 8 is PORTD 8 Bit PDO PD e No 9 is PORTB 8 Bit PBO PB e No 10 is PORTE 8 Bit PEO PE7 e No ll is
9. R family through Serial Programming Type This method can be used with all versions of board AVR family from ETT User can learn general usage from menu HELP by self in this case we will only mention procedure to setup program PonyProg2000 for using with all versions Board AVR family from ETT Be carefully in case of using CPU AVR family No ATmega64 because internal structure has many Fuse Bits to configure condition of CPU operation These Fuse Bits are effect on downloading as Serial Programming Type In case of selecting Fuse Bit incorrectly we can not program CPU by Serial Programming Type To solve this problem is modifying Fuse Bit of CPU by using Parallel Programmer first and then we can use it as usual If we program CPU AVR family with ETT Board and use Program PonyProg2000 we must configure Option of program as following ETT CO LTD 11 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT 1 Configure Setup Interface Setup as following I O port setup IZO port setup Select I O Port to be Parallel and then select format of programming to Aw SP I O el be Avr ISP I O Select Printer Port as truly Usage such as LETI in case of using Printer Port LPI No select in the part of Polarity Control Line Invert SCKL Invert D OUT Only setup program for ses IK Stale the first time usage Serial ie Parallel fe PTI O fo Select Polarity of the Control lines Invert Bezet Inve
10. e Bit of CPU by using Parallel first and then we can use CPU as usual use Ble EOS O OEC k SaD E O c as reguired 5 Select Command Program Option as following Program Options if Reload Files Head Program memory FLASH Head Data memory EEPROM Bute Swap Set Serial Number Head Osc Calibration Bute Erase Winte Program memory FLASH Winte Data memor EEPROM Winte Security and Contig bits Cancel ETT CO LTD 16 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT 6 Open Hex File that we want to program into CPU click File Open Program FLASH File and then assign name and address of Hex File New Window Save Device File Save Device File As Save Program FLASH File As Save Data EEPROM File As Reload Files CErl L Print Close Exit FSHCS95 OUT FSEG hex PROG Main hex PROG Open program FLASH content file Look ir AHL5535 OUT SEG My Documents My Computer My Network File name 74H C595 OUT SEG Places Files of type hex Cancel ETT CO LTD 17 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT 7 Start to program data into CPU click Command Program Then program will run as downloaded 5 Commands as following Load File Erase Write Program memory FLASH and Write Security and Config Bits respectively In this case we must wait for program finished completely Status Matice Program succes
11. rd Target that can program Hex File into Board ET AVR STAMP ATmega64 by inserting Board ET AVR ISP at the position of Port ET PSPI Pin arrangement is shown as in the picture below Pin Position Signals Name MOSI VCC v RESET SCK Maen An o ss ETT CO LTD 9 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT To Connect Component for Programming Hex File We must use ET CABIOPIN and Program PonyProg2000 to program Code Hex File into AVR MCU We must interface ET CABIOPIN with Port Printer and then set Jumper for using Program PonyProg2000 Next interface cable Download at the Connector ET PSPI Download of Board then supply power into board We should take off all external components that interface with Port PB before programming code Hex File The feature of connection is shown as in the picture below WM A daj sd Pa 4 A i i v U i tal 4 4 s v ir MM MM LEFT ET CAPIOP V2 0 RIGHT ET CAPIOP V1 0 Picture displays Set Jumper and interface cable Download of ET CAP10P for using with AVR ETT CO LTD 10 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual E Picture displays the connection ET AVR ISP with ET BASE AVR ATmega64 128 in this case Pin position of one board must be corresponding with other one board To program Board ET BASE AVR ATmega64 128 b using Program PonyProg2000 Program Ponyprog2000 is a program for downloading data Hex File into CPU AV
12. rt D IM 2 Command Program PonyProg200 to calculate the Suitable speed for sending signal into CPU click Setup Calibration Yes or No Bus timing calibration Be zure there are no application running other than PonyProg2000 the CPU and hard disk hawe to be idle The calibration may take a couple of seconds Do you want to run calibration now Cancel Matice Calibration F ETT CO LTD 12 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual EIT We command to Calibration only one time when we use program in the first time 3 Select CPU number click Device AVR Micro gt such as Atmega64 E PonyProp2000 Serial Device Programmer Sele File Edit Device Command Script Utility Setup Window PbS amo A LYV 4HC595 OUT TSEGMT4HC595 OUT 7SEG hex 666600 86 CH AF EF HD BF HH BF n m u 600610 H2 BO FH ED EE EH C8 28 D9 UoLEEfle a BAHBAZAJ H3 DA E DA 31 96 F7 2F 18 Est idi BAHATAJ C2 9A C1 PA C1 98 22 95 C1 ed 650040 88 95 SF 93 AF 93 30 EF HH e 5DEBuJo JeTA 090050 3A 95 D1 F7 HF 91 3F 95 3F ze e 5058o 890066 4A EF A8 OG 4A 95 E9 95 D1 Ja Ja dze 405 880070 A8 95 SF 93 58 EC ES 95 E9 a 5x1 Ze d e 800086 SF 93 52 E4 EA DF SA F7 SF RIE Ze e 990096 SB UF 66 6D 7D 27 7F BB FF AABAA FF FF FF FF FF FF FF FF FF OBAOBA FF FF FF FF FF FF FF FF FF 998008 FF FF FF FF FF FF FF FF FF 990006 FF FF FF FF FF FF FF FF FF OBOBEA FF FF FF FF FF
13. tul After programming completely CPU will start operation as downloaded data in program instantly ETT CO LTD 18 WWW ETT CO TH ET BASE AVR ATmega64 128 Users Manual E il The basic procedure to check if can not download program If there s error in step of programming we can check the problem as following Read User s Manual of Board and User s Manual of Download program AVR by using Program Ponyprog2000 well before using board m Check connection of cables and for downloading program PonyProg2000 must use with Cable Download version ET CAPIOPIN from ETT We must set Jumper to be PonyProg correctly can see more detailed from page 9 Check Power Supply of Board m Check default values of program for downloading Program PonyProg2Z000 m Check signal from PORT PB of CPU is interfaced with external component while downloading or not For example it is interfaced with LED or interfaced with other circuit while downloading data Should not interface Cable RS232 with Port RS 232 CHO because SPI Programming of ATmega64 uses Pin with RS232 RXDO TXDO ETT CO LTD 19 WWW ETT CO TH

Download Pdf Manuals

image

Related Search

Related Contents

Mode d`Emploi  Tablier à déplacement latéral  Manual de instrucciones  01 TD 000 674 F Manuel de service CMV 125  VIVOTEK CC8130 surveillance camera  movistar TV Digital  Bedienungsanleitung  Curtis LCD1927A User's Manual  ALARM TROUBLESHOOTING FLOWCHARTS  GGU-TRENCH - Index of  

Copyright © All rights reserved.
Failed to retrieve file